Class DescriptorProtos.MethodOptions.Builder

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

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

    • hasDeprecated

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

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

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

      public DescriptorProtos.MethodOptions.Builder clearDeprecated()
       Is this method deprecated?
       Depending on the target platform, this can emit Deprecated annotations
       for the method, or it will be completely ignored; in the very least,
       this is a formalization for deprecating methods.
       
      optional bool deprecated = 33 [default = false, json_name = "deprecated"];
      Returns:
      This builder for chaining.
    • hasIdempotencyLevel

      public boolean hasIdempotencyLevel()
      optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN, json_name = "idempotencyLevel"];
      Specified by:
      hasIdempotencyLevel in interface DescriptorProtos.MethodOptionsOrBuilder
      Returns:
      Whether the idempotencyLevel field is set.
    • getIdempotencyLevel

      optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN, json_name = "idempotencyLevel"];
      Specified by:
      getIdempotencyLevel in interface DescriptorProtos.MethodOptionsOrBuilder
      Returns:
      The idempotencyLevel.
    • setIdempotencyLevel

      optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN, json_name = "idempotencyLevel"];
      Parameters:
      value - The enum numeric value on the wire for idempotencyLevel to set.
      Returns:
      This builder for chaining.
    • clearIdempotencyLevel

      public DescriptorProtos.MethodOptions.Builder clearIdempotencyLevel()
      optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN, json_name = "idempotencyLevel"];
      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.MethodOptionsOrBuilder
    • 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.MethodOptionsOrBuilder
    • 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.MethodOptionsOrBuilder
    • setUninterpretedOption

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