Class Webhook.GenericWebService.Builder (0.11.5)

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

Represents configuration for a generic web service.

Protobuf type google.cloud.dialogflow.cx.v3.Webhook.GenericWebService

Static Methods

getDescriptor()

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

Methods

addAllAllowedCaCerts(Iterable<? extends ByteString> values)

public Webhook.GenericWebService.Builder addAllAllowedCaCerts(Iterable<? extends ByteString> values)

Optional. Specifies a list of allowed custom CA certificates (in DER format) for HTTPS verification. This overrides the default SSL trust store. If this is empty or unspecified, Dialogflow will use Google's default trust store to verify certificates. N.B. Make sure the HTTPS server certificates are signed with "subject alt name". For instance a certificate can be self-signed using the following command, openssl x509 -req -days 200 -in example.com.csr \ -signkey example.com.key \ -out example.com.crt \ -extfile <(printf "\nsubjectAltName='DNS:www.example.com'")

repeated bytes allowed_ca_certs = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.protobuf.ByteString>

The allowedCaCerts to add.

Returns
Type Description
Webhook.GenericWebService.Builder

This builder for chaining.

addAllowedCaCerts(ByteString value)

public Webhook.GenericWebService.Builder addAllowedCaCerts(ByteString value)

Optional. Specifies a list of allowed custom CA certificates (in DER format) for HTTPS verification. This overrides the default SSL trust store. If this is empty or unspecified, Dialogflow will use Google's default trust store to verify certificates. N.B. Make sure the HTTPS server certificates are signed with "subject alt name". For instance a certificate can be self-signed using the following command, openssl x509 -req -days 200 -in example.com.csr \ -signkey example.com.key \ -out example.com.crt \ -extfile <(printf "\nsubjectAltName='DNS:www.example.com'")

repeated bytes allowed_ca_certs = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The allowedCaCerts to add.

Returns
Type Description
Webhook.GenericWebService.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearAllowedCaCerts()

public Webhook.GenericWebService.Builder clearAllowedCaCerts()

Optional. Specifies a list of allowed custom CA certificates (in DER format) for HTTPS verification. This overrides the default SSL trust store. If this is empty or unspecified, Dialogflow will use Google's default trust store to verify certificates. N.B. Make sure the HTTPS server certificates are signed with "subject alt name". For instance a certificate can be self-signed using the following command, openssl x509 -req -days 200 -in example.com.csr \ -signkey example.com.key \ -out example.com.crt \ -extfile <(printf "\nsubjectAltName='DNS:www.example.com'")

repeated bytes allowed_ca_certs = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Webhook.GenericWebService.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPassword()

public Webhook.GenericWebService.Builder clearPassword()

The password for HTTP Basic authentication.

string password = 3 [deprecated = true];

Returns
Type Description
Webhook.GenericWebService.Builder

This builder for chaining.

clearRequestHeaders()

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

clearUri()

public Webhook.GenericWebService.Builder clearUri()

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

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

Returns
Type Description
Webhook.GenericWebService.Builder

This builder for chaining.

clearUsername()

public Webhook.GenericWebService.Builder clearUsername()

The user name for HTTP Basic authentication.

string username = 2 [deprecated = true];

Returns
Type Description
Webhook.GenericWebService.Builder

This builder for chaining.

clone()

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

containsRequestHeaders(String key)

public boolean containsRequestHeaders(String key)

The HTTP request headers to send together with webhook requests.

map<string, string> request_headers = 4;

Parameter
Name Description
key String
Returns
Type Description
boolean

getAllowedCaCerts(int index)

public ByteString getAllowedCaCerts(int index)

Optional. Specifies a list of allowed custom CA certificates (in DER format) for HTTPS verification. This overrides the default SSL trust store. If this is empty or unspecified, Dialogflow will use Google's default trust store to verify certificates. N.B. Make sure the HTTPS server certificates are signed with "subject alt name". For instance a certificate can be self-signed using the following command, openssl x509 -req -days 200 -in example.com.csr \ -signkey example.com.key \ -out example.com.crt \ -extfile <(printf "\nsubjectAltName='DNS:www.example.com'")

repeated bytes allowed_ca_certs = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
ByteString

The allowedCaCerts at the given index.

getAllowedCaCertsCount()

public int getAllowedCaCertsCount()

Optional. Specifies a list of allowed custom CA certificates (in DER format) for HTTPS verification. This overrides the default SSL trust store. If this is empty or unspecified, Dialogflow will use Google's default trust store to verify certificates. N.B. Make sure the HTTPS server certificates are signed with "subject alt name". For instance a certificate can be self-signed using the following command, openssl x509 -req -days 200 -in example.com.csr \ -signkey example.com.key \ -out example.com.crt \ -extfile <(printf "\nsubjectAltName='DNS:www.example.com'")

repeated bytes allowed_ca_certs = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of allowedCaCerts.

getAllowedCaCertsList()

public List<ByteString> getAllowedCaCertsList()

Optional. Specifies a list of allowed custom CA certificates (in DER format) for HTTPS verification. This overrides the default SSL trust store. If this is empty or unspecified, Dialogflow will use Google's default trust store to verify certificates. N.B. Make sure the HTTPS server certificates are signed with "subject alt name". For instance a certificate can be self-signed using the following command, openssl x509 -req -days 200 -in example.com.csr \ -signkey example.com.key \ -out example.com.crt \ -extfile <(printf "\nsubjectAltName='DNS:www.example.com'")

repeated bytes allowed_ca_certs = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<ByteString>

A list containing the allowedCaCerts.

getDefaultInstanceForType()

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

getDescriptorForType()

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

getMutableRequestHeaders()

public Map<String,String> getMutableRequestHeaders()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getPassword()

public String getPassword()

The password for HTTP Basic authentication.

string password = 3 [deprecated = true];

Returns
Type Description
String

The password.

getPasswordBytes()

public ByteString getPasswordBytes()

The password for HTTP Basic authentication.

string password = 3 [deprecated = true];

Returns
Type Description
ByteString

The bytes for password.

getRequestHeaders()

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

getRequestHeadersCount()

public int getRequestHeadersCount()

The HTTP request headers to send together with webhook requests.

map<string, string> request_headers = 4;

Returns
Type Description
int

getRequestHeadersMap()

public Map<String,String> getRequestHeadersMap()

The HTTP request headers to send together with webhook requests.

map<string, string> request_headers = 4;

Returns
Type Description
Map<String,String>

getRequestHeadersOrDefault(String key, String defaultValue)

public String getRequestHeadersOrDefault(String key, String defaultValue)

The HTTP request headers to send together with webhook requests.

map<string, string> request_headers = 4;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getRequestHeadersOrThrow(String key)

public String getRequestHeadersOrThrow(String key)

The HTTP request headers to send together with webhook requests.

map<string, string> request_headers = 4;

Parameter
Name Description
key String
Returns
Type Description
String

getUri()

public String getUri()

Required. The webhook 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 webhook 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()

The user name for HTTP Basic authentication.

string username = 2 [deprecated = true];

Returns
Type Description
String

The username.

getUsernameBytes()

public ByteString getUsernameBytes()

The user name for HTTP Basic authentication.

string username = 2 [deprecated = true];

Returns
Type Description
ByteString

The bytes for username.

internalGetFieldAccessorTable()

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

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
Name Description
number int
Returns
Type Description
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
Name Description
number int
Returns
Type Description
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Webhook.GenericWebService other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllRequestHeaders(Map<String,String> values)

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

The HTTP request headers to send together with webhook requests.

map<string, string> request_headers = 4;

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

putRequestHeaders(String key, String value)

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

The HTTP request headers to send together with webhook requests.

map<string, string> request_headers = 4;

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

removeRequestHeaders(String key)

public Webhook.GenericWebService.Builder removeRequestHeaders(String key)

The HTTP request headers to send together with webhook requests.

map<string, string> request_headers = 4;

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

setAllowedCaCerts(int index, ByteString value)

public Webhook.GenericWebService.Builder setAllowedCaCerts(int index, ByteString value)

Optional. Specifies a list of allowed custom CA certificates (in DER format) for HTTPS verification. This overrides the default SSL trust store. If this is empty or unspecified, Dialogflow will use Google's default trust store to verify certificates. N.B. Make sure the HTTPS server certificates are signed with "subject alt name". For instance a certificate can be self-signed using the following command, openssl x509 -req -days 200 -in example.com.csr \ -signkey example.com.key \ -out example.com.crt \ -extfile <(printf "\nsubjectAltName='DNS:www.example.com'")

repeated bytes allowed_ca_certs = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value ByteString

The allowedCaCerts to set.

Returns
Type Description
Webhook.GenericWebService.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setPassword(String value)

public Webhook.GenericWebService.Builder setPassword(String value)

The password for HTTP Basic authentication.

string password = 3 [deprecated = true];

Parameter
Name Description
value String

The password to set.

Returns
Type Description
Webhook.GenericWebService.Builder

This builder for chaining.

setPasswordBytes(ByteString value)

public Webhook.GenericWebService.Builder setPasswordBytes(ByteString value)

The password for HTTP Basic authentication.

string password = 3 [deprecated = true];

Parameter
Name Description
value ByteString

The bytes for password to set.

Returns
Type Description
Webhook.GenericWebService.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUri(String value)

public Webhook.GenericWebService.Builder setUri(String value)

Required. The webhook 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
Webhook.GenericWebService.Builder

This builder for chaining.

setUriBytes(ByteString value)

public Webhook.GenericWebService.Builder setUriBytes(ByteString value)

Required. The webhook 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
Webhook.GenericWebService.Builder

This builder for chaining.

setUsername(String value)

public Webhook.GenericWebService.Builder setUsername(String value)

The user name for HTTP Basic authentication.

string username = 2 [deprecated = true];

Parameter
Name Description
value String

The username to set.

Returns
Type Description
Webhook.GenericWebService.Builder

This builder for chaining.

setUsernameBytes(ByteString value)

public Webhook.GenericWebService.Builder setUsernameBytes(ByteString value)

The user name for HTTP Basic authentication.

string username = 2 [deprecated = true];

Parameter
Name Description
value ByteString

The bytes for username to set.

Returns
Type Description
Webhook.GenericWebService.Builder

This builder for chaining.