Class CreatePlaybookRequest.Builder (0.94.0)

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

The request message for Playbooks.CreatePlaybook.

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

Static Methods

getDescriptor()

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

Methods

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

clearParent()

public CreatePlaybookRequest.Builder clearParent()

Required. The agent to create a playbook for. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>.

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.v3.Playbook playbook = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreatePlaybookRequest.Builder

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/<ProjectID>/locations/<LocationID>/agents/<AgentID>.

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/<ProjectID>/locations/<LocationID>/agents/<AgentID>.

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.v3.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.v3.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.v3.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.v3.Playbook playbook = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the playbook field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.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.v3.Playbook playbook = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Playbook
Returns
Type Description
CreatePlaybookRequest.Builder

setParent(String value)

public CreatePlaybookRequest.Builder setParent(String value)

Required. The agent to create a playbook for. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>.

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/<ProjectID>/locations/<LocationID>/agents/<AgentID>.

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.v3.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.v3.Playbook playbook = 2 [(.google.api.field_behavior) = REQUIRED];

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