Package com.google.protobuf
Class DescriptorProtos.FieldDescriptorProto
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
-
- com.google.protobuf.GeneratedMessageLite<DescriptorProtos.FieldDescriptorProto,DescriptorProtos.FieldDescriptorProto.Builder>
-
- com.google.protobuf.DescriptorProtos.FieldDescriptorProto
-
- All Implemented Interfaces:
DescriptorProtos.FieldDescriptorProtoOrBuilder
,MessageLite
,MessageLiteOrBuilder
- Enclosing class:
- DescriptorProtos
public static final class DescriptorProtos.FieldDescriptorProto extends GeneratedMessageLite<DescriptorProtos.FieldDescriptorProto,DescriptorProtos.FieldDescriptorProto.Builder> implements DescriptorProtos.FieldDescriptorProtoOrBuilder
Protobuf typegoogle.protobuf.FieldDescriptorProto
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DescriptorProtos.FieldDescriptorProto.Builder
Protobuf typegoogle.protobuf.FieldDescriptorProto
static class
DescriptorProtos.FieldDescriptorProto.Label
Protobuf enumgoogle.protobuf.FieldDescriptorProto.Label
static class
DescriptorProtos.FieldDescriptorProto.Type
Protobuf enumgoogle.protobuf.FieldDescriptorProto.Type
-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite
GeneratedMessageLite.DefaultInstanceBasedParser<T extends GeneratedMessageLite<T,?>>, GeneratedMessageLite.ExtendableBuilder<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageLite.ExtendableMessage<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageLite.GeneratedExtension<ContainingType extends MessageLite,Type>, GeneratedMessageLite.MethodToInvoke, GeneratedMessageLite.SerializedForm
-
Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
AbstractMessageLite.InternalOneOfEnum
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_VALUE_FIELD_NUMBER
static int
EXTENDEE_FIELD_NUMBER
static int
JSON_NAME_FIELD_NUMBER
static int
LABEL_FIELD_NUMBER
static int
NAME_FIELD_NUMBER
static int
NUMBER_FIELD_NUMBER
static int
ONEOF_INDEX_FIELD_NUMBER
static int
OPTIONS_FIELD_NUMBER
static int
PROTO3_OPTIONAL_FIELD_NUMBER
static int
TYPE_FIELD_NUMBER
static int
TYPE_NAME_FIELD_NUMBER
-
Fields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFields
-
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Object
dynamicMethod(GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)
A method that implements different types of operations described inGeneratedMessageLite.MethodToInvoke
.static DescriptorProtos.FieldDescriptorProto
getDefaultInstance()
java.lang.String
getDefaultValue()
optional string default_value = 7 [json_name = "defaultValue"];
ByteString
getDefaultValueBytes()
optional string default_value = 7 [json_name = "defaultValue"];
java.lang.String
getExtendee()
optional string extendee = 2 [json_name = "extendee"];
ByteString
getExtendeeBytes()
optional string extendee = 2 [json_name = "extendee"];
java.lang.String
getJsonName()
optional string json_name = 10 [json_name = "jsonName"];
ByteString
getJsonNameBytes()
optional string json_name = 10 [json_name = "jsonName"];
DescriptorProtos.FieldDescriptorProto.Label
getLabel()
optional .google.protobuf.FieldDescriptorProto.Label label = 4 [json_name = "label"];
java.lang.String
getName()
optional string name = 1 [json_name = "name"];
ByteString
getNameBytes()
optional string name = 1 [json_name = "name"];
int
getNumber()
optional int32 number = 3 [json_name = "number"];
int
getOneofIndex()
optional int32 oneof_index = 9 [json_name = "oneofIndex"];
DescriptorProtos.FieldOptions
getOptions()
optional .google.protobuf.FieldOptions options = 8 [json_name = "options"];
boolean
getProto3Optional()
optional bool proto3_optional = 17 [json_name = "proto3Optional"];
DescriptorProtos.FieldDescriptorProto.Type
getType()
optional .google.protobuf.FieldDescriptorProto.Type type = 5 [json_name = "type"];
java.lang.String
getTypeName()
optional string type_name = 6 [json_name = "typeName"];
ByteString
getTypeNameBytes()
optional string type_name = 6 [json_name = "typeName"];
boolean
hasDefaultValue()
optional string default_value = 7 [json_name = "defaultValue"];
boolean
hasExtendee()
optional string extendee = 2 [json_name = "extendee"];
boolean
hasJsonName()
optional string json_name = 10 [json_name = "jsonName"];
boolean
hasLabel()
optional .google.protobuf.FieldDescriptorProto.Label label = 4 [json_name = "label"];
boolean
hasName()
optional string name = 1 [json_name = "name"];
boolean
hasNumber()
optional int32 number = 3 [json_name = "number"];
boolean
hasOneofIndex()
optional int32 oneof_index = 9 [json_name = "oneofIndex"];
boolean
hasOptions()
optional .google.protobuf.FieldOptions options = 8 [json_name = "options"];
boolean
hasProto3Optional()
optional bool proto3_optional = 17 [json_name = "proto3Optional"];
boolean
hasType()
optional .google.protobuf.FieldDescriptorProto.Type type = 5 [json_name = "type"];
boolean
hasTypeName()
optional string type_name = 6 [json_name = "typeName"];
static DescriptorProtos.FieldDescriptorProto.Builder
newBuilder()
static DescriptorProtos.FieldDescriptorProto.Builder
newBuilder(DescriptorProtos.FieldDescriptorProto prototype)
static DescriptorProtos.FieldDescriptorProto
parseDelimitedFrom(java.io.InputStream input)
static DescriptorProtos.FieldDescriptorProto
parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry)
static DescriptorProtos.FieldDescriptorProto
parseFrom(byte[] data)
static DescriptorProtos.FieldDescriptorProto
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
static DescriptorProtos.FieldDescriptorProto
parseFrom(ByteString data)
static DescriptorProtos.FieldDescriptorProto
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static DescriptorProtos.FieldDescriptorProto
parseFrom(CodedInputStream input)
static DescriptorProtos.FieldDescriptorProto
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
static DescriptorProtos.FieldDescriptorProto
parseFrom(java.io.InputStream input)
static DescriptorProtos.FieldDescriptorProto
parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry)
static DescriptorProtos.FieldDescriptorProto
parseFrom(java.nio.ByteBuffer data)
static DescriptorProtos.FieldDescriptorProto
parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry)
static Parser<DescriptorProtos.FieldDescriptorProto>
parser()
-
Methods inherited from class com.google.protobuf.GeneratedMessageLite
createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
-
-
-
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
-
-
Method Detail
-
hasName
public boolean hasName()
optional string name = 1 [json_name = "name"];
- Specified by:
hasName
in interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder
- Returns:
- Whether the name field is set.
-
getName
public java.lang.String getName()
optional string name = 1 [json_name = "name"];
- Specified by:
getName
in interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder
- Returns:
- The name.
-
getNameBytes
public ByteString getNameBytes()
optional string name = 1 [json_name = "name"];
- Specified by:
getNameBytes
in interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder
- Returns:
- The bytes for name.
-
hasNumber
public boolean hasNumber()
optional int32 number = 3 [json_name = "number"];
- Specified by:
hasNumber
in interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder
- Returns:
- Whether the number field is set.
-
getNumber
public int getNumber()
optional int32 number = 3 [json_name = "number"];
- Specified by:
getNumber
in interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder
- Returns:
- The number.
-
hasLabel
public boolean hasLabel()
optional .google.protobuf.FieldDescriptorProto.Label label = 4 [json_name = "label"];
- Specified by:
hasLabel
in interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder
- Returns:
- Whether the label field is set.
-
getLabel
public DescriptorProtos.FieldDescriptorProto.Label getLabel()
optional .google.protobuf.FieldDescriptorProto.Label label = 4 [json_name = "label"];
- Specified by:
getLabel
in interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder
- Returns:
- The label.
-
hasType
public boolean hasType()
optional .google.protobuf.FieldDescriptorProto.Type type = 5 [json_name = "type"];
- Specified by:
hasType
in interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder
- Returns:
- Whether the type field is set.
-
getType
public DescriptorProtos.FieldDescriptorProto.Type getType()
optional .google.protobuf.FieldDescriptorProto.Type type = 5 [json_name = "type"];
- Specified by:
getType
in interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder
- Returns:
- The type.
-
hasTypeName
public boolean hasTypeName()
optional string type_name = 6 [json_name = "typeName"];
- Specified by:
hasTypeName
in interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder
- Returns:
- Whether the typeName field is set.
-
getTypeName
public java.lang.String getTypeName()
optional string type_name = 6 [json_name = "typeName"];
- Specified by:
getTypeName
in interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder
- Returns:
- The typeName.
-
getTypeNameBytes
public ByteString getTypeNameBytes()
optional string type_name = 6 [json_name = "typeName"];
- Specified by:
getTypeNameBytes
in interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder
- Returns:
- The bytes for typeName.
-
hasExtendee
public boolean hasExtendee()
optional string extendee = 2 [json_name = "extendee"];
- Specified by:
hasExtendee
in interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder
- Returns:
- Whether the extendee field is set.
-
getExtendee
public java.lang.String getExtendee()
optional string extendee = 2 [json_name = "extendee"];
- Specified by:
getExtendee
in interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder
- Returns:
- The extendee.
-
getExtendeeBytes
public ByteString getExtendeeBytes()
optional string extendee = 2 [json_name = "extendee"];
- Specified by:
getExtendeeBytes
in interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder
- Returns:
- The bytes for extendee.
-
hasDefaultValue
public boolean hasDefaultValue()
optional string default_value = 7 [json_name = "defaultValue"];
- Specified by:
hasDefaultValue
in interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder
- Returns:
- Whether the defaultValue field is set.
-
getDefaultValue
public java.lang.String getDefaultValue()
optional string default_value = 7 [json_name = "defaultValue"];
- Specified by:
getDefaultValue
in interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder
- Returns:
- The defaultValue.
-
getDefaultValueBytes
public ByteString getDefaultValueBytes()
optional string default_value = 7 [json_name = "defaultValue"];
- Specified by:
getDefaultValueBytes
in interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder
- Returns:
- The bytes for defaultValue.
-
hasOneofIndex
public boolean hasOneofIndex()
optional int32 oneof_index = 9 [json_name = "oneofIndex"];
- Specified by:
hasOneofIndex
in interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder
- Returns:
- Whether the oneofIndex field is set.
-
getOneofIndex
public int getOneofIndex()
optional int32 oneof_index = 9 [json_name = "oneofIndex"];
- Specified by:
getOneofIndex
in interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder
- Returns:
- The oneofIndex.
-
hasJsonName
public boolean hasJsonName()
optional string json_name = 10 [json_name = "jsonName"];
- Specified by:
hasJsonName
in interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder
- Returns:
- Whether the jsonName field is set.
-
getJsonName
public java.lang.String getJsonName()
optional string json_name = 10 [json_name = "jsonName"];
- Specified by:
getJsonName
in interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder
- Returns:
- The jsonName.
-
getJsonNameBytes
public ByteString getJsonNameBytes()
optional string json_name = 10 [json_name = "jsonName"];
- Specified by:
getJsonNameBytes
in interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder
- Returns:
- The bytes for jsonName.
-
hasOptions
public boolean hasOptions()
optional .google.protobuf.FieldOptions options = 8 [json_name = "options"];
- Specified by:
hasOptions
in interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder
- Returns:
- Whether the options field is set.
-
getOptions
public DescriptorProtos.FieldOptions getOptions()
optional .google.protobuf.FieldOptions options = 8 [json_name = "options"];
- Specified by:
getOptions
in interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder
- Returns:
- The options.
-
hasProto3Optional
public boolean hasProto3Optional()
optional bool proto3_optional = 17 [json_name = "proto3Optional"];
- Specified by:
hasProto3Optional
in interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder
- Returns:
- Whether the proto3Optional field is set.
-
getProto3Optional
public boolean getProto3Optional()
optional bool proto3_optional = 17 [json_name = "proto3Optional"];
- Specified by:
getProto3Optional
in interfaceDescriptorProtos.FieldDescriptorProtoOrBuilder
- Returns:
- The proto3Optional.
-
parseFrom
public static DescriptorProtos.FieldDescriptorProto parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.FieldDescriptorProto parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.FieldDescriptorProto parseFrom(ByteString data) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.FieldDescriptorProto parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.FieldDescriptorProto parseFrom(byte[] data) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.FieldDescriptorProto parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
- Throws:
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, 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, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static DescriptorProtos.FieldDescriptorProto parseFrom(CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static DescriptorProtos.FieldDescriptorProto parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilder
public static DescriptorProtos.FieldDescriptorProto.Builder newBuilder()
-
newBuilder
public static DescriptorProtos.FieldDescriptorProto.Builder newBuilder(DescriptorProtos.FieldDescriptorProto prototype)
-
dynamicMethod
protected final java.lang.Object dynamicMethod(GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)
Description copied from class:GeneratedMessageLite
A method that implements different types of operations described inGeneratedMessageLite.MethodToInvoke
. These different kinds of operations are required to implement message-level operations for builders in the runtime. This method bundles those operations to reduce the generated methods count.NEW_INSTANCE
returns a new instance of the protocol buffer that has not yet been made immutable. SeeMAKE_IMMUTABLE
.IS_INITIALIZED
returnsnull
for false and the default instance for true. It doesn't use or modify any memoized value.GET_MEMOIZED_IS_INITIALIZED
returns the memoizedisInitialized
byte value.SET_MEMOIZED_IS_INITIALIZED
sets the memoizedisInitialized
byte value to 1 if the first parameter is not null, or to 0 if the first parameter is null.NEW_BUILDER
returns aBuilderType
instance.
For use by generated code only.
-
getDefaultInstance
public static DescriptorProtos.FieldDescriptorProto getDefaultInstance()
-
parser
public static Parser<DescriptorProtos.FieldDescriptorProto> parser()
-
-