public static final class Version.Builder extends 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 type
google.cloud.dialogflow.v2beta1.Version
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<Version.Builder>
public Version.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<Version.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<Version.Builder>
public Version getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public Version build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public Version buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public Version.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<Version.Builder>
public Version.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<Version.Builder>
public Version.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<Version.Builder>
public Version.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<Version.Builder>
public Version.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Version.Builder>
public Version.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<Version.Builder>
public Version.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<Version.Builder>
public Version.Builder mergeFrom(Version other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<Version.Builder>
public Version.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Version.Builder>
IOException
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];
getName
in interface VersionOrBuilder
public 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];
getNameBytes
in interface VersionOrBuilder
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];
value
- The name to set.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];
public Version.Builder setNameBytes(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];
value
- The bytes for name to set.public String getDescription()
Optional. The developer-provided description of this version.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
getDescription
in interface VersionOrBuilder
public ByteString getDescriptionBytes()
Optional. The developer-provided description of this version.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
getDescriptionBytes
in interface VersionOrBuilder
public Version.Builder setDescription(String value)
Optional. The developer-provided description of this version.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
value
- The description to set.public Version.Builder clearDescription()
Optional. The developer-provided description of this version.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
public Version.Builder setDescriptionBytes(ByteString value)
Optional. The developer-provided description of this version.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
value
- The bytes for description to set.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];
getVersionNumber
in interface VersionOrBuilder
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];
value
- The versionNumber to set.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];
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];
hasCreateTime
in interface VersionOrBuilder
public 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];
getCreateTime
in interface VersionOrBuilder
public Version.Builder setCreateTime(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];
public Version.Builder setCreateTime(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];
public Version.Builder mergeCreateTime(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];
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];
public 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];
public 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];
getCreateTimeOrBuilder
in interface VersionOrBuilder
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];
getStatusValue
in interface VersionOrBuilder
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];
value
- The enum numeric value on the wire for status to set.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];
getStatus
in interface VersionOrBuilder
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];
value
- The status to set.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];
public final Version.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<Version.Builder>
public final Version.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<Version.Builder>
Copyright © 2022 Google LLC. All rights reserved.