Class IngestContextReferencesRequest.Builder (4.66.0)

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

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

Protobuf type google.cloud.dialogflow.v2.IngestContextReferencesRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public IngestContextReferencesRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
IngestContextReferencesRequest.Builder
Overrides

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.

clearField(Descriptors.FieldDescriptor field)

public IngestContextReferencesRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
IngestContextReferencesRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public IngestContextReferencesRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
IngestContextReferencesRequest.Builder
Overrides

clone()

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

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.v2.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.v2.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.v2.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.v2.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.v2.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 GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final IngestContextReferencesRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.v2.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.v2.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.v2.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.v2.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.

setField(Descriptors.FieldDescriptor field, Object value)

public IngestContextReferencesRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
IngestContextReferencesRequest.Builder
Overrides

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

public IngestContextReferencesRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
IngestContextReferencesRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final IngestContextReferencesRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
IngestContextReferencesRequest.Builder
Overrides