Class SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.Builder (1.45.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SecurityPolicyRuleHttpHeaderActionHttpHeaderOption build()
Returns
TypeDescription
SecurityPolicyRuleHttpHeaderActionHttpHeaderOption

buildPartial()

public SecurityPolicyRuleHttpHeaderActionHttpHeaderOption buildPartial()
Returns
TypeDescription
SecurityPolicyRuleHttpHeaderActionHttpHeaderOption

clear()

public SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.Builder clear()
Returns
TypeDescription
SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearHeaderName()

public SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.Builder clearHeaderName()

The name of the header to set.

optional string header_name = 110223613;

Returns
TypeDescription
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
TypeDescription
SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.Builder clone()
Returns
TypeDescription
SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.Builder
Overrides

getDefaultInstanceForType()

public SecurityPolicyRuleHttpHeaderActionHttpHeaderOption getDefaultInstanceForType()
Returns
TypeDescription
SecurityPolicyRuleHttpHeaderActionHttpHeaderOption

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getHeaderName()

public String getHeaderName()

The name of the header to set.

optional string header_name = 110223613;

Returns
TypeDescription
String

The headerName.

getHeaderNameBytes()

public ByteString getHeaderNameBytes()

The name of the header to set.

optional string header_name = 110223613;

Returns
TypeDescription
ByteString

The bytes for headerName.

getHeaderValue()

public String getHeaderValue()

The value to set the named header to.

optional string header_value = 203094335;

Returns
TypeDescription
String

The headerValue.

getHeaderValueBytes()

public ByteString getHeaderValueBytes()

The value to set the named header to.

optional string header_value = 203094335;

Returns
TypeDescription
ByteString

The bytes for headerValue.

hasHeaderName()

public boolean hasHeaderName()

The name of the header to set.

optional string header_name = 110223613;

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

Whether the headerValue field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SecurityPolicyRuleHttpHeaderActionHttpHeaderOption other)

public SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.Builder mergeFrom(SecurityPolicyRuleHttpHeaderActionHttpHeaderOption other)
Parameter
NameDescription
otherSecurityPolicyRuleHttpHeaderActionHttpHeaderOption
Returns
TypeDescription
SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The headerName to set.

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

The bytes for headerName to set.

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

The headerValue to set.

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

The bytes for headerValue to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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