Class Version.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Version.Builder>
-
- com.google.cloud.dialogflow.v2beta1.Version.Builder
-
- All Implemented Interfaces:
VersionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Version
public static final class Version.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Version.Builder> implements VersionOrBuilder
You can create multiple versions of your agent and publish them to separate environments. When you edit an agent, you are editing the draft agent. At any point, you can save the draft agent as an agent version, which is an immutable snapshot of your agent. When you save the draft agent, it is published to the default environment. When you create agent versions, you can publish them to custom environments. You can create a variety of custom environments for: - testing - development - production - etc. For more information, see the [versions and environments guide](https://cloud.google.com/dialogflow/docs/agents-versions).
Protobuf typegoogle.cloud.dialogflow.v2beta1.Version
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Version.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Versionbuild()VersionbuildPartial()Version.Builderclear()Version.BuilderclearCreateTime()Output only.Version.BuilderclearDescription()Optional.Version.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Version.BuilderclearName()Output only.Version.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Version.BuilderclearStatus()Output only.Version.BuilderclearVersionNumber()Output only.Version.Builderclone()com.google.protobuf.TimestampgetCreateTime()Output only.com.google.protobuf.Timestamp.BuildergetCreateTimeBuilder()Output only.com.google.protobuf.TimestampOrBuildergetCreateTimeOrBuilder()Output only.VersiongetDefaultInstanceForType()StringgetDescription()Optional.com.google.protobuf.ByteStringgetDescriptionBytes()Optional.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetName()Output only.com.google.protobuf.ByteStringgetNameBytes()Output only.Version.VersionStatusgetStatus()Output only.intgetStatusValue()Output only.intgetVersionNumber()Output only.booleanhasCreateTime()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Version.BuildermergeCreateTime(com.google.protobuf.Timestamp value)Output only.Version.BuildermergeFrom(Version other)Version.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Version.BuildermergeFrom(com.google.protobuf.Message other)Version.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Version.BuildersetCreateTime(com.google.protobuf.Timestamp value)Output only.Version.BuildersetCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)Output only.Version.BuildersetDescription(String value)Optional.Version.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)Optional.Version.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Version.BuildersetName(String value)Output only.Version.BuildersetNameBytes(com.google.protobuf.ByteString value)Output only.Version.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Version.BuildersetStatus(Version.VersionStatus value)Output only.Version.BuildersetStatusValue(int value)Output only.Version.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Version.BuildersetVersionNumber(int value)Output only.-
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<Version.Builder>
-
clear
public Version.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<Version.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<Version.Builder>
-
getDefaultInstanceForType
public Version getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Version build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Version buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Version.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<Version.Builder>
-
setField
public Version.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<Version.Builder>
-
clearField
public Version.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Version.Builder>
-
clearOneof
public Version.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Version.Builder>
-
setRepeatedField
public Version.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<Version.Builder>
-
addRepeatedField
public Version.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<Version.Builder>
-
mergeFrom
public Version.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Version.Builder>
-
mergeFrom
public Version.Builder mergeFrom(Version other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Version.Builder>
-
mergeFrom
public Version.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<Version.Builder>- Throws:
IOException
-
getName
public String getName()
Output only. The unique identifier of this agent version. Supported formats: - `projects/<Project ID>/agent/versions/<Version ID>` - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version ID>`
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNamein interfaceVersionOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Output only. The unique identifier of this agent version. Supported formats: - `projects/<Project ID>/agent/versions/<Version ID>` - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version ID>`
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNameBytesin interfaceVersionOrBuilder- Returns:
- The bytes for name.
-
setName
public Version.Builder setName(String value)
Output only. The unique identifier of this agent version. Supported formats: - `projects/<Project ID>/agent/versions/<Version ID>` - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version ID>`
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Version.Builder clearName()
Output only. The unique identifier of this agent version. Supported formats: - `projects/<Project ID>/agent/versions/<Version ID>` - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version ID>`
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setNameBytes
public Version.Builder setNameBytes(com.google.protobuf.ByteString value)
Output only. The unique identifier of this agent version. Supported formats: - `projects/<Project ID>/agent/versions/<Version ID>` - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version ID>`
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDescription
public String getDescription()
Optional. The developer-provided description of this version.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDescriptionin interfaceVersionOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
Optional. The developer-provided description of this version.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDescriptionBytesin interfaceVersionOrBuilder- Returns:
- The bytes for description.
-
setDescription
public Version.Builder setDescription(String value)
Optional. The developer-provided description of this version.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public Version.Builder clearDescription()
Optional. The developer-provided description of this version.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setDescriptionBytes
public Version.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
Optional. The developer-provided description of this version.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getVersionNumber
public int getVersionNumber()
Output only. The sequential number of this version. This field is read-only which means it cannot be set by create and update methods.
int32 version_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getVersionNumberin interfaceVersionOrBuilder- Returns:
- The versionNumber.
-
setVersionNumber
public Version.Builder setVersionNumber(int value)
Output only. The sequential number of this version. This field is read-only which means it cannot be set by create and update methods.
int32 version_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The versionNumber to set.- Returns:
- This builder for chaining.
-
clearVersionNumber
public Version.Builder clearVersionNumber()
Output only. The sequential number of this version. This field is read-only which means it cannot be set by create and update methods.
int32 version_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()
Output only. The creation time of this version. This field is read-only, i.e., it cannot be set by create and update methods.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceVersionOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
Output only. The creation time of this version. This field is read-only, i.e., it cannot be set by create and update methods.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceVersionOrBuilder- Returns:
- The createTime.
-
setCreateTime
public Version.Builder setCreateTime(com.google.protobuf.Timestamp value)
Output only. The creation time of this version. This field is read-only, i.e., it cannot be set by create and update methods.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setCreateTime
public Version.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The creation time of this version. This field is read-only, i.e., it cannot be set by create and update methods.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeCreateTime
public Version.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Output only. The creation time of this version. This field is read-only, i.e., it cannot be set by create and update methods.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearCreateTime
public Version.Builder clearCreateTime()
Output only. The creation time of this version. This field is read-only, i.e., it cannot be set by create and update methods.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
Output only. The creation time of this version. This field is read-only, i.e., it cannot be set by create and update methods.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The creation time of this version. This field is read-only, i.e., it cannot be set by create and update methods.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceVersionOrBuilder
-
getStatusValue
public int getStatusValue()
Output only. The status of this version. This field is read-only and cannot be set by create and update methods.
.google.cloud.dialogflow.v2beta1.Version.VersionStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatusValuein interfaceVersionOrBuilder- Returns:
- The enum numeric value on the wire for status.
-
setStatusValue
public Version.Builder setStatusValue(int value)
Output only. The status of this version. This field is read-only and cannot be set by create and update methods.
.google.cloud.dialogflow.v2beta1.Version.VersionStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for status to set.- Returns:
- This builder for chaining.
-
getStatus
public Version.VersionStatus getStatus()
Output only. The status of this version. This field is read-only and cannot be set by create and update methods.
.google.cloud.dialogflow.v2beta1.Version.VersionStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatusin interfaceVersionOrBuilder- Returns:
- The status.
-
setStatus
public Version.Builder setStatus(Version.VersionStatus value)
Output only. The status of this version. This field is read-only and cannot be set by create and update methods.
.google.cloud.dialogflow.v2beta1.Version.VersionStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The status to set.- Returns:
- This builder for chaining.
-
clearStatus
public Version.Builder clearStatus()
Output only. The status of this version. This field is read-only and cannot be set by create and update methods.
.google.cloud.dialogflow.v2beta1.Version.VersionStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setUnknownFields
public final Version.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Version.Builder>
-
mergeUnknownFields
public final Version.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Version.Builder>
-
-