Package com.google.cloud.dialogflow.v2
Class SuggestConversationSummaryResponse.Summary.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SuggestConversationSummaryResponse.Summary.Builder>
com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.Builder
- All Implemented Interfaces:
SuggestConversationSummaryResponse.SummaryOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SuggestConversationSummaryResponse.Summary
public static final class SuggestConversationSummaryResponse.Summary.Builder
extends com.google.protobuf.GeneratedMessage.Builder<SuggestConversationSummaryResponse.Summary.Builder>
implements SuggestConversationSummaryResponse.SummaryOrBuilder
Generated summary for a conversation.Protobuf type
google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary-
Method Summary
Modifier and TypeMethodDescriptionaddAllSortedTextSections(Iterable<? extends SuggestConversationSummaryResponse.Summary.SummarySection> values) Same as text_sections, but in an order that is consistent with the order of the sections in the generator.Same as text_sections, but in an order that is consistent with the order of the sections in the generator.addSortedTextSections(int index, SuggestConversationSummaryResponse.Summary.SummarySection.Builder builderForValue) Same as text_sections, but in an order that is consistent with the order of the sections in the generator.Same as text_sections, but in an order that is consistent with the order of the sections in the generator.addSortedTextSections(SuggestConversationSummaryResponse.Summary.SummarySection.Builder builderForValue) Same as text_sections, but in an order that is consistent with the order of the sections in the generator.Same as text_sections, but in an order that is consistent with the order of the sections in the generator.addSortedTextSectionsBuilder(int index) Same as text_sections, but in an order that is consistent with the order of the sections in the generator.build()clear()The name of the answer record.The baseline model version used to generate this summary.Same as text_sections, but in an order that is consistent with the order of the sections in the generator.The summary content that is concatenated into one string.booleanThe summary content that is divided into sections.The name of the answer record.com.google.protobuf.ByteStringThe name of the answer record.The baseline model version used to generate this summary.com.google.protobuf.ByteStringThe baseline model version used to generate this summary.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.getSortedTextSections(int index) Same as text_sections, but in an order that is consistent with the order of the sections in the generator.getSortedTextSectionsBuilder(int index) Same as text_sections, but in an order that is consistent with the order of the sections in the generator.Same as text_sections, but in an order that is consistent with the order of the sections in the generator.intSame as text_sections, but in an order that is consistent with the order of the sections in the generator.Same as text_sections, but in an order that is consistent with the order of the sections in the generator.getSortedTextSectionsOrBuilder(int index) Same as text_sections, but in an order that is consistent with the order of the sections in the generator.Same as text_sections, but in an order that is consistent with the order of the sections in the generator.getText()The summary content that is concatenated into one string.com.google.protobuf.ByteStringThe summary content that is concatenated into one string.Deprecated.intThe summary content that is divided into sections.The summary content that is divided into sections.getTextSectionsOrDefault(String key, String defaultValue) The summary content that is divided into sections.The summary content that is divided into sections.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) putAllTextSections(Map<String, String> values) The summary content that is divided into sections.putTextSections(String key, String value) The summary content that is divided into sections.removeSortedTextSections(int index) Same as text_sections, but in an order that is consistent with the order of the sections in the generator.removeTextSections(String key) The summary content that is divided into sections.setAnswerRecord(String value) The name of the answer record.setAnswerRecordBytes(com.google.protobuf.ByteString value) The name of the answer record.setBaselineModelVersion(String value) The baseline model version used to generate this summary.setBaselineModelVersionBytes(com.google.protobuf.ByteString value) The baseline model version used to generate this summary.Same as text_sections, but in an order that is consistent with the order of the sections in the generator.setSortedTextSections(int index, SuggestConversationSummaryResponse.Summary.SummarySection.Builder builderForValue) Same as text_sections, but in an order that is consistent with the order of the sections in the generator.The summary content that is concatenated into one string.setTextBytes(com.google.protobuf.ByteString value) The summary content that is concatenated into one string.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<SuggestConversationSummaryResponse.Summary.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<SuggestConversationSummaryResponse.Summary.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<SuggestConversationSummaryResponse.Summary.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<SuggestConversationSummaryResponse.Summary.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<SuggestConversationSummaryResponse.Summary.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 SuggestConversationSummaryResponse.Summary.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SuggestConversationSummaryResponse.Summary.Builder>
-
mergeFrom
public SuggestConversationSummaryResponse.Summary.Builder mergeFrom(SuggestConversationSummaryResponse.Summary other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SuggestConversationSummaryResponse.Summary.Builder>
-
mergeFrom
public SuggestConversationSummaryResponse.Summary.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<SuggestConversationSummaryResponse.Summary.Builder>- Throws:
IOException
-
getText
The summary content that is concatenated into one string.
string text = 1;- Specified by:
getTextin interfaceSuggestConversationSummaryResponse.SummaryOrBuilder- Returns:
- The text.
-
getTextBytes
public com.google.protobuf.ByteString getTextBytes()The summary content that is concatenated into one string.
string text = 1;- Specified by:
getTextBytesin interfaceSuggestConversationSummaryResponse.SummaryOrBuilder- Returns:
- The bytes for text.
-
setText
The summary content that is concatenated into one string.
string text = 1;- Parameters:
value- The text to set.- Returns:
- This builder for chaining.
-
clearText
The summary content that is concatenated into one string.
string text = 1;- Returns:
- This builder for chaining.
-
setTextBytes
public SuggestConversationSummaryResponse.Summary.Builder setTextBytes(com.google.protobuf.ByteString value) The summary content that is concatenated into one string.
string text = 1;- Parameters:
value- The bytes for text to set.- Returns:
- This builder for chaining.
-
getTextSectionsCount
public int getTextSectionsCount()Description copied from interface:SuggestConversationSummaryResponse.SummaryOrBuilderThe summary content that is divided into sections. The key is the section's name and the value is the section's content. There is no specific format for the key or value.
map<string, string> text_sections = 4;- Specified by:
getTextSectionsCountin interfaceSuggestConversationSummaryResponse.SummaryOrBuilder
-
containsTextSections
The summary content that is divided into sections. The key is the section's name and the value is the section's content. There is no specific format for the key or value.
map<string, string> text_sections = 4;- Specified by:
containsTextSectionsin interfaceSuggestConversationSummaryResponse.SummaryOrBuilder
-
getTextSections
Deprecated.UsegetTextSectionsMap()instead.- Specified by:
getTextSectionsin interfaceSuggestConversationSummaryResponse.SummaryOrBuilder
-
getTextSectionsMap
The summary content that is divided into sections. The key is the section's name and the value is the section's content. There is no specific format for the key or value.
map<string, string> text_sections = 4;- Specified by:
getTextSectionsMapin interfaceSuggestConversationSummaryResponse.SummaryOrBuilder
-
getTextSectionsOrDefault
The summary content that is divided into sections. The key is the section's name and the value is the section's content. There is no specific format for the key or value.
map<string, string> text_sections = 4;- Specified by:
getTextSectionsOrDefaultin interfaceSuggestConversationSummaryResponse.SummaryOrBuilder
-
getTextSectionsOrThrow
The summary content that is divided into sections. The key is the section's name and the value is the section's content. There is no specific format for the key or value.
map<string, string> text_sections = 4;- Specified by:
getTextSectionsOrThrowin interfaceSuggestConversationSummaryResponse.SummaryOrBuilder
-
clearTextSections
-
removeTextSections
The summary content that is divided into sections. The key is the section's name and the value is the section's content. There is no specific format for the key or value.
map<string, string> text_sections = 4; -
getMutableTextSections
Deprecated.Use alternate mutation accessors instead. -
putTextSections
The summary content that is divided into sections. The key is the section's name and the value is the section's content. There is no specific format for the key or value.
map<string, string> text_sections = 4; -
putAllTextSections
public SuggestConversationSummaryResponse.Summary.Builder putAllTextSections(Map<String, String> values) The summary content that is divided into sections. The key is the section's name and the value is the section's content. There is no specific format for the key or value.
map<string, string> text_sections = 4; -
getSortedTextSectionsList
Same as text_sections, but in an order that is consistent with the order of the sections in the generator.
repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6;- Specified by:
getSortedTextSectionsListin interfaceSuggestConversationSummaryResponse.SummaryOrBuilder
-
getSortedTextSectionsCount
public int getSortedTextSectionsCount()Same as text_sections, but in an order that is consistent with the order of the sections in the generator.
repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6;- Specified by:
getSortedTextSectionsCountin interfaceSuggestConversationSummaryResponse.SummaryOrBuilder
-
getSortedTextSections
Same as text_sections, but in an order that is consistent with the order of the sections in the generator.
repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6;- Specified by:
getSortedTextSectionsin interfaceSuggestConversationSummaryResponse.SummaryOrBuilder
-
setSortedTextSections
public SuggestConversationSummaryResponse.Summary.Builder setSortedTextSections(int index, SuggestConversationSummaryResponse.Summary.SummarySection value) Same as text_sections, but in an order that is consistent with the order of the sections in the generator.
repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; -
setSortedTextSections
public SuggestConversationSummaryResponse.Summary.Builder setSortedTextSections(int index, SuggestConversationSummaryResponse.Summary.SummarySection.Builder builderForValue) Same as text_sections, but in an order that is consistent with the order of the sections in the generator.
repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; -
addSortedTextSections
public SuggestConversationSummaryResponse.Summary.Builder addSortedTextSections(SuggestConversationSummaryResponse.Summary.SummarySection value) Same as text_sections, but in an order that is consistent with the order of the sections in the generator.
repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; -
addSortedTextSections
public SuggestConversationSummaryResponse.Summary.Builder addSortedTextSections(int index, SuggestConversationSummaryResponse.Summary.SummarySection value) Same as text_sections, but in an order that is consistent with the order of the sections in the generator.
repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; -
addSortedTextSections
public SuggestConversationSummaryResponse.Summary.Builder addSortedTextSections(SuggestConversationSummaryResponse.Summary.SummarySection.Builder builderForValue) Same as text_sections, but in an order that is consistent with the order of the sections in the generator.
repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; -
addSortedTextSections
public SuggestConversationSummaryResponse.Summary.Builder addSortedTextSections(int index, SuggestConversationSummaryResponse.Summary.SummarySection.Builder builderForValue) Same as text_sections, but in an order that is consistent with the order of the sections in the generator.
repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; -
addAllSortedTextSections
public SuggestConversationSummaryResponse.Summary.Builder addAllSortedTextSections(Iterable<? extends SuggestConversationSummaryResponse.Summary.SummarySection> values) Same as text_sections, but in an order that is consistent with the order of the sections in the generator.
repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; -
clearSortedTextSections
Same as text_sections, but in an order that is consistent with the order of the sections in the generator.
repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; -
removeSortedTextSections
Same as text_sections, but in an order that is consistent with the order of the sections in the generator.
repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; -
getSortedTextSectionsBuilder
public SuggestConversationSummaryResponse.Summary.SummarySection.Builder getSortedTextSectionsBuilder(int index) Same as text_sections, but in an order that is consistent with the order of the sections in the generator.
repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; -
getSortedTextSectionsOrBuilder
public SuggestConversationSummaryResponse.Summary.SummarySectionOrBuilder getSortedTextSectionsOrBuilder(int index) Same as text_sections, but in an order that is consistent with the order of the sections in the generator.
repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6;- Specified by:
getSortedTextSectionsOrBuilderin interfaceSuggestConversationSummaryResponse.SummaryOrBuilder
-
getSortedTextSectionsOrBuilderList
public List<? extends SuggestConversationSummaryResponse.Summary.SummarySectionOrBuilder> getSortedTextSectionsOrBuilderList()Same as text_sections, but in an order that is consistent with the order of the sections in the generator.
repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6;- Specified by:
getSortedTextSectionsOrBuilderListin interfaceSuggestConversationSummaryResponse.SummaryOrBuilder
-
addSortedTextSectionsBuilder
public SuggestConversationSummaryResponse.Summary.SummarySection.Builder addSortedTextSectionsBuilder()Same as text_sections, but in an order that is consistent with the order of the sections in the generator.
repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; -
addSortedTextSectionsBuilder
public SuggestConversationSummaryResponse.Summary.SummarySection.Builder addSortedTextSectionsBuilder(int index) Same as text_sections, but in an order that is consistent with the order of the sections in the generator.
repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; -
getSortedTextSectionsBuilderList
public List<SuggestConversationSummaryResponse.Summary.SummarySection.Builder> getSortedTextSectionsBuilderList()Same as text_sections, but in an order that is consistent with the order of the sections in the generator.
repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; -
getAnswerRecord
The name of the answer record. Format: "projects/<Project ID>/answerRecords/<Answer Record ID>"
string answer_record = 3 [(.google.api.resource_reference) = { ... }- Specified by:
getAnswerRecordin interfaceSuggestConversationSummaryResponse.SummaryOrBuilder- Returns:
- The answerRecord.
-
getAnswerRecordBytes
public com.google.protobuf.ByteString getAnswerRecordBytes()The name of the answer record. Format: "projects/<Project ID>/answerRecords/<Answer Record ID>"
string answer_record = 3 [(.google.api.resource_reference) = { ... }- Specified by:
getAnswerRecordBytesin interfaceSuggestConversationSummaryResponse.SummaryOrBuilder- Returns:
- The bytes for answerRecord.
-
setAnswerRecord
The name of the answer record. Format: "projects/<Project ID>/answerRecords/<Answer Record ID>"
string answer_record = 3 [(.google.api.resource_reference) = { ... }- Parameters:
value- The answerRecord to set.- Returns:
- This builder for chaining.
-
clearAnswerRecord
The name of the answer record. Format: "projects/<Project ID>/answerRecords/<Answer Record ID>"
string answer_record = 3 [(.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setAnswerRecordBytes
public SuggestConversationSummaryResponse.Summary.Builder setAnswerRecordBytes(com.google.protobuf.ByteString value) The name of the answer record. Format: "projects/<Project ID>/answerRecords/<Answer Record ID>"
string answer_record = 3 [(.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for answerRecord to set.- Returns:
- This builder for chaining.
-
getBaselineModelVersion
The baseline model version used to generate this summary. It is empty if a baseline model was not used to generate this summary.
string baseline_model_version = 5;- Specified by:
getBaselineModelVersionin interfaceSuggestConversationSummaryResponse.SummaryOrBuilder- Returns:
- The baselineModelVersion.
-
getBaselineModelVersionBytes
public com.google.protobuf.ByteString getBaselineModelVersionBytes()The baseline model version used to generate this summary. It is empty if a baseline model was not used to generate this summary.
string baseline_model_version = 5;- Specified by:
getBaselineModelVersionBytesin interfaceSuggestConversationSummaryResponse.SummaryOrBuilder- Returns:
- The bytes for baselineModelVersion.
-
setBaselineModelVersion
The baseline model version used to generate this summary. It is empty if a baseline model was not used to generate this summary.
string baseline_model_version = 5;- Parameters:
value- The baselineModelVersion to set.- Returns:
- This builder for chaining.
-
clearBaselineModelVersion
The baseline model version used to generate this summary. It is empty if a baseline model was not used to generate this summary.
string baseline_model_version = 5;- Returns:
- This builder for chaining.
-
setBaselineModelVersionBytes
public SuggestConversationSummaryResponse.Summary.Builder setBaselineModelVersionBytes(com.google.protobuf.ByteString value) The baseline model version used to generate this summary. It is empty if a baseline model was not used to generate this summary.
string baseline_model_version = 5;- Parameters:
value- The bytes for baselineModelVersion to set.- Returns:
- This builder for chaining.
-