Class DescriptorProtos.MethodOptions.Builder

All Implemented Interfaces:
DescriptorProtos.MethodOptionsOrBuilder, GeneratedMessageLite.ExtendableMessageOrBuilder<DescriptorProtos.MethodOptions,DescriptorProtos.MethodOptions.Builder>, MessageLite.Builder, MessageLiteOrBuilder, Cloneable
Enclosing class:
DescriptorProtos.MethodOptions

Protobuf type google.protobuf.MethodOptions
  • Constructor Details

    • Builder

      private Builder()
  • 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];
      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];
      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];
      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];
      Returns:
      This builder for chaining.
    • hasIdempotencyLevel

      public boolean hasIdempotencyLevel()
      optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
      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];
      Specified by:
      getIdempotencyLevel in interface DescriptorProtos.MethodOptionsOrBuilder
      Returns:
      The idempotencyLevel.
    • setIdempotencyLevel

      optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
      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];
      Returns:
      This builder for chaining.
    • hasFeatures

      public boolean hasFeatures()
       Any features defined in the specific edition.
       WARNING: This field should only be used by protobuf plugins or special
       cases like the proto compiler. Other uses are discouraged and
       developers should rely on the protoreflect APIs for their client language.
       
      optional .google.protobuf.FeatureSet features = 35;
      Specified by:
      hasFeatures in interface DescriptorProtos.MethodOptionsOrBuilder
      Returns:
      Whether the features field is set.
    • getFeatures

      public DescriptorProtos.FeatureSet getFeatures()
       Any features defined in the specific edition.
       WARNING: This field should only be used by protobuf plugins or special
       cases like the proto compiler. Other uses are discouraged and
       developers should rely on the protoreflect APIs for their client language.
       
      optional .google.protobuf.FeatureSet features = 35;
      Specified by:
      getFeatures in interface DescriptorProtos.MethodOptionsOrBuilder
      Returns:
      The features.
    • setFeatures

       Any features defined in the specific edition.
       WARNING: This field should only be used by protobuf plugins or special
       cases like the proto compiler. Other uses are discouraged and
       developers should rely on the protoreflect APIs for their client language.
       
      optional .google.protobuf.FeatureSet features = 35;
    • setFeatures

       Any features defined in the specific edition.
       WARNING: This field should only be used by protobuf plugins or special
       cases like the proto compiler. Other uses are discouraged and
       developers should rely on the protoreflect APIs for their client language.
       
      optional .google.protobuf.FeatureSet features = 35;
    • mergeFeatures

       Any features defined in the specific edition.
       WARNING: This field should only be used by protobuf plugins or special
       cases like the proto compiler. Other uses are discouraged and
       developers should rely on the protoreflect APIs for their client language.
       
      optional .google.protobuf.FeatureSet features = 35;
    • clearFeatures

       Any features defined in the specific edition.
       WARNING: This field should only be used by protobuf plugins or special
       cases like the proto compiler. Other uses are discouraged and
       developers should rely on the protoreflect APIs for their client language.
       
      optional .google.protobuf.FeatureSet features = 35;
    • getUninterpretedOptionList

      public List<DescriptorProtos.UninterpretedOption> getUninterpretedOptionList()
       The parser stores options it doesn't recognize here. See above.
       
      repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
      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;
      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;
      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;
    • 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;
    • addUninterpretedOption

       The parser stores options it doesn't recognize here. See above.
       
      repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
    • 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;
    • addUninterpretedOption

       The parser stores options it doesn't recognize here. See above.
       
      repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
    • 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;
    • 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;
    • clearUninterpretedOption

      public DescriptorProtos.MethodOptions.Builder clearUninterpretedOption()
       The parser stores options it doesn't recognize here. See above.
       
      repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
    • 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;