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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Version
build()
Version
buildPartial()
Version.Builder
clear()
Version.Builder
clearCreateTime()
Output only.Version.Builder
clearDescription()
Optional.Version.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Version.Builder
clearName()
Output only.Version.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Version.Builder
clearStatus()
Output only.Version.Builder
clearVersionNumber()
Output only.Version.Builder
clone()
com.google.protobuf.Timestamp
getCreateTime()
Output only.com.google.protobuf.Timestamp.Builder
getCreateTimeBuilder()
Output only.com.google.protobuf.TimestampOrBuilder
getCreateTimeOrBuilder()
Output only.Version
getDefaultInstanceForType()
String
getDescription()
Optional.com.google.protobuf.ByteString
getDescriptionBytes()
Optional.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getName()
Output only.com.google.protobuf.ByteString
getNameBytes()
Output only.Version.VersionStatus
getStatus()
Output only.int
getStatusValue()
Output only.int
getVersionNumber()
Output only.boolean
hasCreateTime()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Version.Builder
mergeCreateTime(com.google.protobuf.Timestamp value)
Output only.Version.Builder
mergeFrom(Version other)
Version.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Version.Builder
mergeFrom(com.google.protobuf.Message other)
Version.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Version.Builder
setCreateTime(com.google.protobuf.Timestamp value)
Output only.Version.Builder
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.Version.Builder
setDescription(String value)
Optional.Version.Builder
setDescriptionBytes(com.google.protobuf.ByteString value)
Optional.Version.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Version.Builder
setName(String value)
Output only.Version.Builder
setNameBytes(com.google.protobuf.ByteString value)
Output only.Version.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Version.Builder
setStatus(Version.VersionStatus value)
Output only.Version.Builder
setStatusValue(int value)
Output only.Version.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Version.Builder
setVersionNumber(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Version.Builder>
-
clear
public Version.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Version.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Version.Builder>
-
getDefaultInstanceForType
public Version getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Version build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Version buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Version.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Version.Builder>
-
setField
public Version.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Version.Builder>
-
clearField
public Version.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Version.Builder>
-
clearOneof
public Version.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Version.Builder>
-
setRepeatedField
public Version.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Version.Builder>
-
addRepeatedField
public Version.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Version.Builder>
-
mergeFrom
public Version.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Version.Builder>
-
mergeFrom
public Version.Builder mergeFrom(Version other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getName
in 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:
getNameBytes
in 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:
getDescription
in 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:
getDescriptionBytes
in 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:
getVersionNumber
in 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:
hasCreateTime
in 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:
getCreateTime
in 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:
getCreateTimeOrBuilder
in 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:
getStatusValue
in 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:
getStatus
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Version.Builder>
-
mergeUnknownFields
public final Version.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Version.Builder>
-
-