Class DescriptorProtos.MethodOptions.Builder

    • Constructor Detail

      • Builder

        private Builder()
    • Method Detail

      • 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.
      • 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

        public DescriptorProtos.MethodOptions.Builder setFeatures​(DescriptorProtos.FeatureSet value)
         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

        public DescriptorProtos.MethodOptions.Builder setFeatures​(DescriptorProtos.FeatureSet.Builder builderForValue)
         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

        public DescriptorProtos.MethodOptions.Builder mergeFeatures​(DescriptorProtos.FeatureSet value)
         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

        public DescriptorProtos.MethodOptions.Builder 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;
      • 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;