Class SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder (1.24.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
TypeDescription
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
NameDescription
valuesIterable<String>

The contentTypes to add.

Returns
TypeDescription
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
NameDescription
valueString

The contentTypes to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the contentTypes to add.

Returns
TypeDescription
SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder
Overrides

build()

public SecurityPolicyAdvancedOptionsConfigJsonCustomConfig build()
Returns
TypeDescription
SecurityPolicyAdvancedOptionsConfigJsonCustomConfig

buildPartial()

public SecurityPolicyAdvancedOptionsConfigJsonCustomConfig buildPartial()
Returns
TypeDescription
SecurityPolicyAdvancedOptionsConfigJsonCustomConfig

clear()

public SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder clear()
Returns
TypeDescription
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
TypeDescription
SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder
Overrides

clone()

public SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the contentTypes.

getDefaultInstanceForType()

public SecurityPolicyAdvancedOptionsConfigJsonCustomConfig getDefaultInstanceForType()
Returns
TypeDescription
SecurityPolicyAdvancedOptionsConfigJsonCustomConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SecurityPolicyAdvancedOptionsConfigJsonCustomConfig other)

public SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder mergeFrom(SecurityPolicyAdvancedOptionsConfigJsonCustomConfig other)
Parameter
NameDescription
otherSecurityPolicyAdvancedOptionsConfigJsonCustomConfig
Returns
TypeDescription
SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The contentTypes to set.

Returns
TypeDescription
SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder
Overrides

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

public SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder
Overrides