Package com.google.protobuf
Class Type
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
-
- com.google.protobuf.GeneratedMessageLite<Type,Type.Builder>
-
- com.google.protobuf.Type
-
- All Implemented Interfaces:
MessageLite,MessageLiteOrBuilder,TypeOrBuilder
@Generated public final class Type extends GeneratedMessageLite<Type,Type.Builder> implements TypeOrBuilder
Protobuf typegoogle.protobuf.Type
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classType.BuilderProtobuf typegoogle.protobuf.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 intEDITION_FIELD_NUMBERstatic intFIELDS_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intONEOFS_FIELD_NUMBERstatic intOPTIONS_FIELD_NUMBERstatic intSOURCE_CONTEXT_FIELD_NUMBERstatic intSYNTAX_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.ObjectdynamicMethod(GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)A method that implements different types of operations described inGeneratedMessageLite.MethodToInvoke.static TypegetDefaultInstance()java.lang.StringgetEdition()string edition = 7 [json_name = "edition"];ByteStringgetEditionBytes()string edition = 7 [json_name = "edition"];FieldgetFields(int index)repeated .google.protobuf.Field fields = 2 [json_name = "fields"];intgetFieldsCount()repeated .google.protobuf.Field fields = 2 [json_name = "fields"];java.util.List<Field>getFieldsList()repeated .google.protobuf.Field fields = 2 [json_name = "fields"];FieldOrBuildergetFieldsOrBuilder(int index)repeated .google.protobuf.Field fields = 2 [json_name = "fields"];java.util.List<? extends FieldOrBuilder>getFieldsOrBuilderList()repeated .google.protobuf.Field fields = 2 [json_name = "fields"];java.lang.StringgetName()string name = 1 [json_name = "name"];ByteStringgetNameBytes()string name = 1 [json_name = "name"];java.lang.StringgetOneofs(int index)repeated string oneofs = 3 [json_name = "oneofs"];ByteStringgetOneofsBytes(int index)repeated string oneofs = 3 [json_name = "oneofs"];intgetOneofsCount()repeated string oneofs = 3 [json_name = "oneofs"];java.util.List<java.lang.String>getOneofsList()repeated string oneofs = 3 [json_name = "oneofs"];OptiongetOptions(int index)repeated .google.protobuf.Option options = 4 [json_name = "options"];intgetOptionsCount()repeated .google.protobuf.Option options = 4 [json_name = "options"];java.util.List<Option>getOptionsList()repeated .google.protobuf.Option options = 4 [json_name = "options"];OptionOrBuildergetOptionsOrBuilder(int index)repeated .google.protobuf.Option options = 4 [json_name = "options"];java.util.List<? extends OptionOrBuilder>getOptionsOrBuilderList()repeated .google.protobuf.Option options = 4 [json_name = "options"];SourceContextgetSourceContext().google.protobuf.SourceContext source_context = 5 [json_name = "sourceContext"];SyntaxgetSyntax().google.protobuf.Syntax syntax = 6 [json_name = "syntax"];intgetSyntaxValue().google.protobuf.Syntax syntax = 6 [json_name = "syntax"];booleanhasSourceContext().google.protobuf.SourceContext source_context = 5 [json_name = "sourceContext"];static Type.BuildernewBuilder()static Type.BuildernewBuilder(Type prototype)static TypeparseDelimitedFrom(java.io.InputStream input)static TypeparseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry)static TypeparseFrom(byte[] data)static TypeparseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)static TypeparseFrom(ByteString data)static TypeparseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)static TypeparseFrom(CodedInputStream input)static TypeparseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)static TypeparseFrom(java.io.InputStream input)static TypeparseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry)static TypeparseFrom(java.nio.ByteBuffer data)static TypeparseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry)static Parser<Type>parser()-
Methods inherited from class com.google.protobuf.GeneratedMessageLite
createBuilder, createBuilder, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, 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
-
FIELDS_FIELD_NUMBER
public static final int FIELDS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ONEOFS_FIELD_NUMBER
public static final int ONEOFS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
OPTIONS_FIELD_NUMBER
public static final int OPTIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SOURCE_CONTEXT_FIELD_NUMBER
public static final int SOURCE_CONTEXT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SYNTAX_FIELD_NUMBER
public static final int SYNTAX_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EDITION_FIELD_NUMBER
public static final int EDITION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
public java.lang.String getName()
string name = 1 [json_name = "name"];- Specified by:
getNamein interfaceTypeOrBuilder- Returns:
- The name.
-
getNameBytes
public ByteString getNameBytes()
string name = 1 [json_name = "name"];- Specified by:
getNameBytesin interfaceTypeOrBuilder- Returns:
- The bytes for name.
-
getFieldsList
public java.util.List<Field> getFieldsList()
repeated .google.protobuf.Field fields = 2 [json_name = "fields"];- Specified by:
getFieldsListin interfaceTypeOrBuilder
-
getFieldsOrBuilderList
public java.util.List<? extends FieldOrBuilder> getFieldsOrBuilderList()
repeated .google.protobuf.Field fields = 2 [json_name = "fields"];
-
getFieldsCount
public int getFieldsCount()
repeated .google.protobuf.Field fields = 2 [json_name = "fields"];- Specified by:
getFieldsCountin interfaceTypeOrBuilder
-
getFields
public Field getFields(int index)
repeated .google.protobuf.Field fields = 2 [json_name = "fields"];- Specified by:
getFieldsin interfaceTypeOrBuilder
-
getFieldsOrBuilder
public FieldOrBuilder getFieldsOrBuilder(int index)
repeated .google.protobuf.Field fields = 2 [json_name = "fields"];
-
getOneofsList
public java.util.List<java.lang.String> getOneofsList()
repeated string oneofs = 3 [json_name = "oneofs"];- Specified by:
getOneofsListin interfaceTypeOrBuilder- Returns:
- A list containing the oneofs.
-
getOneofsCount
public int getOneofsCount()
repeated string oneofs = 3 [json_name = "oneofs"];- Specified by:
getOneofsCountin interfaceTypeOrBuilder- Returns:
- The count of oneofs.
-
getOneofs
public java.lang.String getOneofs(int index)
repeated string oneofs = 3 [json_name = "oneofs"];- Specified by:
getOneofsin interfaceTypeOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The oneofs at the given index.
-
getOneofsBytes
public ByteString getOneofsBytes(int index)
repeated string oneofs = 3 [json_name = "oneofs"];- Specified by:
getOneofsBytesin interfaceTypeOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the oneofs at the given index.
-
getOptionsList
public java.util.List<Option> getOptionsList()
repeated .google.protobuf.Option options = 4 [json_name = "options"];- Specified by:
getOptionsListin interfaceTypeOrBuilder
-
getOptionsOrBuilderList
public java.util.List<? extends OptionOrBuilder> getOptionsOrBuilderList()
repeated .google.protobuf.Option options = 4 [json_name = "options"];
-
getOptionsCount
public int getOptionsCount()
repeated .google.protobuf.Option options = 4 [json_name = "options"];- Specified by:
getOptionsCountin interfaceTypeOrBuilder
-
getOptions
public Option getOptions(int index)
repeated .google.protobuf.Option options = 4 [json_name = "options"];- Specified by:
getOptionsin interfaceTypeOrBuilder
-
getOptionsOrBuilder
public OptionOrBuilder getOptionsOrBuilder(int index)
repeated .google.protobuf.Option options = 4 [json_name = "options"];
-
hasSourceContext
public boolean hasSourceContext()
.google.protobuf.SourceContext source_context = 5 [json_name = "sourceContext"];- Specified by:
hasSourceContextin interfaceTypeOrBuilder- Returns:
- Whether the sourceContext field is set.
-
getSourceContext
public SourceContext getSourceContext()
.google.protobuf.SourceContext source_context = 5 [json_name = "sourceContext"];- Specified by:
getSourceContextin interfaceTypeOrBuilder- Returns:
- The sourceContext.
-
getSyntaxValue
public int getSyntaxValue()
.google.protobuf.Syntax syntax = 6 [json_name = "syntax"];- Specified by:
getSyntaxValuein interfaceTypeOrBuilder- Returns:
- The enum numeric value on the wire for syntax.
-
getSyntax
public Syntax getSyntax()
.google.protobuf.Syntax syntax = 6 [json_name = "syntax"];- Specified by:
getSyntaxin interfaceTypeOrBuilder- Returns:
- The syntax.
-
getEdition
public java.lang.String getEdition()
string edition = 7 [json_name = "edition"];- Specified by:
getEditionin interfaceTypeOrBuilder- Returns:
- The edition.
-
getEditionBytes
public ByteString getEditionBytes()
string edition = 7 [json_name = "edition"];- Specified by:
getEditionBytesin interfaceTypeOrBuilder- Returns:
- The bytes for edition.
-
parseFrom
public static Type parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static Type parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static Type parseFrom(ByteString data) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static Type parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static Type parseFrom(byte[] data) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static Type parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static Type parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Type parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Type parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Type parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Type parseFrom(CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Type parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilder
public static Type.Builder newBuilder()
-
newBuilder
public static Type.Builder newBuilder(Type prototype)
-
dynamicMethod
protected final java.lang.Object dynamicMethod(GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)
Description copied from class:GeneratedMessageLiteA 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_INSTANCEreturns a new instance of the protocol buffer that has not yet been made immutable. SeeMAKE_IMMUTABLE.IS_INITIALIZEDreturnsnullfor false and the default instance for true. It doesn't use or modify any memoized value.GET_MEMOIZED_IS_INITIALIZEDreturns the memoizedisInitializedbyte value.SET_MEMOIZED_IS_INITIALIZEDsets the memoizedisInitializedbyte value to 1 if the first parameter is not null, or to 0 if the first parameter is null.NEW_BUILDERreturns aBuilderTypeinstance.
For use by generated code only.
- Specified by:
dynamicMethodin classGeneratedMessageLite<Type,Type.Builder>
-
getDefaultInstance
public static Type getDefaultInstance()
-
-