public static final class CreateToolRequest.Builder extends GeneratedMessageV3.Builder<CreateToolRequest.Builder> implements CreateToolRequestOrBuilder
The request message for
Tools.CreateTool.
Protobuf type google.cloud.dialogflow.cx.v3beta1.CreateToolRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public CreateToolRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public CreateToolRequest build()
public CreateToolRequest buildPartial()
public CreateToolRequest.Builder clear()
Overrides
public CreateToolRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public CreateToolRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public CreateToolRequest.Builder clearParent()
Required. The agent to create a Tool for.
Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
public CreateToolRequest.Builder clearTool()
Required. The Tool to be created.
.google.cloud.dialogflow.cx.v3beta1.Tool tool = 2 [(.google.api.field_behavior) = REQUIRED];
public CreateToolRequest.Builder clone()
Overrides
public CreateToolRequest getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public String getParent()
Required. The agent to create a Tool 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.
|
public ByteString getParentBytes()
Required. The agent to create a Tool 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.
|
Required. The Tool to be created.
.google.cloud.dialogflow.cx.v3beta1.Tool tool = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
Tool |
The tool.
|
public Tool.Builder getToolBuilder()
Required. The Tool to be created.
.google.cloud.dialogflow.cx.v3beta1.Tool tool = 2 [(.google.api.field_behavior) = REQUIRED];
public ToolOrBuilder getToolOrBuilder()
Required. The Tool to be created.
.google.cloud.dialogflow.cx.v3beta1.Tool tool = 2 [(.google.api.field_behavior) = REQUIRED];
Required. The Tool to be created.
.google.cloud.dialogflow.cx.v3beta1.Tool tool = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
boolean |
Whether the tool field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public CreateToolRequest.Builder mergeFrom(CreateToolRequest other)
public CreateToolRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public CreateToolRequest.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public CreateToolRequest.Builder mergeTool(Tool value)
Required. The Tool to be created.
.google.cloud.dialogflow.cx.v3beta1.Tool tool = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
Tool
|
public final CreateToolRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public CreateToolRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public CreateToolRequest.Builder setParent(String value)
Required. The agent to create a Tool 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.
|
public CreateToolRequest.Builder setParentBytes(ByteString value)
Required. The agent to create a Tool 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.
|
public CreateToolRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public CreateToolRequest.Builder setTool(Tool value)
Required. The Tool to be created.
.google.cloud.dialogflow.cx.v3beta1.Tool tool = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
Tool
|
public CreateToolRequest.Builder setTool(Tool.Builder builderForValue)
Required. The Tool to be created.
.google.cloud.dialogflow.cx.v3beta1.Tool tool = 2 [(.google.api.field_behavior) = REQUIRED];
public final CreateToolRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides