Class Webhook.GenericWebService.Builder (0.14.2)

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.v3beta1.Webhook.GenericWebService

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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, <code><code> openssl x509 -req -days 200 -in example.com.csr &#92; -signkey example.com.key &#92; -out example.com.crt &#92; -extfile &lt;(printf "&#92;nsubjectAltName='DNS:www.example.com'") </code></code>

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

Parameter
NameDescription
valuesIterable<? extends com.google.protobuf.ByteString>

The allowedCaCerts to add.

Returns
TypeDescription
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, <code><code> openssl x509 -req -days 200 -in example.com.csr &#92; -signkey example.com.key &#92; -out example.com.crt &#92; -extfile &lt;(printf "&#92;nsubjectAltName='DNS:www.example.com'") </code></code>

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

Parameter
NameDescription
valueByteString

The allowedCaCerts to add.

Returns
TypeDescription
Webhook.GenericWebService.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

public Webhook.GenericWebService.Builder clear()
Returns
TypeDescription
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, <code><code> openssl x509 -req -days 200 -in example.com.csr &#92; -signkey example.com.key &#92; -out example.com.crt &#92; -extfile &lt;(printf "&#92;nsubjectAltName='DNS:www.example.com'") </code></code>

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

Returns
TypeDescription
Webhook.GenericWebService.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPassword() (deprecated)

public Webhook.GenericWebService.Builder clearPassword()

Deprecated. google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.password is deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=110

The password for HTTP Basic authentication.

string password = 3 [deprecated = true];

Returns
TypeDescription
Webhook.GenericWebService.Builder

This builder for chaining.

clearRequestHeaders()

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

This builder for chaining.

clearUsername() (deprecated)

public Webhook.GenericWebService.Builder clearUsername()

Deprecated. google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.username is deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=107

The user name for HTTP Basic authentication.

string username = 2 [deprecated = true];

Returns
TypeDescription
Webhook.GenericWebService.Builder

This builder for chaining.

clone()

public Webhook.GenericWebService.Builder clone()
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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, <code><code> openssl x509 -req -days 200 -in example.com.csr &#92; -signkey example.com.key &#92; -out example.com.crt &#92; -extfile &lt;(printf "&#92;nsubjectAltName='DNS:www.example.com'") </code></code>

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

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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, <code><code> openssl x509 -req -days 200 -in example.com.csr &#92; -signkey example.com.key &#92; -out example.com.crt &#92; -extfile &lt;(printf "&#92;nsubjectAltName='DNS:www.example.com'") </code></code>

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

Returns
TypeDescription
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, <code><code> openssl x509 -req -days 200 -in example.com.csr &#92; -signkey example.com.key &#92; -out example.com.crt &#92; -extfile &lt;(printf "&#92;nsubjectAltName='DNS:www.example.com'") </code></code>

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

Returns
TypeDescription
List<ByteString>

A list containing the allowedCaCerts.

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMutableRequestHeaders()

public Map<String,String> getMutableRequestHeaders()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getPassword() (deprecated)

public String getPassword()

Deprecated. google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.password is deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=110

The password for HTTP Basic authentication.

string password = 3 [deprecated = true];

Returns
TypeDescription
String

The password.

getPasswordBytes() (deprecated)

public ByteString getPasswordBytes()

Deprecated. google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.password is deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=110

The password for HTTP Basic authentication.

string password = 3 [deprecated = true];

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 webhook requests.

map<string, string> request_headers = 4;

Returns
TypeDescription
int

getRequestHeadersMap()

public Map<String,String> getRequestHeadersMap()

The HTTP request headers to send together with webhook 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 webhook 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 webhook requests.

map<string, string> request_headers = 4;

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

The bytes for uri.

getUsername() (deprecated)

public String getUsername()

Deprecated. google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.username is deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=107

The user name for HTTP Basic authentication.

string username = 2 [deprecated = true];

Returns
TypeDescription
String

The username.

getUsernameBytes() (deprecated)

public ByteString getUsernameBytes()

Deprecated. google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.username is deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=107

The user name for HTTP Basic authentication.

string username = 2 [deprecated = true];

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(Webhook.GenericWebService other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Webhook.GenericWebService.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuesMap<String,String>
Returns
TypeDescription
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
NameDescription
keyString
valueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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, <code><code> openssl x509 -req -days 200 -in example.com.csr &#92; -signkey example.com.key &#92; -out example.com.crt &#92; -extfile &lt;(printf "&#92;nsubjectAltName='DNS:www.example.com'") </code></code>

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

Parameters
NameDescription
indexint

The index to set the value at.

valueByteString

The allowedCaCerts to set.

Returns
TypeDescription
Webhook.GenericWebService.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setPassword(String value) (deprecated)

public Webhook.GenericWebService.Builder setPassword(String value)

Deprecated. google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.password is deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=110

The password for HTTP Basic authentication.

string password = 3 [deprecated = true];

Parameter
NameDescription
valueString

The password to set.

Returns
TypeDescription
Webhook.GenericWebService.Builder

This builder for chaining.

setPasswordBytes(ByteString value) (deprecated)

public Webhook.GenericWebService.Builder setPasswordBytes(ByteString value)

Deprecated. google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.password is deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=110

The password for HTTP Basic authentication.

string password = 3 [deprecated = true];

Parameter
NameDescription
valueByteString

The bytes for password to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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

The uri to set.

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

The bytes for uri to set.

Returns
TypeDescription
Webhook.GenericWebService.Builder

This builder for chaining.

setUsername(String value) (deprecated)

public Webhook.GenericWebService.Builder setUsername(String value)

Deprecated. google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.username is deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=107

The user name for HTTP Basic authentication.

string username = 2 [deprecated = true];

Parameter
NameDescription
valueString

The username to set.

Returns
TypeDescription
Webhook.GenericWebService.Builder

This builder for chaining.

setUsernameBytes(ByteString value) (deprecated)

public Webhook.GenericWebService.Builder setUsernameBytes(ByteString value)

Deprecated. google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.username is deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=107

The user name for HTTP Basic authentication.

string username = 2 [deprecated = true];

Parameter
NameDescription
valueByteString

The bytes for username to set.

Returns
TypeDescription
Webhook.GenericWebService.Builder

This builder for chaining.