Class SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.Builder (1.93.0)

public static final class SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.Builder extends GeneratedMessage.Builder<SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.Builder> implements SecurityPolicyRuleHttpHeaderActionHttpHeaderOptionOrBuilder

Protobuf type google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderActionHttpHeaderOption

Static Methods

getDescriptor()

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

Methods

build()

public SecurityPolicyRuleHttpHeaderActionHttpHeaderOption build()
Returns
Type Description
SecurityPolicyRuleHttpHeaderActionHttpHeaderOption

buildPartial()

public SecurityPolicyRuleHttpHeaderActionHttpHeaderOption buildPartial()
Returns
Type Description
SecurityPolicyRuleHttpHeaderActionHttpHeaderOption

clear()

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

clearHeaderName()

public SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.Builder clearHeaderName()

The name of the header to set.

optional string header_name = 110223613;

Returns
Type Description
SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.Builder

This builder for chaining.

clearHeaderValue()

public SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.Builder clearHeaderValue()

The value to set the named header to.

optional string header_value = 203094335;

Returns
Type Description
SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.Builder

This builder for chaining.

getDefaultInstanceForType()

public SecurityPolicyRuleHttpHeaderActionHttpHeaderOption getDefaultInstanceForType()
Returns
Type Description
SecurityPolicyRuleHttpHeaderActionHttpHeaderOption

getDescriptorForType()

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

getHeaderName()

public String getHeaderName()

The name of the header to set.

optional string header_name = 110223613;

Returns
Type Description
String

The headerName.

getHeaderNameBytes()

public ByteString getHeaderNameBytes()

The name of the header to set.

optional string header_name = 110223613;

Returns
Type Description
ByteString

The bytes for headerName.

getHeaderValue()

public String getHeaderValue()

The value to set the named header to.

optional string header_value = 203094335;

Returns
Type Description
String

The headerValue.

getHeaderValueBytes()

public ByteString getHeaderValueBytes()

The value to set the named header to.

optional string header_value = 203094335;

Returns
Type Description
ByteString

The bytes for headerValue.

hasHeaderName()

public boolean hasHeaderName()

The name of the header to set.

optional string header_name = 110223613;

Returns
Type Description
boolean

Whether the headerName field is set.

hasHeaderValue()

public boolean hasHeaderValue()

The value to set the named header to.

optional string header_value = 203094335;

Returns
Type Description
boolean

Whether the headerValue field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SecurityPolicyRuleHttpHeaderActionHttpHeaderOption other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setHeaderName(String value)

public SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.Builder setHeaderName(String value)

The name of the header to set.

optional string header_name = 110223613;

Parameter
Name Description
value String

The headerName to set.

Returns
Type Description
SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.Builder

This builder for chaining.

setHeaderNameBytes(ByteString value)

public SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.Builder setHeaderNameBytes(ByteString value)

The name of the header to set.

optional string header_name = 110223613;

Parameter
Name Description
value ByteString

The bytes for headerName to set.

Returns
Type Description
SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.Builder

This builder for chaining.

setHeaderValue(String value)

public SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.Builder setHeaderValue(String value)

The value to set the named header to.

optional string header_value = 203094335;

Parameter
Name Description
value String

The headerValue to set.

Returns
Type Description
SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.Builder

This builder for chaining.

setHeaderValueBytes(ByteString value)

public SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.Builder setHeaderValueBytes(ByteString value)

The value to set the named header to.

optional string header_value = 203094335;

Parameter
Name Description
value ByteString

The bytes for headerValue to set.

Returns
Type Description
SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.Builder

This builder for chaining.