Class DescriptorProtos.ExtensionRangeOptions.Declaration.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<DescriptorProtos.ExtensionRangeOptions.Declaration,DescriptorProtos.ExtensionRangeOptions.Declaration.Builder>
com.google.protobuf.DescriptorProtos.ExtensionRangeOptions.Declaration.Builder
All Implemented Interfaces:
DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable
Enclosing class:
DescriptorProtos.ExtensionRangeOptions.Declaration

public static final class DescriptorProtos.ExtensionRangeOptions.Declaration.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<DescriptorProtos.ExtensionRangeOptions.Declaration,DescriptorProtos.ExtensionRangeOptions.Declaration.Builder> implements DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder
Protobuf type google.protobuf.ExtensionRangeOptions.Declaration
  • Method Details

    • hasNumber

      public boolean hasNumber()
       The extension number declared within the extension range.
       
      optional int32 number = 1 [json_name = "number"];
      Specified by:
      hasNumber in interface DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder
      Returns:
      Whether the number field is set.
    • getNumber

      public int getNumber()
       The extension number declared within the extension range.
       
      optional int32 number = 1 [json_name = "number"];
      Specified by:
      getNumber in interface DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder
      Returns:
      The number.
    • setNumber

       The extension number declared within the extension range.
       
      optional int32 number = 1 [json_name = "number"];
      Parameters:
      value - The number to set.
      Returns:
      This builder for chaining.
    • clearNumber

       The extension number declared within the extension range.
       
      optional int32 number = 1 [json_name = "number"];
      Returns:
      This builder for chaining.
    • hasFullName

      public boolean hasFullName()
       The fully-qualified name of the extension field. There must be a leading
       dot in front of the full name.
       
      optional string full_name = 2 [json_name = "fullName"];
      Specified by:
      hasFullName in interface DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder
      Returns:
      Whether the fullName field is set.
    • getFullName

      public String getFullName()
       The fully-qualified name of the extension field. There must be a leading
       dot in front of the full name.
       
      optional string full_name = 2 [json_name = "fullName"];
      Specified by:
      getFullName in interface DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder
      Returns:
      The fullName.
    • getFullNameBytes

      public com.google.protobuf.ByteString getFullNameBytes()
       The fully-qualified name of the extension field. There must be a leading
       dot in front of the full name.
       
      optional string full_name = 2 [json_name = "fullName"];
      Specified by:
      getFullNameBytes in interface DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder
      Returns:
      The bytes for fullName.
    • setFullName

       The fully-qualified name of the extension field. There must be a leading
       dot in front of the full name.
       
      optional string full_name = 2 [json_name = "fullName"];
      Parameters:
      value - The fullName to set.
      Returns:
      This builder for chaining.
    • clearFullName

       The fully-qualified name of the extension field. There must be a leading
       dot in front of the full name.
       
      optional string full_name = 2 [json_name = "fullName"];
      Returns:
      This builder for chaining.
    • setFullNameBytes

      public DescriptorProtos.ExtensionRangeOptions.Declaration.Builder setFullNameBytes(com.google.protobuf.ByteString value)
       The fully-qualified name of the extension field. There must be a leading
       dot in front of the full name.
       
      optional string full_name = 2 [json_name = "fullName"];
      Parameters:
      value - The bytes for fullName to set.
      Returns:
      This builder for chaining.
    • hasType

      public boolean hasType()
       The fully-qualified type name of the extension field. Unlike
       Metadata.type, Declaration.type must have a leading dot for messages
       and enums.
       
      optional string type = 3 [json_name = "type"];
      Specified by:
      hasType in interface DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder
      Returns:
      Whether the type field is set.
    • getType

      public String getType()
       The fully-qualified type name of the extension field. Unlike
       Metadata.type, Declaration.type must have a leading dot for messages
       and enums.
       
      optional string type = 3 [json_name = "type"];
      Specified by:
      getType in interface DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder
      Returns:
      The type.
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
       The fully-qualified type name of the extension field. Unlike
       Metadata.type, Declaration.type must have a leading dot for messages
       and enums.
       
      optional string type = 3 [json_name = "type"];
      Specified by:
      getTypeBytes in interface DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder
      Returns:
      The bytes for type.
    • setType

       The fully-qualified type name of the extension field. Unlike
       Metadata.type, Declaration.type must have a leading dot for messages
       and enums.
       
      optional string type = 3 [json_name = "type"];
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

       The fully-qualified type name of the extension field. Unlike
       Metadata.type, Declaration.type must have a leading dot for messages
       and enums.
       
      optional string type = 3 [json_name = "type"];
      Returns:
      This builder for chaining.
    • setTypeBytes

      public DescriptorProtos.ExtensionRangeOptions.Declaration.Builder setTypeBytes(com.google.protobuf.ByteString value)
       The fully-qualified type name of the extension field. Unlike
       Metadata.type, Declaration.type must have a leading dot for messages
       and enums.
       
      optional string type = 3 [json_name = "type"];
      Parameters:
      value - The bytes for type to set.
      Returns:
      This builder for chaining.
    • hasIsRepeated

      @Deprecated public boolean hasIsRepeated()
      Deprecated.
      google.protobuf.ExtensionRangeOptions.Declaration.is_repeated is deprecated. See google/protobuf/descriptor.proto;l=149
       Deprecated. Please use "repeated".
       
      optional bool is_repeated = 4 [json_name = "isRepeated", deprecated = true];
      Specified by:
      hasIsRepeated in interface DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder
      Returns:
      Whether the isRepeated field is set.
    • getIsRepeated

      @Deprecated public boolean getIsRepeated()
      Deprecated.
      google.protobuf.ExtensionRangeOptions.Declaration.is_repeated is deprecated. See google/protobuf/descriptor.proto;l=149
       Deprecated. Please use "repeated".
       
      optional bool is_repeated = 4 [json_name = "isRepeated", deprecated = true];
      Specified by:
      getIsRepeated in interface DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder
      Returns:
      The isRepeated.
    • setIsRepeated

      Deprecated.
      google.protobuf.ExtensionRangeOptions.Declaration.is_repeated is deprecated. See google/protobuf/descriptor.proto;l=149
       Deprecated. Please use "repeated".
       
      optional bool is_repeated = 4 [json_name = "isRepeated", deprecated = true];
      Parameters:
      value - The isRepeated to set.
      Returns:
      This builder for chaining.
    • clearIsRepeated

      Deprecated.
      google.protobuf.ExtensionRangeOptions.Declaration.is_repeated is deprecated. See google/protobuf/descriptor.proto;l=149
       Deprecated. Please use "repeated".
       
      optional bool is_repeated = 4 [json_name = "isRepeated", deprecated = true];
      Returns:
      This builder for chaining.
    • hasReserved

      public boolean hasReserved()
       If true, indicates that the number is reserved in the extension range,
       and any extension field with the number will fail to compile. Set this
       when a declared extension field is deleted.
       
      optional bool reserved = 5 [json_name = "reserved"];
      Specified by:
      hasReserved in interface DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder
      Returns:
      Whether the reserved field is set.
    • getReserved

      public boolean getReserved()
       If true, indicates that the number is reserved in the extension range,
       and any extension field with the number will fail to compile. Set this
       when a declared extension field is deleted.
       
      optional bool reserved = 5 [json_name = "reserved"];
      Specified by:
      getReserved in interface DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder
      Returns:
      The reserved.
    • setReserved

       If true, indicates that the number is reserved in the extension range,
       and any extension field with the number will fail to compile. Set this
       when a declared extension field is deleted.
       
      optional bool reserved = 5 [json_name = "reserved"];
      Parameters:
      value - The reserved to set.
      Returns:
      This builder for chaining.
    • clearReserved

       If true, indicates that the number is reserved in the extension range,
       and any extension field with the number will fail to compile. Set this
       when a declared extension field is deleted.
       
      optional bool reserved = 5 [json_name = "reserved"];
      Returns:
      This builder for chaining.
    • hasRepeated

      public boolean hasRepeated()
       If true, indicates that the extension must be defined as repeated.
       Otherwise the extension must be defined as optional.
       
      optional bool repeated = 6 [json_name = "repeated"];
      Specified by:
      hasRepeated in interface DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder
      Returns:
      Whether the repeated field is set.
    • getRepeated

      public boolean getRepeated()
       If true, indicates that the extension must be defined as repeated.
       Otherwise the extension must be defined as optional.
       
      optional bool repeated = 6 [json_name = "repeated"];
      Specified by:
      getRepeated in interface DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder
      Returns:
      The repeated.
    • setRepeated

       If true, indicates that the extension must be defined as repeated.
       Otherwise the extension must be defined as optional.
       
      optional bool repeated = 6 [json_name = "repeated"];
      Parameters:
      value - The repeated to set.
      Returns:
      This builder for chaining.
    • clearRepeated

       If true, indicates that the extension must be defined as repeated.
       Otherwise the extension must be defined as optional.
       
      optional bool repeated = 6 [json_name = "repeated"];
      Returns:
      This builder for chaining.