public static final class SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder extends GeneratedMessage.Builder<SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder> implements SecurityPolicyAdvancedOptionsConfigJsonCustomConfigOrBuilder Protobuf type
google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfig
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.BuilderStatic 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 |
StringThe 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 |
ByteStringThe bytes of the contentTypes to add. |
| Returns | |
|---|---|
| Type | Description |
SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder |
This builder for chaining. |
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 |
|
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. |
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 |
intThe 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 |
intThe 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 |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder |
|
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 |
intThe index to set the value at. |
value |
StringThe contentTypes to set. |
| Returns | |
|---|---|
| Type | Description |
SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder |
This builder for chaining. |