Package com.google.cloud.dialogflow.v2
Class SummarizationSection.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SummarizationSection.Builder>
com.google.cloud.dialogflow.v2.SummarizationSection.Builder
- All Implemented Interfaces:
SummarizationSectionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SummarizationSection
public static final class SummarizationSection.Builder
extends com.google.protobuf.GeneratedMessage.Builder<SummarizationSection.Builder>
implements SummarizationSectionOrBuilder
Represents the section of summarization.Protobuf type
google.cloud.dialogflow.v2.SummarizationSection-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.clearKey()Optional.Optional.Optional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetKey()Optional.com.google.protobuf.ByteStringOptional.getType()Optional.intOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(SummarizationSection other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setDefinition(String value) Optional.setDefinitionBytes(com.google.protobuf.ByteString value) Optional.Optional.setKeyBytes(com.google.protobuf.ByteString value) Optional.setType(SummarizationSection.Type value) Optional.setTypeValue(int 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<SummarizationSection.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<SummarizationSection.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<SummarizationSection.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<SummarizationSection.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SummarizationSection.Builder>
-
mergeFrom
public SummarizationSection.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<SummarizationSection.Builder>- Throws:
IOException
-
getKey
Optional. Name of the section, for example, "situation".
string key = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getKeyin interfaceSummarizationSectionOrBuilder- Returns:
- The key.
-
getKeyBytes
public com.google.protobuf.ByteString getKeyBytes()Optional. Name of the section, for example, "situation".
string key = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getKeyBytesin interfaceSummarizationSectionOrBuilder- Returns:
- The bytes for key.
-
setKey
Optional. Name of the section, for example, "situation".
string key = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The key to set.- Returns:
- This builder for chaining.
-
clearKey
Optional. Name of the section, for example, "situation".
string key = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setKeyBytes
Optional. Name of the section, for example, "situation".
string key = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for key to set.- Returns:
- This builder for chaining.
-
getDefinition
Optional. Definition of the section, for example, "what the customer needs help with or has question about."
string definition = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDefinitionin interfaceSummarizationSectionOrBuilder- Returns:
- The definition.
-
getDefinitionBytes
public com.google.protobuf.ByteString getDefinitionBytes()Optional. Definition of the section, for example, "what the customer needs help with or has question about."
string definition = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDefinitionBytesin interfaceSummarizationSectionOrBuilder- Returns:
- The bytes for definition.
-
setDefinition
Optional. Definition of the section, for example, "what the customer needs help with or has question about."
string definition = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The definition to set.- Returns:
- This builder for chaining.
-
clearDefinition
Optional. Definition of the section, for example, "what the customer needs help with or has question about."
string definition = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setDefinitionBytes
Optional. Definition of the section, for example, "what the customer needs help with or has question about."
string definition = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for definition to set.- Returns:
- This builder for chaining.
-
getTypeValue
public int getTypeValue()Optional. Type of the summarization section.
.google.cloud.dialogflow.v2.SummarizationSection.Type type = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTypeValuein interfaceSummarizationSectionOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
Optional. Type of the summarization section.
.google.cloud.dialogflow.v2.SummarizationSection.Type type = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
Optional. Type of the summarization section.
.google.cloud.dialogflow.v2.SummarizationSection.Type type = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTypein interfaceSummarizationSectionOrBuilder- Returns:
- The type.
-
setType
Optional. Type of the summarization section.
.google.cloud.dialogflow.v2.SummarizationSection.Type type = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
Optional. Type of the summarization section.
.google.cloud.dialogflow.v2.SummarizationSection.Type type = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-