Class Fulfillment.GenericWebService.Builder (4.46.0)

public static final class Fulfillment.GenericWebService.Builder extends GeneratedMessageV3.Builder<Fulfillment.GenericWebService.Builder> implements Fulfillment.GenericWebServiceOrBuilder

Represents configuration for a generic web service. Dialogflow supports two mechanisms for authentications:

Protobuf type google.cloud.dialogflow.v2.Fulfillment.GenericWebService

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Fulfillment.GenericWebService build()
Returns
Type Description
Fulfillment.GenericWebService

buildPartial()

public Fulfillment.GenericWebService buildPartial()
Returns
Type Description
Fulfillment.GenericWebService

clear()

public Fulfillment.GenericWebService.Builder clear()
Returns
Type Description
Fulfillment.GenericWebService.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Fulfillment.GenericWebService.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Fulfillment.GenericWebService.Builder
Overrides

clearIsCloudFunction() (deprecated)

public Fulfillment.GenericWebService.Builder clearIsCloudFunction()

Deprecated. google.cloud.dialogflow.v2.Fulfillment.GenericWebService.is_cloud_function is deprecated. See google/cloud/dialogflow/v2/fulfillment.proto;l=110

Optional. Indicates if generic web service is created through Cloud Functions integration. Defaults to false.

is_cloud_function is deprecated. Cloud functions can be configured by its uri as a regular web service now.

bool is_cloud_function = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Fulfillment.GenericWebService.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Fulfillment.GenericWebService.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Fulfillment.GenericWebService.Builder
Overrides

clearPassword()

public Fulfillment.GenericWebService.Builder clearPassword()

Optional. The password for HTTP Basic authentication.

string password = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Fulfillment.GenericWebService.Builder

This builder for chaining.

clearRequestHeaders()

public Fulfillment.GenericWebService.Builder clearRequestHeaders()
Returns
Type Description
Fulfillment.GenericWebService.Builder

clearUri()

public Fulfillment.GenericWebService.Builder clearUri()

Required. The fulfillment URI for receiving POST requests. It must use https protocol.

string uri = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Fulfillment.GenericWebService.Builder

This builder for chaining.

clearUsername()

public Fulfillment.GenericWebService.Builder clearUsername()

Optional. The user name for HTTP Basic authentication.

string username = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Fulfillment.GenericWebService.Builder

This builder for chaining.

clone()

public Fulfillment.GenericWebService.Builder clone()
Returns
Type Description
Fulfillment.GenericWebService.Builder
Overrides

containsRequestHeaders(String key)

public boolean containsRequestHeaders(String key)

Optional. The HTTP request headers to send together with fulfillment requests.

map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public Fulfillment.GenericWebService getDefaultInstanceForType()
Returns
Type Description
Fulfillment.GenericWebService

getDescriptorForType()

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

getIsCloudFunction() (deprecated)

public boolean getIsCloudFunction()

Deprecated. google.cloud.dialogflow.v2.Fulfillment.GenericWebService.is_cloud_function is deprecated. See google/cloud/dialogflow/v2/fulfillment.proto;l=110

Optional. Indicates if generic web service is created through Cloud Functions integration. Defaults to false.

is_cloud_function is deprecated. Cloud functions can be configured by its uri as a regular web service now.

bool is_cloud_function = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The isCloudFunction.

getMutableRequestHeaders() (deprecated)

public Map<String,String> getMutableRequestHeaders()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getPassword()

public String getPassword()

Optional. The password for HTTP Basic authentication.

string password = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The password.

getPasswordBytes()

public ByteString getPasswordBytes()

Optional. The password for HTTP Basic authentication.

string password = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for password.

getRequestHeaders() (deprecated)

public Map<String,String> getRequestHeaders()
Returns
Type Description
Map<String,String>

getRequestHeadersCount()

public int getRequestHeadersCount()

Optional. The HTTP request headers to send together with fulfillment requests.

map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getRequestHeadersMap()

public Map<String,String> getRequestHeadersMap()

Optional. The HTTP request headers to send together with fulfillment requests.

map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getRequestHeadersOrDefault(String key, String defaultValue)

public String getRequestHeadersOrDefault(String key, String defaultValue)

Optional. The HTTP request headers to send together with fulfillment requests.

map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getRequestHeadersOrThrow(String key)

public String getRequestHeadersOrThrow(String key)

Optional. The HTTP request headers to send together with fulfillment requests.

map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getUri()

public String getUri()

Required. The fulfillment URI for receiving POST requests. It must use https protocol.

string uri = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The uri.

getUriBytes()

public ByteString getUriBytes()

Required. The fulfillment URI for receiving POST requests. It must use https protocol.

string uri = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for uri.

getUsername()

public String getUsername()

Optional. The user name for HTTP Basic authentication.

string username = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The username.

getUsernameBytes()

public ByteString getUsernameBytes()

Optional. The user name for HTTP Basic authentication.

string username = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for username.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Fulfillment.GenericWebService other)

public Fulfillment.GenericWebService.Builder mergeFrom(Fulfillment.GenericWebService other)
Parameter
Name Description
other Fulfillment.GenericWebService
Returns
Type Description
Fulfillment.GenericWebService.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Fulfillment.GenericWebService.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Fulfillment.GenericWebService.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Fulfillment.GenericWebService.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Fulfillment.GenericWebService.Builder
Overrides

putAllRequestHeaders(Map<String,String> values)

public Fulfillment.GenericWebService.Builder putAllRequestHeaders(Map<String,String> values)

Optional. The HTTP request headers to send together with fulfillment requests.

map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
Fulfillment.GenericWebService.Builder

putRequestHeaders(String key, String value)

public Fulfillment.GenericWebService.Builder putRequestHeaders(String key, String value)

Optional. The HTTP request headers to send together with fulfillment requests.

map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
value String
Returns
Type Description
Fulfillment.GenericWebService.Builder

removeRequestHeaders(String key)

public Fulfillment.GenericWebService.Builder removeRequestHeaders(String key)

Optional. The HTTP request headers to send together with fulfillment requests.

map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
Fulfillment.GenericWebService.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setIsCloudFunction(boolean value) (deprecated)

public Fulfillment.GenericWebService.Builder setIsCloudFunction(boolean value)

Deprecated. google.cloud.dialogflow.v2.Fulfillment.GenericWebService.is_cloud_function is deprecated. See google/cloud/dialogflow/v2/fulfillment.proto;l=110

Optional. Indicates if generic web service is created through Cloud Functions integration. Defaults to false.

is_cloud_function is deprecated. Cloud functions can be configured by its uri as a regular web service now.

bool is_cloud_function = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The isCloudFunction to set.

Returns
Type Description
Fulfillment.GenericWebService.Builder

This builder for chaining.

setPassword(String value)

public Fulfillment.GenericWebService.Builder setPassword(String value)

Optional. The password for HTTP Basic authentication.

string password = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The password to set.

Returns
Type Description
Fulfillment.GenericWebService.Builder

This builder for chaining.

setPasswordBytes(ByteString value)

public Fulfillment.GenericWebService.Builder setPasswordBytes(ByteString value)

Optional. The password for HTTP Basic authentication.

string password = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for password to set.

Returns
Type Description
Fulfillment.GenericWebService.Builder

This builder for chaining.

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

public Fulfillment.GenericWebService.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Fulfillment.GenericWebService.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Fulfillment.GenericWebService.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Fulfillment.GenericWebService.Builder
Overrides

setUri(String value)

public Fulfillment.GenericWebService.Builder setUri(String value)

Required. The fulfillment URI for receiving POST requests. It must use https protocol.

string uri = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The uri to set.

Returns
Type Description
Fulfillment.GenericWebService.Builder

This builder for chaining.

setUriBytes(ByteString value)

public Fulfillment.GenericWebService.Builder setUriBytes(ByteString value)

Required. The fulfillment URI for receiving POST requests. It must use https protocol.

string uri = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for uri to set.

Returns
Type Description
Fulfillment.GenericWebService.Builder

This builder for chaining.

setUsername(String value)

public Fulfillment.GenericWebService.Builder setUsername(String value)

Optional. The user name for HTTP Basic authentication.

string username = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The username to set.

Returns
Type Description
Fulfillment.GenericWebService.Builder

This builder for chaining.

setUsernameBytes(ByteString value)

public Fulfillment.GenericWebService.Builder setUsernameBytes(ByteString value)

Optional. The user name for HTTP Basic authentication.

string username = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for username to set.

Returns
Type Description
Fulfillment.GenericWebService.Builder

This builder for chaining.