Class Tool.ServiceDirectoryConfig.Builder (0.94.0)

public static final class Tool.ServiceDirectoryConfig.Builder extends GeneratedMessage.Builder<Tool.ServiceDirectoryConfig.Builder> implements Tool.ServiceDirectoryConfigOrBuilder

Configuration for tools using Service Directory.

Protobuf type google.cloud.dialogflow.cx.v3.Tool.ServiceDirectoryConfig

Static Methods

getDescriptor()

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

Methods

build()

public Tool.ServiceDirectoryConfig build()
Returns
Type Description
Tool.ServiceDirectoryConfig

buildPartial()

public Tool.ServiceDirectoryConfig buildPartial()
Returns
Type Description
Tool.ServiceDirectoryConfig

clear()

public Tool.ServiceDirectoryConfig.Builder clear()
Returns
Type Description
Tool.ServiceDirectoryConfig.Builder
Overrides

clearService()

public Tool.ServiceDirectoryConfig.Builder clearService()

Required. The name of Service Directory service. Format: projects/<ProjectID>/locations/<LocationID>/namespaces/<NamespaceID>/services/<ServiceID>. LocationID of the service directory must be the same as the location of the agent.

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

Returns
Type Description
Tool.ServiceDirectoryConfig.Builder

This builder for chaining.

getDefaultInstanceForType()

public Tool.ServiceDirectoryConfig getDefaultInstanceForType()
Returns
Type Description
Tool.ServiceDirectoryConfig

getDescriptorForType()

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

getService()

public String getService()

Required. The name of Service Directory service. Format: projects/<ProjectID>/locations/<LocationID>/namespaces/<NamespaceID>/services/<ServiceID>. LocationID of the service directory must be the same as the location of the agent.

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

Returns
Type Description
String

The service.

getServiceBytes()

public ByteString getServiceBytes()

Required. The name of Service Directory service. Format: projects/<ProjectID>/locations/<LocationID>/namespaces/<NamespaceID>/services/<ServiceID>. LocationID of the service directory must be the same as the location of the agent.

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

Returns
Type Description
ByteString

The bytes for service.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Tool.ServiceDirectoryConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setService(String value)

public Tool.ServiceDirectoryConfig.Builder setService(String value)

Required. The name of Service Directory service. Format: projects/<ProjectID>/locations/<LocationID>/namespaces/<NamespaceID>/services/<ServiceID>. LocationID of the service directory must be the same as the location of the agent.

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

Parameter
Name Description
value String

The service to set.

Returns
Type Description
Tool.ServiceDirectoryConfig.Builder

This builder for chaining.

setServiceBytes(ByteString value)

public Tool.ServiceDirectoryConfig.Builder setServiceBytes(ByteString value)

Required. The name of Service Directory service. Format: projects/<ProjectID>/locations/<LocationID>/namespaces/<NamespaceID>/services/<ServiceID>. LocationID of the service directory must be the same as the location of the agent.

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

Parameter
Name Description
value ByteString

The bytes for service to set.

Returns
Type Description
Tool.ServiceDirectoryConfig.Builder

This builder for chaining.