Class ToolVersion.Builder (0.71.0)

public static final class ToolVersion.Builder extends GeneratedMessageV3.Builder<ToolVersion.Builder> implements ToolVersionOrBuilder

Tool version is a snapshot of the tool at certain timestamp.

Protobuf type google.cloud.dialogflow.cx.v3beta1.ToolVersion

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ToolVersion.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ToolVersion.Builder
Overrides

build()

public ToolVersion build()
Returns
Type Description
ToolVersion

buildPartial()

public ToolVersion buildPartial()
Returns
Type Description
ToolVersion

clear()

public ToolVersion.Builder clear()
Returns
Type Description
ToolVersion.Builder
Overrides

clearCreateTime()

public ToolVersion.Builder clearCreateTime()

Output only. Last time the tool version was created or modified.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ToolVersion.Builder

clearDisplayName()

public ToolVersion.Builder clearDisplayName()

Required. The display name of the tool version.

string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ToolVersion.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ToolVersion.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ToolVersion.Builder
Overrides

clearName()

public ToolVersion.Builder clearName()

Identifier. The unique identifier of the tool version. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>/versions/<VersionID>.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ToolVersion.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ToolVersion.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ToolVersion.Builder
Overrides

clearTool()

public ToolVersion.Builder clearTool()

Required. Snapshot of the tool to be associated with this version.

.google.cloud.dialogflow.cx.v3beta1.Tool tool = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ToolVersion.Builder

clearUpdateTime()

public ToolVersion.Builder clearUpdateTime()

Output only. Last time the tool version was created or modified.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ToolVersion.Builder

clone()

public ToolVersion.Builder clone()
Returns
Type Description
ToolVersion.Builder
Overrides

getCreateTime()

public Timestamp getCreateTime()

Output only. Last time the tool version was created or modified.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Last time the tool version was created or modified.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Last time the tool version was created or modified.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public ToolVersion getDefaultInstanceForType()
Returns
Type Description
ToolVersion

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Required. The display name of the tool version.

string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Required. The display name of the tool version.

string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for displayName.

getName()

public String getName()

Identifier. The unique identifier of the tool version. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>/versions/<VersionID>.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The unique identifier of the tool version. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>/versions/<VersionID>.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getTool()

public Tool getTool()

Required. Snapshot of the tool to be associated with this version.

.google.cloud.dialogflow.cx.v3beta1.Tool tool = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Tool

The tool.

getToolBuilder()

public Tool.Builder getToolBuilder()

Required. Snapshot of the tool to be associated with this version.

.google.cloud.dialogflow.cx.v3beta1.Tool tool = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Tool.Builder

getToolOrBuilder()

public ToolOrBuilder getToolOrBuilder()

Required. Snapshot of the tool to be associated with this version.

.google.cloud.dialogflow.cx.v3beta1.Tool tool = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ToolOrBuilder

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Last time the tool version was created or modified.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Last time the tool version was created or modified.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Last time the tool version was created or modified.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Last time the tool version was created or modified.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasTool()

public boolean hasTool()

Required. Snapshot of the tool to be associated with this version.

.google.cloud.dialogflow.cx.v3beta1.Tool tool = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the tool field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Last time the tool version was created or modified.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public ToolVersion.Builder mergeCreateTime(Timestamp value)

Output only. Last time the tool version was created or modified.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
ToolVersion.Builder

mergeFrom(ToolVersion other)

public ToolVersion.Builder mergeFrom(ToolVersion other)
Parameter
Name Description
other ToolVersion
Returns
Type Description
ToolVersion.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ToolVersion.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ToolVersion.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ToolVersion.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ToolVersion.Builder
Overrides

mergeTool(Tool value)

public ToolVersion.Builder mergeTool(Tool value)

Required. Snapshot of the tool to be associated with this version.

.google.cloud.dialogflow.cx.v3beta1.Tool tool = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Tool
Returns
Type Description
ToolVersion.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ToolVersion.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ToolVersion.Builder
Overrides

mergeUpdateTime(Timestamp value)

public ToolVersion.Builder mergeUpdateTime(Timestamp value)

Output only. Last time the tool version was created or modified.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
ToolVersion.Builder

setCreateTime(Timestamp value)

public ToolVersion.Builder setCreateTime(Timestamp value)

Output only. Last time the tool version was created or modified.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
ToolVersion.Builder

setCreateTime(Timestamp.Builder builderForValue)

public ToolVersion.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Last time the tool version was created or modified.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ToolVersion.Builder

setDisplayName(String value)

public ToolVersion.Builder setDisplayName(String value)

Required. The display name of the tool version.

string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
ToolVersion.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public ToolVersion.Builder setDisplayNameBytes(ByteString value)

Required. The display name of the tool version.

string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
ToolVersion.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ToolVersion.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ToolVersion.Builder
Overrides

setName(String value)

public ToolVersion.Builder setName(String value)

Identifier. The unique identifier of the tool version. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>/versions/<VersionID>.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ToolVersion.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ToolVersion.Builder setNameBytes(ByteString value)

Identifier. The unique identifier of the tool version. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>/versions/<VersionID>.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ToolVersion.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ToolVersion.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ToolVersion.Builder
Overrides

setTool(Tool value)

public ToolVersion.Builder setTool(Tool value)

Required. Snapshot of the tool to be associated with this version.

.google.cloud.dialogflow.cx.v3beta1.Tool tool = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Tool
Returns
Type Description
ToolVersion.Builder

setTool(Tool.Builder builderForValue)

public ToolVersion.Builder setTool(Tool.Builder builderForValue)

Required. Snapshot of the tool to be associated with this version.

.google.cloud.dialogflow.cx.v3beta1.Tool tool = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Tool.Builder
Returns
Type Description
ToolVersion.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ToolVersion.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ToolVersion.Builder
Overrides

setUpdateTime(Timestamp value)

public ToolVersion.Builder setUpdateTime(Timestamp value)

Output only. Last time the tool version was created or modified.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
ToolVersion.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public ToolVersion.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Last time the tool version was created or modified.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ToolVersion.Builder