Class SecurityPolicyAdvancedOptionsConfig.Builder (1.61.0)

public static final class SecurityPolicyAdvancedOptionsConfig.Builder extends GeneratedMessageV3.Builder<SecurityPolicyAdvancedOptionsConfig.Builder> implements SecurityPolicyAdvancedOptionsConfigOrBuilder

Protobuf type google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllUserIpRequestHeaders(Iterable<String> values)

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;

Parameter
Name Description
values Iterable<String>

The userIpRequestHeaders to add.

Returns
Type Description
SecurityPolicyAdvancedOptionsConfig.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SecurityPolicyAdvancedOptionsConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SecurityPolicyAdvancedOptionsConfig.Builder
Overrides

addUserIpRequestHeaders(String value)

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;

Parameter
Name Description
value String

The userIpRequestHeaders to add.

Returns
Type Description
SecurityPolicyAdvancedOptionsConfig.Builder

This builder for chaining.

addUserIpRequestHeadersBytes(ByteString value)

public SecurityPolicyAdvancedOptionsConfig.Builder addUserIpRequestHeadersBytes(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;

Parameter
Name Description
value ByteString

The bytes of the userIpRequestHeaders to add.

Returns
Type Description
SecurityPolicyAdvancedOptionsConfig.Builder

This builder for chaining.

build()

public SecurityPolicyAdvancedOptionsConfig build()
Returns
Type Description
SecurityPolicyAdvancedOptionsConfig

buildPartial()

public SecurityPolicyAdvancedOptionsConfig buildPartial()
Returns
Type Description
SecurityPolicyAdvancedOptionsConfig

clear()

public SecurityPolicyAdvancedOptionsConfig.Builder clear()
Returns
Type Description
SecurityPolicyAdvancedOptionsConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public SecurityPolicyAdvancedOptionsConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SecurityPolicyAdvancedOptionsConfig.Builder
Overrides

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;

Returns
Type Description
SecurityPolicyAdvancedOptionsConfig.Builder

clearJsonParsing()

public SecurityPolicyAdvancedOptionsConfig.Builder clearJsonParsing()

Check the JsonParsing enum for the list of possible values.

optional string json_parsing = 282493529;

Returns
Type Description
SecurityPolicyAdvancedOptionsConfig.Builder

This builder for chaining.

clearLogLevel()

public SecurityPolicyAdvancedOptionsConfig.Builder clearLogLevel()

Check the LogLevel enum for the list of possible values.

optional string log_level = 140582601;

Returns
Type Description
SecurityPolicyAdvancedOptionsConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SecurityPolicyAdvancedOptionsConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SecurityPolicyAdvancedOptionsConfig.Builder
Overrides

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
Type Description
SecurityPolicyAdvancedOptionsConfig.Builder

This builder for chaining.

clone()

public SecurityPolicyAdvancedOptionsConfig.Builder clone()
Returns
Type Description
SecurityPolicyAdvancedOptionsConfig.Builder
Overrides

getDefaultInstanceForType()

public SecurityPolicyAdvancedOptionsConfig getDefaultInstanceForType()
Returns
Type Description
SecurityPolicyAdvancedOptionsConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getJsonCustomConfig()

public SecurityPolicyAdvancedOptionsConfigJsonCustomConfig 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;

Returns
Type Description
SecurityPolicyAdvancedOptionsConfigJsonCustomConfig

The jsonCustomConfig.

getJsonCustomConfigBuilder()

public SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder 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;

Returns
Type Description
SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder

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;

Returns
Type Description
SecurityPolicyAdvancedOptionsConfigJsonCustomConfigOrBuilder

getJsonParsing()

public String getJsonParsing()

Check the JsonParsing enum for the list of possible values.

optional string json_parsing = 282493529;

Returns
Type Description
String

The jsonParsing.

getJsonParsingBytes()

public ByteString getJsonParsingBytes()

Check the JsonParsing enum for the list of possible values.

optional string json_parsing = 282493529;

Returns
Type Description
ByteString

The bytes for jsonParsing.

getLogLevel()

public String getLogLevel()

Check the LogLevel enum for the list of possible values.

optional string log_level = 140582601;

Returns
Type Description
String

The logLevel.

getLogLevelBytes()

public ByteString getLogLevelBytes()

Check the LogLevel enum for the list of possible values.

optional string log_level = 140582601;

Returns
Type Description
ByteString

The bytes for logLevel.

getUserIpRequestHeaders(int index)

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;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The userIpRequestHeaders at the given index.

getUserIpRequestHeadersBytes(int index)

public 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;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the userIpRequestHeaders at the given index.

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;

Returns
Type Description
int

The count of userIpRequestHeaders.

getUserIpRequestHeadersList()

public 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;

Returns
Type Description
ProtocolStringList

A list containing the userIpRequestHeaders.

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;

Returns
Type Description
boolean

Whether the jsonCustomConfig field is set.

hasJsonParsing()

public boolean hasJsonParsing()

Check the JsonParsing enum for the list of possible values.

optional string json_parsing = 282493529;

Returns
Type Description
boolean

Whether the jsonParsing field is set.

hasLogLevel()

public boolean hasLogLevel()

Check the LogLevel enum for the list of possible values.

optional string log_level = 140582601;

Returns
Type Description
boolean

Whether the logLevel field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SecurityPolicyAdvancedOptionsConfig other)

public SecurityPolicyAdvancedOptionsConfig.Builder mergeFrom(SecurityPolicyAdvancedOptionsConfig other)
Parameter
Name Description
other SecurityPolicyAdvancedOptionsConfig
Returns
Type Description
SecurityPolicyAdvancedOptionsConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SecurityPolicyAdvancedOptionsConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SecurityPolicyAdvancedOptionsConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SecurityPolicyAdvancedOptionsConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SecurityPolicyAdvancedOptionsConfig.Builder
Overrides

mergeJsonCustomConfig(SecurityPolicyAdvancedOptionsConfigJsonCustomConfig value)

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;

Parameter
Name Description
value SecurityPolicyAdvancedOptionsConfigJsonCustomConfig
Returns
Type Description
SecurityPolicyAdvancedOptionsConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SecurityPolicyAdvancedOptionsConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SecurityPolicyAdvancedOptionsConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public SecurityPolicyAdvancedOptionsConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SecurityPolicyAdvancedOptionsConfig.Builder
Overrides

setJsonCustomConfig(SecurityPolicyAdvancedOptionsConfigJsonCustomConfig value)

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;

Parameter
Name Description
value SecurityPolicyAdvancedOptionsConfigJsonCustomConfig
Returns
Type Description
SecurityPolicyAdvancedOptionsConfig.Builder

setJsonCustomConfig(SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder builderForValue)

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;

Parameter
Name Description
builderForValue SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder
Returns
Type Description
SecurityPolicyAdvancedOptionsConfig.Builder

setJsonParsing(String value)

public SecurityPolicyAdvancedOptionsConfig.Builder setJsonParsing(String value)

Check the JsonParsing enum for the list of possible values.

optional string json_parsing = 282493529;

Parameter
Name Description
value String

The jsonParsing to set.

Returns
Type Description
SecurityPolicyAdvancedOptionsConfig.Builder

This builder for chaining.

setJsonParsingBytes(ByteString value)

public SecurityPolicyAdvancedOptionsConfig.Builder setJsonParsingBytes(ByteString value)

Check the JsonParsing enum for the list of possible values.

optional string json_parsing = 282493529;

Parameter
Name Description
value ByteString

The bytes for jsonParsing to set.

Returns
Type Description
SecurityPolicyAdvancedOptionsConfig.Builder

This builder for chaining.

setLogLevel(String value)

public SecurityPolicyAdvancedOptionsConfig.Builder setLogLevel(String value)

Check the LogLevel enum for the list of possible values.

optional string log_level = 140582601;

Parameter
Name Description
value String

The logLevel to set.

Returns
Type Description
SecurityPolicyAdvancedOptionsConfig.Builder

This builder for chaining.

setLogLevelBytes(ByteString value)

public SecurityPolicyAdvancedOptionsConfig.Builder setLogLevelBytes(ByteString value)

Check the LogLevel enum for the list of possible values.

optional string log_level = 140582601;

Parameter
Name Description
value ByteString

The bytes for logLevel to set.

Returns
Type Description
SecurityPolicyAdvancedOptionsConfig.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SecurityPolicyAdvancedOptionsConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SecurityPolicyAdvancedOptionsConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SecurityPolicyAdvancedOptionsConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SecurityPolicyAdvancedOptionsConfig.Builder
Overrides

setUserIpRequestHeaders(int index, String value)

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
Name Description
index int

The index to set the value at.

value String

The userIpRequestHeaders to set.

Returns
Type Description
SecurityPolicyAdvancedOptionsConfig.Builder

This builder for chaining.