Class Type

  • All Implemented Interfaces:
    MessageLite, MessageLiteOrBuilder, TypeOrBuilder

    @Generated
    public final class Type
    extends GeneratedMessageLite<Type,​Type.Builder>
    implements TypeOrBuilder
     A protocol buffer message type.
    
     New usages of this message as an alternative to DescriptorProto are strongly
     discouraged. This message does not reliability preserve all information
     necessary to model the schema and preserve semantics. Instead make use of
     FileDescriptorSet which preserves the necessary information.
     
    Protobuf type google.protobuf.Type
    • Constructor Detail

      • Type

        private Type()
    • Method Detail

      • getName

        public java.lang.String getName()
         The fully qualified message name.
         
        string name = 1;
        Specified by:
        getName in interface TypeOrBuilder
        Returns:
        The name.
      • getNameBytes

        public ByteString getNameBytes()
         The fully qualified message name.
         
        string name = 1;
        Specified by:
        getNameBytes in interface TypeOrBuilder
        Returns:
        The bytes for name.
      • setName

        private void setName​(java.lang.String value)
         The fully qualified message name.
         
        string name = 1;
        Parameters:
        value - The name to set.
      • clearName

        private void clearName()
         The fully qualified message name.
         
        string name = 1;
      • setNameBytes

        private void setNameBytes​(ByteString value)
         The fully qualified message name.
         
        string name = 1;
        Parameters:
        value - The bytes for name to set.
      • getFieldsList

        public java.util.List<Field> getFieldsList()
         The list of fields.
         
        repeated .google.protobuf.Field fields = 2;
        Specified by:
        getFieldsList in interface TypeOrBuilder
      • getFieldsOrBuilderList

        public java.util.List<? extends FieldOrBuilder> getFieldsOrBuilderList()
         The list of fields.
         
        repeated .google.protobuf.Field fields = 2;
      • getFieldsCount

        public int getFieldsCount()
         The list of fields.
         
        repeated .google.protobuf.Field fields = 2;
        Specified by:
        getFieldsCount in interface TypeOrBuilder
      • getFields

        public Field getFields​(int index)
         The list of fields.
         
        repeated .google.protobuf.Field fields = 2;
        Specified by:
        getFields in interface TypeOrBuilder
      • getFieldsOrBuilder

        public FieldOrBuilder getFieldsOrBuilder​(int index)
         The list of fields.
         
        repeated .google.protobuf.Field fields = 2;
      • ensureFieldsIsMutable

        private void ensureFieldsIsMutable()
      • setFields

        private void setFields​(int index,
                               Field value)
         The list of fields.
         
        repeated .google.protobuf.Field fields = 2;
      • addFields

        private void addFields​(Field value)
         The list of fields.
         
        repeated .google.protobuf.Field fields = 2;
      • addFields

        private void addFields​(int index,
                               Field value)
         The list of fields.
         
        repeated .google.protobuf.Field fields = 2;
      • addAllFields

        private void addAllFields​(java.lang.Iterable<? extends Field> values)
         The list of fields.
         
        repeated .google.protobuf.Field fields = 2;
      • clearFields

        private void clearFields()
         The list of fields.
         
        repeated .google.protobuf.Field fields = 2;
      • removeFields

        private void removeFields​(int index)
         The list of fields.
         
        repeated .google.protobuf.Field fields = 2;
      • getOneofsList

        public java.util.List<java.lang.String> getOneofsList()
         The list of types appearing in `oneof` definitions in this type.
         
        repeated string oneofs = 3;
        Specified by:
        getOneofsList in interface TypeOrBuilder
        Returns:
        A list containing the oneofs.
      • getOneofsCount

        public int getOneofsCount()
         The list of types appearing in `oneof` definitions in this type.
         
        repeated string oneofs = 3;
        Specified by:
        getOneofsCount in interface TypeOrBuilder
        Returns:
        The count of oneofs.
      • getOneofs

        public java.lang.String getOneofs​(int index)
         The list of types appearing in `oneof` definitions in this type.
         
        repeated string oneofs = 3;
        Specified by:
        getOneofs in interface TypeOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The oneofs at the given index.
      • getOneofsBytes

        public ByteString getOneofsBytes​(int index)
         The list of types appearing in `oneof` definitions in this type.
         
        repeated string oneofs = 3;
        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.
      • ensureOneofsIsMutable

        private void ensureOneofsIsMutable()
      • setOneofs

        private void setOneofs​(int index,
                               java.lang.String value)
         The list of types appearing in `oneof` definitions in this type.
         
        repeated string oneofs = 3;
        Parameters:
        index - The index to set the value at.
        value - The oneofs to set.
      • addOneofs

        private void addOneofs​(java.lang.String value)
         The list of types appearing in `oneof` definitions in this type.
         
        repeated string oneofs = 3;
        Parameters:
        value - The oneofs to add.
      • addAllOneofs

        private void addAllOneofs​(java.lang.Iterable<java.lang.String> values)
         The list of types appearing in `oneof` definitions in this type.
         
        repeated string oneofs = 3;
        Parameters:
        values - The oneofs to add.
      • clearOneofs

        private void clearOneofs()
         The list of types appearing in `oneof` definitions in this type.
         
        repeated string oneofs = 3;
      • addOneofsBytes

        private void addOneofsBytes​(ByteString value)
         The list of types appearing in `oneof` definitions in this type.
         
        repeated string oneofs = 3;
        Parameters:
        value - The bytes of the oneofs to add.
      • getOptionsList

        public java.util.List<Option> getOptionsList()
         The protocol buffer options.
         
        repeated .google.protobuf.Option options = 4;
        Specified by:
        getOptionsList in interface TypeOrBuilder
      • getOptionsOrBuilderList

        public java.util.List<? extends OptionOrBuilder> getOptionsOrBuilderList()
         The protocol buffer options.
         
        repeated .google.protobuf.Option options = 4;
      • getOptionsCount

        public int getOptionsCount()
         The protocol buffer options.
         
        repeated .google.protobuf.Option options = 4;
        Specified by:
        getOptionsCount in interface TypeOrBuilder
      • getOptions

        public Option getOptions​(int index)
         The protocol buffer options.
         
        repeated .google.protobuf.Option options = 4;
        Specified by:
        getOptions in interface TypeOrBuilder
      • getOptionsOrBuilder

        public OptionOrBuilder getOptionsOrBuilder​(int index)
         The protocol buffer options.
         
        repeated .google.protobuf.Option options = 4;
      • ensureOptionsIsMutable

        private void ensureOptionsIsMutable()
      • setOptions

        private void setOptions​(int index,
                                Option value)
         The protocol buffer options.
         
        repeated .google.protobuf.Option options = 4;
      • addOptions

        private void addOptions​(Option value)
         The protocol buffer options.
         
        repeated .google.protobuf.Option options = 4;
      • addOptions

        private void addOptions​(int index,
                                Option value)
         The protocol buffer options.
         
        repeated .google.protobuf.Option options = 4;
      • addAllOptions

        private void addAllOptions​(java.lang.Iterable<? extends Option> values)
         The protocol buffer options.
         
        repeated .google.protobuf.Option options = 4;
      • clearOptions

        private void clearOptions()
         The protocol buffer options.
         
        repeated .google.protobuf.Option options = 4;
      • removeOptions

        private void removeOptions​(int index)
         The protocol buffer options.
         
        repeated .google.protobuf.Option options = 4;
      • hasSourceContext

        public boolean hasSourceContext()
         The source context.
         
        .google.protobuf.SourceContext source_context = 5;
        Specified by:
        hasSourceContext in interface TypeOrBuilder
        Returns:
        Whether the sourceContext field is set.
      • getSourceContext

        public SourceContext getSourceContext()
         The source context.
         
        .google.protobuf.SourceContext source_context = 5;
        Specified by:
        getSourceContext in interface TypeOrBuilder
        Returns:
        The sourceContext.
      • setSourceContext

        private void setSourceContext​(SourceContext value)
         The source context.
         
        .google.protobuf.SourceContext source_context = 5;
      • mergeSourceContext

        private void mergeSourceContext​(SourceContext value)
         The source context.
         
        .google.protobuf.SourceContext source_context = 5;
      • clearSourceContext

        private void clearSourceContext()
         The source context.
         
        .google.protobuf.SourceContext source_context = 5;
      • getSyntaxValue

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

        public Syntax getSyntax()
         The source syntax.
         
        .google.protobuf.Syntax syntax = 6;
        Specified by:
        getSyntax in interface TypeOrBuilder
        Returns:
        The syntax.
      • setSyntaxValue

        private void setSyntaxValue​(int value)
         The source syntax.
         
        .google.protobuf.Syntax syntax = 6;
        Parameters:
        value - The enum numeric value on the wire for syntax to set.
      • setSyntax

        private void setSyntax​(Syntax value)
         The source syntax.
         
        .google.protobuf.Syntax syntax = 6;
        Parameters:
        value - The syntax to set.
      • clearSyntax

        private void clearSyntax()
         The source syntax.
         
        .google.protobuf.Syntax syntax = 6;
      • getEdition

        public java.lang.String getEdition()
         The source edition string, only valid when syntax is SYNTAX_EDITIONS.
         
        string edition = 7;
        Specified by:
        getEdition in interface TypeOrBuilder
        Returns:
        The edition.
      • getEditionBytes

        public ByteString getEditionBytes()
         The source edition string, only valid when syntax is SYNTAX_EDITIONS.
         
        string edition = 7;
        Specified by:
        getEditionBytes in interface TypeOrBuilder
        Returns:
        The bytes for edition.
      • setEdition

        private void setEdition​(java.lang.String value)
         The source edition string, only valid when syntax is SYNTAX_EDITIONS.
         
        string edition = 7;
        Parameters:
        value - The edition to set.
      • clearEdition

        private void clearEdition()
         The source edition string, only valid when syntax is SYNTAX_EDITIONS.
         
        string edition = 7;
      • setEditionBytes

        private void setEditionBytes​(ByteString value)
         The source edition string, only valid when syntax is SYNTAX_EDITIONS.
         
        string edition = 7;
        Parameters:
        value - The bytes for edition to set.
      • 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
      • 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 in GeneratedMessageLite.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. See MAKE_IMMUTABLE.
        • IS_INITIALIZED returns null for false and the default instance for true. It doesn't use or modify any memoized value.
        • GET_MEMOIZED_IS_INITIALIZED returns the memoized isInitialized byte value.
        • SET_MEMOIZED_IS_INITIALIZED sets the memoized isInitialized byte value to 1 if the first parameter is not null, or to 0 if the first parameter is null.
        • NEW_BUILDER returns a BuilderType instance.
        This method, plus the implementation of the Builder, enables the Builder class to be proguarded away entirely on Android.

        For use by generated code only.

        Specified by:
        dynamicMethod in class GeneratedMessageLite<Type,​Type.Builder>
      • getDefaultInstance

        public static Type getDefaultInstance()