Class Tool.ServiceDirectoryConfig.Builder (0.58.0)

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

Configuration for tools using Service Directory.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Tool.ServiceDirectoryConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Tool.ServiceDirectoryConfig.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public Tool.ServiceDirectoryConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Tool.ServiceDirectoryConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Tool.ServiceDirectoryConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Tool.ServiceDirectoryConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Tool.ServiceDirectoryConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Tool.ServiceDirectoryConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Tool.ServiceDirectoryConfig.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Tool.ServiceDirectoryConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
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.

setUnknownFields(UnknownFieldSet unknownFields)

public final Tool.ServiceDirectoryConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Tool.ServiceDirectoryConfig.Builder
Overrides