Class SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.Builder (1.54.0)

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

Protobuf type google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderActionHttpHeaderOption

Inheritance

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

public SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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