Class CustomAPIHeaderKeyValue.Builder (0.37.0)

public static final class CustomAPIHeaderKeyValue.Builder extends GeneratedMessage.Builder<CustomAPIHeaderKeyValue.Builder> implements CustomAPIHeaderKeyValueOrBuilder

CustomAPIHeaderKeyValue defines dynamic headers key-values for Custom API.

Protobuf type google.cloud.chronicle.v1.CustomAPIHeaderKeyValue

Static Methods

getDescriptor()

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

Methods

build()

public CustomAPIHeaderKeyValue build()
Returns
Type Description
CustomAPIHeaderKeyValue

buildPartial()

public CustomAPIHeaderKeyValue buildPartial()
Returns
Type Description
CustomAPIHeaderKeyValue

clear()

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

clearKey()

public CustomAPIHeaderKeyValue.Builder clearKey()

Required. Enter the name of the HTTP Request header (e.g., Authorization or X-API-Key).

string key = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CustomAPIHeaderKeyValue.Builder

This builder for chaining.

clearValue()

public CustomAPIHeaderKeyValue.Builder clearValue()

Required. Enter the API Key, Bearer Token, or credential value associated with the header.

string value = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CustomAPIHeaderKeyValue.Builder

This builder for chaining.

getDefaultInstanceForType()

public CustomAPIHeaderKeyValue getDefaultInstanceForType()
Returns
Type Description
CustomAPIHeaderKeyValue

getDescriptorForType()

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

getKey()

public String getKey()

Required. Enter the name of the HTTP Request header (e.g., Authorization or X-API-Key).

string key = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The key.

getKeyBytes()

public ByteString getKeyBytes()

Required. Enter the name of the HTTP Request header (e.g., Authorization or X-API-Key).

string key = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for key.

getValue()

public String getValue()

Required. Enter the API Key, Bearer Token, or credential value associated with the header.

string value = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The value.

getValueBytes()

public ByteString getValueBytes()

Required. Enter the API Key, Bearer Token, or credential value associated with the header.

string value = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for value.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CustomAPIHeaderKeyValue other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setKey(String value)

public CustomAPIHeaderKeyValue.Builder setKey(String value)

Required. Enter the name of the HTTP Request header (e.g., Authorization or X-API-Key).

string key = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The key to set.

Returns
Type Description
CustomAPIHeaderKeyValue.Builder

This builder for chaining.

setKeyBytes(ByteString value)

public CustomAPIHeaderKeyValue.Builder setKeyBytes(ByteString value)

Required. Enter the name of the HTTP Request header (e.g., Authorization or X-API-Key).

string key = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for key to set.

Returns
Type Description
CustomAPIHeaderKeyValue.Builder

This builder for chaining.

setValue(String value)

public CustomAPIHeaderKeyValue.Builder setValue(String value)

Required. Enter the API Key, Bearer Token, or credential value associated with the header.

string value = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The value to set.

Returns
Type Description
CustomAPIHeaderKeyValue.Builder

This builder for chaining.

setValueBytes(ByteString value)

public CustomAPIHeaderKeyValue.Builder setValueBytes(ByteString value)

Required. Enter the API Key, Bearer Token, or credential value associated with the header.

string value = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for value to set.

Returns
Type Description
CustomAPIHeaderKeyValue.Builder

This builder for chaining.