Class VulnerableHeaders.Header.Builder (2.18.0)

public static final class VulnerableHeaders.Header.Builder extends GeneratedMessageV3.Builder<VulnerableHeaders.Header.Builder> implements VulnerableHeaders.HeaderOrBuilder

Describes a HTTP Header.

Protobuf type google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public VulnerableHeaders.Header build()
Returns
TypeDescription
VulnerableHeaders.Header

buildPartial()

public VulnerableHeaders.Header buildPartial()
Returns
TypeDescription
VulnerableHeaders.Header

clear()

public VulnerableHeaders.Header.Builder clear()
Returns
TypeDescription
VulnerableHeaders.Header.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public VulnerableHeaders.Header.Builder clearName()

Header name.

string name = 1;

Returns
TypeDescription
VulnerableHeaders.Header.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearValue()

public VulnerableHeaders.Header.Builder clearValue()

Header value.

string value = 2;

Returns
TypeDescription
VulnerableHeaders.Header.Builder

This builder for chaining.

clone()

public VulnerableHeaders.Header.Builder clone()
Returns
TypeDescription
VulnerableHeaders.Header.Builder
Overrides

getDefaultInstanceForType()

public VulnerableHeaders.Header getDefaultInstanceForType()
Returns
TypeDescription
VulnerableHeaders.Header

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Header name.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Header name.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getValue()

public String getValue()

Header value.

string value = 2;

Returns
TypeDescription
String

The value.

getValueBytes()

public ByteString getValueBytes()

Header value.

string value = 2;

Returns
TypeDescription
ByteString

The bytes for value.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(VulnerableHeaders.Header other)

public VulnerableHeaders.Header.Builder mergeFrom(VulnerableHeaders.Header other)
Parameter
NameDescription
otherVulnerableHeaders.Header
Returns
TypeDescription
VulnerableHeaders.Header.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public VulnerableHeaders.Header.Builder setName(String value)

Header name.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
VulnerableHeaders.Header.Builder

This builder for chaining.

setNameBytes(ByteString value)

public VulnerableHeaders.Header.Builder setNameBytes(ByteString value)

Header name.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
VulnerableHeaders.Header.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setValue(String value)

public VulnerableHeaders.Header.Builder setValue(String value)

Header value.

string value = 2;

Parameter
NameDescription
valueString

The value to set.

Returns
TypeDescription
VulnerableHeaders.Header.Builder

This builder for chaining.

setValueBytes(ByteString value)

public VulnerableHeaders.Header.Builder setValueBytes(ByteString value)

Header value.

string value = 2;

Parameter
NameDescription
valueByteString

The bytes for value to set.

Returns
TypeDescription
VulnerableHeaders.Header.Builder

This builder for chaining.