Class PlaybookVersion.Builder (0.48.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.dialogflow.cx.v3beta1.Example>
Returns
TypeDescription
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
NameDescription
valueExample
Returns
TypeDescription
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
NameDescription
builderForValueExample.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueExample
Returns
TypeDescription
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
NameDescription
indexint
builderForValueExample.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Example.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PlaybookVersion.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PlaybookVersion.Builder
Overrides

build()

public PlaybookVersion build()
Returns
TypeDescription
PlaybookVersion

buildPartial()

public PlaybookVersion buildPartial()
Returns
TypeDescription
PlaybookVersion

clear()

public PlaybookVersion.Builder clear()
Returns
TypeDescription
PlaybookVersion.Builder
Overrides

clearDescription()

public PlaybookVersion.Builder clearDescription()

Optional. The description of the playbook version.

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

Returns
TypeDescription
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
TypeDescription
PlaybookVersion.Builder

clearField(Descriptors.FieldDescriptor field)

public PlaybookVersion.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
PlaybookVersion.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public PlaybookVersion.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
PlaybookVersion.Builder

clone()

public PlaybookVersion.Builder clone()
Returns
TypeDescription
PlaybookVersion.Builder
Overrides

getDefaultInstanceForType()

public PlaybookVersion getDefaultInstanceForType()
Returns
TypeDescription
PlaybookVersion

getDescription()

public String getDescription()

Optional. The description of the playbook version.

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

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. The description of the playbook version.

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

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PlaybookVersion other)

public PlaybookVersion.Builder mergeFrom(PlaybookVersion other)
Parameter
NameDescription
otherPlaybookVersion
Returns
TypeDescription
PlaybookVersion.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PlaybookVersion.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PlaybookVersion.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public PlaybookVersion.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valuePlaybook
Returns
TypeDescription
PlaybookVersion.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PlaybookVersion.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueString

The description to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
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
NameDescription
indexint
valueExample
Returns
TypeDescription
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
NameDescription
indexint
builderForValueExample.Builder
Returns
TypeDescription
PlaybookVersion.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public PlaybookVersion.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
valuePlaybook
Returns
TypeDescription
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
NameDescription
builderForValuePlaybook.Builder
Returns
TypeDescription
PlaybookVersion.Builder

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

public PlaybookVersion.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
PlaybookVersion.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final PlaybookVersion.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
PlaybookVersion.Builder