public static final class DataAgentContext.Builder extends GeneratedMessageV3.Builder<DataAgentContext.Builder> implements DataAgentContextOrBuilder
Context for the chat request using a data agent.
Protobuf type google.cloud.geminidataanalytics.v1beta.DataAgentContext
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > DataAgentContext.BuilderImplements
DataAgentContextOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DataAgentContext.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
DataAgentContext.Builder |
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 |
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. |
clearField(Descriptors.FieldDescriptor field)
public DataAgentContext.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
DataAgentContext.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public DataAgentContext.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
DataAgentContext.Builder |
clone()
public DataAgentContext.Builder clone()
Returns | |
---|---|
Type | Description |
DataAgentContext.Builder |
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 |
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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public DataAgentContext.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
DataAgentContext.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DataAgentContext.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
DataAgentContext.Builder |
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. |
setField(Descriptors.FieldDescriptor field, Object value)
public DataAgentContext.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
DataAgentContext.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DataAgentContext.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
DataAgentContext.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final DataAgentContext.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
DataAgentContext.Builder |