Class DescriptorProtos.EnumValueOptions.Builder

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

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

    • hasDeprecated

      public boolean hasDeprecated()
       Is this enum value deprecated?
       Depending on the target platform, this can emit Deprecated annotations
       for the enum value, or it will be completely ignored; in the very least,
       this is a formalization for deprecating enum values.
       
      optional bool deprecated = 1 [default = false, json_name = "deprecated"];
      Specified by:
      hasDeprecated in interface DescriptorProtos.EnumValueOptionsOrBuilder
      Returns:
      Whether the deprecated field is set.
    • getDeprecated

      public boolean getDeprecated()
       Is this enum value deprecated?
       Depending on the target platform, this can emit Deprecated annotations
       for the enum value, or it will be completely ignored; in the very least,
       this is a formalization for deprecating enum values.
       
      optional bool deprecated = 1 [default = false, json_name = "deprecated"];
      Specified by:
      getDeprecated in interface DescriptorProtos.EnumValueOptionsOrBuilder
      Returns:
      The deprecated.
    • setDeprecated

      public DescriptorProtos.EnumValueOptions.Builder setDeprecated(boolean value)
       Is this enum value deprecated?
       Depending on the target platform, this can emit Deprecated annotations
       for the enum value, or it will be completely ignored; in the very least,
       this is a formalization for deprecating enum values.
       
      optional bool deprecated = 1 [default = false, json_name = "deprecated"];
      Parameters:
      value - The deprecated to set.
      Returns:
      This builder for chaining.
    • clearDeprecated

       Is this enum value deprecated?
       Depending on the target platform, this can emit Deprecated annotations
       for the enum value, or it will be completely ignored; in the very least,
       this is a formalization for deprecating enum values.
       
      optional bool deprecated = 1 [default = false, json_name = "deprecated"];
      Returns:
      This builder for chaining.
    • 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.EnumValueOptionsOrBuilder
    • 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.EnumValueOptionsOrBuilder
    • 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.EnumValueOptionsOrBuilder
    • setUninterpretedOption

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

      public DescriptorProtos.EnumValueOptions.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

      public DescriptorProtos.EnumValueOptions.Builder addUninterpretedOption(int index, DescriptorProtos.UninterpretedOption value)
       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.EnumValueOptions.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

      public DescriptorProtos.EnumValueOptions.Builder addAllUninterpretedOption(Iterable<? extends DescriptorProtos.UninterpretedOption> values)
       The parser stores options it doesn't recognize here. See above.
       
      repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
    • clearUninterpretedOption

      public DescriptorProtos.EnumValueOptions.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.EnumValueOptions.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"];