public static final class CreateAgentRequest.Builder extends GeneratedMessage.Builder<CreateAgentRequest.Builder> implements CreateAgentRequestOrBuilderRequest message for AgentService.CreateAgent.
Protobuf type google.cloud.ces.v1.CreateAgentRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > CreateAgentRequest.BuilderImplements
CreateAgentRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public CreateAgentRequest build()| Returns | |
|---|---|
| Type | Description |
CreateAgentRequest |
|
buildPartial()
public CreateAgentRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
CreateAgentRequest |
|
clear()
public CreateAgentRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
CreateAgentRequest.Builder |
|
clearAgent()
public CreateAgentRequest.Builder clearAgent()Required. The agent to create.
.google.cloud.ces.v1.Agent agent = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
CreateAgentRequest.Builder |
|
clearAgentId()
public CreateAgentRequest.Builder clearAgentId()Optional. The ID to use for the agent, which will become the final component of the agent's resource name. If not provided, a unique ID will be automatically assigned for the agent.
string agent_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
CreateAgentRequest.Builder |
This builder for chaining. |
clearParent()
public CreateAgentRequest.Builder clearParent()Required. The resource name of the app to create an agent in.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
CreateAgentRequest.Builder |
This builder for chaining. |
getAgent()
public Agent getAgent()Required. The agent to create.
.google.cloud.ces.v1.Agent agent = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Agent |
The agent. |
getAgentBuilder()
public Agent.Builder getAgentBuilder()Required. The agent to create.
.google.cloud.ces.v1.Agent agent = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Agent.Builder |
|
getAgentId()
public String getAgentId()Optional. The ID to use for the agent, which will become the final component of the agent's resource name. If not provided, a unique ID will be automatically assigned for the agent.
string agent_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The agentId. |
getAgentIdBytes()
public ByteString getAgentIdBytes()Optional. The ID to use for the agent, which will become the final component of the agent's resource name. If not provided, a unique ID will be automatically assigned for the agent.
string agent_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for agentId. |
getAgentOrBuilder()
public AgentOrBuilder getAgentOrBuilder()Required. The agent to create.
.google.cloud.ces.v1.Agent agent = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AgentOrBuilder |
|
getDefaultInstanceForType()
public CreateAgentRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CreateAgentRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getParent()
public String getParent()Required. The resource name of the app to create an agent in.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The parent. |
getParentBytes()
public ByteString getParentBytes()Required. The resource name of the app to create an agent in.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for parent. |
hasAgent()
public boolean hasAgent()Required. The agent to create.
.google.cloud.ces.v1.Agent agent = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the agent field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeAgent(Agent value)
public CreateAgentRequest.Builder mergeAgent(Agent value)Required. The agent to create.
.google.cloud.ces.v1.Agent agent = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Agent |
| Returns | |
|---|---|
| Type | Description |
CreateAgentRequest.Builder |
|
mergeFrom(CreateAgentRequest other)
public CreateAgentRequest.Builder mergeFrom(CreateAgentRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
CreateAgentRequest |
| Returns | |
|---|---|
| Type | Description |
CreateAgentRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CreateAgentRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CreateAgentRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CreateAgentRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CreateAgentRequest.Builder |
|
setAgent(Agent value)
public CreateAgentRequest.Builder setAgent(Agent value)Required. The agent to create.
.google.cloud.ces.v1.Agent agent = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Agent |
| Returns | |
|---|---|
| Type | Description |
CreateAgentRequest.Builder |
|
setAgent(Agent.Builder builderForValue)
public CreateAgentRequest.Builder setAgent(Agent.Builder builderForValue)Required. The agent to create.
.google.cloud.ces.v1.Agent agent = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Agent.Builder |
| Returns | |
|---|---|
| Type | Description |
CreateAgentRequest.Builder |
|
setAgentId(String value)
public CreateAgentRequest.Builder setAgentId(String value)Optional. The ID to use for the agent, which will become the final component of the agent's resource name. If not provided, a unique ID will be automatically assigned for the agent.
string agent_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe agentId to set. |
| Returns | |
|---|---|
| Type | Description |
CreateAgentRequest.Builder |
This builder for chaining. |
setAgentIdBytes(ByteString value)
public CreateAgentRequest.Builder setAgentIdBytes(ByteString value)Optional. The ID to use for the agent, which will become the final component of the agent's resource name. If not provided, a unique ID will be automatically assigned for the agent.
string agent_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for agentId to set. |
| Returns | |
|---|---|
| Type | Description |
CreateAgentRequest.Builder |
This builder for chaining. |
setParent(String value)
public CreateAgentRequest.Builder setParent(String value)Required. The resource name of the app to create an agent in.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe parent to set. |
| Returns | |
|---|---|
| Type | Description |
CreateAgentRequest.Builder |
This builder for chaining. |
setParentBytes(ByteString value)
public CreateAgentRequest.Builder setParentBytes(ByteString value)Required. The resource name of the app to create an agent in.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for parent to set. |
| Returns | |
|---|---|
| Type | Description |
CreateAgentRequest.Builder |
This builder for chaining. |