Class CreateCompanionAgentRequest.Builder (4.105.0)

public static final class CreateCompanionAgentRequest.Builder extends GeneratedMessage.Builder<CreateCompanionAgentRequest.Builder> implements CreateCompanionAgentRequestOrBuilder

Request of CreateCompanionAgent.

Protobuf type google.cloud.dialogflow.v2.CreateCompanionAgentRequest

Static Methods

getDescriptor()

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

Methods

build()

public CreateCompanionAgentRequest build()
Returns
Type Description
CreateCompanionAgentRequest

buildPartial()

public CreateCompanionAgentRequest buildPartial()
Returns
Type Description
CreateCompanionAgentRequest

clear()

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

clearCompanionAgent()

public CreateCompanionAgentRequest.Builder clearCompanionAgent()

Required. The companion agent to create.

.google.cloud.dialogflow.v2.CompanionAgent companion_agent = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateCompanionAgentRequest.Builder

clearCompanionAgentId()

public CreateCompanionAgentRequest.Builder clearCompanionAgentId()

Optional. The resource ID of the companion agent to create. If not provided, the server will auto-generate a resource ID.

string companion_agent_id = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CreateCompanionAgentRequest.Builder

This builder for chaining.

clearParent()

public CreateCompanionAgentRequest.Builder clearParent()

Required. Resource identifier of the project creating the companion agent. Format: projects/{project}/locations/{location}

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

Returns
Type Description
CreateCompanionAgentRequest.Builder

This builder for chaining.

getCompanionAgent()

public CompanionAgent getCompanionAgent()

Required. The companion agent to create.

.google.cloud.dialogflow.v2.CompanionAgent companion_agent = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CompanionAgent

The companionAgent.

getCompanionAgentBuilder()

public CompanionAgent.Builder getCompanionAgentBuilder()

Required. The companion agent to create.

.google.cloud.dialogflow.v2.CompanionAgent companion_agent = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CompanionAgent.Builder

getCompanionAgentId()

public String getCompanionAgentId()

Optional. The resource ID of the companion agent to create. If not provided, the server will auto-generate a resource ID.

string companion_agent_id = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The companionAgentId.

getCompanionAgentIdBytes()

public ByteString getCompanionAgentIdBytes()

Optional. The resource ID of the companion agent to create. If not provided, the server will auto-generate a resource ID.

string companion_agent_id = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for companionAgentId.

getCompanionAgentOrBuilder()

public CompanionAgentOrBuilder getCompanionAgentOrBuilder()

Required. The companion agent to create.

.google.cloud.dialogflow.v2.CompanionAgent companion_agent = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CompanionAgentOrBuilder

getDefaultInstanceForType()

public CreateCompanionAgentRequest getDefaultInstanceForType()
Returns
Type Description
CreateCompanionAgentRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. Resource identifier of the project creating the companion agent. Format: projects/{project}/locations/{location}

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Resource identifier of the project creating the companion agent. Format: projects/{project}/locations/{location}

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

Returns
Type Description
ByteString

The bytes for parent.

hasCompanionAgent()

public boolean hasCompanionAgent()

Required. The companion agent to create.

.google.cloud.dialogflow.v2.CompanionAgent companion_agent = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the companionAgent field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCompanionAgent(CompanionAgent value)

public CreateCompanionAgentRequest.Builder mergeCompanionAgent(CompanionAgent value)

Required. The companion agent to create.

.google.cloud.dialogflow.v2.CompanionAgent companion_agent = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value CompanionAgent
Returns
Type Description
CreateCompanionAgentRequest.Builder

mergeFrom(CreateCompanionAgentRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setCompanionAgent(CompanionAgent value)

public CreateCompanionAgentRequest.Builder setCompanionAgent(CompanionAgent value)

Required. The companion agent to create.

.google.cloud.dialogflow.v2.CompanionAgent companion_agent = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value CompanionAgent
Returns
Type Description
CreateCompanionAgentRequest.Builder

setCompanionAgent(CompanionAgent.Builder builderForValue)

public CreateCompanionAgentRequest.Builder setCompanionAgent(CompanionAgent.Builder builderForValue)

Required. The companion agent to create.

.google.cloud.dialogflow.v2.CompanionAgent companion_agent = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue CompanionAgent.Builder
Returns
Type Description
CreateCompanionAgentRequest.Builder

setCompanionAgentId(String value)

public CreateCompanionAgentRequest.Builder setCompanionAgentId(String value)

Optional. The resource ID of the companion agent to create. If not provided, the server will auto-generate a resource ID.

string companion_agent_id = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The companionAgentId to set.

Returns
Type Description
CreateCompanionAgentRequest.Builder

This builder for chaining.

setCompanionAgentIdBytes(ByteString value)

public CreateCompanionAgentRequest.Builder setCompanionAgentIdBytes(ByteString value)

Optional. The resource ID of the companion agent to create. If not provided, the server will auto-generate a resource ID.

string companion_agent_id = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for companionAgentId to set.

Returns
Type Description
CreateCompanionAgentRequest.Builder

This builder for chaining.

setParent(String value)

public CreateCompanionAgentRequest.Builder setParent(String value)

Required. Resource identifier of the project creating the companion agent. Format: projects/{project}/locations/{location}

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateCompanionAgentRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateCompanionAgentRequest.Builder setParentBytes(ByteString value)

Required. Resource identifier of the project creating the companion agent. Format: projects/{project}/locations/{location}

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
CreateCompanionAgentRequest.Builder

This builder for chaining.