public static final class CreateToolRequest.Builder extends GeneratedMessage.Builder<CreateToolRequest.Builder> implements CreateToolRequestOrBuilderRequest message for AgentService.CreateTool.
Protobuf type google.cloud.ces.v1.CreateToolRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > CreateToolRequest.BuilderImplements
CreateToolRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public CreateToolRequest build()| Returns | |
|---|---|
| Type | Description |
CreateToolRequest |
|
buildPartial()
public CreateToolRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
CreateToolRequest |
|
clear()
public CreateToolRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
CreateToolRequest.Builder |
|
clearParent()
public CreateToolRequest.Builder clearParent()Required. The resource name of the app to create a tool in.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
CreateToolRequest.Builder |
This builder for chaining. |
clearTool()
public CreateToolRequest.Builder clearTool()Required. The tool to create.
.google.cloud.ces.v1.Tool tool = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
CreateToolRequest.Builder |
|
clearToolId()
public CreateToolRequest.Builder clearToolId()Optional. The ID to use for the tool, which will become the final component of the tool's resource name. If not provided, a unique ID will be automatically assigned for the tool.
string tool_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
CreateToolRequest.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public CreateToolRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CreateToolRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getParent()
public String getParent()Required. The resource name of the app to create a tool 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 a tool in.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for parent. |
getTool()
public Tool getTool()Required. The tool to create.
.google.cloud.ces.v1.Tool tool = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Tool |
The tool. |
getToolBuilder()
public Tool.Builder getToolBuilder()Required. The tool to create.
.google.cloud.ces.v1.Tool tool = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Tool.Builder |
|
getToolId()
public String getToolId()Optional. The ID to use for the tool, which will become the final component of the tool's resource name. If not provided, a unique ID will be automatically assigned for the tool.
string tool_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The toolId. |
getToolIdBytes()
public ByteString getToolIdBytes()Optional. The ID to use for the tool, which will become the final component of the tool's resource name. If not provided, a unique ID will be automatically assigned for the tool.
string tool_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for toolId. |
getToolOrBuilder()
public ToolOrBuilder getToolOrBuilder()Required. The tool to create.
.google.cloud.ces.v1.Tool tool = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ToolOrBuilder |
|
hasTool()
public boolean hasTool()Required. The tool to create.
.google.cloud.ces.v1.Tool tool = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the tool field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CreateToolRequest other)
public CreateToolRequest.Builder mergeFrom(CreateToolRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
CreateToolRequest |
| Returns | |
|---|---|
| Type | Description |
CreateToolRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CreateToolRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CreateToolRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CreateToolRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CreateToolRequest.Builder |
|
mergeTool(Tool value)
public CreateToolRequest.Builder mergeTool(Tool value)Required. The tool to create.
.google.cloud.ces.v1.Tool tool = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Tool |
| Returns | |
|---|---|
| Type | Description |
CreateToolRequest.Builder |
|
setParent(String value)
public CreateToolRequest.Builder setParent(String value)Required. The resource name of the app to create a tool in.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe parent to set. |
| Returns | |
|---|---|
| Type | Description |
CreateToolRequest.Builder |
This builder for chaining. |
setParentBytes(ByteString value)
public CreateToolRequest.Builder setParentBytes(ByteString value)Required. The resource name of the app to create a tool 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 |
CreateToolRequest.Builder |
This builder for chaining. |
setTool(Tool value)
public CreateToolRequest.Builder setTool(Tool value)Required. The tool to create.
.google.cloud.ces.v1.Tool tool = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Tool |
| Returns | |
|---|---|
| Type | Description |
CreateToolRequest.Builder |
|
setTool(Tool.Builder builderForValue)
public CreateToolRequest.Builder setTool(Tool.Builder builderForValue)Required. The tool to create.
.google.cloud.ces.v1.Tool tool = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Tool.Builder |
| Returns | |
|---|---|
| Type | Description |
CreateToolRequest.Builder |
|
setToolId(String value)
public CreateToolRequest.Builder setToolId(String value)Optional. The ID to use for the tool, which will become the final component of the tool's resource name. If not provided, a unique ID will be automatically assigned for the tool.
string tool_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe toolId to set. |
| Returns | |
|---|---|
| Type | Description |
CreateToolRequest.Builder |
This builder for chaining. |
setToolIdBytes(ByteString value)
public CreateToolRequest.Builder setToolIdBytes(ByteString value)Optional. The ID to use for the tool, which will become the final component of the tool's resource name. If not provided, a unique ID will be automatically assigned for the tool.
string tool_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for toolId to set. |
| Returns | |
|---|---|
| Type | Description |
CreateToolRequest.Builder |
This builder for chaining. |