Class CreatePlaybookRequest.Builder (0.54.0)

public static final class CreatePlaybookRequest.Builder extends GeneratedMessageV3.Builder<CreatePlaybookRequest.Builder> implements CreatePlaybookRequestOrBuilder

The request message for Playbooks.CreatePlaybook.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreatePlaybookRequest build()
Returns
Type Description
CreatePlaybookRequest

buildPartial()

public CreatePlaybookRequest buildPartial()
Returns
Type Description
CreatePlaybookRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreatePlaybookRequest.Builder clearParent()

Required. The agent to create a playbook for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreatePlaybookRequest.Builder

This builder for chaining.

clearPlaybook()

public CreatePlaybookRequest.Builder clearPlaybook()

Required. The playbook to create.

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

Returns
Type Description
CreatePlaybookRequest.Builder

clone()

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

getDefaultInstanceForType()

public CreatePlaybookRequest getDefaultInstanceForType()
Returns
Type Description
CreatePlaybookRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The agent to create a playbook for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The agent to create a playbook for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getPlaybook()

public Playbook getPlaybook()

Required. The playbook to create.

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

Returns
Type Description
Playbook

The playbook.

getPlaybookBuilder()

public Playbook.Builder getPlaybookBuilder()

Required. The playbook to create.

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

Returns
Type Description
Playbook.Builder

getPlaybookOrBuilder()

public PlaybookOrBuilder getPlaybookOrBuilder()

Required. The playbook to create.

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

Returns
Type Description
PlaybookOrBuilder

hasPlaybook()

public boolean hasPlaybook()

Required. The playbook to create.

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

Returns
Type Description
boolean

Whether the playbook field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreatePlaybookRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePlaybook(Playbook value)

public CreatePlaybookRequest.Builder mergePlaybook(Playbook value)

Required. The playbook to create.

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

Parameter
Name Description
value Playbook
Returns
Type Description
CreatePlaybookRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreatePlaybookRequest.Builder setParent(String value)

Required. The agent to create a playbook for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreatePlaybookRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreatePlaybookRequest.Builder setParentBytes(ByteString value)

Required. The agent to create a playbook for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreatePlaybookRequest.Builder

This builder for chaining.

setPlaybook(Playbook value)

public CreatePlaybookRequest.Builder setPlaybook(Playbook value)

Required. The playbook to create.

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

Parameter
Name Description
value Playbook
Returns
Type Description
CreatePlaybookRequest.Builder

setPlaybook(Playbook.Builder builderForValue)

public CreatePlaybookRequest.Builder setPlaybook(Playbook.Builder builderForValue)

Required. The playbook to create.

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

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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