- 4.59.0 (latest)
- 4.58.0
- 4.57.0
- 4.55.0
- 4.54.0
- 4.53.0
- 4.52.0
- 4.51.0
- 4.50.0
- 4.49.0
- 4.48.0
- 4.47.0
- 4.46.0
- 4.45.0
- 4.43.0
- 4.42.0
- 4.41.0
- 4.40.0
- 4.39.0
- 4.38.0
- 4.37.0
- 4.36.0
- 4.35.0
- 4.34.0
- 4.33.0
- 4.30.0
- 4.29.0
- 4.28.0
- 4.27.0
- 4.26.0
- 4.25.0
- 4.24.0
- 4.23.0
- 4.22.0
- 4.21.0
- 4.20.0
- 4.19.0
- 4.18.0
- 4.17.0
- 4.15.0
- 4.14.0
- 4.13.0
- 4.12.0
- 4.11.0
- 4.10.0
- 4.9.1
- 4.8.6
- 4.7.5
- 4.6.0
- 4.5.11
- 4.4.0
- 4.3.1
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.
Protobuf type google.cloud.dialogflow.v2beta1.Version
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Version.BuilderImplements
VersionOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Version.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field |
FieldDescriptor |
value |
Object |
Type | Description |
Version.Builder |
build()
public Version build()
Type | Description |
Version |
buildPartial()
public Version buildPartial()
Type | Description |
Version |
clear()
public Version.Builder clear()
Type | Description |
Version.Builder |
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];
Type | Description |
Version.Builder |
clearDescription()
public Version.Builder clearDescription()
Optional. The developer-provided description of this version.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
Version.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Version.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field |
FieldDescriptor |
Type | Description |
Version.Builder |
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];
Type | Description |
Version.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Version.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof |
OneofDescriptor |
Type | Description |
Version.Builder |
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];
Type | Description |
Version.Builder |
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];
Type | Description |
Version.Builder |
This builder for chaining. |
clone()
public Version.Builder clone()
Type | Description |
Version.Builder |
getCreateTime()
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];
Type | Description |
Timestamp |
The createTime. |
getCreateTimeBuilder()
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];
Type | Description |
Builder |
getCreateTimeOrBuilder()
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];
Type | Description |
TimestampOrBuilder |
getDefaultInstanceForType()
public Version getDefaultInstanceForType()
Type | Description |
Version |
getDescription()
public String getDescription()
Optional. The developer-provided description of this version.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
String |
The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()
Optional. The developer-provided description of this version.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
ByteString |
The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
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];
Type | Description |
String |
The name. |
getNameBytes()
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];
Type | Description |
ByteString |
The bytes for name. |
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];
Type | Description |
Version.VersionStatus |
The status. |
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];
Type | Description |
int |
The enum numeric value on the wire for status. |
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];
Type | Description |
int |
The versionNumber. |
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];
Type | Description |
boolean |
Whether the createTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeCreateTime(Timestamp value)
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];
Name | Description |
value |
Timestamp |
Type | Description |
Version.Builder |
mergeFrom(Version other)
public Version.Builder mergeFrom(Version other)
Name | Description |
other |
Version |
Type | Description |
Version.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Version.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Type | Description |
Version.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Version.Builder mergeFrom(Message other)
Name | Description |
other |
Message |
Type | Description |
Version.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Version.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields |
UnknownFieldSet |
Type | Description |
Version.Builder |
setCreateTime(Timestamp value)
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];
Name | Description |
value |
Timestamp |
Type | Description |
Version.Builder |
setCreateTime(Timestamp.Builder builderForValue)
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];
Name | Description |
builderForValue |
Builder |
Type | Description |
Version.Builder |
setDescription(String value)
public Version.Builder setDescription(String value)
Optional. The developer-provided description of this version.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value |
String The description to set. |
Type | Description |
Version.Builder |
This builder for chaining. |
setDescriptionBytes(ByteString value)
public Version.Builder setDescriptionBytes(ByteString value)
Optional. The developer-provided description of this version.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value |
ByteString The bytes for description to set. |
Type | Description |
Version.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Version.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field |
FieldDescriptor |
value |
Object |
Type | Description |
Version.Builder |
setName(String value)
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];
Name | Description |
value |
String The name to set. |
Type | Description |
Version.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
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];
Name | Description |
value |
ByteString The bytes for name to set. |
Type | Description |
Version.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Version.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Type | Description |
Version.Builder |
setStatus(Version.VersionStatus value)
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];
Name | Description |
value |
Version.VersionStatus The status to set. |
Type | Description |
Version.Builder |
This builder for chaining. |
setStatusValue(int value)
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];
Name | Description |
value |
int The enum numeric value on the wire for status to set. |
Type | Description |
Version.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Version.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields |
UnknownFieldSet |
Type | Description |
Version.Builder |
setVersionNumber(int value)
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];
Name | Description |
value |
int The versionNumber to set. |
Type | Description |
Version.Builder |
This builder for chaining. |