Class Header.Builder (2.49.0)

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

The http headers.

Protobuf type google.cloud.apigeeconnect.v1.Header

Implements

HeaderOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllValues(Iterable<String> values)

public Header.Builder addAllValues(Iterable<String> values)

repeated string values = 2;

Parameter
Name Description
values Iterable<String>

The values to add.

Returns
Type Description
Header.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addValues(String value)

public Header.Builder addValues(String value)

repeated string values = 2;

Parameter
Name Description
value String

The values to add.

Returns
Type Description
Header.Builder

This builder for chaining.

addValuesBytes(ByteString value)

public Header.Builder addValuesBytes(ByteString value)

repeated string values = 2;

Parameter
Name Description
value ByteString

The bytes of the values to add.

Returns
Type Description
Header.Builder

This builder for chaining.

build()

public Header build()
Returns
Type Description
Header

buildPartial()

public Header buildPartial()
Returns
Type Description
Header

clear()

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

clearField(Descriptors.FieldDescriptor field)

public Header.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Header.Builder
Overrides

clearKey()

public Header.Builder clearKey()

string key = 1;

Returns
Type Description
Header.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearValues()

public Header.Builder clearValues()

repeated string values = 2;

Returns
Type Description
Header.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public Header getDefaultInstanceForType()
Returns
Type Description
Header

getDescriptorForType()

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

getKey()

public String getKey()

string key = 1;

Returns
Type Description
String

The key.

getKeyBytes()

public ByteString getKeyBytes()

string key = 1;

Returns
Type Description
ByteString

The bytes for key.

getValues(int index)

public String getValues(int index)

repeated string values = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The values at the given index.

getValuesBytes(int index)

public ByteString getValuesBytes(int index)

repeated string values = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the values at the given index.

getValuesCount()

public int getValuesCount()

repeated string values = 2;

Returns
Type Description
int

The count of values.

getValuesList()

public ProtocolStringList getValuesList()

repeated string values = 2;

Returns
Type Description
ProtocolStringList

A list containing the values.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Header other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setKey(String value)

public Header.Builder setKey(String value)

string key = 1;

Parameter
Name Description
value String

The key to set.

Returns
Type Description
Header.Builder

This builder for chaining.

setKeyBytes(ByteString value)

public Header.Builder setKeyBytes(ByteString value)

string key = 1;

Parameter
Name Description
value ByteString

The bytes for key to set.

Returns
Type Description
Header.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setValues(int index, String value)

public Header.Builder setValues(int index, String value)

repeated string values = 2;

Parameters
Name Description
index int

The index to set the value at.

value String

The values to set.

Returns
Type Description
Header.Builder

This builder for chaining.