Class DescriptorProtos.ServiceOptions.Builder

    • Constructor Detail

      • Builder

        private Builder()
    • Method Detail

      • 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 = 34;
        Specified by:
        hasFeatures in interface DescriptorProtos.ServiceOptionsOrBuilder
        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 = 34;
        Specified by:
        getFeatures in interface DescriptorProtos.ServiceOptionsOrBuilder
        Returns:
        The features.
      • setFeatures

        public DescriptorProtos.ServiceOptions.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 = 34;
      • setFeatures

        public DescriptorProtos.ServiceOptions.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 = 34;
      • mergeFeatures

        public DescriptorProtos.ServiceOptions.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 = 34;
      • clearFeatures

        public DescriptorProtos.ServiceOptions.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 = 34;
      • hasDeprecated

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

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

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

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

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

        public DescriptorProtos.ServiceOptions.Builder removeUninterpretedOption​(int index)
         The parser stores options it doesn't recognize here. See above.
         
        repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;