Class IntentSuggestion.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<IntentSuggestion.Builder>
-
- com.google.cloud.dialogflow.v2beta1.IntentSuggestion.Builder
-
- All Implemented Interfaces:
IntentSuggestionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- IntentSuggestion
public static final class IntentSuggestion.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<IntentSuggestion.Builder> implements IntentSuggestionOrBuilder
Represents an intent suggestion.
Protobuf typegoogle.cloud.dialogflow.v2beta1.IntentSuggestion
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IntentSuggestion.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)IntentSuggestionbuild()IntentSuggestionbuildPartial()IntentSuggestion.Builderclear()IntentSuggestion.BuilderclearDescription()Human readable description for better understanding an intent like its scope, content, result etc.IntentSuggestion.BuilderclearDisplayName()The display name of the intent.IntentSuggestion.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)IntentSuggestion.BuilderclearIntent()IntentSuggestion.BuilderclearIntentV2()The unique identifier of this [intent][google.cloud.dialogflow.v2beta1.Intent].IntentSuggestion.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)IntentSuggestion.Builderclone()IntentSuggestiongetDefaultInstanceForType()StringgetDescription()Human readable description for better understanding an intent like its scope, content, result etc.com.google.protobuf.ByteStringgetDescriptionBytes()Human readable description for better understanding an intent like its scope, content, result etc.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetDisplayName()The display name of the intent.com.google.protobuf.ByteStringgetDisplayNameBytes()The display name of the intent.IntentSuggestion.IntentCasegetIntentCase()StringgetIntentV2()The unique identifier of this [intent][google.cloud.dialogflow.v2beta1.Intent].com.google.protobuf.ByteStringgetIntentV2Bytes()The unique identifier of this [intent][google.cloud.dialogflow.v2beta1.Intent].booleanhasIntentV2()The unique identifier of this [intent][google.cloud.dialogflow.v2beta1.Intent].protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()IntentSuggestion.BuildermergeFrom(IntentSuggestion other)IntentSuggestion.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)IntentSuggestion.BuildermergeFrom(com.google.protobuf.Message other)IntentSuggestion.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)IntentSuggestion.BuildersetDescription(String value)Human readable description for better understanding an intent like its scope, content, result etc.IntentSuggestion.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)Human readable description for better understanding an intent like its scope, content, result etc.IntentSuggestion.BuildersetDisplayName(String value)The display name of the intent.IntentSuggestion.BuildersetDisplayNameBytes(com.google.protobuf.ByteString value)The display name of the intent.IntentSuggestion.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)IntentSuggestion.BuildersetIntentV2(String value)The unique identifier of this [intent][google.cloud.dialogflow.v2beta1.Intent].IntentSuggestion.BuildersetIntentV2Bytes(com.google.protobuf.ByteString value)The unique identifier of this [intent][google.cloud.dialogflow.v2beta1.Intent].IntentSuggestion.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)IntentSuggestion.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<IntentSuggestion.Builder>
-
clear
public IntentSuggestion.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<IntentSuggestion.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.GeneratedMessageV3.Builder<IntentSuggestion.Builder>
-
getDefaultInstanceForType
public IntentSuggestion getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public IntentSuggestion build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public IntentSuggestion buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public IntentSuggestion.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<IntentSuggestion.Builder>
-
setField
public IntentSuggestion.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<IntentSuggestion.Builder>
-
clearField
public IntentSuggestion.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<IntentSuggestion.Builder>
-
clearOneof
public IntentSuggestion.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<IntentSuggestion.Builder>
-
setRepeatedField
public IntentSuggestion.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<IntentSuggestion.Builder>
-
addRepeatedField
public IntentSuggestion.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<IntentSuggestion.Builder>
-
mergeFrom
public IntentSuggestion.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<IntentSuggestion.Builder>
-
mergeFrom
public IntentSuggestion.Builder mergeFrom(IntentSuggestion other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<IntentSuggestion.Builder>
-
mergeFrom
public IntentSuggestion.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<IntentSuggestion.Builder>- Throws:
IOException
-
getIntentCase
public IntentSuggestion.IntentCase getIntentCase()
- Specified by:
getIntentCasein interfaceIntentSuggestionOrBuilder
-
clearIntent
public IntentSuggestion.Builder clearIntent()
-
getDisplayName
public String getDisplayName()
The display name of the intent.
string display_name = 1;- Specified by:
getDisplayNamein interfaceIntentSuggestionOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()
The display name of the intent.
string display_name = 1;- Specified by:
getDisplayNameBytesin interfaceIntentSuggestionOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
public IntentSuggestion.Builder setDisplayName(String value)
The display name of the intent.
string display_name = 1;- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
public IntentSuggestion.Builder clearDisplayName()
The display name of the intent.
string display_name = 1;- Returns:
- This builder for chaining.
-
setDisplayNameBytes
public IntentSuggestion.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
The display name of the intent.
string display_name = 1;- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
hasIntentV2
public boolean hasIntentV2()
The unique identifier of this [intent][google.cloud.dialogflow.v2beta1.Intent]. Format: `projects/<Project ID>/locations/<Location ID>/agent/intents/<Intent ID>`.
string intent_v2 = 2;- Specified by:
hasIntentV2in interfaceIntentSuggestionOrBuilder- Returns:
- Whether the intentV2 field is set.
-
getIntentV2
public String getIntentV2()
The unique identifier of this [intent][google.cloud.dialogflow.v2beta1.Intent]. Format: `projects/<Project ID>/locations/<Location ID>/agent/intents/<Intent ID>`.
string intent_v2 = 2;- Specified by:
getIntentV2in interfaceIntentSuggestionOrBuilder- Returns:
- The intentV2.
-
getIntentV2Bytes
public com.google.protobuf.ByteString getIntentV2Bytes()
The unique identifier of this [intent][google.cloud.dialogflow.v2beta1.Intent]. Format: `projects/<Project ID>/locations/<Location ID>/agent/intents/<Intent ID>`.
string intent_v2 = 2;- Specified by:
getIntentV2Bytesin interfaceIntentSuggestionOrBuilder- Returns:
- The bytes for intentV2.
-
setIntentV2
public IntentSuggestion.Builder setIntentV2(String value)
The unique identifier of this [intent][google.cloud.dialogflow.v2beta1.Intent]. Format: `projects/<Project ID>/locations/<Location ID>/agent/intents/<Intent ID>`.
string intent_v2 = 2;- Parameters:
value- The intentV2 to set.- Returns:
- This builder for chaining.
-
clearIntentV2
public IntentSuggestion.Builder clearIntentV2()
The unique identifier of this [intent][google.cloud.dialogflow.v2beta1.Intent]. Format: `projects/<Project ID>/locations/<Location ID>/agent/intents/<Intent ID>`.
string intent_v2 = 2;- Returns:
- This builder for chaining.
-
setIntentV2Bytes
public IntentSuggestion.Builder setIntentV2Bytes(com.google.protobuf.ByteString value)
The unique identifier of this [intent][google.cloud.dialogflow.v2beta1.Intent]. Format: `projects/<Project ID>/locations/<Location ID>/agent/intents/<Intent ID>`.
string intent_v2 = 2;- Parameters:
value- The bytes for intentV2 to set.- Returns:
- This builder for chaining.
-
getDescription
public String getDescription()
Human readable description for better understanding an intent like its scope, content, result etc. Maximum character limit: 140 characters.
string description = 5;- Specified by:
getDescriptionin interfaceIntentSuggestionOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
Human readable description for better understanding an intent like its scope, content, result etc. Maximum character limit: 140 characters.
string description = 5;- Specified by:
getDescriptionBytesin interfaceIntentSuggestionOrBuilder- Returns:
- The bytes for description.
-
setDescription
public IntentSuggestion.Builder setDescription(String value)
Human readable description for better understanding an intent like its scope, content, result etc. Maximum character limit: 140 characters.
string description = 5;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public IntentSuggestion.Builder clearDescription()
Human readable description for better understanding an intent like its scope, content, result etc. Maximum character limit: 140 characters.
string description = 5;- Returns:
- This builder for chaining.
-
setDescriptionBytes
public IntentSuggestion.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
Human readable description for better understanding an intent like its scope, content, result etc. Maximum character limit: 140 characters.
string description = 5;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final IntentSuggestion.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<IntentSuggestion.Builder>
-
mergeUnknownFields
public final IntentSuggestion.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<IntentSuggestion.Builder>
-
-