Class IngestContextReferencesRequest.Builder (4.89.0)

public static final class IngestContextReferencesRequest.Builder extends GeneratedMessage.Builder<IngestContextReferencesRequest.Builder> implements IngestContextReferencesRequestOrBuilder

The request message for [ConversationsService.IngestContextReferences][].

Protobuf type google.cloud.dialogflow.v2beta1.IngestContextReferencesRequest

Static Methods

getDescriptor()

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

Methods

build()

public IngestContextReferencesRequest build()
Returns
Type Description
IngestContextReferencesRequest

buildPartial()

public IngestContextReferencesRequest buildPartial()
Returns
Type Description
IngestContextReferencesRequest

clear()

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

clearContextReferences()

public IngestContextReferencesRequest.Builder clearContextReferences()
Returns
Type Description
IngestContextReferencesRequest.Builder

clearConversation()

public IngestContextReferencesRequest.Builder clearConversation()

Required. Resource identifier of the conversation to ingest context information for. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>.

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

Returns
Type Description
IngestContextReferencesRequest.Builder

This builder for chaining.

containsContextReferences(String key)

public boolean containsContextReferences(String key)

Required. The context references to ingest. The key is the name of the context reference and the value contains the contents of the context reference. The key is used to incorporate ingested context references to enhance the generator.

map<string, .google.cloud.dialogflow.v2beta1.Conversation.ContextReference> context_references = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
key String
Returns
Type Description
boolean

getContextReferences() (deprecated)

public Map<String,Conversation.ContextReference> getContextReferences()
Returns
Type Description
Map<String,ContextReference>

getContextReferencesCount()

public int getContextReferencesCount()

Required. The context references to ingest. The key is the name of the context reference and the value contains the contents of the context reference. The key is used to incorporate ingested context references to enhance the generator.

map<string, .google.cloud.dialogflow.v2beta1.Conversation.ContextReference> context_references = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getContextReferencesMap()

public Map<String,Conversation.ContextReference> getContextReferencesMap()

Required. The context references to ingest. The key is the name of the context reference and the value contains the contents of the context reference. The key is used to incorporate ingested context references to enhance the generator.

map<string, .google.cloud.dialogflow.v2beta1.Conversation.ContextReference> context_references = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Map<String,ContextReference>

getContextReferencesOrDefault(String key, Conversation.ContextReference defaultValue)

public Conversation.ContextReference getContextReferencesOrDefault(String key, Conversation.ContextReference defaultValue)

Required. The context references to ingest. The key is the name of the context reference and the value contains the contents of the context reference. The key is used to incorporate ingested context references to enhance the generator.

map<string, .google.cloud.dialogflow.v2beta1.Conversation.ContextReference> context_references = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
key String
defaultValue Conversation.ContextReference
Returns
Type Description
Conversation.ContextReference

getContextReferencesOrThrow(String key)

public Conversation.ContextReference getContextReferencesOrThrow(String key)

Required. The context references to ingest. The key is the name of the context reference and the value contains the contents of the context reference. The key is used to incorporate ingested context references to enhance the generator.

map<string, .google.cloud.dialogflow.v2beta1.Conversation.ContextReference> context_references = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
key String
Returns
Type Description
Conversation.ContextReference

getConversation()

public String getConversation()

Required. Resource identifier of the conversation to ingest context information for. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>.

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

Returns
Type Description
String

The conversation.

getConversationBytes()

public ByteString getConversationBytes()

Required. Resource identifier of the conversation to ingest context information for. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>.

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

Returns
Type Description
ByteString

The bytes for conversation.

getDefaultInstanceForType()

public IngestContextReferencesRequest getDefaultInstanceForType()
Returns
Type Description
IngestContextReferencesRequest

getDescriptorForType()

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

getMutableContextReferences() (deprecated)

public Map<String,Conversation.ContextReference> getMutableContextReferences()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,ContextReference>

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(IngestContextReferencesRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

putAllContextReferences(Map<String,Conversation.ContextReference> values)

public IngestContextReferencesRequest.Builder putAllContextReferences(Map<String,Conversation.ContextReference> values)

Required. The context references to ingest. The key is the name of the context reference and the value contains the contents of the context reference. The key is used to incorporate ingested context references to enhance the generator.

map<string, .google.cloud.dialogflow.v2beta1.Conversation.ContextReference> context_references = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Map<String,ContextReference>
Returns
Type Description
IngestContextReferencesRequest.Builder

putContextReferences(String key, Conversation.ContextReference value)

public IngestContextReferencesRequest.Builder putContextReferences(String key, Conversation.ContextReference value)

Required. The context references to ingest. The key is the name of the context reference and the value contains the contents of the context reference. The key is used to incorporate ingested context references to enhance the generator.

map<string, .google.cloud.dialogflow.v2beta1.Conversation.ContextReference> context_references = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
key String
value Conversation.ContextReference
Returns
Type Description
IngestContextReferencesRequest.Builder

putContextReferencesBuilderIfAbsent(String key)

public Conversation.ContextReference.Builder putContextReferencesBuilderIfAbsent(String key)

Required. The context references to ingest. The key is the name of the context reference and the value contains the contents of the context reference. The key is used to incorporate ingested context references to enhance the generator.

map<string, .google.cloud.dialogflow.v2beta1.Conversation.ContextReference> context_references = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
key String
Returns
Type Description
Conversation.ContextReference.Builder

removeContextReferences(String key)

public IngestContextReferencesRequest.Builder removeContextReferences(String key)

Required. The context references to ingest. The key is the name of the context reference and the value contains the contents of the context reference. The key is used to incorporate ingested context references to enhance the generator.

map<string, .google.cloud.dialogflow.v2beta1.Conversation.ContextReference> context_references = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
key String
Returns
Type Description
IngestContextReferencesRequest.Builder

setConversation(String value)

public IngestContextReferencesRequest.Builder setConversation(String value)

Required. Resource identifier of the conversation to ingest context information for. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>.

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

Parameter
Name Description
value String

The conversation to set.

Returns
Type Description
IngestContextReferencesRequest.Builder

This builder for chaining.

setConversationBytes(ByteString value)

public IngestContextReferencesRequest.Builder setConversationBytes(ByteString value)

Required. Resource identifier of the conversation to ingest context information for. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>.

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

Parameter
Name Description
value ByteString

The bytes for conversation to set.

Returns
Type Description
IngestContextReferencesRequest.Builder

This builder for chaining.