Class DescriptorProtos.ExtensionRangeOptions.Builder

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

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

    • getUninterpretedOptionList

      public List<DescriptorProtos.UninterpretedOption> getUninterpretedOptionList()
       The parser stores options it doesn't recognize here. See above.
       
      repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
      Specified by:
      getUninterpretedOptionList in interface DescriptorProtos.ExtensionRangeOptionsOrBuilder
    • getUninterpretedOptionCount

      public int getUninterpretedOptionCount()
       The parser stores options it doesn't recognize here. See above.
       
      repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
      Specified by:
      getUninterpretedOptionCount in interface DescriptorProtos.ExtensionRangeOptionsOrBuilder
    • getUninterpretedOption

      public DescriptorProtos.UninterpretedOption getUninterpretedOption(int index)
       The parser stores options it doesn't recognize here. See above.
       
      repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
      Specified by:
      getUninterpretedOption in interface DescriptorProtos.ExtensionRangeOptionsOrBuilder
    • setUninterpretedOption

       The parser stores options it doesn't recognize here. See above.
       
      repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
    • setUninterpretedOption

      public DescriptorProtos.ExtensionRangeOptions.Builder setUninterpretedOption(int index, DescriptorProtos.UninterpretedOption.Builder builderForValue)
       The parser stores options it doesn't recognize here. See above.
       
      repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
    • addUninterpretedOption

       The parser stores options it doesn't recognize here. See above.
       
      repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
    • addUninterpretedOption

       The parser stores options it doesn't recognize here. See above.
       
      repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
    • addUninterpretedOption

       The parser stores options it doesn't recognize here. See above.
       
      repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
    • addUninterpretedOption

      public DescriptorProtos.ExtensionRangeOptions.Builder addUninterpretedOption(int index, DescriptorProtos.UninterpretedOption.Builder builderForValue)
       The parser stores options it doesn't recognize here. See above.
       
      repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
    • addAllUninterpretedOption

       The parser stores options it doesn't recognize here. See above.
       
      repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
    • clearUninterpretedOption

      public DescriptorProtos.ExtensionRangeOptions.Builder clearUninterpretedOption()
       The parser stores options it doesn't recognize here. See above.
       
      repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
    • removeUninterpretedOption

      public DescriptorProtos.ExtensionRangeOptions.Builder removeUninterpretedOption(int index)
       The parser stores options it doesn't recognize here. See above.
       
      repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
    • getDeclarationList

       go/protobuf-stripping-extension-declarations
       Like Metadata, but we use a repeated field to hold all extension
       declarations. This should avoid the size increases of transforming a large
       extension range into small ranges in generated binaries.
       
      repeated .google.protobuf.ExtensionRangeOptions.Declaration declaration = 2 [json_name = "declaration", retention = RETENTION_SOURCE];
      Specified by:
      getDeclarationList in interface DescriptorProtos.ExtensionRangeOptionsOrBuilder
    • getDeclarationCount

      public int getDeclarationCount()
       go/protobuf-stripping-extension-declarations
       Like Metadata, but we use a repeated field to hold all extension
       declarations. This should avoid the size increases of transforming a large
       extension range into small ranges in generated binaries.
       
      repeated .google.protobuf.ExtensionRangeOptions.Declaration declaration = 2 [json_name = "declaration", retention = RETENTION_SOURCE];
      Specified by:
      getDeclarationCount in interface DescriptorProtos.ExtensionRangeOptionsOrBuilder
    • getDeclaration

      public DescriptorProtos.ExtensionRangeOptions.Declaration getDeclaration(int index)
       go/protobuf-stripping-extension-declarations
       Like Metadata, but we use a repeated field to hold all extension
       declarations. This should avoid the size increases of transforming a large
       extension range into small ranges in generated binaries.
       
      repeated .google.protobuf.ExtensionRangeOptions.Declaration declaration = 2 [json_name = "declaration", retention = RETENTION_SOURCE];
      Specified by:
      getDeclaration in interface DescriptorProtos.ExtensionRangeOptionsOrBuilder
    • setDeclaration

       go/protobuf-stripping-extension-declarations
       Like Metadata, but we use a repeated field to hold all extension
       declarations. This should avoid the size increases of transforming a large
       extension range into small ranges in generated binaries.
       
      repeated .google.protobuf.ExtensionRangeOptions.Declaration declaration = 2 [json_name = "declaration", retention = RETENTION_SOURCE];
    • setDeclaration

       go/protobuf-stripping-extension-declarations
       Like Metadata, but we use a repeated field to hold all extension
       declarations. This should avoid the size increases of transforming a large
       extension range into small ranges in generated binaries.
       
      repeated .google.protobuf.ExtensionRangeOptions.Declaration declaration = 2 [json_name = "declaration", retention = RETENTION_SOURCE];
    • addDeclaration

       go/protobuf-stripping-extension-declarations
       Like Metadata, but we use a repeated field to hold all extension
       declarations. This should avoid the size increases of transforming a large
       extension range into small ranges in generated binaries.
       
      repeated .google.protobuf.ExtensionRangeOptions.Declaration declaration = 2 [json_name = "declaration", retention = RETENTION_SOURCE];
    • addDeclaration

       go/protobuf-stripping-extension-declarations
       Like Metadata, but we use a repeated field to hold all extension
       declarations. This should avoid the size increases of transforming a large
       extension range into small ranges in generated binaries.
       
      repeated .google.protobuf.ExtensionRangeOptions.Declaration declaration = 2 [json_name = "declaration", retention = RETENTION_SOURCE];
    • addDeclaration

       go/protobuf-stripping-extension-declarations
       Like Metadata, but we use a repeated field to hold all extension
       declarations. This should avoid the size increases of transforming a large
       extension range into small ranges in generated binaries.
       
      repeated .google.protobuf.ExtensionRangeOptions.Declaration declaration = 2 [json_name = "declaration", retention = RETENTION_SOURCE];
    • addDeclaration

       go/protobuf-stripping-extension-declarations
       Like Metadata, but we use a repeated field to hold all extension
       declarations. This should avoid the size increases of transforming a large
       extension range into small ranges in generated binaries.
       
      repeated .google.protobuf.ExtensionRangeOptions.Declaration declaration = 2 [json_name = "declaration", retention = RETENTION_SOURCE];
    • addAllDeclaration

       go/protobuf-stripping-extension-declarations
       Like Metadata, but we use a repeated field to hold all extension
       declarations. This should avoid the size increases of transforming a large
       extension range into small ranges in generated binaries.
       
      repeated .google.protobuf.ExtensionRangeOptions.Declaration declaration = 2 [json_name = "declaration", retention = RETENTION_SOURCE];
    • clearDeclaration

       go/protobuf-stripping-extension-declarations
       Like Metadata, but we use a repeated field to hold all extension
       declarations. This should avoid the size increases of transforming a large
       extension range into small ranges in generated binaries.
       
      repeated .google.protobuf.ExtensionRangeOptions.Declaration declaration = 2 [json_name = "declaration", retention = RETENTION_SOURCE];
    • removeDeclaration

      public DescriptorProtos.ExtensionRangeOptions.Builder removeDeclaration(int index)
       go/protobuf-stripping-extension-declarations
       Like Metadata, but we use a repeated field to hold all extension
       declarations. This should avoid the size increases of transforming a large
       extension range into small ranges in generated binaries.
       
      repeated .google.protobuf.ExtensionRangeOptions.Declaration declaration = 2 [json_name = "declaration", retention = RETENTION_SOURCE];
    • hasVerification

      public boolean hasVerification()
       The verification state of the range.
       TODO(b/278783756): flip the default to DECLARATION once all empty ranges
       are marked as UNVERIFIED.
       
      optional .google.protobuf.ExtensionRangeOptions.VerificationState verification = 3 [default = UNVERIFIED, json_name = "verification"];
      Specified by:
      hasVerification in interface DescriptorProtos.ExtensionRangeOptionsOrBuilder
      Returns:
      Whether the verification field is set.
    • getVerification

       The verification state of the range.
       TODO(b/278783756): flip the default to DECLARATION once all empty ranges
       are marked as UNVERIFIED.
       
      optional .google.protobuf.ExtensionRangeOptions.VerificationState verification = 3 [default = UNVERIFIED, json_name = "verification"];
      Specified by:
      getVerification in interface DescriptorProtos.ExtensionRangeOptionsOrBuilder
      Returns:
      The verification.
    • setVerification

       The verification state of the range.
       TODO(b/278783756): flip the default to DECLARATION once all empty ranges
       are marked as UNVERIFIED.
       
      optional .google.protobuf.ExtensionRangeOptions.VerificationState verification = 3 [default = UNVERIFIED, json_name = "verification"];
      Parameters:
      value - The enum numeric value on the wire for verification to set.
      Returns:
      This builder for chaining.
    • clearVerification

       The verification state of the range.
       TODO(b/278783756): flip the default to DECLARATION once all empty ranges
       are marked as UNVERIFIED.
       
      optional .google.protobuf.ExtensionRangeOptions.VerificationState verification = 3 [default = UNVERIFIED, json_name = "verification"];
      Returns:
      This builder for chaining.