Package com.google.protobuf
Class DescriptorProtos.FieldDescriptorProto
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.protobuf.DescriptorProtos.FieldDescriptorProto
-
- All Implemented Interfaces:
DescriptorProtos.FieldDescriptorProtoOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.io.Serializable
- Enclosing class:
- DescriptorProtos
public static final class DescriptorProtos.FieldDescriptorProto extends com.google.protobuf.GeneratedMessageV3 implements DescriptorProtos.FieldDescriptorProtoOrBuilder
Describes a field within a message.
Protobuf typegoogle.protobuf.FieldDescriptorProto- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDescriptorProtos.FieldDescriptorProto.BuilderDescribes a field within a message.static classDescriptorProtos.FieldDescriptorProto.LabelProtobuf enumgoogle.protobuf.FieldDescriptorProto.Labelstatic classDescriptorProtos.FieldDescriptorProto.TypeProtobuf enumgoogle.protobuf.FieldDescriptorProto.Type-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_VALUE_FIELD_NUMBERstatic intEXTENDEE_FIELD_NUMBERstatic intJSON_NAME_FIELD_NUMBERstatic intLABEL_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intNUMBER_FIELD_NUMBERstatic intONEOF_INDEX_FIELD_NUMBERstatic intOPTIONS_FIELD_NUMBERstatic com.google.protobuf.Parser<DescriptorProtos.FieldDescriptorProto>PARSERDeprecated.static intPROTO3_OPTIONAL_FIELD_NUMBERstatic intTYPE_FIELD_NUMBERstatic intTYPE_NAME_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)static DescriptorProtos.FieldDescriptorProtogetDefaultInstance()DescriptorProtos.FieldDescriptorProtogetDefaultInstanceForType()java.lang.StringgetDefaultValue()For numeric types, contains the original text representation of the value.com.google.protobuf.ByteStringgetDefaultValueBytes()For numeric types, contains the original text representation of the value.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()java.lang.StringgetExtendee()For extensions, this is the name of the type being extended.com.google.protobuf.ByteStringgetExtendeeBytes()For extensions, this is the name of the type being extended.java.lang.StringgetJsonName()JSON name of this field.com.google.protobuf.ByteStringgetJsonNameBytes()JSON name of this field.DescriptorProtos.FieldDescriptorProto.LabelgetLabel()optional .google.protobuf.FieldDescriptorProto.Label label = 4;java.lang.StringgetName()optional string name = 1;com.google.protobuf.ByteStringgetNameBytes()optional string name = 1;intgetNumber()optional int32 number = 3;intgetOneofIndex()If set, gives the index of a oneof in the containing type's oneof_decl list.DescriptorProtos.FieldOptionsgetOptions()optional .google.protobuf.FieldOptions options = 8;DescriptorProtos.FieldOptionsOrBuildergetOptionsOrBuilder()optional .google.protobuf.FieldOptions options = 8;com.google.protobuf.Parser<DescriptorProtos.FieldDescriptorProto>getParserForType()booleangetProto3Optional()If true, this is a proto3 "optional".intgetSerializedSize()DescriptorProtos.FieldDescriptorProto.TypegetType()If type_name is set, this need not be set.java.lang.StringgetTypeName()For message and enum types, this is the name of the type.com.google.protobuf.ByteStringgetTypeNameBytes()For message and enum types, this is the name of the type.booleanhasDefaultValue()For numeric types, contains the original text representation of the value.booleanhasExtendee()For extensions, this is the name of the type being extended.inthashCode()booleanhasJsonName()JSON name of this field.booleanhasLabel()optional .google.protobuf.FieldDescriptorProto.Label label = 4;booleanhasName()optional string name = 1;booleanhasNumber()optional int32 number = 3;booleanhasOneofIndex()If set, gives the index of a oneof in the containing type's oneof_decl list.booleanhasOptions()optional .google.protobuf.FieldOptions options = 8;booleanhasProto3Optional()If true, this is a proto3 "optional".booleanhasType()If type_name is set, this need not be set.booleanhasTypeName()For message and enum types, this is the name of the type.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static DescriptorProtos.FieldDescriptorProto.BuildernewBuilder()static DescriptorProtos.FieldDescriptorProto.BuildernewBuilder(DescriptorProtos.FieldDescriptorProto prototype)DescriptorProtos.FieldDescriptorProto.BuildernewBuilderForType()protected DescriptorProtos.FieldDescriptorProto.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static DescriptorProtos.FieldDescriptorProtoparseDelimitedFrom(java.io.InputStream input)static DescriptorProtos.FieldDescriptorProtoparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DescriptorProtos.FieldDescriptorProtoparseFrom(byte[] data)static DescriptorProtos.FieldDescriptorProtoparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DescriptorProtos.FieldDescriptorProtoparseFrom(com.google.protobuf.ByteString data)static DescriptorProtos.FieldDescriptorProtoparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DescriptorProtos.FieldDescriptorProtoparseFrom(com.google.protobuf.CodedInputStream input)static DescriptorProtos.FieldDescriptorProtoparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DescriptorProtos.FieldDescriptorProtoparseFrom(java.io.InputStream input)static DescriptorProtos.FieldDescriptorProtoparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DescriptorProtos.FieldDescriptorProtoparseFrom(java.nio.ByteBuffer data)static DescriptorProtos.FieldDescriptorProtoparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<DescriptorProtos.FieldDescriptorProto>parser()DescriptorProtos.FieldDescriptorProto.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NUMBER_FIELD_NUMBER
public static final int NUMBER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LABEL_FIELD_NUMBER
public static final int LABEL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TYPE_NAME_FIELD_NUMBER
public static final int TYPE_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EXTENDEE_FIELD_NUMBER
public static final int EXTENDEE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DEFAULT_VALUE_FIELD_NUMBER
public static final int DEFAULT_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ONEOF_INDEX_FIELD_NUMBER
public static final int ONEOF_INDEX_FIELD_NUMBER
- See Also:
- Constant Field Values
-
JSON_NAME_FIELD_NUMBER
public static final int JSON_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
OPTIONS_FIELD_NUMBER
public static final int OPTIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PROTO3_OPTIONAL_FIELD_NUMBER
public static final int PROTO3_OPTIONAL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARSER
@Deprecated public static final com.google.protobuf.Parser<DescriptorProtos.FieldDescriptorProto> PARSER
Deprecated.
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasName
public boolean hasName()
optional string name = 1;- Specified by:
hasNamein interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder- Returns:
- Whether the name field is set.
-
getName
public java.lang.String getName()
optional string name = 1;- Specified by:
getNamein interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
optional string name = 1;- Specified by:
getNameBytesin interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder- Returns:
- The bytes for name.
-
hasNumber
public boolean hasNumber()
optional int32 number = 3;- Specified by:
hasNumberin interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder- Returns:
- Whether the number field is set.
-
getNumber
public int getNumber()
optional int32 number = 3;- Specified by:
getNumberin interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder- Returns:
- The number.
-
hasLabel
public boolean hasLabel()
optional .google.protobuf.FieldDescriptorProto.Label label = 4;- Specified by:
hasLabelin interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder- Returns:
- Whether the label field is set.
-
getLabel
public DescriptorProtos.FieldDescriptorProto.Label getLabel()
optional .google.protobuf.FieldDescriptorProto.Label label = 4;- Specified by:
getLabelin interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder- Returns:
- The label.
-
hasType
public boolean hasType()
If type_name is set, this need not be set. If both this and type_name are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
optional .google.protobuf.FieldDescriptorProto.Type type = 5;- Specified by:
hasTypein interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder- Returns:
- Whether the type field is set.
-
getType
public DescriptorProtos.FieldDescriptorProto.Type getType()
If type_name is set, this need not be set. If both this and type_name are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
optional .google.protobuf.FieldDescriptorProto.Type type = 5;- Specified by:
getTypein interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder- Returns:
- The type.
-
hasTypeName
public boolean hasTypeName()
For message and enum types, this is the name of the type. If the name starts with a '.', it is fully-qualified. Otherwise, C++-like scoping rules are used to find the type (i.e. first the nested types within this message are searched, then within the parent, on up to the root namespace).
optional string type_name = 6;- Specified by:
hasTypeNamein interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder- Returns:
- Whether the typeName field is set.
-
getTypeName
public java.lang.String getTypeName()
For message and enum types, this is the name of the type. If the name starts with a '.', it is fully-qualified. Otherwise, C++-like scoping rules are used to find the type (i.e. first the nested types within this message are searched, then within the parent, on up to the root namespace).
optional string type_name = 6;- Specified by:
getTypeNamein interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder- Returns:
- The typeName.
-
getTypeNameBytes
public com.google.protobuf.ByteString getTypeNameBytes()
For message and enum types, this is the name of the type. If the name starts with a '.', it is fully-qualified. Otherwise, C++-like scoping rules are used to find the type (i.e. first the nested types within this message are searched, then within the parent, on up to the root namespace).
optional string type_name = 6;- Specified by:
getTypeNameBytesin interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder- Returns:
- The bytes for typeName.
-
hasExtendee
public boolean hasExtendee()
For extensions, this is the name of the type being extended. It is resolved in the same manner as type_name.
optional string extendee = 2;- Specified by:
hasExtendeein interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder- Returns:
- Whether the extendee field is set.
-
getExtendee
public java.lang.String getExtendee()
For extensions, this is the name of the type being extended. It is resolved in the same manner as type_name.
optional string extendee = 2;- Specified by:
getExtendeein interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder- Returns:
- The extendee.
-
getExtendeeBytes
public com.google.protobuf.ByteString getExtendeeBytes()
For extensions, this is the name of the type being extended. It is resolved in the same manner as type_name.
optional string extendee = 2;- Specified by:
getExtendeeBytesin interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder- Returns:
- The bytes for extendee.
-
hasDefaultValue
public boolean hasDefaultValue()
For numeric types, contains the original text representation of the value. For booleans, "true" or "false". For strings, contains the default text contents (not escaped in any way). For bytes, contains the C escaped value. All bytes >= 128 are escaped.
optional string default_value = 7;- Specified by:
hasDefaultValuein interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder- Returns:
- Whether the defaultValue field is set.
-
getDefaultValue
public java.lang.String getDefaultValue()
For numeric types, contains the original text representation of the value. For booleans, "true" or "false". For strings, contains the default text contents (not escaped in any way). For bytes, contains the C escaped value. All bytes >= 128 are escaped.
optional string default_value = 7;- Specified by:
getDefaultValuein interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder- Returns:
- The defaultValue.
-
getDefaultValueBytes
public com.google.protobuf.ByteString getDefaultValueBytes()
For numeric types, contains the original text representation of the value. For booleans, "true" or "false". For strings, contains the default text contents (not escaped in any way). For bytes, contains the C escaped value. All bytes >= 128 are escaped.
optional string default_value = 7;- Specified by:
getDefaultValueBytesin interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder- Returns:
- The bytes for defaultValue.
-
hasOneofIndex
public boolean hasOneofIndex()
If set, gives the index of a oneof in the containing type's oneof_decl list. This field is a member of that oneof.
optional int32 oneof_index = 9;- Specified by:
hasOneofIndexin interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder- Returns:
- Whether the oneofIndex field is set.
-
getOneofIndex
public int getOneofIndex()
If set, gives the index of a oneof in the containing type's oneof_decl list. This field is a member of that oneof.
optional int32 oneof_index = 9;- Specified by:
getOneofIndexin interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder- Returns:
- The oneofIndex.
-
hasJsonName
public boolean hasJsonName()
JSON name of this field. The value is set by protocol compiler. If the user has set a "json_name" option on this field, that option's value will be used. Otherwise, it's deduced from the field's name by converting it to camelCase.
optional string json_name = 10;- Specified by:
hasJsonNamein interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder- Returns:
- Whether the jsonName field is set.
-
getJsonName
public java.lang.String getJsonName()
JSON name of this field. The value is set by protocol compiler. If the user has set a "json_name" option on this field, that option's value will be used. Otherwise, it's deduced from the field's name by converting it to camelCase.
optional string json_name = 10;- Specified by:
getJsonNamein interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder- Returns:
- The jsonName.
-
getJsonNameBytes
public com.google.protobuf.ByteString getJsonNameBytes()
JSON name of this field. The value is set by protocol compiler. If the user has set a "json_name" option on this field, that option's value will be used. Otherwise, it's deduced from the field's name by converting it to camelCase.
optional string json_name = 10;- Specified by:
getJsonNameBytesin interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder- Returns:
- The bytes for jsonName.
-
hasOptions
public boolean hasOptions()
optional .google.protobuf.FieldOptions options = 8;- Specified by:
hasOptionsin interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder- Returns:
- Whether the options field is set.
-
getOptions
public DescriptorProtos.FieldOptions getOptions()
optional .google.protobuf.FieldOptions options = 8;- Specified by:
getOptionsin interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder- Returns:
- The options.
-
getOptionsOrBuilder
public DescriptorProtos.FieldOptionsOrBuilder getOptionsOrBuilder()
optional .google.protobuf.FieldOptions options = 8;- Specified by:
getOptionsOrBuilderin interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder
-
hasProto3Optional
public boolean hasProto3Optional()
If true, this is a proto3 "optional". When a proto3 field is optional, it tracks presence regardless of field type. When proto3_optional is true, this field must be belong to a oneof to signal to old proto3 clients that presence is tracked for this field. This oneof is known as a "synthetic" oneof, and this field must be its sole member (each proto3 optional field gets its own synthetic oneof). Synthetic oneofs exist in the descriptor only, and do not generate any API. Synthetic oneofs must be ordered after all "real" oneofs. For message fields, proto3_optional doesn't create any semantic change, since non-repeated message fields always track presence. However it still indicates the semantic detail of whether the user wrote "optional" or not. This can be useful for round-tripping the .proto file. For consistency we give message fields a synthetic oneof also, even though it is not required to track presence. This is especially important because the parser can't tell if a field is a message or an enum, so it must always create a synthetic oneof. Proto2 optional fields do not set this flag, because they already indicate optional with `LABEL_OPTIONAL`.
optional bool proto3_optional = 17;- Specified by:
hasProto3Optionalin interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder- Returns:
- Whether the proto3Optional field is set.
-
getProto3Optional
public boolean getProto3Optional()
If true, this is a proto3 "optional". When a proto3 field is optional, it tracks presence regardless of field type. When proto3_optional is true, this field must be belong to a oneof to signal to old proto3 clients that presence is tracked for this field. This oneof is known as a "synthetic" oneof, and this field must be its sole member (each proto3 optional field gets its own synthetic oneof). Synthetic oneofs exist in the descriptor only, and do not generate any API. Synthetic oneofs must be ordered after all "real" oneofs. For message fields, proto3_optional doesn't create any semantic change, since non-repeated message fields always track presence. However it still indicates the semantic detail of whether the user wrote "optional" or not. This can be useful for round-tripping the .proto file. For consistency we give message fields a synthetic oneof also, even though it is not required to track presence. This is especially important because the parser can't tell if a field is a message or an enum, so it must always create a synthetic oneof. Proto2 optional fields do not set this flag, because they already indicate optional with `LABEL_OPTIONAL`.
optional bool proto3_optional = 17;- Specified by:
getProto3Optionalin interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder- Returns:
- The proto3Optional.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static DescriptorProtos.FieldDescriptorProto parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.FieldDescriptorProto parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.FieldDescriptorProto parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.FieldDescriptorProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.FieldDescriptorProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.FieldDescriptorProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.FieldDescriptorProto parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static DescriptorProtos.FieldDescriptorProto parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static DescriptorProtos.FieldDescriptorProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static DescriptorProtos.FieldDescriptorProto parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static DescriptorProtos.FieldDescriptorProto parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static DescriptorProtos.FieldDescriptorProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public DescriptorProtos.FieldDescriptorProto.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static DescriptorProtos.FieldDescriptorProto.Builder newBuilder()
-
newBuilder
public static DescriptorProtos.FieldDescriptorProto.Builder newBuilder(DescriptorProtos.FieldDescriptorProto prototype)
-
toBuilder
public DescriptorProtos.FieldDescriptorProto.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected DescriptorProtos.FieldDescriptorProto.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static DescriptorProtos.FieldDescriptorProto getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<DescriptorProtos.FieldDescriptorProto> parser()
-
getParserForType
public com.google.protobuf.Parser<DescriptorProtos.FieldDescriptorProto> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public DescriptorProtos.FieldDescriptorProto getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-