Class DataAgentContext.Builder (0.21.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.v1.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.v1.DataAgentContext.ContextVersion context_version = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DataAgentContext.Builder

This builder for chaining.

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.v1.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.v1.DataAgentContext.ContextVersion context_version = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for contextVersion.

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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.v1.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.v1.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.

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.