Class Field

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

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

      Nested Classes 
      Modifier and Type Class Description
      static class  Field.Builder
      Protobuf type google.protobuf.Field
      static class  Field.Cardinality
      Protobuf enum google.protobuf.Field.Cardinality
      static class  Field.Kind
      Protobuf enum google.protobuf.Field.Kind
      • 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)  
      Field.Cardinality getCardinality()
      .google.protobuf.Field.Cardinality cardinality = 2 [json_name = "cardinality"];
      int getCardinalityValue()
      .google.protobuf.Field.Cardinality cardinality = 2 [json_name = "cardinality"];
      static Field getDefaultInstance()  
      java.lang.String getDefaultValue()
      string default_value = 11 [json_name = "defaultValue"];
      com.google.protobuf.ByteString getDefaultValueBytes()
      string default_value = 11 [json_name = "defaultValue"];
      java.lang.String getJsonName()
      string json_name = 10 [json_name = "jsonName"];
      com.google.protobuf.ByteString getJsonNameBytes()
      string json_name = 10 [json_name = "jsonName"];
      Field.Kind getKind()
      .google.protobuf.Field.Kind kind = 1 [json_name = "kind"];
      int getKindValue()
      .google.protobuf.Field.Kind kind = 1 [json_name = "kind"];
      java.lang.String getName()
      string name = 4 [json_name = "name"];
      com.google.protobuf.ByteString getNameBytes()
      string name = 4 [json_name = "name"];
      int getNumber()
      int32 number = 3 [json_name = "number"];
      int getOneofIndex()
      int32 oneof_index = 7 [json_name = "oneofIndex"];
      Option getOptions​(int index)
      repeated .google.protobuf.Option options = 9 [json_name = "options"];
      int getOptionsCount()
      repeated .google.protobuf.Option options = 9 [json_name = "options"];
      java.util.List<Option> getOptionsList()
      repeated .google.protobuf.Option options = 9 [json_name = "options"];
      OptionOrBuilder getOptionsOrBuilder​(int index)
      repeated .google.protobuf.Option options = 9 [json_name = "options"];
      java.util.List<? extends OptionOrBuilder> getOptionsOrBuilderList()
      repeated .google.protobuf.Option options = 9 [json_name = "options"];
      boolean getPacked()
      bool packed = 8 [json_name = "packed"];
      java.lang.String getTypeUrl()
      string type_url = 6 [json_name = "typeUrl"];
      com.google.protobuf.ByteString getTypeUrlBytes()
      string type_url = 6 [json_name = "typeUrl"];
      static Field.Builder newBuilder()  
      static Field.Builder newBuilder​(Field prototype)  
      static Field parseDelimitedFrom​(java.io.InputStream input)  
      static Field parseDelimitedFrom​(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static Field parseFrom​(byte[] data)  
      static Field parseFrom​(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static Field parseFrom​(com.google.protobuf.ByteString data)  
      static Field parseFrom​(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static Field parseFrom​(com.google.protobuf.CodedInputStream input)  
      static Field parseFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static Field parseFrom​(java.io.InputStream input)  
      static Field parseFrom​(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static Field parseFrom​(java.nio.ByteBuffer data)  
      static Field parseFrom​(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static com.google.protobuf.Parser<Field> 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

      • getKindValue

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

        public Field.Kind getKind()
        .google.protobuf.Field.Kind kind = 1 [json_name = "kind"];
        Specified by:
        getKind in interface FieldOrBuilder
        Returns:
        The kind.
      • getCardinalityValue

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

        public Field.Cardinality getCardinality()
        .google.protobuf.Field.Cardinality cardinality = 2 [json_name = "cardinality"];
        Specified by:
        getCardinality in interface FieldOrBuilder
        Returns:
        The cardinality.
      • getNumber

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

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

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

        public java.lang.String getTypeUrl()
        string type_url = 6 [json_name = "typeUrl"];
        Specified by:
        getTypeUrl in interface FieldOrBuilder
        Returns:
        The typeUrl.
      • getTypeUrlBytes

        public com.google.protobuf.ByteString getTypeUrlBytes()
        string type_url = 6 [json_name = "typeUrl"];
        Specified by:
        getTypeUrlBytes in interface FieldOrBuilder
        Returns:
        The bytes for typeUrl.
      • getOneofIndex

        public int getOneofIndex()
        int32 oneof_index = 7 [json_name = "oneofIndex"];
        Specified by:
        getOneofIndex in interface FieldOrBuilder
        Returns:
        The oneofIndex.
      • getPacked

        public boolean getPacked()
        bool packed = 8 [json_name = "packed"];
        Specified by:
        getPacked in interface FieldOrBuilder
        Returns:
        The packed.
      • getOptionsList

        public java.util.List<Option> getOptionsList()
        repeated .google.protobuf.Option options = 9 [json_name = "options"];
        Specified by:
        getOptionsList in interface FieldOrBuilder
      • getOptionsOrBuilderList

        public java.util.List<? extends OptionOrBuilder> getOptionsOrBuilderList()
        repeated .google.protobuf.Option options = 9 [json_name = "options"];
      • getOptionsCount

        public int getOptionsCount()
        repeated .google.protobuf.Option options = 9 [json_name = "options"];
        Specified by:
        getOptionsCount in interface FieldOrBuilder
      • getOptions

        public Option getOptions​(int index)
        repeated .google.protobuf.Option options = 9 [json_name = "options"];
        Specified by:
        getOptions in interface FieldOrBuilder
      • getOptionsOrBuilder

        public OptionOrBuilder getOptionsOrBuilder​(int index)
        repeated .google.protobuf.Option options = 9 [json_name = "options"];
      • getJsonName

        public java.lang.String getJsonName()
        string json_name = 10 [json_name = "jsonName"];
        Specified by:
        getJsonName in interface FieldOrBuilder
        Returns:
        The jsonName.
      • getJsonNameBytes

        public com.google.protobuf.ByteString getJsonNameBytes()
        string json_name = 10 [json_name = "jsonName"];
        Specified by:
        getJsonNameBytes in interface FieldOrBuilder
        Returns:
        The bytes for jsonName.
      • getDefaultValue

        public java.lang.String getDefaultValue()
        string default_value = 11 [json_name = "defaultValue"];
        Specified by:
        getDefaultValue in interface FieldOrBuilder
        Returns:
        The defaultValue.
      • getDefaultValueBytes

        public com.google.protobuf.ByteString getDefaultValueBytes()
        string default_value = 11 [json_name = "defaultValue"];
        Specified by:
        getDefaultValueBytes in interface FieldOrBuilder
        Returns:
        The bytes for defaultValue.
      • parseFrom

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

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

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

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

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

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

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

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

        public static Field getDefaultInstance()
      • parser

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