Class MessageRestrictions.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<MessageRestrictions.Builder>
io.envoyproxy.envoy.extensions.filters.http.proto_api_scrubber.v3.MessageRestrictions.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, MessageRestrictionsOrBuilder, Cloneable
Enclosing class:
MessageRestrictions

public static final class MessageRestrictions.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<MessageRestrictions.Builder> implements MessageRestrictionsOrBuilder
 Contains message-level restrictions.
 
Protobuf type envoy.extensions.filters.http.proto_api_scrubber.v3.MessageRestrictions
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<MessageRestrictions.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<MessageRestrictions.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<MessageRestrictions.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<MessageRestrictions.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<MessageRestrictions.Builder>
    • getDefaultInstanceForType

      public MessageRestrictions getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public MessageRestrictions build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public MessageRestrictions buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<MessageRestrictions.Builder>
    • setField

      public MessageRestrictions.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<MessageRestrictions.Builder>
    • clearField

      public MessageRestrictions.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<MessageRestrictions.Builder>
    • clearOneof

      public MessageRestrictions.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<MessageRestrictions.Builder>
    • setRepeatedField

      public MessageRestrictions.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<MessageRestrictions.Builder>
    • addRepeatedField

      public MessageRestrictions.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<MessageRestrictions.Builder>
    • mergeFrom

      public MessageRestrictions.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<MessageRestrictions.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<MessageRestrictions.Builder>
    • mergeFrom

      public MessageRestrictions.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<MessageRestrictions.Builder>
      Throws:
      IOException
    • hasConfig

      public boolean hasConfig()
       The core restriction to apply to this message type.
       The 'matcher' within RestrictionConfig will determine if the message is
       scrubbed/denied/allowed.
       
      .envoy.extensions.filters.http.proto_api_scrubber.v3.RestrictionConfig config = 1;
      Specified by:
      hasConfig in interface MessageRestrictionsOrBuilder
      Returns:
      Whether the config field is set.
    • getConfig

      public RestrictionConfig getConfig()
       The core restriction to apply to this message type.
       The 'matcher' within RestrictionConfig will determine if the message is
       scrubbed/denied/allowed.
       
      .envoy.extensions.filters.http.proto_api_scrubber.v3.RestrictionConfig config = 1;
      Specified by:
      getConfig in interface MessageRestrictionsOrBuilder
      Returns:
      The config.
    • setConfig

       The core restriction to apply to this message type.
       The 'matcher' within RestrictionConfig will determine if the message is
       scrubbed/denied/allowed.
       
      .envoy.extensions.filters.http.proto_api_scrubber.v3.RestrictionConfig config = 1;
    • setConfig

      public MessageRestrictions.Builder setConfig(RestrictionConfig.Builder builderForValue)
       The core restriction to apply to this message type.
       The 'matcher' within RestrictionConfig will determine if the message is
       scrubbed/denied/allowed.
       
      .envoy.extensions.filters.http.proto_api_scrubber.v3.RestrictionConfig config = 1;
    • mergeConfig

      public MessageRestrictions.Builder mergeConfig(RestrictionConfig value)
       The core restriction to apply to this message type.
       The 'matcher' within RestrictionConfig will determine if the message is
       scrubbed/denied/allowed.
       
      .envoy.extensions.filters.http.proto_api_scrubber.v3.RestrictionConfig config = 1;
    • clearConfig

      public MessageRestrictions.Builder clearConfig()
       The core restriction to apply to this message type.
       The 'matcher' within RestrictionConfig will determine if the message is
       scrubbed/denied/allowed.
       
      .envoy.extensions.filters.http.proto_api_scrubber.v3.RestrictionConfig config = 1;
    • getConfigBuilder

      public RestrictionConfig.Builder getConfigBuilder()
       The core restriction to apply to this message type.
       The 'matcher' within RestrictionConfig will determine if the message is
       scrubbed/denied/allowed.
       
      .envoy.extensions.filters.http.proto_api_scrubber.v3.RestrictionConfig config = 1;
    • getConfigOrBuilder

      public RestrictionConfigOrBuilder getConfigOrBuilder()
       The core restriction to apply to this message type.
       The 'matcher' within RestrictionConfig will determine if the message is
       scrubbed/denied/allowed.
       
      .envoy.extensions.filters.http.proto_api_scrubber.v3.RestrictionConfig config = 1;
      Specified by:
      getConfigOrBuilder in interface MessageRestrictionsOrBuilder
    • getFieldRestrictionsCount

      public int getFieldRestrictionsCount()
      Description copied from interface: MessageRestrictionsOrBuilder
       Restrictions that apply to specific fields within this message type.
       Key - field mask (e.g. "social_security_number").
       Value - The restriction configuration for that field.
       
      map<string, .envoy.extensions.filters.http.proto_api_scrubber.v3.RestrictionConfig> field_restrictions = 2;
      Specified by:
      getFieldRestrictionsCount in interface MessageRestrictionsOrBuilder
    • containsFieldRestrictions

      public boolean containsFieldRestrictions(String key)
       Restrictions that apply to specific fields within this message type.
       Key - field mask (e.g. "social_security_number").
       Value - The restriction configuration for that field.
       
      map<string, .envoy.extensions.filters.http.proto_api_scrubber.v3.RestrictionConfig> field_restrictions = 2;
      Specified by:
      containsFieldRestrictions in interface MessageRestrictionsOrBuilder
    • getFieldRestrictions

      @Deprecated public Map<String,RestrictionConfig> getFieldRestrictions()
      Deprecated.
      Specified by:
      getFieldRestrictions in interface MessageRestrictionsOrBuilder
    • getFieldRestrictionsMap

      public Map<String,RestrictionConfig> getFieldRestrictionsMap()
       Restrictions that apply to specific fields within this message type.
       Key - field mask (e.g. "social_security_number").
       Value - The restriction configuration for that field.
       
      map<string, .envoy.extensions.filters.http.proto_api_scrubber.v3.RestrictionConfig> field_restrictions = 2;
      Specified by:
      getFieldRestrictionsMap in interface MessageRestrictionsOrBuilder
    • getFieldRestrictionsOrDefault

      public RestrictionConfig getFieldRestrictionsOrDefault(String key, RestrictionConfig defaultValue)
       Restrictions that apply to specific fields within this message type.
       Key - field mask (e.g. "social_security_number").
       Value - The restriction configuration for that field.
       
      map<string, .envoy.extensions.filters.http.proto_api_scrubber.v3.RestrictionConfig> field_restrictions = 2;
      Specified by:
      getFieldRestrictionsOrDefault in interface MessageRestrictionsOrBuilder
    • getFieldRestrictionsOrThrow

      public RestrictionConfig getFieldRestrictionsOrThrow(String key)
       Restrictions that apply to specific fields within this message type.
       Key - field mask (e.g. "social_security_number").
       Value - The restriction configuration for that field.
       
      map<string, .envoy.extensions.filters.http.proto_api_scrubber.v3.RestrictionConfig> field_restrictions = 2;
      Specified by:
      getFieldRestrictionsOrThrow in interface MessageRestrictionsOrBuilder
    • clearFieldRestrictions

      public MessageRestrictions.Builder clearFieldRestrictions()
    • removeFieldRestrictions

      public MessageRestrictions.Builder removeFieldRestrictions(String key)
       Restrictions that apply to specific fields within this message type.
       Key - field mask (e.g. "social_security_number").
       Value - The restriction configuration for that field.
       
      map<string, .envoy.extensions.filters.http.proto_api_scrubber.v3.RestrictionConfig> field_restrictions = 2;
    • getMutableFieldRestrictions

      @Deprecated public Map<String,RestrictionConfig> getMutableFieldRestrictions()
      Deprecated.
      Use alternate mutation accessors instead.
    • putFieldRestrictions

      public MessageRestrictions.Builder putFieldRestrictions(String key, RestrictionConfig value)
       Restrictions that apply to specific fields within this message type.
       Key - field mask (e.g. "social_security_number").
       Value - The restriction configuration for that field.
       
      map<string, .envoy.extensions.filters.http.proto_api_scrubber.v3.RestrictionConfig> field_restrictions = 2;
    • putAllFieldRestrictions

      public MessageRestrictions.Builder putAllFieldRestrictions(Map<String,RestrictionConfig> values)
       Restrictions that apply to specific fields within this message type.
       Key - field mask (e.g. "social_security_number").
       Value - The restriction configuration for that field.
       
      map<string, .envoy.extensions.filters.http.proto_api_scrubber.v3.RestrictionConfig> field_restrictions = 2;
    • putFieldRestrictionsBuilderIfAbsent

      public RestrictionConfig.Builder putFieldRestrictionsBuilderIfAbsent(String key)
       Restrictions that apply to specific fields within this message type.
       Key - field mask (e.g. "social_security_number").
       Value - The restriction configuration for that field.
       
      map<string, .envoy.extensions.filters.http.proto_api_scrubber.v3.RestrictionConfig> field_restrictions = 2;
    • setUnknownFields

      public final MessageRestrictions.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MessageRestrictions.Builder>
    • mergeUnknownFields

      public final MessageRestrictions.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MessageRestrictions.Builder>