Class Webhook.ServiceDirectoryConfig.Builder (0.13.0)

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

Represents configuration for a Service Directory service.

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Webhook.ServiceDirectoryConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Webhook.ServiceDirectoryConfig.Builder
Overrides

build()

public Webhook.ServiceDirectoryConfig build()
Returns
TypeDescription
Webhook.ServiceDirectoryConfig

buildPartial()

public Webhook.ServiceDirectoryConfig buildPartial()
Returns
TypeDescription
Webhook.ServiceDirectoryConfig

clear()

public Webhook.ServiceDirectoryConfig.Builder clear()
Returns
TypeDescription
Webhook.ServiceDirectoryConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Webhook.ServiceDirectoryConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Webhook.ServiceDirectoryConfig.Builder
Overrides

clearGenericWebService()

public Webhook.ServiceDirectoryConfig.Builder clearGenericWebService()

Generic Service configuration of this webhook.

.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService generic_web_service = 2;

Returns
TypeDescription
Webhook.ServiceDirectoryConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Webhook.ServiceDirectoryConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Webhook.ServiceDirectoryConfig.Builder
Overrides

clearService()

public Webhook.ServiceDirectoryConfig.Builder clearService()

Required. The name of Service Directory service. Format: projects/<Project ID>/locations/<Location ID>/namespaces/<Namespace ID>/services/<Service ID>. Location ID 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
TypeDescription
Webhook.ServiceDirectoryConfig.Builder

This builder for chaining.

clone()

public Webhook.ServiceDirectoryConfig.Builder clone()
Returns
TypeDescription
Webhook.ServiceDirectoryConfig.Builder
Overrides

getDefaultInstanceForType()

public Webhook.ServiceDirectoryConfig getDefaultInstanceForType()
Returns
TypeDescription
Webhook.ServiceDirectoryConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGenericWebService()

public Webhook.GenericWebService getGenericWebService()

Generic Service configuration of this webhook.

.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService generic_web_service = 2;

Returns
TypeDescription
Webhook.GenericWebService

The genericWebService.

getGenericWebServiceBuilder()

public Webhook.GenericWebService.Builder getGenericWebServiceBuilder()

Generic Service configuration of this webhook.

.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService generic_web_service = 2;

Returns
TypeDescription
Webhook.GenericWebService.Builder

getGenericWebServiceOrBuilder()

public Webhook.GenericWebServiceOrBuilder getGenericWebServiceOrBuilder()

Generic Service configuration of this webhook.

.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService generic_web_service = 2;

Returns
TypeDescription
Webhook.GenericWebServiceOrBuilder

getService()

public String getService()

Required. The name of Service Directory service. Format: projects/<Project ID>/locations/<Location ID>/namespaces/<Namespace ID>/services/<Service ID>. Location ID 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
TypeDescription
String

The service.

getServiceBytes()

public ByteString getServiceBytes()

Required. The name of Service Directory service. Format: projects/<Project ID>/locations/<Location ID>/namespaces/<Namespace ID>/services/<Service ID>. Location ID 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
TypeDescription
ByteString

The bytes for service.

hasGenericWebService()

public boolean hasGenericWebService()

Generic Service configuration of this webhook.

.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService generic_web_service = 2;

Returns
TypeDescription
boolean

Whether the genericWebService field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Webhook.ServiceDirectoryConfig other)

public Webhook.ServiceDirectoryConfig.Builder mergeFrom(Webhook.ServiceDirectoryConfig other)
Parameter
NameDescription
otherWebhook.ServiceDirectoryConfig
Returns
TypeDescription
Webhook.ServiceDirectoryConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Webhook.ServiceDirectoryConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Webhook.ServiceDirectoryConfig.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Webhook.ServiceDirectoryConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Webhook.ServiceDirectoryConfig.Builder
Overrides

mergeGenericWebService(Webhook.GenericWebService value)

public Webhook.ServiceDirectoryConfig.Builder mergeGenericWebService(Webhook.GenericWebService value)

Generic Service configuration of this webhook.

.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService generic_web_service = 2;

Parameter
NameDescription
valueWebhook.GenericWebService
Returns
TypeDescription
Webhook.ServiceDirectoryConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Webhook.ServiceDirectoryConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Webhook.ServiceDirectoryConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Webhook.ServiceDirectoryConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Webhook.ServiceDirectoryConfig.Builder
Overrides

setGenericWebService(Webhook.GenericWebService value)

public Webhook.ServiceDirectoryConfig.Builder setGenericWebService(Webhook.GenericWebService value)

Generic Service configuration of this webhook.

.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService generic_web_service = 2;

Parameter
NameDescription
valueWebhook.GenericWebService
Returns
TypeDescription
Webhook.ServiceDirectoryConfig.Builder

setGenericWebService(Webhook.GenericWebService.Builder builderForValue)

public Webhook.ServiceDirectoryConfig.Builder setGenericWebService(Webhook.GenericWebService.Builder builderForValue)

Generic Service configuration of this webhook.

.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService generic_web_service = 2;

Parameter
NameDescription
builderForValueWebhook.GenericWebService.Builder
Returns
TypeDescription
Webhook.ServiceDirectoryConfig.Builder

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

public Webhook.ServiceDirectoryConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Webhook.ServiceDirectoryConfig.Builder
Overrides

setService(String value)

public Webhook.ServiceDirectoryConfig.Builder setService(String value)

Required. The name of Service Directory service. Format: projects/<Project ID>/locations/<Location ID>/namespaces/<Namespace ID>/services/<Service ID>. Location ID 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
NameDescription
valueString

The service to set.

Returns
TypeDescription
Webhook.ServiceDirectoryConfig.Builder

This builder for chaining.

setServiceBytes(ByteString value)

public Webhook.ServiceDirectoryConfig.Builder setServiceBytes(ByteString value)

Required. The name of Service Directory service. Format: projects/<Project ID>/locations/<Location ID>/namespaces/<Namespace ID>/services/<Service ID>. Location ID 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
NameDescription
valueByteString

The bytes for service to set.

Returns
TypeDescription
Webhook.ServiceDirectoryConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Webhook.ServiceDirectoryConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Webhook.ServiceDirectoryConfig.Builder
Overrides