Class DataAgentContext.Builder (0.11.0)

public static final class DataAgentContext.Builder extends GeneratedMessage.Builder<DataAgentContext.Builder> implements DataAgentContextOrBuilder

Context for the chat request using a data agent.

Protobuf type google.cloud.geminidataanalytics.v1beta.DataAgentContext

Static Methods

getDescriptor()

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

Methods

build()

public DataAgentContext build()
Returns
Type Description
DataAgentContext

buildPartial()

public DataAgentContext buildPartial()
Returns
Type Description
DataAgentContext

clear()

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

clearContextVersion()

public DataAgentContext.Builder clearContextVersion()

Optional. Version of context to be used by DCS (e.g. STAGING, PUBLISHED)

.google.cloud.geminidataanalytics.v1beta.DataAgentContext.ContextVersion context_version = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DataAgentContext.Builder

This builder for chaining.

clearCredentials()

public DataAgentContext.Builder clearCredentials()

Optional. The credentials to use when calling the Looker data source.

Currently supports both OAuth token and API key-based credentials, as described in Authentication with an SDK.

.google.cloud.geminidataanalytics.v1beta.Credentials credentials = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DataAgentContext.Builder

clearDataAgent()

public DataAgentContext.Builder clearDataAgent()

Required. The name of the data agent resource.

string data_agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
DataAgentContext.Builder

This builder for chaining.

getContextVersion()

public DataAgentContext.ContextVersion getContextVersion()

Optional. Version of context to be used by DCS (e.g. STAGING, PUBLISHED)

.google.cloud.geminidataanalytics.v1beta.DataAgentContext.ContextVersion context_version = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DataAgentContext.ContextVersion

The contextVersion.

getContextVersionValue()

public int getContextVersionValue()

Optional. Version of context to be used by DCS (e.g. STAGING, PUBLISHED)

.google.cloud.geminidataanalytics.v1beta.DataAgentContext.ContextVersion context_version = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for contextVersion.

getCredentials()

public Credentials getCredentials()

Optional. The credentials to use when calling the Looker data source.

Currently supports both OAuth token and API key-based credentials, as described in Authentication with an SDK.

.google.cloud.geminidataanalytics.v1beta.Credentials credentials = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Credentials

The credentials.

getCredentialsBuilder()

public Credentials.Builder getCredentialsBuilder()

Optional. The credentials to use when calling the Looker data source.

Currently supports both OAuth token and API key-based credentials, as described in Authentication with an SDK.

.google.cloud.geminidataanalytics.v1beta.Credentials credentials = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Credentials.Builder

getCredentialsOrBuilder()

public CredentialsOrBuilder getCredentialsOrBuilder()

Optional. The credentials to use when calling the Looker data source.

Currently supports both OAuth token and API key-based credentials, as described in Authentication with an SDK.

.google.cloud.geminidataanalytics.v1beta.Credentials credentials = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CredentialsOrBuilder

getDataAgent()

public String getDataAgent()

Required. The name of the data agent resource.

string data_agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The dataAgent.

getDataAgentBytes()

public ByteString getDataAgentBytes()

Required. The name of the data agent resource.

string data_agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for dataAgent.

getDefaultInstanceForType()

public DataAgentContext getDefaultInstanceForType()
Returns
Type Description
DataAgentContext

getDescriptorForType()

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

hasCredentials()

public boolean hasCredentials()

Optional. The credentials to use when calling the Looker data source.

Currently supports both OAuth token and API key-based credentials, as described in Authentication with an SDK.

.google.cloud.geminidataanalytics.v1beta.Credentials credentials = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the credentials field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCredentials(Credentials value)

public DataAgentContext.Builder mergeCredentials(Credentials value)

Optional. The credentials to use when calling the Looker data source.

Currently supports both OAuth token and API key-based credentials, as described in Authentication with an SDK.

.google.cloud.geminidataanalytics.v1beta.Credentials credentials = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Credentials
Returns
Type Description
DataAgentContext.Builder

mergeFrom(DataAgentContext other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setContextVersion(DataAgentContext.ContextVersion value)

public DataAgentContext.Builder setContextVersion(DataAgentContext.ContextVersion value)

Optional. Version of context to be used by DCS (e.g. STAGING, PUBLISHED)

.google.cloud.geminidataanalytics.v1beta.DataAgentContext.ContextVersion context_version = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value DataAgentContext.ContextVersion

The contextVersion to set.

Returns
Type Description
DataAgentContext.Builder

This builder for chaining.

setContextVersionValue(int value)

public DataAgentContext.Builder setContextVersionValue(int value)

Optional. Version of context to be used by DCS (e.g. STAGING, PUBLISHED)

.google.cloud.geminidataanalytics.v1beta.DataAgentContext.ContextVersion context_version = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

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

Returns
Type Description
DataAgentContext.Builder

This builder for chaining.

setCredentials(Credentials value)

public DataAgentContext.Builder setCredentials(Credentials value)

Optional. The credentials to use when calling the Looker data source.

Currently supports both OAuth token and API key-based credentials, as described in Authentication with an SDK.

.google.cloud.geminidataanalytics.v1beta.Credentials credentials = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Credentials
Returns
Type Description
DataAgentContext.Builder

setCredentials(Credentials.Builder builderForValue)

public DataAgentContext.Builder setCredentials(Credentials.Builder builderForValue)

Optional. The credentials to use when calling the Looker data source.

Currently supports both OAuth token and API key-based credentials, as described in Authentication with an SDK.

.google.cloud.geminidataanalytics.v1beta.Credentials credentials = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Credentials.Builder
Returns
Type Description
DataAgentContext.Builder

setDataAgent(String value)

public DataAgentContext.Builder setDataAgent(String value)

Required. The name of the data agent resource.

string data_agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The dataAgent to set.

Returns
Type Description
DataAgentContext.Builder

This builder for chaining.

setDataAgentBytes(ByteString value)

public DataAgentContext.Builder setDataAgentBytes(ByteString value)

Required. The name of the data agent resource.

string data_agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for dataAgent to set.

Returns
Type Description
DataAgentContext.Builder

This builder for chaining.