Package com.google.cloud.compute.v1
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 Summary
Modifier and TypeMethodDescriptionaddAllUserIpRequestHeaders(Iterable<String> values) An optional list of case-insensitive request header names to use for resolving the callers client IP address.addUserIpRequestHeaders(String value) An optional list of case-insensitive request header names to use for resolving the callers client IP address.addUserIpRequestHeadersBytes(com.google.protobuf.ByteString value) An optional list of case-insensitive request header names to use for resolving the callers client IP address.build()clear()Custom configuration to apply the JSON parsing.Check the JsonParsing enum for the list of possible values.Check the LogLevel enum for the list of possible values.The maximum request size chosen by the customer with Waf enabled.An optional list of case-insensitive request header names to use for resolving the callers client IP address.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorCustom configuration to apply the JSON parsing.Custom configuration to apply the JSON parsing.Custom configuration to apply the JSON parsing.Check the JsonParsing enum for the list of possible values.com.google.protobuf.ByteStringCheck the JsonParsing enum for the list of possible values.Check the LogLevel enum for the list of possible values.com.google.protobuf.ByteStringCheck the LogLevel enum for the list of possible values.The maximum request size chosen by the customer with Waf enabled.com.google.protobuf.ByteStringThe maximum request size chosen by the customer with Waf enabled.getUserIpRequestHeaders(int index) An optional list of case-insensitive request header names to use for resolving the callers client IP address.com.google.protobuf.ByteStringgetUserIpRequestHeadersBytes(int index) An optional list of case-insensitive request header names to use for resolving the callers client IP address.intAn optional list of case-insensitive request header names to use for resolving the callers client IP address.com.google.protobuf.ProtocolStringListAn optional list of case-insensitive request header names to use for resolving the callers client IP address.booleanCustom configuration to apply the JSON parsing.booleanCheck the JsonParsing enum for the list of possible values.booleanCheck the LogLevel enum for the list of possible values.booleanThe maximum request size chosen by the customer with Waf enabled.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Custom configuration to apply the JSON parsing.Custom configuration to apply the JSON parsing.Custom configuration to apply the JSON parsing.setJsonParsing(String value) Check the JsonParsing enum for the list of possible values.setJsonParsingBytes(com.google.protobuf.ByteString value) Check the JsonParsing enum for the list of possible values.setLogLevel(String value) Check the LogLevel enum for the list of possible values.setLogLevelBytes(com.google.protobuf.ByteString value) Check the LogLevel enum for the list of possible values.The maximum request size chosen by the customer with Waf enabled.setRequestBodyInspectionSizeBytes(com.google.protobuf.ByteString value) The maximum request size chosen by the customer with Waf enabled.setUserIpRequestHeaders(int index, String value) An optional list of case-insensitive request header names to use for resolving the callers client IP address.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<SecurityPolicyAdvancedOptionsConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<SecurityPolicyAdvancedOptionsConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<SecurityPolicyAdvancedOptionsConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SecurityPolicyAdvancedOptionsConfig.Builder>
-
mergeFrom
public SecurityPolicyAdvancedOptionsConfig.Builder mergeFrom(SecurityPolicyAdvancedOptionsConfig other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
hasJsonCustomConfigin interfaceSecurityPolicyAdvancedOptionsConfigOrBuilder- 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:
getJsonCustomConfigin interfaceSecurityPolicyAdvancedOptionsConfigOrBuilder- Returns:
- The jsonCustomConfig.
-
setJsonCustomConfig
public SecurityPolicyAdvancedOptionsConfig.Builder setJsonCustomConfig(SecurityPolicyAdvancedOptionsConfigJsonCustomConfig value) 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
public SecurityPolicyAdvancedOptionsConfig.Builder setJsonCustomConfig(SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder builderForValue) 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
public SecurityPolicyAdvancedOptionsConfig.Builder mergeJsonCustomConfig(SecurityPolicyAdvancedOptionsConfigJsonCustomConfig value) 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
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
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:
getJsonCustomConfigOrBuilderin interfaceSecurityPolicyAdvancedOptionsConfigOrBuilder
-
hasJsonParsing
public boolean hasJsonParsing()Check the JsonParsing enum for the list of possible values.
optional string json_parsing = 282493529;- Specified by:
hasJsonParsingin interfaceSecurityPolicyAdvancedOptionsConfigOrBuilder- Returns:
- Whether the jsonParsing field is set.
-
getJsonParsing
Check the JsonParsing enum for the list of possible values.
optional string json_parsing = 282493529;- Specified by:
getJsonParsingin interfaceSecurityPolicyAdvancedOptionsConfigOrBuilder- 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:
getJsonParsingBytesin interfaceSecurityPolicyAdvancedOptionsConfigOrBuilder- Returns:
- The bytes for jsonParsing.
-
setJsonParsing
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:
hasLogLevelin interfaceSecurityPolicyAdvancedOptionsConfigOrBuilder- Returns:
- Whether the logLevel field is set.
-
getLogLevel
Check the LogLevel enum for the list of possible values.
optional string log_level = 140582601;- Specified by:
getLogLevelin interfaceSecurityPolicyAdvancedOptionsConfigOrBuilder- 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:
getLogLevelBytesin interfaceSecurityPolicyAdvancedOptionsConfigOrBuilder- 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:
hasRequestBodyInspectionSizein interfaceSecurityPolicyAdvancedOptionsConfigOrBuilder- Returns:
- Whether the requestBodyInspectionSize field is set.
-
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:
getRequestBodyInspectionSizein interfaceSecurityPolicyAdvancedOptionsConfigOrBuilder- 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:
getRequestBodyInspectionSizeBytesin interfaceSecurityPolicyAdvancedOptionsConfigOrBuilder- Returns:
- The bytes for requestBodyInspectionSize.
-
setRequestBodyInspectionSize
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
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:
getUserIpRequestHeadersListin interfaceSecurityPolicyAdvancedOptionsConfigOrBuilder- 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:
getUserIpRequestHeadersCountin interfaceSecurityPolicyAdvancedOptionsConfigOrBuilder- Returns:
- The count of userIpRequestHeaders.
-
getUserIpRequestHeaders
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:
getUserIpRequestHeadersin interfaceSecurityPolicyAdvancedOptionsConfigOrBuilder- 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:
getUserIpRequestHeadersBytesin interfaceSecurityPolicyAdvancedOptionsConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the userIpRequestHeaders at the given index.
-
setUserIpRequestHeaders
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
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
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.
-