Package com.google.cloud.dialogflow.v2
Class SummarizationContext.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SummarizationContext.Builder>
com.google.cloud.dialogflow.v2.SummarizationContext.Builder
- All Implemented Interfaces:
SummarizationContextOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SummarizationContext
public static final class SummarizationContext.Builder
extends com.google.protobuf.GeneratedMessage.Builder<SummarizationContext.Builder>
implements SummarizationContextOrBuilder
Summarization context that customer can configure.Protobuf type
google.cloud.dialogflow.v2.SummarizationContext-
Method Summary
Modifier and TypeMethodDescriptionaddAllFewShotExamples(Iterable<? extends FewShotExample> values) Optional.addAllSummarizationSections(Iterable<? extends SummarizationSection> values) Optional.addFewShotExamples(int index, FewShotExample value) Optional.addFewShotExamples(int index, FewShotExample.Builder builderForValue) Optional.addFewShotExamples(FewShotExample value) Optional.addFewShotExamples(FewShotExample.Builder builderForValue) Optional.Optional.addFewShotExamplesBuilder(int index) Optional.addSummarizationSections(int index, SummarizationSection value) Optional.addSummarizationSections(int index, SummarizationSection.Builder builderForValue) Optional.Optional.addSummarizationSections(SummarizationSection.Builder builderForValue) Optional.Optional.addSummarizationSectionsBuilder(int index) Optional.build()clear()Optional.Optional.Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetFewShotExamples(int index) Optional.getFewShotExamplesBuilder(int index) Optional.Optional.intOptional.Optional.getFewShotExamplesOrBuilder(int index) Optional.List<? extends FewShotExampleOrBuilder>Optional.Optional.com.google.protobuf.ByteStringOptional.getSummarizationSections(int index) Optional.getSummarizationSectionsBuilder(int index) Optional.Optional.intOptional.Optional.getSummarizationSectionsOrBuilder(int index) Optional.List<? extends SummarizationSectionOrBuilder>Optional.Optional.com.google.protobuf.ByteStringOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(SummarizationContext other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeFewShotExamples(int index) Optional.removeSummarizationSections(int index) Optional.setFewShotExamples(int index, FewShotExample value) Optional.setFewShotExamples(int index, FewShotExample.Builder builderForValue) Optional.setOutputLanguageCode(String value) Optional.setOutputLanguageCodeBytes(com.google.protobuf.ByteString value) Optional.setSummarizationSections(int index, SummarizationSection value) Optional.setSummarizationSections(int index, SummarizationSection.Builder builderForValue) Optional.setVersion(String value) Optional.setVersionBytes(com.google.protobuf.ByteString value) Optional.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<SummarizationContext.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<SummarizationContext.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<SummarizationContext.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<SummarizationContext.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SummarizationContext.Builder>
-
mergeFrom
public SummarizationContext.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<SummarizationContext.Builder>- Throws:
IOException
-
getSummarizationSectionsList
Optional. List of sections. Note it contains both predefined section sand customer defined sections.
repeated .google.cloud.dialogflow.v2.SummarizationSection summarization_sections = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSummarizationSectionsListin interfaceSummarizationContextOrBuilder
-
getSummarizationSectionsCount
public int getSummarizationSectionsCount()Optional. List of sections. Note it contains both predefined section sand customer defined sections.
repeated .google.cloud.dialogflow.v2.SummarizationSection summarization_sections = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSummarizationSectionsCountin interfaceSummarizationContextOrBuilder
-
getSummarizationSections
Optional. List of sections. Note it contains both predefined section sand customer defined sections.
repeated .google.cloud.dialogflow.v2.SummarizationSection summarization_sections = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSummarizationSectionsin interfaceSummarizationContextOrBuilder
-
setSummarizationSections
Optional. List of sections. Note it contains both predefined section sand customer defined sections.
repeated .google.cloud.dialogflow.v2.SummarizationSection summarization_sections = 1 [(.google.api.field_behavior) = OPTIONAL]; -
setSummarizationSections
public SummarizationContext.Builder setSummarizationSections(int index, SummarizationSection.Builder builderForValue) Optional. List of sections. Note it contains both predefined section sand customer defined sections.
repeated .google.cloud.dialogflow.v2.SummarizationSection summarization_sections = 1 [(.google.api.field_behavior) = OPTIONAL]; -
addSummarizationSections
Optional. List of sections. Note it contains both predefined section sand customer defined sections.
repeated .google.cloud.dialogflow.v2.SummarizationSection summarization_sections = 1 [(.google.api.field_behavior) = OPTIONAL]; -
addSummarizationSections
Optional. List of sections. Note it contains both predefined section sand customer defined sections.
repeated .google.cloud.dialogflow.v2.SummarizationSection summarization_sections = 1 [(.google.api.field_behavior) = OPTIONAL]; -
addSummarizationSections
public SummarizationContext.Builder addSummarizationSections(SummarizationSection.Builder builderForValue) Optional. List of sections. Note it contains both predefined section sand customer defined sections.
repeated .google.cloud.dialogflow.v2.SummarizationSection summarization_sections = 1 [(.google.api.field_behavior) = OPTIONAL]; -
addSummarizationSections
public SummarizationContext.Builder addSummarizationSections(int index, SummarizationSection.Builder builderForValue) Optional. List of sections. Note it contains both predefined section sand customer defined sections.
repeated .google.cloud.dialogflow.v2.SummarizationSection summarization_sections = 1 [(.google.api.field_behavior) = OPTIONAL]; -
addAllSummarizationSections
public SummarizationContext.Builder addAllSummarizationSections(Iterable<? extends SummarizationSection> values) Optional. List of sections. Note it contains both predefined section sand customer defined sections.
repeated .google.cloud.dialogflow.v2.SummarizationSection summarization_sections = 1 [(.google.api.field_behavior) = OPTIONAL]; -
clearSummarizationSections
Optional. List of sections. Note it contains both predefined section sand customer defined sections.
repeated .google.cloud.dialogflow.v2.SummarizationSection summarization_sections = 1 [(.google.api.field_behavior) = OPTIONAL]; -
removeSummarizationSections
Optional. List of sections. Note it contains both predefined section sand customer defined sections.
repeated .google.cloud.dialogflow.v2.SummarizationSection summarization_sections = 1 [(.google.api.field_behavior) = OPTIONAL]; -
getSummarizationSectionsBuilder
Optional. List of sections. Note it contains both predefined section sand customer defined sections.
repeated .google.cloud.dialogflow.v2.SummarizationSection summarization_sections = 1 [(.google.api.field_behavior) = OPTIONAL]; -
getSummarizationSectionsOrBuilder
Optional. List of sections. Note it contains both predefined section sand customer defined sections.
repeated .google.cloud.dialogflow.v2.SummarizationSection summarization_sections = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSummarizationSectionsOrBuilderin interfaceSummarizationContextOrBuilder
-
getSummarizationSectionsOrBuilderList
Optional. List of sections. Note it contains both predefined section sand customer defined sections.
repeated .google.cloud.dialogflow.v2.SummarizationSection summarization_sections = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSummarizationSectionsOrBuilderListin interfaceSummarizationContextOrBuilder
-
addSummarizationSectionsBuilder
Optional. List of sections. Note it contains both predefined section sand customer defined sections.
repeated .google.cloud.dialogflow.v2.SummarizationSection summarization_sections = 1 [(.google.api.field_behavior) = OPTIONAL]; -
addSummarizationSectionsBuilder
Optional. List of sections. Note it contains both predefined section sand customer defined sections.
repeated .google.cloud.dialogflow.v2.SummarizationSection summarization_sections = 1 [(.google.api.field_behavior) = OPTIONAL]; -
getSummarizationSectionsBuilderList
Optional. List of sections. Note it contains both predefined section sand customer defined sections.
repeated .google.cloud.dialogflow.v2.SummarizationSection summarization_sections = 1 [(.google.api.field_behavior) = OPTIONAL]; -
getFewShotExamplesList
Optional. List of few shot examples.
repeated .google.cloud.dialogflow.v2.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFewShotExamplesListin interfaceSummarizationContextOrBuilder
-
getFewShotExamplesCount
public int getFewShotExamplesCount()Optional. List of few shot examples.
repeated .google.cloud.dialogflow.v2.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFewShotExamplesCountin interfaceSummarizationContextOrBuilder
-
getFewShotExamples
Optional. List of few shot examples.
repeated .google.cloud.dialogflow.v2.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFewShotExamplesin interfaceSummarizationContextOrBuilder
-
setFewShotExamples
Optional. List of few shot examples.
repeated .google.cloud.dialogflow.v2.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL]; -
setFewShotExamples
public SummarizationContext.Builder setFewShotExamples(int index, FewShotExample.Builder builderForValue) Optional. List of few shot examples.
repeated .google.cloud.dialogflow.v2.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL]; -
addFewShotExamples
Optional. List of few shot examples.
repeated .google.cloud.dialogflow.v2.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL]; -
addFewShotExamples
Optional. List of few shot examples.
repeated .google.cloud.dialogflow.v2.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL]; -
addFewShotExamples
Optional. List of few shot examples.
repeated .google.cloud.dialogflow.v2.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL]; -
addFewShotExamples
public SummarizationContext.Builder addFewShotExamples(int index, FewShotExample.Builder builderForValue) Optional. List of few shot examples.
repeated .google.cloud.dialogflow.v2.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL]; -
addAllFewShotExamples
public SummarizationContext.Builder addAllFewShotExamples(Iterable<? extends FewShotExample> values) Optional. List of few shot examples.
repeated .google.cloud.dialogflow.v2.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL]; -
clearFewShotExamples
Optional. List of few shot examples.
repeated .google.cloud.dialogflow.v2.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL]; -
removeFewShotExamples
Optional. List of few shot examples.
repeated .google.cloud.dialogflow.v2.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getFewShotExamplesBuilder
Optional. List of few shot examples.
repeated .google.cloud.dialogflow.v2.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getFewShotExamplesOrBuilder
Optional. List of few shot examples.
repeated .google.cloud.dialogflow.v2.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFewShotExamplesOrBuilderin interfaceSummarizationContextOrBuilder
-
getFewShotExamplesOrBuilderList
Optional. List of few shot examples.
repeated .google.cloud.dialogflow.v2.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFewShotExamplesOrBuilderListin interfaceSummarizationContextOrBuilder
-
addFewShotExamplesBuilder
Optional. List of few shot examples.
repeated .google.cloud.dialogflow.v2.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL]; -
addFewShotExamplesBuilder
Optional. List of few shot examples.
repeated .google.cloud.dialogflow.v2.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getFewShotExamplesBuilderList
Optional. List of few shot examples.
repeated .google.cloud.dialogflow.v2.FewShotExample few_shot_examples = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getVersion
Optional. Version of the feature. If not set, default to latest version. Current candidates are ["1.0"].
string version = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getVersionin interfaceSummarizationContextOrBuilder- Returns:
- The version.
-
getVersionBytes
public com.google.protobuf.ByteString getVersionBytes()Optional. Version of the feature. If not set, default to latest version. Current candidates are ["1.0"].
string version = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getVersionBytesin interfaceSummarizationContextOrBuilder- Returns:
- The bytes for version.
-
setVersion
Optional. Version of the feature. If not set, default to latest version. Current candidates are ["1.0"].
string version = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The version to set.- Returns:
- This builder for chaining.
-
clearVersion
Optional. Version of the feature. If not set, default to latest version. Current candidates are ["1.0"].
string version = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setVersionBytes
Optional. Version of the feature. If not set, default to latest version. Current candidates are ["1.0"].
string version = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for version to set.- Returns:
- This builder for chaining.
-
getOutputLanguageCode
Optional. The target language of the generated summary. The language code for conversation will be used if this field is empty. Supported 2.0 and later versions.
string output_language_code = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getOutputLanguageCodein interfaceSummarizationContextOrBuilder- Returns:
- The outputLanguageCode.
-
getOutputLanguageCodeBytes
public com.google.protobuf.ByteString getOutputLanguageCodeBytes()Optional. The target language of the generated summary. The language code for conversation will be used if this field is empty. Supported 2.0 and later versions.
string output_language_code = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getOutputLanguageCodeBytesin interfaceSummarizationContextOrBuilder- Returns:
- The bytes for outputLanguageCode.
-
setOutputLanguageCode
Optional. The target language of the generated summary. The language code for conversation will be used if this field is empty. Supported 2.0 and later versions.
string output_language_code = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The outputLanguageCode to set.- Returns:
- This builder for chaining.
-
clearOutputLanguageCode
Optional. The target language of the generated summary. The language code for conversation will be used if this field is empty. Supported 2.0 and later versions.
string output_language_code = 6 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setOutputLanguageCodeBytes
public SummarizationContext.Builder setOutputLanguageCodeBytes(com.google.protobuf.ByteString value) Optional. The target language of the generated summary. The language code for conversation will be used if this field is empty. Supported 2.0 and later versions.
string output_language_code = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for outputLanguageCode to set.- Returns:
- This builder for chaining.
-