Class Tool.Authentication.ApiKeyConfig.Builder (0.50.0)

public static final class Tool.Authentication.ApiKeyConfig.Builder extends GeneratedMessageV3.Builder<Tool.Authentication.ApiKeyConfig.Builder> implements Tool.Authentication.ApiKeyConfigOrBuilder

Config for authentication with API key.

Protobuf type google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ApiKeyConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Tool.Authentication.ApiKeyConfig build()
Returns
TypeDescription
Tool.Authentication.ApiKeyConfig

buildPartial()

public Tool.Authentication.ApiKeyConfig buildPartial()
Returns
TypeDescription
Tool.Authentication.ApiKeyConfig

clear()

public Tool.Authentication.ApiKeyConfig.Builder clear()
Returns
TypeDescription
Tool.Authentication.ApiKeyConfig.Builder
Overrides

clearApiKey()

public Tool.Authentication.ApiKeyConfig.Builder clearApiKey()

Required. The API key.

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

Returns
TypeDescription
Tool.Authentication.ApiKeyConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Tool.Authentication.ApiKeyConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Tool.Authentication.ApiKeyConfig.Builder
Overrides

clearKeyName()

public Tool.Authentication.ApiKeyConfig.Builder clearKeyName()

Required. The parameter name or the header name of the API key. E.g., If the API request is "https://example.com/act?X-Api-Key=<API KEY>", "X-Api-Key" would be the parameter name.

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

Returns
TypeDescription
Tool.Authentication.ApiKeyConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Tool.Authentication.ApiKeyConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Tool.Authentication.ApiKeyConfig.Builder
Overrides

clearRequestLocation()

public Tool.Authentication.ApiKeyConfig.Builder clearRequestLocation()

Required. Key location in the request.

.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.RequestLocation request_location = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Tool.Authentication.ApiKeyConfig.Builder

This builder for chaining.

clone()

public Tool.Authentication.ApiKeyConfig.Builder clone()
Returns
TypeDescription
Tool.Authentication.ApiKeyConfig.Builder
Overrides

getApiKey()

public String getApiKey()

Required. The API key.

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

Returns
TypeDescription
String

The apiKey.

getApiKeyBytes()

public ByteString getApiKeyBytes()

Required. The API key.

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

Returns
TypeDescription
ByteString

The bytes for apiKey.

getDefaultInstanceForType()

public Tool.Authentication.ApiKeyConfig getDefaultInstanceForType()
Returns
TypeDescription
Tool.Authentication.ApiKeyConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getKeyName()

public String getKeyName()

Required. The parameter name or the header name of the API key. E.g., If the API request is "https://example.com/act?X-Api-Key=<API KEY>", "X-Api-Key" would be the parameter name.

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

Returns
TypeDescription
String

The keyName.

getKeyNameBytes()

public ByteString getKeyNameBytes()

Required. The parameter name or the header name of the API key. E.g., If the API request is "https://example.com/act?X-Api-Key=<API KEY>", "X-Api-Key" would be the parameter name.

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

Returns
TypeDescription
ByteString

The bytes for keyName.

getRequestLocation()

public Tool.Authentication.RequestLocation getRequestLocation()

Required. Key location in the request.

.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.RequestLocation request_location = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Tool.Authentication.RequestLocation

The requestLocation.

getRequestLocationValue()

public int getRequestLocationValue()

Required. Key location in the request.

.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.RequestLocation request_location = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The enum numeric value on the wire for requestLocation.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Tool.Authentication.ApiKeyConfig other)

public Tool.Authentication.ApiKeyConfig.Builder mergeFrom(Tool.Authentication.ApiKeyConfig other)
Parameter
NameDescription
otherTool.Authentication.ApiKeyConfig
Returns
TypeDescription
Tool.Authentication.ApiKeyConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Tool.Authentication.ApiKeyConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Tool.Authentication.ApiKeyConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Tool.Authentication.ApiKeyConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Tool.Authentication.ApiKeyConfig.Builder
Overrides

setApiKey(String value)

public Tool.Authentication.ApiKeyConfig.Builder setApiKey(String value)

Required. The API key.

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

Parameter
NameDescription
valueString

The apiKey to set.

Returns
TypeDescription
Tool.Authentication.ApiKeyConfig.Builder

This builder for chaining.

setApiKeyBytes(ByteString value)

public Tool.Authentication.ApiKeyConfig.Builder setApiKeyBytes(ByteString value)

Required. The API key.

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

Parameter
NameDescription
valueByteString

The bytes for apiKey to set.

Returns
TypeDescription
Tool.Authentication.ApiKeyConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setKeyName(String value)

public Tool.Authentication.ApiKeyConfig.Builder setKeyName(String value)

Required. The parameter name or the header name of the API key. E.g., If the API request is "https://example.com/act?X-Api-Key=<API KEY>", "X-Api-Key" would be the parameter name.

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

Parameter
NameDescription
valueString

The keyName to set.

Returns
TypeDescription
Tool.Authentication.ApiKeyConfig.Builder

This builder for chaining.

setKeyNameBytes(ByteString value)

public Tool.Authentication.ApiKeyConfig.Builder setKeyNameBytes(ByteString value)

Required. The parameter name or the header name of the API key. E.g., If the API request is "https://example.com/act?X-Api-Key=<API KEY>", "X-Api-Key" would be the parameter name.

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

Parameter
NameDescription
valueByteString

The bytes for keyName to set.

Returns
TypeDescription
Tool.Authentication.ApiKeyConfig.Builder

This builder for chaining.

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

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

setRequestLocation(Tool.Authentication.RequestLocation value)

public Tool.Authentication.ApiKeyConfig.Builder setRequestLocation(Tool.Authentication.RequestLocation value)

Required. Key location in the request.

.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.RequestLocation request_location = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueTool.Authentication.RequestLocation

The requestLocation to set.

Returns
TypeDescription
Tool.Authentication.ApiKeyConfig.Builder

This builder for chaining.

setRequestLocationValue(int value)

public Tool.Authentication.ApiKeyConfig.Builder setRequestLocationValue(int value)

Required. Key location in the request.

.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.RequestLocation request_location = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueint

The enum numeric value on the wire for requestLocation to set.

Returns
TypeDescription
Tool.Authentication.ApiKeyConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Tool.Authentication.ApiKeyConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Tool.Authentication.ApiKeyConfig.Builder
Overrides