public static final class DynamicTool.Builder extends GeneratedMessage.Builder<DynamicTool.Builder> implements DynamicToolOrBuilderConfiguration for dynamic tools.
Protobuf type google.cloud.discoveryengine.v1.DynamicTool
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > DynamicTool.BuilderImplements
DynamicToolOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public DynamicTool build()| Returns | |
|---|---|
| Type | Description |
DynamicTool |
|
buildPartial()
public DynamicTool buildPartial()| Returns | |
|---|---|
| Type | Description |
DynamicTool |
|
clear()
public DynamicTool.Builder clear()| Returns | |
|---|---|
| Type | Description |
DynamicTool.Builder |
|
clearDescription()
public DynamicTool.Builder clearDescription()Optional. The description of the tool.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
DynamicTool.Builder |
This builder for chaining. |
clearDisplayName()
public DynamicTool.Builder clearDisplayName()Optional. The display name of the tool.
string display_name = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
DynamicTool.Builder |
This builder for chaining. |
clearEnabled()
public DynamicTool.Builder clearEnabled()Optional. Whether the tool is enabled.
bool enabled = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
DynamicTool.Builder |
This builder for chaining. |
clearName()
public DynamicTool.Builder clearName()Required. The name of the tool.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
DynamicTool.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public DynamicTool getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
DynamicTool |
|
getDescription()
public String getDescription()Optional. The description of the tool.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()Optional. The description of the tool.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDisplayName()
public String getDisplayName()Optional. The display name of the tool.
string display_name = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The displayName. |
getDisplayNameBytes()
public ByteString getDisplayNameBytes()Optional. The display name of the tool.
string display_name = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for displayName. |
getEnabled()
public boolean getEnabled()Optional. Whether the tool is enabled.
bool enabled = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The enabled. |
getName()
public String getName()Required. The name of the tool.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()Required. The name of the tool.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(DynamicTool other)
public DynamicTool.Builder mergeFrom(DynamicTool other)| Parameter | |
|---|---|
| Name | Description |
other |
DynamicTool |
| Returns | |
|---|---|
| Type | Description |
DynamicTool.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public DynamicTool.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DynamicTool.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public DynamicTool.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
DynamicTool.Builder |
|
setDescription(String value)
public DynamicTool.Builder setDescription(String value)Optional. The description of the tool.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe description to set. |
| Returns | |
|---|---|
| Type | Description |
DynamicTool.Builder |
This builder for chaining. |
setDescriptionBytes(ByteString value)
public DynamicTool.Builder setDescriptionBytes(ByteString value)Optional. The description of the tool.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for description to set. |
| Returns | |
|---|---|
| Type | Description |
DynamicTool.Builder |
This builder for chaining. |
setDisplayName(String value)
public DynamicTool.Builder setDisplayName(String value)Optional. The display name of the tool.
string display_name = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe displayName to set. |
| Returns | |
|---|---|
| Type | Description |
DynamicTool.Builder |
This builder for chaining. |
setDisplayNameBytes(ByteString value)
public DynamicTool.Builder setDisplayNameBytes(ByteString value)Optional. The display name of the tool.
string display_name = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for displayName to set. |
| Returns | |
|---|---|
| Type | Description |
DynamicTool.Builder |
This builder for chaining. |
setEnabled(boolean value)
public DynamicTool.Builder setEnabled(boolean value)Optional. Whether the tool is enabled.
bool enabled = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe enabled to set. |
| Returns | |
|---|---|
| Type | Description |
DynamicTool.Builder |
This builder for chaining. |
setName(String value)
public DynamicTool.Builder setName(String value)Required. The name of the tool.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
DynamicTool.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public DynamicTool.Builder setNameBytes(ByteString value)Required. The name of the tool.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
DynamicTool.Builder |
This builder for chaining. |