Class Field

    • Method Detail

      • getKindValue

        public int getKindValue()
         The field type.
         
        .google.protobuf.Field.Kind kind = 1;
        Specified by:
        getKindValue in interface FieldOrBuilder
        Returns:
        The enum numeric value on the wire for kind.
      • getKind

        public Field.Kind getKind()
         The field type.
         
        .google.protobuf.Field.Kind kind = 1;
        Specified by:
        getKind in interface FieldOrBuilder
        Returns:
        The kind.
      • getCardinalityValue

        public int getCardinalityValue()
         The field cardinality.
         
        .google.protobuf.Field.Cardinality cardinality = 2;
        Specified by:
        getCardinalityValue in interface FieldOrBuilder
        Returns:
        The enum numeric value on the wire for cardinality.
      • getNumber

        public int getNumber()
         The field number.
         
        int32 number = 3;
        Specified by:
        getNumber in interface FieldOrBuilder
        Returns:
        The number.
      • getName

        public java.lang.String getName()
         The field name.
         
        string name = 4;
        Specified by:
        getName in interface FieldOrBuilder
        Returns:
        The name.
      • getTypeUrl

        public java.lang.String getTypeUrl()
         The field type URL, without the scheme, for message or enumeration
         types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`.
         
        string type_url = 6;
        Specified by:
        getTypeUrl in interface FieldOrBuilder
        Returns:
        The typeUrl.
      • getTypeUrlBytes

        public ByteString getTypeUrlBytes()
         The field type URL, without the scheme, for message or enumeration
         types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`.
         
        string type_url = 6;
        Specified by:
        getTypeUrlBytes in interface FieldOrBuilder
        Returns:
        The bytes for typeUrl.
      • getOneofIndex

        public int getOneofIndex()
         The index of the field type in `Type.oneofs`, for message or enumeration
         types. The first type has index 1; zero means the type is not in the list.
         
        int32 oneof_index = 7;
        Specified by:
        getOneofIndex in interface FieldOrBuilder
        Returns:
        The oneofIndex.
      • getPacked

        public boolean getPacked()
         Whether to use alternative packed wire representation.
         
        bool packed = 8;
        Specified by:
        getPacked in interface FieldOrBuilder
        Returns:
        The packed.
      • getOptionsList

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

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

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

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

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

        public java.lang.String getJsonName()
         The field JSON name.
         
        string json_name = 10;
        Specified by:
        getJsonName in interface FieldOrBuilder
        Returns:
        The jsonName.
      • getDefaultValue

        public java.lang.String getDefaultValue()
         The string value of the default value of this field. Proto2 syntax only.
         
        string default_value = 11;
        Specified by:
        getDefaultValue in interface FieldOrBuilder
        Returns:
        The defaultValue.
      • getDefaultValueBytes

        public ByteString getDefaultValueBytes()
         The string value of the default value of this field. Proto2 syntax only.
         
        string default_value = 11;
        Specified by:
        getDefaultValueBytes in interface FieldOrBuilder
        Returns:
        The bytes for defaultValue.
      • parseFrom

        public static Field parseFrom​(java.io.InputStream input)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static Field parseFrom​(java.io.InputStream input,
                                      ExtensionRegistryLite extensionRegistry)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static Field parseDelimitedFrom​(java.io.InputStream input)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static Field parseDelimitedFrom​(java.io.InputStream input,
                                               ExtensionRegistryLite extensionRegistry)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static Field 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. Theses 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<Field,​Field.Builder>
      • getDefaultInstance

        public static Field getDefaultInstance()