Package com.google.cloud.dialogflow.v2
Class IngestContextReferencesRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<IngestContextReferencesRequest.Builder>
com.google.cloud.dialogflow.v2.IngestContextReferencesRequest.Builder
- All Implemented Interfaces:
IngestContextReferencesRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- IngestContextReferencesRequest
public static final class IngestContextReferencesRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<IngestContextReferencesRequest.Builder>
implements IngestContextReferencesRequestOrBuilder
The request message for [ConversationsService.IngestContextReferences][].Protobuf type
google.cloud.dialogflow.v2.IngestContextReferencesRequest-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Required.booleanRequired.Deprecated.intRequired.Required.getContextReferencesOrDefault(String key, Conversation.ContextReference defaultValue) Required.Required.Required.com.google.protobuf.ByteStringRequired.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Required.putContextReferences(String key, Conversation.ContextReference value) Required.Required.Required.setConversation(String value) Required.setConversationBytes(com.google.protobuf.ByteString value) Required.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<IngestContextReferencesRequest.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<IngestContextReferencesRequest.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<IngestContextReferencesRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<IngestContextReferencesRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<IngestContextReferencesRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<IngestContextReferencesRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<IngestContextReferencesRequest.Builder>
-
mergeFrom
public IngestContextReferencesRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<IngestContextReferencesRequest.Builder>- Throws:
IOException
-
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) = { ... }- Specified by:
getConversationin interfaceIngestContextReferencesRequestOrBuilder- Returns:
- The conversation.
-
getConversationBytes
public com.google.protobuf.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) = { ... }- Specified by:
getConversationBytesin interfaceIngestContextReferencesRequestOrBuilder- Returns:
- The bytes for conversation.
-
setConversation
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) = { ... }- Parameters:
value- The conversation to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setConversationBytes
public IngestContextReferencesRequest.Builder setConversationBytes(com.google.protobuf.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) = { ... }- Parameters:
value- The bytes for conversation to set.- Returns:
- This builder for chaining.
-
getContextReferencesCount
public int getContextReferencesCount()Description copied from interface:IngestContextReferencesRequestOrBuilderRequired. 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];- Specified by:
getContextReferencesCountin interfaceIngestContextReferencesRequestOrBuilder
-
containsContextReferences
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];- Specified by:
containsContextReferencesin interfaceIngestContextReferencesRequestOrBuilder
-
getContextReferences
Deprecated.UsegetContextReferencesMap()instead.- Specified by:
getContextReferencesin interfaceIngestContextReferencesRequestOrBuilder
-
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];- Specified by:
getContextReferencesMapin interfaceIngestContextReferencesRequestOrBuilder
-
getContextReferencesOrDefault
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];- Specified by:
getContextReferencesOrDefaultin interfaceIngestContextReferencesRequestOrBuilder
-
getContextReferencesOrThrow
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];- Specified by:
getContextReferencesOrThrowin interfaceIngestContextReferencesRequestOrBuilder
-
clearContextReferences
-
removeContextReferences
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]; -
getMutableContextReferences
Deprecated.Use alternate mutation accessors instead. -
putContextReferences
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]; -
putAllContextReferences
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]; -
putContextReferencesBuilderIfAbsent
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];
-