Class PlaybookVersion.Builder (0.54.0)

public static final class PlaybookVersion.Builder extends GeneratedMessageV3.Builder<PlaybookVersion.Builder> implements PlaybookVersionOrBuilder

Playbook version is a snapshot of the playbook at certain timestamp.

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

Static Methods

getDescriptor()

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

Methods

addAllExamples(Iterable<? extends Example> values)

public PlaybookVersion.Builder addAllExamples(Iterable<? extends Example> values)

Output only. Snapshot of the examples belonging to the playbook when the playbook version is created.

repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.cloud.dialogflow.cx.v3beta1.Example>
Returns
Type Description
PlaybookVersion.Builder

addExamples(Example value)

public PlaybookVersion.Builder addExamples(Example value)

Output only. Snapshot of the examples belonging to the playbook when the playbook version is created.

repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Example
Returns
Type Description
PlaybookVersion.Builder

addExamples(Example.Builder builderForValue)

public PlaybookVersion.Builder addExamples(Example.Builder builderForValue)

Output only. Snapshot of the examples belonging to the playbook when the playbook version is created.

repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Example.Builder
Returns
Type Description
PlaybookVersion.Builder

addExamples(int index, Example value)

public PlaybookVersion.Builder addExamples(int index, Example value)

Output only. Snapshot of the examples belonging to the playbook when the playbook version is created.

repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value Example
Returns
Type Description
PlaybookVersion.Builder

addExamples(int index, Example.Builder builderForValue)

public PlaybookVersion.Builder addExamples(int index, Example.Builder builderForValue)

Output only. Snapshot of the examples belonging to the playbook when the playbook version is created.

repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue Example.Builder
Returns
Type Description
PlaybookVersion.Builder

addExamplesBuilder()

public Example.Builder addExamplesBuilder()

Output only. Snapshot of the examples belonging to the playbook when the playbook version is created.

repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Example.Builder

addExamplesBuilder(int index)

public Example.Builder addExamplesBuilder(int index)

Output only. Snapshot of the examples belonging to the playbook when the playbook version is created.

repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Example.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PlaybookVersion build()
Returns
Type Description
PlaybookVersion

buildPartial()

public PlaybookVersion buildPartial()
Returns
Type Description
PlaybookVersion

clear()

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

clearDescription()

public PlaybookVersion.Builder clearDescription()

Optional. The description of the playbook version.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PlaybookVersion.Builder

This builder for chaining.

clearExamples()

public PlaybookVersion.Builder clearExamples()

Output only. Snapshot of the examples belonging to the playbook when the playbook version is created.

repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PlaybookVersion.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public PlaybookVersion.Builder clearName()

The unique identifier of the playbook version. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/playbooks/<Playbook ID>/versions/<Version ID>.

string name = 1;

Returns
Type Description
PlaybookVersion.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPlaybook()

public PlaybookVersion.Builder clearPlaybook()

Output only. Snapshot of the playbook when the playbook version is created.

.google.cloud.dialogflow.cx.v3beta1.Playbook playbook = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PlaybookVersion.Builder

clearUpdateTime()

public PlaybookVersion.Builder clearUpdateTime()

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

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

Returns
Type Description
PlaybookVersion.Builder

clone()

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

getDefaultInstanceForType()

public PlaybookVersion getDefaultInstanceForType()
Returns
Type Description
PlaybookVersion

getDescription()

public String getDescription()

Optional. The description of the playbook version.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. The description of the playbook version.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getExamples(int index)

public Example getExamples(int index)

Output only. Snapshot of the examples belonging to the playbook when the playbook version is created.

repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Example

getExamplesBuilder(int index)

public Example.Builder getExamplesBuilder(int index)

Output only. Snapshot of the examples belonging to the playbook when the playbook version is created.

repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Example.Builder

getExamplesBuilderList()

public List<Example.Builder> getExamplesBuilderList()

Output only. Snapshot of the examples belonging to the playbook when the playbook version is created.

repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getExamplesCount()

public int getExamplesCount()

Output only. Snapshot of the examples belonging to the playbook when the playbook version is created.

repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getExamplesList()

public List<Example> getExamplesList()

Output only. Snapshot of the examples belonging to the playbook when the playbook version is created.

repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Example>

getExamplesOrBuilder(int index)

public ExampleOrBuilder getExamplesOrBuilder(int index)

Output only. Snapshot of the examples belonging to the playbook when the playbook version is created.

repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
ExampleOrBuilder

getExamplesOrBuilderList()

public List<? extends ExampleOrBuilder> getExamplesOrBuilderList()

Output only. Snapshot of the examples belonging to the playbook when the playbook version is created.

repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.dialogflow.cx.v3beta1.ExampleOrBuilder>

getName()

public String getName()

The unique identifier of the playbook version. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/playbooks/<Playbook ID>/versions/<Version ID>.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The unique identifier of the playbook version. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/playbooks/<Playbook ID>/versions/<Version ID>.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getPlaybook()

public Playbook getPlaybook()

Output only. Snapshot of the playbook when the playbook version is created.

.google.cloud.dialogflow.cx.v3beta1.Playbook playbook = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Playbook

The playbook.

getPlaybookBuilder()

public Playbook.Builder getPlaybookBuilder()

Output only. Snapshot of the playbook when the playbook version is created.

.google.cloud.dialogflow.cx.v3beta1.Playbook playbook = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Playbook.Builder

getPlaybookOrBuilder()

public PlaybookOrBuilder getPlaybookOrBuilder()

Output only. Snapshot of the playbook when the playbook version is created.

.google.cloud.dialogflow.cx.v3beta1.Playbook playbook = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PlaybookOrBuilder

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Last time the playbook 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 playbook 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 playbook version was created or modified.

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

Returns
Type Description
TimestampOrBuilder

hasPlaybook()

public boolean hasPlaybook()

Output only. Snapshot of the playbook when the playbook version is created.

.google.cloud.dialogflow.cx.v3beta1.Playbook playbook = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the playbook field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Last time the playbook 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

mergeFrom(PlaybookVersion other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePlaybook(Playbook value)

public PlaybookVersion.Builder mergePlaybook(Playbook value)

Output only. Snapshot of the playbook when the playbook version is created.

.google.cloud.dialogflow.cx.v3beta1.Playbook playbook = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Playbook
Returns
Type Description
PlaybookVersion.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public PlaybookVersion.Builder mergeUpdateTime(Timestamp value)

Output only. Last time the playbook 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
PlaybookVersion.Builder

removeExamples(int index)

public PlaybookVersion.Builder removeExamples(int index)

Output only. Snapshot of the examples belonging to the playbook when the playbook version is created.

repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
PlaybookVersion.Builder

setDescription(String value)

public PlaybookVersion.Builder setDescription(String value)

Optional. The description of the playbook version.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The description to set.

Returns
Type Description
PlaybookVersion.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public PlaybookVersion.Builder setDescriptionBytes(ByteString value)

Optional. The description of the playbook version.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
PlaybookVersion.Builder

This builder for chaining.

setExamples(int index, Example value)

public PlaybookVersion.Builder setExamples(int index, Example value)

Output only. Snapshot of the examples belonging to the playbook when the playbook version is created.

repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value Example
Returns
Type Description
PlaybookVersion.Builder

setExamples(int index, Example.Builder builderForValue)

public PlaybookVersion.Builder setExamples(int index, Example.Builder builderForValue)

Output only. Snapshot of the examples belonging to the playbook when the playbook version is created.

repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue Example.Builder
Returns
Type Description
PlaybookVersion.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public PlaybookVersion.Builder setName(String value)

The unique identifier of the playbook version. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/playbooks/<Playbook ID>/versions/<Version ID>.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
PlaybookVersion.Builder

This builder for chaining.

setNameBytes(ByteString value)

public PlaybookVersion.Builder setNameBytes(ByteString value)

The unique identifier of the playbook version. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/playbooks/<Playbook ID>/versions/<Version ID>.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
PlaybookVersion.Builder

This builder for chaining.

setPlaybook(Playbook value)

public PlaybookVersion.Builder setPlaybook(Playbook value)

Output only. Snapshot of the playbook when the playbook version is created.

.google.cloud.dialogflow.cx.v3beta1.Playbook playbook = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Playbook
Returns
Type Description
PlaybookVersion.Builder

setPlaybook(Playbook.Builder builderForValue)

public PlaybookVersion.Builder setPlaybook(Playbook.Builder builderForValue)

Output only. Snapshot of the playbook when the playbook version is created.

.google.cloud.dialogflow.cx.v3beta1.Playbook playbook = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Playbook.Builder
Returns
Type Description
PlaybookVersion.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public PlaybookVersion.Builder setUpdateTime(Timestamp value)

Output only. Last time the playbook 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
PlaybookVersion.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public PlaybookVersion.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Last time the playbook 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
PlaybookVersion.Builder