Class SecurityPolicyAdvancedOptionsConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SecurityPolicyAdvancedOptionsConfig.Builder>
com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig.Builder
All Implemented Interfaces:
SecurityPolicyAdvancedOptionsConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SecurityPolicyAdvancedOptionsConfig

public static final class SecurityPolicyAdvancedOptionsConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<SecurityPolicyAdvancedOptionsConfig.Builder> implements SecurityPolicyAdvancedOptionsConfigOrBuilder
 
Protobuf type google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<SecurityPolicyAdvancedOptionsConfig.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.GeneratedMessage.Builder<SecurityPolicyAdvancedOptionsConfig.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.GeneratedMessage.Builder<SecurityPolicyAdvancedOptionsConfig.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public SecurityPolicyAdvancedOptionsConfig.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<SecurityPolicyAdvancedOptionsConfig.Builder>
    • mergeFrom

    • isInitialized

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

      public SecurityPolicyAdvancedOptionsConfig.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<SecurityPolicyAdvancedOptionsConfig.Builder>
      Throws:
      IOException
    • hasJsonCustomConfig

      public boolean hasJsonCustomConfig()
       Custom configuration to apply the JSON parsing. Only applicable when
       json_parsing is set to STANDARD.
       
      optional .google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfig json_custom_config = 111570105;
      Specified by:
      hasJsonCustomConfig in interface SecurityPolicyAdvancedOptionsConfigOrBuilder
      Returns:
      Whether the jsonCustomConfig field is set.
    • getJsonCustomConfig

       Custom configuration to apply the JSON parsing. Only applicable when
       json_parsing is set to STANDARD.
       
      optional .google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfig json_custom_config = 111570105;
      Specified by:
      getJsonCustomConfig in interface SecurityPolicyAdvancedOptionsConfigOrBuilder
      Returns:
      The jsonCustomConfig.
    • setJsonCustomConfig

       Custom configuration to apply the JSON parsing. Only applicable when
       json_parsing is set to STANDARD.
       
      optional .google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfig json_custom_config = 111570105;
    • setJsonCustomConfig

       Custom configuration to apply the JSON parsing. Only applicable when
       json_parsing is set to STANDARD.
       
      optional .google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfig json_custom_config = 111570105;
    • mergeJsonCustomConfig

       Custom configuration to apply the JSON parsing. Only applicable when
       json_parsing is set to STANDARD.
       
      optional .google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfig json_custom_config = 111570105;
    • clearJsonCustomConfig

      public SecurityPolicyAdvancedOptionsConfig.Builder clearJsonCustomConfig()
       Custom configuration to apply the JSON parsing. Only applicable when
       json_parsing is set to STANDARD.
       
      optional .google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfig json_custom_config = 111570105;
    • getJsonCustomConfigBuilder

       Custom configuration to apply the JSON parsing. Only applicable when
       json_parsing is set to STANDARD.
       
      optional .google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfig json_custom_config = 111570105;
    • getJsonCustomConfigOrBuilder

      public SecurityPolicyAdvancedOptionsConfigJsonCustomConfigOrBuilder getJsonCustomConfigOrBuilder()
       Custom configuration to apply the JSON parsing. Only applicable when
       json_parsing is set to STANDARD.
       
      optional .google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfig json_custom_config = 111570105;
      Specified by:
      getJsonCustomConfigOrBuilder in interface SecurityPolicyAdvancedOptionsConfigOrBuilder
    • hasJsonParsing

      public boolean hasJsonParsing()
      
       Check the JsonParsing enum for the list of possible values.
       
      optional string json_parsing = 282493529;
      Specified by:
      hasJsonParsing in interface SecurityPolicyAdvancedOptionsConfigOrBuilder
      Returns:
      Whether the jsonParsing field is set.
    • getJsonParsing

      public String getJsonParsing()
      
       Check the JsonParsing enum for the list of possible values.
       
      optional string json_parsing = 282493529;
      Specified by:
      getJsonParsing in interface SecurityPolicyAdvancedOptionsConfigOrBuilder
      Returns:
      The jsonParsing.
    • getJsonParsingBytes

      public com.google.protobuf.ByteString getJsonParsingBytes()
      
       Check the JsonParsing enum for the list of possible values.
       
      optional string json_parsing = 282493529;
      Specified by:
      getJsonParsingBytes in interface SecurityPolicyAdvancedOptionsConfigOrBuilder
      Returns:
      The bytes for jsonParsing.
    • setJsonParsing

      public SecurityPolicyAdvancedOptionsConfig.Builder setJsonParsing(String value)
      
       Check the JsonParsing enum for the list of possible values.
       
      optional string json_parsing = 282493529;
      Parameters:
      value - The jsonParsing to set.
      Returns:
      This builder for chaining.
    • clearJsonParsing

      
       Check the JsonParsing enum for the list of possible values.
       
      optional string json_parsing = 282493529;
      Returns:
      This builder for chaining.
    • setJsonParsingBytes

      public SecurityPolicyAdvancedOptionsConfig.Builder setJsonParsingBytes(com.google.protobuf.ByteString value)
      
       Check the JsonParsing enum for the list of possible values.
       
      optional string json_parsing = 282493529;
      Parameters:
      value - The bytes for jsonParsing to set.
      Returns:
      This builder for chaining.
    • hasLogLevel

      public boolean hasLogLevel()
      
       Check the LogLevel enum for the list of possible values.
       
      optional string log_level = 140582601;
      Specified by:
      hasLogLevel in interface SecurityPolicyAdvancedOptionsConfigOrBuilder
      Returns:
      Whether the logLevel field is set.
    • getLogLevel

      public String getLogLevel()
      
       Check the LogLevel enum for the list of possible values.
       
      optional string log_level = 140582601;
      Specified by:
      getLogLevel in interface SecurityPolicyAdvancedOptionsConfigOrBuilder
      Returns:
      The logLevel.
    • getLogLevelBytes

      public com.google.protobuf.ByteString getLogLevelBytes()
      
       Check the LogLevel enum for the list of possible values.
       
      optional string log_level = 140582601;
      Specified by:
      getLogLevelBytes in interface SecurityPolicyAdvancedOptionsConfigOrBuilder
      Returns:
      The bytes for logLevel.
    • setLogLevel

      
       Check the LogLevel enum for the list of possible values.
       
      optional string log_level = 140582601;
      Parameters:
      value - The logLevel to set.
      Returns:
      This builder for chaining.
    • clearLogLevel

      
       Check the LogLevel enum for the list of possible values.
       
      optional string log_level = 140582601;
      Returns:
      This builder for chaining.
    • setLogLevelBytes

      public SecurityPolicyAdvancedOptionsConfig.Builder setLogLevelBytes(com.google.protobuf.ByteString value)
      
       Check the LogLevel enum for the list of possible values.
       
      optional string log_level = 140582601;
      Parameters:
      value - The bytes for logLevel to set.
      Returns:
      This builder for chaining.
    • hasRequestBodyInspectionSize

      public boolean hasRequestBodyInspectionSize()
       The maximum request size chosen by the customer with Waf enabled.
       Values supported are "8KB", "16KB, "32KB", "48KB" and "64KB".
       Values are case insensitive.
       
      optional string request_body_inspection_size = 191268607;
      Specified by:
      hasRequestBodyInspectionSize in interface SecurityPolicyAdvancedOptionsConfigOrBuilder
      Returns:
      Whether the requestBodyInspectionSize field is set.
    • getRequestBodyInspectionSize

      public String getRequestBodyInspectionSize()
       The maximum request size chosen by the customer with Waf enabled.
       Values supported are "8KB", "16KB, "32KB", "48KB" and "64KB".
       Values are case insensitive.
       
      optional string request_body_inspection_size = 191268607;
      Specified by:
      getRequestBodyInspectionSize in interface SecurityPolicyAdvancedOptionsConfigOrBuilder
      Returns:
      The requestBodyInspectionSize.
    • getRequestBodyInspectionSizeBytes

      public com.google.protobuf.ByteString getRequestBodyInspectionSizeBytes()
       The maximum request size chosen by the customer with Waf enabled.
       Values supported are "8KB", "16KB, "32KB", "48KB" and "64KB".
       Values are case insensitive.
       
      optional string request_body_inspection_size = 191268607;
      Specified by:
      getRequestBodyInspectionSizeBytes in interface SecurityPolicyAdvancedOptionsConfigOrBuilder
      Returns:
      The bytes for requestBodyInspectionSize.
    • setRequestBodyInspectionSize

      public SecurityPolicyAdvancedOptionsConfig.Builder setRequestBodyInspectionSize(String value)
       The maximum request size chosen by the customer with Waf enabled.
       Values supported are "8KB", "16KB, "32KB", "48KB" and "64KB".
       Values are case insensitive.
       
      optional string request_body_inspection_size = 191268607;
      Parameters:
      value - The requestBodyInspectionSize to set.
      Returns:
      This builder for chaining.
    • clearRequestBodyInspectionSize

      public SecurityPolicyAdvancedOptionsConfig.Builder clearRequestBodyInspectionSize()
       The maximum request size chosen by the customer with Waf enabled.
       Values supported are "8KB", "16KB, "32KB", "48KB" and "64KB".
       Values are case insensitive.
       
      optional string request_body_inspection_size = 191268607;
      Returns:
      This builder for chaining.
    • setRequestBodyInspectionSizeBytes

      public SecurityPolicyAdvancedOptionsConfig.Builder setRequestBodyInspectionSizeBytes(com.google.protobuf.ByteString value)
       The maximum request size chosen by the customer with Waf enabled.
       Values supported are "8KB", "16KB, "32KB", "48KB" and "64KB".
       Values are case insensitive.
       
      optional string request_body_inspection_size = 191268607;
      Parameters:
      value - The bytes for requestBodyInspectionSize to set.
      Returns:
      This builder for chaining.
    • getUserIpRequestHeadersList

      public com.google.protobuf.ProtocolStringList getUserIpRequestHeadersList()
       An optional list of case-insensitive request header names to use for
       resolving the callers client IP address.
       
      repeated string user_ip_request_headers = 421050290;
      Specified by:
      getUserIpRequestHeadersList in interface SecurityPolicyAdvancedOptionsConfigOrBuilder
      Returns:
      A list containing the userIpRequestHeaders.
    • getUserIpRequestHeadersCount

      public int getUserIpRequestHeadersCount()
       An optional list of case-insensitive request header names to use for
       resolving the callers client IP address.
       
      repeated string user_ip_request_headers = 421050290;
      Specified by:
      getUserIpRequestHeadersCount in interface SecurityPolicyAdvancedOptionsConfigOrBuilder
      Returns:
      The count of userIpRequestHeaders.
    • getUserIpRequestHeaders

      public String getUserIpRequestHeaders(int index)
       An optional list of case-insensitive request header names to use for
       resolving the callers client IP address.
       
      repeated string user_ip_request_headers = 421050290;
      Specified by:
      getUserIpRequestHeaders in interface SecurityPolicyAdvancedOptionsConfigOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The userIpRequestHeaders at the given index.
    • getUserIpRequestHeadersBytes

      public com.google.protobuf.ByteString getUserIpRequestHeadersBytes(int index)
       An optional list of case-insensitive request header names to use for
       resolving the callers client IP address.
       
      repeated string user_ip_request_headers = 421050290;
      Specified by:
      getUserIpRequestHeadersBytes in interface SecurityPolicyAdvancedOptionsConfigOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the userIpRequestHeaders at the given index.
    • setUserIpRequestHeaders

      public SecurityPolicyAdvancedOptionsConfig.Builder setUserIpRequestHeaders(int index, String value)
       An optional list of case-insensitive request header names to use for
       resolving the callers client IP address.
       
      repeated string user_ip_request_headers = 421050290;
      Parameters:
      index - The index to set the value at.
      value - The userIpRequestHeaders to set.
      Returns:
      This builder for chaining.
    • addUserIpRequestHeaders

      public SecurityPolicyAdvancedOptionsConfig.Builder addUserIpRequestHeaders(String value)
       An optional list of case-insensitive request header names to use for
       resolving the callers client IP address.
       
      repeated string user_ip_request_headers = 421050290;
      Parameters:
      value - The userIpRequestHeaders to add.
      Returns:
      This builder for chaining.
    • addAllUserIpRequestHeaders

      public SecurityPolicyAdvancedOptionsConfig.Builder addAllUserIpRequestHeaders(Iterable<String> values)
       An optional list of case-insensitive request header names to use for
       resolving the callers client IP address.
       
      repeated string user_ip_request_headers = 421050290;
      Parameters:
      values - The userIpRequestHeaders to add.
      Returns:
      This builder for chaining.
    • clearUserIpRequestHeaders

      public SecurityPolicyAdvancedOptionsConfig.Builder clearUserIpRequestHeaders()
       An optional list of case-insensitive request header names to use for
       resolving the callers client IP address.
       
      repeated string user_ip_request_headers = 421050290;
      Returns:
      This builder for chaining.
    • addUserIpRequestHeadersBytes

      public SecurityPolicyAdvancedOptionsConfig.Builder addUserIpRequestHeadersBytes(com.google.protobuf.ByteString value)
       An optional list of case-insensitive request header names to use for
       resolving the callers client IP address.
       
      repeated string user_ip_request_headers = 421050290;
      Parameters:
      value - The bytes of the userIpRequestHeaders to add.
      Returns:
      This builder for chaining.