Package com.google.cloud.dialogflow.v2
Class Conversation.ContextReference.ContextContent.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Conversation.ContextReference.ContextContent.Builder>
com.google.cloud.dialogflow.v2.Conversation.ContextReference.ContextContent.Builder
- All Implemented Interfaces:
Conversation.ContextReference.ContextContentOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Conversation.ContextReference.ContextContent
public static final class Conversation.ContextReference.ContextContent.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Conversation.ContextReference.ContextContent.Builder>
implements Conversation.ContextReference.ContextContentOrBuilder
Contents ingested.Protobuf type
google.cloud.dialogflow.v2.Conversation.ContextReference.ContextContent-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()If the context content was generated from a tool call, specify the answer record associated with the tool call.Required.Required.Output only.If the context content was generated from a tool call, specify the answer record associated with the tool call.com.google.protobuf.ByteStringIf the context content was generated from a tool call, specify the answer record associated with the tool call.Required.com.google.protobuf.ByteStringRequired.Required.intRequired.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeIngestionTime(com.google.protobuf.Timestamp value) Output only.setAnswerRecord(String value) If the context content was generated from a tool call, specify the answer record associated with the tool call.setAnswerRecordBytes(com.google.protobuf.ByteString value) If the context content was generated from a tool call, specify the answer record associated with the tool call.setContent(String value) Required.setContentBytes(com.google.protobuf.ByteString value) Required.Required.setContentFormatValue(int value) Required.setIngestionTime(com.google.protobuf.Timestamp value) Output only.setIngestionTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.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, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, 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() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Conversation.ContextReference.ContextContent.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<Conversation.ContextReference.ContextContent.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<Conversation.ContextReference.ContextContent.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
public Conversation.ContextReference.ContextContent.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Conversation.ContextReference.ContextContent.Builder>
-
mergeFrom
public Conversation.ContextReference.ContextContent.Builder mergeFrom(Conversation.ContextReference.ContextContent other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Conversation.ContextReference.ContextContent.Builder>
-
mergeFrom
public Conversation.ContextReference.ContextContent.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<Conversation.ContextReference.ContextContent.Builder>- Throws:
IOException
-
getContent
Required. The information ingested in a single request.
string content = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getContentin interfaceConversation.ContextReference.ContextContentOrBuilder- Returns:
- The content.
-
getContentBytes
public com.google.protobuf.ByteString getContentBytes()Required. The information ingested in a single request.
string content = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getContentBytesin interfaceConversation.ContextReference.ContextContentOrBuilder- Returns:
- The bytes for content.
-
setContent
Required. The information ingested in a single request.
string content = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The content to set.- Returns:
- This builder for chaining.
-
clearContent
Required. The information ingested in a single request.
string content = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setContentBytes
public Conversation.ContextReference.ContextContent.Builder setContentBytes(com.google.protobuf.ByteString value) Required. The information ingested in a single request.
string content = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for content to set.- Returns:
- This builder for chaining.
-
getContentFormatValue
public int getContentFormatValue()Required. The format of the ingested string.
.google.cloud.dialogflow.v2.Conversation.ContextReference.ContextContent.ContentFormat content_format = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getContentFormatValuein interfaceConversation.ContextReference.ContextContentOrBuilder- Returns:
- The enum numeric value on the wire for contentFormat.
-
setContentFormatValue
Required. The format of the ingested string.
.google.cloud.dialogflow.v2.Conversation.ContextReference.ContextContent.ContentFormat content_format = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The enum numeric value on the wire for contentFormat to set.- Returns:
- This builder for chaining.
-
getContentFormat
Required. The format of the ingested string.
.google.cloud.dialogflow.v2.Conversation.ContextReference.ContextContent.ContentFormat content_format = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getContentFormatin interfaceConversation.ContextReference.ContextContentOrBuilder- Returns:
- The contentFormat.
-
setContentFormat
public Conversation.ContextReference.ContextContent.Builder setContentFormat(Conversation.ContextReference.ContextContent.ContentFormat value) Required. The format of the ingested string.
.google.cloud.dialogflow.v2.Conversation.ContextReference.ContextContent.ContentFormat content_format = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The contentFormat to set.- Returns:
- This builder for chaining.
-
clearContentFormat
Required. The format of the ingested string.
.google.cloud.dialogflow.v2.Conversation.ContextReference.ContextContent.ContentFormat content_format = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
hasIngestionTime
public boolean hasIngestionTime()Output only. The time when this information was incorporated into the relevant context reference.
.google.protobuf.Timestamp ingestion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasIngestionTimein interfaceConversation.ContextReference.ContextContentOrBuilder- Returns:
- Whether the ingestionTime field is set.
-
getIngestionTime
public com.google.protobuf.Timestamp getIngestionTime()Output only. The time when this information was incorporated into the relevant context reference.
.google.protobuf.Timestamp ingestion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getIngestionTimein interfaceConversation.ContextReference.ContextContentOrBuilder- Returns:
- The ingestionTime.
-
setIngestionTime
public Conversation.ContextReference.ContextContent.Builder setIngestionTime(com.google.protobuf.Timestamp value) Output only. The time when this information was incorporated into the relevant context reference.
.google.protobuf.Timestamp ingestion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setIngestionTime
public Conversation.ContextReference.ContextContent.Builder setIngestionTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only. The time when this information was incorporated into the relevant context reference.
.google.protobuf.Timestamp ingestion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeIngestionTime
public Conversation.ContextReference.ContextContent.Builder mergeIngestionTime(com.google.protobuf.Timestamp value) Output only. The time when this information was incorporated into the relevant context reference.
.google.protobuf.Timestamp ingestion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearIngestionTime
Output only. The time when this information was incorporated into the relevant context reference.
.google.protobuf.Timestamp ingestion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getIngestionTimeBuilder
public com.google.protobuf.Timestamp.Builder getIngestionTimeBuilder()Output only. The time when this information was incorporated into the relevant context reference.
.google.protobuf.Timestamp ingestion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getIngestionTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getIngestionTimeOrBuilder()Output only. The time when this information was incorporated into the relevant context reference.
.google.protobuf.Timestamp ingestion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getIngestionTimeOrBuilderin interfaceConversation.ContextReference.ContextContentOrBuilder
-
getAnswerRecord
If the context content was generated from a tool call, specify the answer record associated with the tool call. Format: `projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>`.
string answer_record = 4;- Specified by:
getAnswerRecordin interfaceConversation.ContextReference.ContextContentOrBuilder- Returns:
- The answerRecord.
-
getAnswerRecordBytes
public com.google.protobuf.ByteString getAnswerRecordBytes()If the context content was generated from a tool call, specify the answer record associated with the tool call. Format: `projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>`.
string answer_record = 4;- Specified by:
getAnswerRecordBytesin interfaceConversation.ContextReference.ContextContentOrBuilder- Returns:
- The bytes for answerRecord.
-
setAnswerRecord
If the context content was generated from a tool call, specify the answer record associated with the tool call. Format: `projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>`.
string answer_record = 4;- Parameters:
value- The answerRecord to set.- Returns:
- This builder for chaining.
-
clearAnswerRecord
If the context content was generated from a tool call, specify the answer record associated with the tool call. Format: `projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>`.
string answer_record = 4;- Returns:
- This builder for chaining.
-
setAnswerRecordBytes
public Conversation.ContextReference.ContextContent.Builder setAnswerRecordBytes(com.google.protobuf.ByteString value) If the context content was generated from a tool call, specify the answer record associated with the tool call. Format: `projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>`.
string answer_record = 4;- Parameters:
value- The bytes for answerRecord to set.- Returns:
- This builder for chaining.
-