@ -140,8 +140,6 @@ public final class Descriptors {
}
}
/** The syntax of the .proto file. */
/** The syntax of the .proto file. */
@Deprecated
public
enum Syntax {
enum Syntax {
UNKNOWN ( "unknown" ) ,
UNKNOWN ( "unknown" ) ,
PROTO2 ( "proto2" ) ,
PROTO2 ( "proto2" ) ,
@ -156,8 +154,6 @@ public final class Descriptors {
}
}
/** Get the syntax of the .proto file. */
/** Get the syntax of the .proto file. */
@Deprecated
public
Syntax getSyntax ( ) {
Syntax getSyntax ( ) {
if ( Syntax . PROTO3 . name . equals ( proto . getSyntax ( ) ) ) {
if ( Syntax . PROTO3 . name . equals ( proto . getSyntax ( ) ) ) {
return Syntax . PROTO3 ;
return Syntax . PROTO3 ;
@ -1273,8 +1269,6 @@ public final class Descriptors {
* Returns true if this field was syntactically written with "optional" in the . proto file .
* Returns true if this field was syntactically written with "optional" in the . proto file .
* Excludes singular proto3 fields that do not have a label .
* Excludes singular proto3 fields that do not have a label .
* /
* /
@Deprecated
public
boolean hasOptionalKeyword ( ) {
boolean hasOptionalKeyword ( ) {
return isProto3Optional
return isProto3Optional
| | ( file . getSyntax ( ) = = Syntax . PROTO2 & & isOptional ( ) & & getContainingOneof ( ) = = null ) ;
| | ( file . getSyntax ( ) = = Syntax . PROTO2 & & isOptional ( ) & & getContainingOneof ( ) = = null ) ;
@ -2843,8 +2837,6 @@ public final class Descriptors {
return proto ;
return proto ;
}
}
@Deprecated
public
boolean isSynthetic ( ) {
boolean isSynthetic ( ) {
return fields . length = = 1 & & fields [ 0 ] . isProto3Optional ;
return fields . length = = 1 & & fields [ 0 ] . isProto3Optional ;
}
}