Class Fulfillment.GenericWebService.Builder (4.7.2)

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.v2beta1.Fulfillment.GenericWebService

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Fulfillment.GenericWebService build()
Returns
TypeDescription
Fulfillment.GenericWebService

buildPartial()

public Fulfillment.GenericWebService buildPartial()
Returns
TypeDescription
Fulfillment.GenericWebService

clear()

public Fulfillment.GenericWebService.Builder clear()
Returns
TypeDescription
Fulfillment.GenericWebService.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Fulfillment.GenericWebService.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Fulfillment.GenericWebService.Builder
Overrides

clearIsCloudFunction() (deprecated)

public Fulfillment.GenericWebService.Builder clearIsCloudFunction()

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

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
TypeDescription
Fulfillment.GenericWebService.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Fulfillment.GenericWebService.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Fulfillment.GenericWebService.Builder
Overrides

clearPassword()

public Fulfillment.GenericWebService.Builder clearPassword()

The password for HTTP Basic authentication.

string password = 3;

Returns
TypeDescription
Fulfillment.GenericWebService.Builder

This builder for chaining.

clearRequestHeaders()

public Fulfillment.GenericWebService.Builder clearRequestHeaders()
Returns
TypeDescription
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
TypeDescription
Fulfillment.GenericWebService.Builder

This builder for chaining.

clearUsername()

public Fulfillment.GenericWebService.Builder clearUsername()

The user name for HTTP Basic authentication.

string username = 2;

Returns
TypeDescription
Fulfillment.GenericWebService.Builder

This builder for chaining.

clone()

public Fulfillment.GenericWebService.Builder clone()
Returns
TypeDescription
Fulfillment.GenericWebService.Builder
Overrides

containsRequestHeaders(String key)

public boolean containsRequestHeaders(String key)

The HTTP request headers to send together with fulfillment requests.

map<string, string> request_headers = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public Fulfillment.GenericWebService getDefaultInstanceForType()
Returns
TypeDescription
Fulfillment.GenericWebService

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getIsCloudFunction() (deprecated)

public boolean getIsCloudFunction()

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

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
TypeDescription
boolean

The isCloudFunction.

getMutableRequestHeaders()

public Map<String,String> getMutableRequestHeaders()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getPassword()

public String getPassword()

The password for HTTP Basic authentication.

string password = 3;

Returns
TypeDescription
String

The password.

getPasswordBytes()

public ByteString getPasswordBytes()

The password for HTTP Basic authentication.

string password = 3;

Returns
TypeDescription
ByteString

The bytes for password.

getRequestHeaders()

public Map<String,String> getRequestHeaders()
Returns
TypeDescription
Map<String,String>

getRequestHeadersCount()

public int getRequestHeadersCount()

The HTTP request headers to send together with fulfillment requests.

map<string, string> request_headers = 4;

Returns
TypeDescription
int

getRequestHeadersMap()

public Map<String,String> getRequestHeadersMap()

The HTTP request headers to send together with fulfillment requests.

map<string, string> request_headers = 4;

Returns
TypeDescription
Map<String,String>

getRequestHeadersOrDefault(String key, String defaultValue)

public String getRequestHeadersOrDefault(String key, String defaultValue)

The HTTP request headers to send together with fulfillment requests.

map<string, string> request_headers = 4;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getRequestHeadersOrThrow(String key)

public String getRequestHeadersOrThrow(String key)

The HTTP request headers to send together with fulfillment requests.

map<string, string> request_headers = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for uri.

getUsername()

public String getUsername()

The user name for HTTP Basic authentication.

string username = 2;

Returns
TypeDescription
String

The username.

getUsernameBytes()

public ByteString getUsernameBytes()

The user name for HTTP Basic authentication.

string username = 2;

Returns
TypeDescription
ByteString

The bytes for username.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Fulfillment.GenericWebService other)

public Fulfillment.GenericWebService.Builder mergeFrom(Fulfillment.GenericWebService other)
Parameter
NameDescription
otherFulfillment.GenericWebService
Returns
TypeDescription
Fulfillment.GenericWebService.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Fulfillment.GenericWebService.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Fulfillment.GenericWebService.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Fulfillment.GenericWebService.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Fulfillment.GenericWebService.Builder
Overrides

putAllRequestHeaders(Map<String,String> values)

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

The HTTP request headers to send together with fulfillment requests.

map<string, string> request_headers = 4;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
Fulfillment.GenericWebService.Builder

putRequestHeaders(String key, String value)

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

The HTTP request headers to send together with fulfillment requests.

map<string, string> request_headers = 4;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
Fulfillment.GenericWebService.Builder

removeRequestHeaders(String key)

public Fulfillment.GenericWebService.Builder removeRequestHeaders(String key)

The HTTP request headers to send together with fulfillment requests.

map<string, string> request_headers = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
Fulfillment.GenericWebService.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setIsCloudFunction(boolean value) (deprecated)

public Fulfillment.GenericWebService.Builder setIsCloudFunction(boolean value)

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

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
NameDescription
valueboolean

The isCloudFunction to set.

Returns
TypeDescription
Fulfillment.GenericWebService.Builder

This builder for chaining.

setPassword(String value)

public Fulfillment.GenericWebService.Builder setPassword(String value)

The password for HTTP Basic authentication.

string password = 3;

Parameter
NameDescription
valueString

The password to set.

Returns
TypeDescription
Fulfillment.GenericWebService.Builder

This builder for chaining.

setPasswordBytes(ByteString value)

public Fulfillment.GenericWebService.Builder setPasswordBytes(ByteString value)

The password for HTTP Basic authentication.

string password = 3;

Parameter
NameDescription
valueByteString

The bytes for password to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Fulfillment.GenericWebService.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Fulfillment.GenericWebService.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The uri to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for uri to set.

Returns
TypeDescription
Fulfillment.GenericWebService.Builder

This builder for chaining.

setUsername(String value)

public Fulfillment.GenericWebService.Builder setUsername(String value)

The user name for HTTP Basic authentication.

string username = 2;

Parameter
NameDescription
valueString

The username to set.

Returns
TypeDescription
Fulfillment.GenericWebService.Builder

This builder for chaining.

setUsernameBytes(ByteString value)

public Fulfillment.GenericWebService.Builder setUsernameBytes(ByteString value)

The user name for HTTP Basic authentication.

string username = 2;

Parameter
NameDescription
valueByteString

The bytes for username to set.

Returns
TypeDescription
Fulfillment.GenericWebService.Builder

This builder for chaining.