public static final class CustomAPIHeaderKeyValue.Builder extends GeneratedMessage.Builder<CustomAPIHeaderKeyValue.Builder> implements CustomAPIHeaderKeyValueOrBuilderCustomAPIHeaderKeyValue defines dynamic headers key-values for Custom API.
Protobuf type google.cloud.chronicle.v1.CustomAPIHeaderKeyValue
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > CustomAPIHeaderKeyValue.BuilderImplements
CustomAPIHeaderKeyValueOrBuilderStatic 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 |
|
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 |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CustomAPIHeaderKeyValue.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CustomAPIHeaderKeyValue.Builder |
|
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 |
StringThe 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 |
ByteStringThe 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 |
StringThe 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 |
ByteStringThe bytes for value to set. |
| Returns | |
|---|---|
| Type | Description |
CustomAPIHeaderKeyValue.Builder |
This builder for chaining. |