Class Type

  • All Implemented Interfaces:
    com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, TypeOrBuilder

    @Generated
    public final class Type
    extends com.google.protobuf.GeneratedMessageLite<Type,​Type.Builder>
    implements TypeOrBuilder
    Protobuf type google.protobuf.Type
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Type.Builder
      Protobuf type google.protobuf.Type
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite

        com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,​?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,​BuilderType>,​BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,​BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,​BuilderType>,​BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,​BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,​BuilderType>,​BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,​BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,​Type extends java.lang.Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.Object dynamicMethod​(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)  
      static Type getDefaultInstance()  
      java.lang.String getEdition()
      string edition = 7 [json_name = "edition"];
      com.google.protobuf.ByteString getEditionBytes()
      string edition = 7 [json_name = "edition"];
      Field getFields​(int index)
      repeated .google.protobuf.Field fields = 2 [json_name = "fields"];
      int getFieldsCount()
      repeated .google.protobuf.Field fields = 2 [json_name = "fields"];
      java.util.List<Field> getFieldsList()
      repeated .google.protobuf.Field fields = 2 [json_name = "fields"];
      FieldOrBuilder getFieldsOrBuilder​(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.String getName()
      string name = 1 [json_name = "name"];
      com.google.protobuf.ByteString getNameBytes()
      string name = 1 [json_name = "name"];
      java.lang.String getOneofs​(int index)
      repeated string oneofs = 3 [json_name = "oneofs"];
      com.google.protobuf.ByteString getOneofsBytes​(int index)
      repeated string oneofs = 3 [json_name = "oneofs"];
      int getOneofsCount()
      repeated string oneofs = 3 [json_name = "oneofs"];
      java.util.List<java.lang.String> getOneofsList()
      repeated string oneofs = 3 [json_name = "oneofs"];
      Option getOptions​(int index)
      repeated .google.protobuf.Option options = 4 [json_name = "options"];
      int getOptionsCount()
      repeated .google.protobuf.Option options = 4 [json_name = "options"];
      java.util.List<Option> getOptionsList()
      repeated .google.protobuf.Option options = 4 [json_name = "options"];
      OptionOrBuilder getOptionsOrBuilder​(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"];
      SourceContext getSourceContext()
      .google.protobuf.SourceContext source_context = 5 [json_name = "sourceContext"];
      Syntax getSyntax()
      .google.protobuf.Syntax syntax = 6 [json_name = "syntax"];
      int getSyntaxValue()
      .google.protobuf.Syntax syntax = 6 [json_name = "syntax"];
      boolean hasSourceContext()
      .google.protobuf.SourceContext source_context = 5 [json_name = "sourceContext"];
      static Type.Builder newBuilder()  
      static Type.Builder newBuilder​(Type prototype)  
      static Type parseDelimitedFrom​(java.io.InputStream input)  
      static Type parseDelimitedFrom​(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static Type parseFrom​(byte[] data)  
      static Type parseFrom​(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static Type parseFrom​(com.google.protobuf.ByteString data)  
      static Type parseFrom​(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static Type parseFrom​(com.google.protobuf.CodedInputStream input)  
      static Type parseFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static Type parseFrom​(java.io.InputStream input)  
      static Type parseFrom​(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static Type parseFrom​(java.nio.ByteBuffer data)  
      static Type parseFrom​(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static com.google.protobuf.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
    • Method Detail

      • getName

        public java.lang.String getName()
        string name = 1 [json_name = "name"];
        Specified by:
        getName in interface TypeOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
        string name = 1 [json_name = "name"];
        Specified by:
        getNameBytes in interface TypeOrBuilder
        Returns:
        The bytes for name.
      • getFieldsList

        public java.util.List<Field> getFieldsList()
        repeated .google.protobuf.Field fields = 2 [json_name = "fields"];
        Specified by:
        getFieldsList in interface TypeOrBuilder
      • 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:
        getFieldsCount in interface TypeOrBuilder
      • getFields

        public Field getFields​(int index)
        repeated .google.protobuf.Field fields = 2 [json_name = "fields"];
        Specified by:
        getFields in interface TypeOrBuilder
      • 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:
        getOneofsList in interface TypeOrBuilder
        Returns:
        A list containing the oneofs.
      • getOneofsCount

        public int getOneofsCount()
        repeated string oneofs = 3 [json_name = "oneofs"];
        Specified by:
        getOneofsCount in interface TypeOrBuilder
        Returns:
        The count of oneofs.
      • getOneofs

        public java.lang.String getOneofs​(int index)
        repeated string oneofs = 3 [json_name = "oneofs"];
        Specified by:
        getOneofs in interface TypeOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The oneofs at the given index.
      • getOneofsBytes

        public com.google.protobuf.ByteString getOneofsBytes​(int index)
        repeated string oneofs = 3 [json_name = "oneofs"];
        Specified by:
        getOneofsBytes in interface TypeOrBuilder
        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:
        getOptionsList in interface TypeOrBuilder
      • 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:
        getOptionsCount in interface TypeOrBuilder
      • getOptions

        public Option getOptions​(int index)
        repeated .google.protobuf.Option options = 4 [json_name = "options"];
        Specified by:
        getOptions in interface TypeOrBuilder
      • 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:
        hasSourceContext in interface TypeOrBuilder
        Returns:
        Whether the sourceContext field is set.
      • getSourceContext

        public SourceContext getSourceContext()
        .google.protobuf.SourceContext source_context = 5 [json_name = "sourceContext"];
        Specified by:
        getSourceContext in interface TypeOrBuilder
        Returns:
        The sourceContext.
      • getSyntaxValue

        public int getSyntaxValue()
        .google.protobuf.Syntax syntax = 6 [json_name = "syntax"];
        Specified by:
        getSyntaxValue in interface TypeOrBuilder
        Returns:
        The enum numeric value on the wire for syntax.
      • getSyntax

        public Syntax getSyntax()
        .google.protobuf.Syntax syntax = 6 [json_name = "syntax"];
        Specified by:
        getSyntax in interface TypeOrBuilder
        Returns:
        The syntax.
      • getEdition

        public java.lang.String getEdition()
        string edition = 7 [json_name = "edition"];
        Specified by:
        getEdition in interface TypeOrBuilder
        Returns:
        The edition.
      • getEditionBytes

        public com.google.protobuf.ByteString getEditionBytes()
        string edition = 7 [json_name = "edition"];
        Specified by:
        getEditionBytes in interface TypeOrBuilder
        Returns:
        The bytes for edition.
      • parseFrom

        public static Type parseFrom​(java.nio.ByteBuffer data)
                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Type parseFrom​(java.nio.ByteBuffer data,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Type parseFrom​(com.google.protobuf.ByteString data)
                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Type parseFrom​(com.google.protobuf.ByteString data,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Type parseFrom​(byte[] data)
                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Type parseFrom​(byte[] data,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.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,
                                     com.google.protobuf.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,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static Type parseFrom​(com.google.protobuf.CodedInputStream input)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static Type parseFrom​(com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • dynamicMethod

        protected final java.lang.Object dynamicMethod​(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
                                                       java.lang.Object arg0,
                                                       java.lang.Object arg1)
        Specified by:
        dynamicMethod in class com.google.protobuf.GeneratedMessageLite<Type,​Type.Builder>
      • getDefaultInstance

        public static Type getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<Type> parser()