Class Header.Builder (2.31.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
TypeDescription
Descriptor

Methods

addAllValues(Iterable<String> values)

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

repeated string values = 2;

Parameter
NameDescription
valuesIterable<String>

The values to add.

Returns
TypeDescription
Header.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addValues(String value)

public Header.Builder addValues(String value)

repeated string values = 2;

Parameter
NameDescription
valueString

The values to add.

Returns
TypeDescription
Header.Builder

This builder for chaining.

addValuesBytes(ByteString value)

public Header.Builder addValuesBytes(ByteString value)

repeated string values = 2;

Parameter
NameDescription
valueByteString

The bytes of the values to add.

Returns
TypeDescription
Header.Builder

This builder for chaining.

build()

public Header build()
Returns
TypeDescription
Header

buildPartial()

public Header buildPartial()
Returns
TypeDescription
Header

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearKey()

public Header.Builder clearKey()

string key = 1;

Returns
TypeDescription
Header.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearValues()

public Header.Builder clearValues()

repeated string values = 2;

Returns
TypeDescription
Header.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public Header getDefaultInstanceForType()
Returns
TypeDescription
Header

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getKey()

public String getKey()

string key = 1;

Returns
TypeDescription
String

The key.

getKeyBytes()

public ByteString getKeyBytes()

string key = 1;

Returns
TypeDescription
ByteString

The bytes for key.

getValues(int index)

public String getValues(int index)

repeated string values = 2;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The values at the given index.

getValuesBytes(int index)

public ByteString getValuesBytes(int index)

repeated string values = 2;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the values at the given index.

getValuesCount()

public int getValuesCount()

repeated string values = 2;

Returns
TypeDescription
int

The count of values.

getValuesList()

public ProtocolStringList getValuesList()

repeated string values = 2;

Returns
TypeDescription
ProtocolStringList

A list containing the values.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Header other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setKey(String value)

public Header.Builder setKey(String value)

string key = 1;

Parameter
NameDescription
valueString

The key to set.

Returns
TypeDescription
Header.Builder

This builder for chaining.

setKeyBytes(ByteString value)

public Header.Builder setKeyBytes(ByteString value)

string key = 1;

Parameter
NameDescription
valueByteString

The bytes for key to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setValues(int index, String value)

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

repeated string values = 2;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The values to set.

Returns
TypeDescription
Header.Builder

This builder for chaining.