- 4.59.0 (latest)
- 4.58.0
- 4.57.0
- 4.55.0
- 4.54.0
- 4.53.0
- 4.52.0
- 4.51.0
- 4.50.0
- 4.49.0
- 4.48.0
- 4.47.0
- 4.46.0
- 4.45.0
- 4.43.0
- 4.42.0
- 4.41.0
- 4.40.0
- 4.39.0
- 4.38.0
- 4.37.0
- 4.36.0
- 4.35.0
- 4.34.0
- 4.33.0
- 4.30.0
- 4.29.0
- 4.28.0
- 4.27.0
- 4.26.0
- 4.25.0
- 4.24.0
- 4.23.0
- 4.22.0
- 4.21.0
- 4.20.0
- 4.19.0
- 4.18.0
- 4.17.0
- 4.15.0
- 4.14.0
- 4.13.0
- 4.12.0
- 4.11.0
- 4.10.0
- 4.9.1
- 4.8.6
- 4.7.5
- 4.6.0
- 4.5.11
- 4.4.0
- 4.3.1
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:
- Basic authentication with username and password.
Authentication with additional authentication headers.
More information could be found at: https://cloud.google.com/dialogflow/docs/fulfillment-configure.
Protobuf type google.cloud.dialogflow.v2.Fulfillment.GenericWebService
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Fulfillment.GenericWebService.BuilderImplements
Fulfillment.GenericWebServiceOrBuilderStatic 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 |
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 |
clearField(Descriptors.FieldDescriptor field)
public Fulfillment.GenericWebService.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
Fulfillment.GenericWebService.Builder |
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 |
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 |
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 |
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()
Use #getRequestHeadersMap() instead.
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 |
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter | |
---|---|
Name | Description |
number |
int |
Returns | |
---|---|
Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter | |
---|---|
Name | Description |
number |
int |
Returns | |
---|---|
Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
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 |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Fulfillment.GenericWebService.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Fulfillment.GenericWebService.Builder |
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 |
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 |
setUnknownFields(UnknownFieldSet unknownFields)
public final Fulfillment.GenericWebService.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Fulfillment.GenericWebService.Builder |
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. |