Class SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder (1.53.0)

public static final class SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder extends GeneratedMessageV3.Builder<SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder> implements SecurityPolicyAdvancedOptionsConfigJsonCustomConfigOrBuilder

Protobuf type google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfig

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder

Static Methods

getDescriptor()

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

Methods

addAllContentTypes(Iterable<String> values)

public SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder addAllContentTypes(Iterable<String> values)

A list of custom Content-Type header values to apply the JSON parsing. As per RFC 1341, a Content-Type header value has the following format: Content-Type := type "/" subtype *[";" parameter] When configuring a custom Content-Type header value, only the type/subtype needs to be specified, and the parameters should be excluded.

repeated string content_types = 17428787;

Parameter
Name Description
values Iterable<String>

The contentTypes to add.

Returns
Type Description
SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder

This builder for chaining.

addContentTypes(String value)

public SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder addContentTypes(String value)

A list of custom Content-Type header values to apply the JSON parsing. As per RFC 1341, a Content-Type header value has the following format: Content-Type := type "/" subtype *[";" parameter] When configuring a custom Content-Type header value, only the type/subtype needs to be specified, and the parameters should be excluded.

repeated string content_types = 17428787;

Parameter
Name Description
value String

The contentTypes to add.

Returns
Type Description
SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder

This builder for chaining.

addContentTypesBytes(ByteString value)

public SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder addContentTypesBytes(ByteString value)

A list of custom Content-Type header values to apply the JSON parsing. As per RFC 1341, a Content-Type header value has the following format: Content-Type := type "/" subtype *[";" parameter] When configuring a custom Content-Type header value, only the type/subtype needs to be specified, and the parameters should be excluded.

repeated string content_types = 17428787;

Parameter
Name Description
value ByteString

The bytes of the contentTypes to add.

Returns
Type Description
SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SecurityPolicyAdvancedOptionsConfigJsonCustomConfig build()
Returns
Type Description
SecurityPolicyAdvancedOptionsConfigJsonCustomConfig

buildPartial()

public SecurityPolicyAdvancedOptionsConfigJsonCustomConfig buildPartial()
Returns
Type Description
SecurityPolicyAdvancedOptionsConfigJsonCustomConfig

clear()

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

clearContentTypes()

public SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder clearContentTypes()

A list of custom Content-Type header values to apply the JSON parsing. As per RFC 1341, a Content-Type header value has the following format: Content-Type := type "/" subtype *[";" parameter] When configuring a custom Content-Type header value, only the type/subtype needs to be specified, and the parameters should be excluded.

repeated string content_types = 17428787;

Returns
Type Description
SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getContentTypes(int index)

public String getContentTypes(int index)

A list of custom Content-Type header values to apply the JSON parsing. As per RFC 1341, a Content-Type header value has the following format: Content-Type := type "/" subtype *[";" parameter] When configuring a custom Content-Type header value, only the type/subtype needs to be specified, and the parameters should be excluded.

repeated string content_types = 17428787;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The contentTypes at the given index.

getContentTypesBytes(int index)

public ByteString getContentTypesBytes(int index)

A list of custom Content-Type header values to apply the JSON parsing. As per RFC 1341, a Content-Type header value has the following format: Content-Type := type "/" subtype *[";" parameter] When configuring a custom Content-Type header value, only the type/subtype needs to be specified, and the parameters should be excluded.

repeated string content_types = 17428787;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the contentTypes at the given index.

getContentTypesCount()

public int getContentTypesCount()

A list of custom Content-Type header values to apply the JSON parsing. As per RFC 1341, a Content-Type header value has the following format: Content-Type := type "/" subtype *[";" parameter] When configuring a custom Content-Type header value, only the type/subtype needs to be specified, and the parameters should be excluded.

repeated string content_types = 17428787;

Returns
Type Description
int

The count of contentTypes.

getContentTypesList()

public ProtocolStringList getContentTypesList()

A list of custom Content-Type header values to apply the JSON parsing. As per RFC 1341, a Content-Type header value has the following format: Content-Type := type "/" subtype *[";" parameter] When configuring a custom Content-Type header value, only the type/subtype needs to be specified, and the parameters should be excluded.

repeated string content_types = 17428787;

Returns
Type Description
ProtocolStringList

A list containing the contentTypes.

getDefaultInstanceForType()

public SecurityPolicyAdvancedOptionsConfigJsonCustomConfig getDefaultInstanceForType()
Returns
Type Description
SecurityPolicyAdvancedOptionsConfigJsonCustomConfig

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SecurityPolicyAdvancedOptionsConfigJsonCustomConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setContentTypes(int index, String value)

public SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder setContentTypes(int index, String value)

A list of custom Content-Type header values to apply the JSON parsing. As per RFC 1341, a Content-Type header value has the following format: Content-Type := type "/" subtype *[";" parameter] When configuring a custom Content-Type header value, only the type/subtype needs to be specified, and the parameters should be excluded.

repeated string content_types = 17428787;

Parameters
Name Description
index int

The index to set the value at.

value String

The contentTypes to set.

Returns
Type Description
SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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