Class Webhook.GenericWebService.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Webhook.GenericWebService.Builder>
-
- com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.Builder
-
- All Implemented Interfaces:
Webhook.GenericWebServiceOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- Webhook.GenericWebService
public static final class Webhook.GenericWebService.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Webhook.GenericWebService.Builder> implements Webhook.GenericWebServiceOrBuilder
Represents configuration for a generic web service.
Protobuf typegoogle.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Webhook.GenericWebService.Builder
addAllAllowedCaCerts(Iterable<? extends com.google.protobuf.ByteString> values)
Optional.Webhook.GenericWebService.Builder
addAllowedCaCerts(com.google.protobuf.ByteString value)
Optional.Webhook.GenericWebService.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Webhook.GenericWebService
build()
Webhook.GenericWebService
buildPartial()
Webhook.GenericWebService.Builder
clear()
Webhook.GenericWebService.Builder
clearAllowedCaCerts()
Optional.Webhook.GenericWebService.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Webhook.GenericWebService.Builder
clearHttpMethod()
Optional.Webhook.GenericWebService.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Webhook.GenericWebService.Builder
clearParameterMapping()
Webhook.GenericWebService.Builder
clearPassword()
Deprecated.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.password is deprecated.Webhook.GenericWebService.Builder
clearRequestBody()
Optional.Webhook.GenericWebService.Builder
clearRequestHeaders()
Webhook.GenericWebService.Builder
clearUri()
Required.Webhook.GenericWebService.Builder
clearUsername()
Deprecated.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.username is deprecated.Webhook.GenericWebService.Builder
clearWebhookType()
Optional.Webhook.GenericWebService.Builder
clone()
boolean
containsParameterMapping(String key)
Optional.boolean
containsRequestHeaders(String key)
The HTTP request headers to send together with webhook requests.com.google.protobuf.ByteString
getAllowedCaCerts(int index)
Optional.int
getAllowedCaCertsCount()
Optional.List<com.google.protobuf.ByteString>
getAllowedCaCertsList()
Optional.Webhook.GenericWebService
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Webhook.GenericWebService.HttpMethod
getHttpMethod()
Optional.int
getHttpMethodValue()
Optional.Map<String,String>
getMutableParameterMapping()
Deprecated.Map<String,String>
getMutableRequestHeaders()
Deprecated.Map<String,String>
getParameterMapping()
Deprecated.int
getParameterMappingCount()
Optional.Map<String,String>
getParameterMappingMap()
Optional.String
getParameterMappingOrDefault(String key, String defaultValue)
Optional.String
getParameterMappingOrThrow(String key)
Optional.String
getPassword()
Deprecated.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.password is deprecated.com.google.protobuf.ByteString
getPasswordBytes()
Deprecated.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.password is deprecated.String
getRequestBody()
Optional.com.google.protobuf.ByteString
getRequestBodyBytes()
Optional.Map<String,String>
getRequestHeaders()
Deprecated.int
getRequestHeadersCount()
The HTTP request headers to send together with webhook requests.Map<String,String>
getRequestHeadersMap()
The HTTP request headers to send together with webhook requests.String
getRequestHeadersOrDefault(String key, String defaultValue)
The HTTP request headers to send together with webhook requests.String
getRequestHeadersOrThrow(String key)
The HTTP request headers to send together with webhook requests.String
getUri()
Required.com.google.protobuf.ByteString
getUriBytes()
Required.String
getUsername()
Deprecated.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.username is deprecated.com.google.protobuf.ByteString
getUsernameBytes()
Deprecated.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.username is deprecated.Webhook.GenericWebService.WebhookType
getWebhookType()
Optional.int
getWebhookTypeValue()
Optional.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
Webhook.GenericWebService.Builder
mergeFrom(Webhook.GenericWebService other)
Webhook.GenericWebService.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Webhook.GenericWebService.Builder
mergeFrom(com.google.protobuf.Message other)
Webhook.GenericWebService.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Webhook.GenericWebService.Builder
putAllParameterMapping(Map<String,String> values)
Optional.Webhook.GenericWebService.Builder
putAllRequestHeaders(Map<String,String> values)
The HTTP request headers to send together with webhook requests.Webhook.GenericWebService.Builder
putParameterMapping(String key, String value)
Optional.Webhook.GenericWebService.Builder
putRequestHeaders(String key, String value)
The HTTP request headers to send together with webhook requests.Webhook.GenericWebService.Builder
removeParameterMapping(String key)
Optional.Webhook.GenericWebService.Builder
removeRequestHeaders(String key)
The HTTP request headers to send together with webhook requests.Webhook.GenericWebService.Builder
setAllowedCaCerts(int index, com.google.protobuf.ByteString value)
Optional.Webhook.GenericWebService.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Webhook.GenericWebService.Builder
setHttpMethod(Webhook.GenericWebService.HttpMethod value)
Optional.Webhook.GenericWebService.Builder
setHttpMethodValue(int value)
Optional.Webhook.GenericWebService.Builder
setPassword(String value)
Deprecated.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.password is deprecated.Webhook.GenericWebService.Builder
setPasswordBytes(com.google.protobuf.ByteString value)
Deprecated.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.password is deprecated.Webhook.GenericWebService.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Webhook.GenericWebService.Builder
setRequestBody(String value)
Optional.Webhook.GenericWebService.Builder
setRequestBodyBytes(com.google.protobuf.ByteString value)
Optional.Webhook.GenericWebService.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Webhook.GenericWebService.Builder
setUri(String value)
Required.Webhook.GenericWebService.Builder
setUriBytes(com.google.protobuf.ByteString value)
Required.Webhook.GenericWebService.Builder
setUsername(String value)
Deprecated.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.username is deprecated.Webhook.GenericWebService.Builder
setUsernameBytes(com.google.protobuf.ByteString value)
Deprecated.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.username is deprecated.Webhook.GenericWebService.Builder
setWebhookType(Webhook.GenericWebService.WebhookType value)
Optional.Webhook.GenericWebService.Builder
setWebhookTypeValue(int value)
Optional.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Webhook.GenericWebService.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Webhook.GenericWebService.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Webhook.GenericWebService.Builder>
-
clear
public Webhook.GenericWebService.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Webhook.GenericWebService.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Webhook.GenericWebService.Builder>
-
getDefaultInstanceForType
public Webhook.GenericWebService getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Webhook.GenericWebService build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Webhook.GenericWebService buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Webhook.GenericWebService.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Webhook.GenericWebService.Builder>
-
setField
public Webhook.GenericWebService.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Webhook.GenericWebService.Builder>
-
clearField
public Webhook.GenericWebService.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Webhook.GenericWebService.Builder>
-
clearOneof
public Webhook.GenericWebService.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Webhook.GenericWebService.Builder>
-
setRepeatedField
public Webhook.GenericWebService.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Webhook.GenericWebService.Builder>
-
addRepeatedField
public Webhook.GenericWebService.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Webhook.GenericWebService.Builder>
-
mergeFrom
public Webhook.GenericWebService.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Webhook.GenericWebService.Builder>
-
mergeFrom
public Webhook.GenericWebService.Builder mergeFrom(Webhook.GenericWebService other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Webhook.GenericWebService.Builder>
-
mergeFrom
public Webhook.GenericWebService.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Webhook.GenericWebService.Builder>
- Throws:
IOException
-
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];
- Specified by:
getUri
in interfaceWebhook.GenericWebServiceOrBuilder
- Returns:
- The uri.
-
getUriBytes
public com.google.protobuf.ByteString getUriBytes()
Required. The webhook URI for receiving POST requests. It must use https protocol.
string uri = 1 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getUriBytes
in interfaceWebhook.GenericWebServiceOrBuilder
- Returns:
- The bytes for uri.
-
setUri
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];
- Parameters:
value
- The uri to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setUriBytes
public Webhook.GenericWebService.Builder setUriBytes(com.google.protobuf.ByteString value)
Required. The webhook URI for receiving POST requests. It must use https protocol.
string uri = 1 [(.google.api.field_behavior) = REQUIRED];
- Parameters:
value
- The bytes for uri to set.- Returns:
- This builder for chaining.
-
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=147The user name for HTTP Basic authentication.
string username = 2 [deprecated = true];
- Specified by:
getUsername
in interfaceWebhook.GenericWebServiceOrBuilder
- Returns:
- The username.
-
getUsernameBytes
@Deprecated public com.google.protobuf.ByteString getUsernameBytes()
Deprecated.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.username is deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=147The user name for HTTP Basic authentication.
string username = 2 [deprecated = true];
- Specified by:
getUsernameBytes
in interfaceWebhook.GenericWebServiceOrBuilder
- Returns:
- The bytes for username.
-
setUsername
@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=147The user name for HTTP Basic authentication.
string username = 2 [deprecated = true];
- Parameters:
value
- The username to set.- Returns:
- 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=147The user name for HTTP Basic authentication.
string username = 2 [deprecated = true];
- Returns:
- This builder for chaining.
-
setUsernameBytes
@Deprecated public Webhook.GenericWebService.Builder setUsernameBytes(com.google.protobuf.ByteString value)
Deprecated.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.username is deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=147The user name for HTTP Basic authentication.
string username = 2 [deprecated = true];
- Parameters:
value
- The bytes for username to set.- Returns:
- This builder for chaining.
-
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=150The password for HTTP Basic authentication.
string password = 3 [deprecated = true];
- Specified by:
getPassword
in interfaceWebhook.GenericWebServiceOrBuilder
- Returns:
- The password.
-
getPasswordBytes
@Deprecated public com.google.protobuf.ByteString getPasswordBytes()
Deprecated.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.password is deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=150The password for HTTP Basic authentication.
string password = 3 [deprecated = true];
- Specified by:
getPasswordBytes
in interfaceWebhook.GenericWebServiceOrBuilder
- Returns:
- The bytes for password.
-
setPassword
@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=150The password for HTTP Basic authentication.
string password = 3 [deprecated = true];
- Parameters:
value
- The password to set.- Returns:
- This builder for chaining.
-
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=150The password for HTTP Basic authentication.
string password = 3 [deprecated = true];
- Returns:
- This builder for chaining.
-
setPasswordBytes
@Deprecated public Webhook.GenericWebService.Builder setPasswordBytes(com.google.protobuf.ByteString value)
Deprecated.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.password is deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=150The password for HTTP Basic authentication.
string password = 3 [deprecated = true];
- Parameters:
value
- The bytes for password to set.- Returns:
- This builder for chaining.
-
getRequestHeadersCount
public int getRequestHeadersCount()
Description copied from interface:Webhook.GenericWebServiceOrBuilder
The HTTP request headers to send together with webhook requests.
map<string, string> request_headers = 4;
- Specified by:
getRequestHeadersCount
in interfaceWebhook.GenericWebServiceOrBuilder
-
containsRequestHeaders
public boolean containsRequestHeaders(String key)
The HTTP request headers to send together with webhook requests.
map<string, string> request_headers = 4;
- Specified by:
containsRequestHeaders
in interfaceWebhook.GenericWebServiceOrBuilder
-
getRequestHeaders
@Deprecated public Map<String,String> getRequestHeaders()
Deprecated.UsegetRequestHeadersMap()
instead.- Specified by:
getRequestHeaders
in interfaceWebhook.GenericWebServiceOrBuilder
-
getRequestHeadersMap
public Map<String,String> getRequestHeadersMap()
The HTTP request headers to send together with webhook requests.
map<string, string> request_headers = 4;
- Specified by:
getRequestHeadersMap
in interfaceWebhook.GenericWebServiceOrBuilder
-
getRequestHeadersOrDefault
public String getRequestHeadersOrDefault(String key, String defaultValue)
The HTTP request headers to send together with webhook requests.
map<string, string> request_headers = 4;
- Specified by:
getRequestHeadersOrDefault
in interfaceWebhook.GenericWebServiceOrBuilder
-
getRequestHeadersOrThrow
public String getRequestHeadersOrThrow(String key)
The HTTP request headers to send together with webhook requests.
map<string, string> request_headers = 4;
- Specified by:
getRequestHeadersOrThrow
in interfaceWebhook.GenericWebServiceOrBuilder
-
clearRequestHeaders
public Webhook.GenericWebService.Builder clearRequestHeaders()
-
removeRequestHeaders
public Webhook.GenericWebService.Builder removeRequestHeaders(String key)
The HTTP request headers to send together with webhook requests.
map<string, string> request_headers = 4;
-
getMutableRequestHeaders
@Deprecated public Map<String,String> getMutableRequestHeaders()
Deprecated.Use alternate mutation accessors instead.
-
putRequestHeaders
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;
-
putAllRequestHeaders
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;
-
getAllowedCaCertsList
public List<com.google.protobuf.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];
- Specified by:
getAllowedCaCertsList
in interfaceWebhook.GenericWebServiceOrBuilder
- Returns:
- A list containing the allowedCaCerts.
-
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];
- Specified by:
getAllowedCaCertsCount
in interfaceWebhook.GenericWebServiceOrBuilder
- Returns:
- The count of allowedCaCerts.
-
getAllowedCaCerts
public com.google.protobuf.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];
- Specified by:
getAllowedCaCerts
in interfaceWebhook.GenericWebServiceOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The allowedCaCerts at the given index.
-
setAllowedCaCerts
public Webhook.GenericWebService.Builder setAllowedCaCerts(int index, com.google.protobuf.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:
index
- The index to set the value at.value
- The allowedCaCerts to set.- Returns:
- This builder for chaining.
-
addAllowedCaCerts
public Webhook.GenericWebService.Builder addAllowedCaCerts(com.google.protobuf.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:
value
- The allowedCaCerts to add.- Returns:
- This builder for chaining.
-
addAllAllowedCaCerts
public Webhook.GenericWebService.Builder addAllAllowedCaCerts(Iterable<? extends com.google.protobuf.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];
- Parameters:
values
- The allowedCaCerts to add.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
getWebhookTypeValue
public int getWebhookTypeValue()
Optional. Type of the webhook.
.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.WebhookType webhook_type = 6 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getWebhookTypeValue
in interfaceWebhook.GenericWebServiceOrBuilder
- Returns:
- The enum numeric value on the wire for webhookType.
-
setWebhookTypeValue
public Webhook.GenericWebService.Builder setWebhookTypeValue(int value)
Optional. Type of the webhook.
.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.WebhookType webhook_type = 6 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The enum numeric value on the wire for webhookType to set.- Returns:
- This builder for chaining.
-
getWebhookType
public Webhook.GenericWebService.WebhookType getWebhookType()
Optional. Type of the webhook.
.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.WebhookType webhook_type = 6 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getWebhookType
in interfaceWebhook.GenericWebServiceOrBuilder
- Returns:
- The webhookType.
-
setWebhookType
public Webhook.GenericWebService.Builder setWebhookType(Webhook.GenericWebService.WebhookType value)
Optional. Type of the webhook.
.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.WebhookType webhook_type = 6 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The webhookType to set.- Returns:
- This builder for chaining.
-
clearWebhookType
public Webhook.GenericWebService.Builder clearWebhookType()
Optional. Type of the webhook.
.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.WebhookType webhook_type = 6 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- This builder for chaining.
-
getHttpMethodValue
public int getHttpMethodValue()
Optional. HTTP method for the flexible webhook calls. Standard webhook always uses POST.
.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.HttpMethod http_method = 7 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getHttpMethodValue
in interfaceWebhook.GenericWebServiceOrBuilder
- Returns:
- The enum numeric value on the wire for httpMethod.
-
setHttpMethodValue
public Webhook.GenericWebService.Builder setHttpMethodValue(int value)
Optional. HTTP method for the flexible webhook calls. Standard webhook always uses POST.
.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.HttpMethod http_method = 7 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The enum numeric value on the wire for httpMethod to set.- Returns:
- This builder for chaining.
-
getHttpMethod
public Webhook.GenericWebService.HttpMethod getHttpMethod()
Optional. HTTP method for the flexible webhook calls. Standard webhook always uses POST.
.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.HttpMethod http_method = 7 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getHttpMethod
in interfaceWebhook.GenericWebServiceOrBuilder
- Returns:
- The httpMethod.
-
setHttpMethod
public Webhook.GenericWebService.Builder setHttpMethod(Webhook.GenericWebService.HttpMethod value)
Optional. HTTP method for the flexible webhook calls. Standard webhook always uses POST.
.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.HttpMethod http_method = 7 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The httpMethod to set.- Returns:
- This builder for chaining.
-
clearHttpMethod
public Webhook.GenericWebService.Builder clearHttpMethod()
Optional. HTTP method for the flexible webhook calls. Standard webhook always uses POST.
.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.HttpMethod http_method = 7 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- This builder for chaining.
-
getRequestBody
public String getRequestBody()
Optional. Defines a custom JSON object as request body to send to flexible webhook.
string request_body = 8 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getRequestBody
in interfaceWebhook.GenericWebServiceOrBuilder
- Returns:
- The requestBody.
-
getRequestBodyBytes
public com.google.protobuf.ByteString getRequestBodyBytes()
Optional. Defines a custom JSON object as request body to send to flexible webhook.
string request_body = 8 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getRequestBodyBytes
in interfaceWebhook.GenericWebServiceOrBuilder
- Returns:
- The bytes for requestBody.
-
setRequestBody
public Webhook.GenericWebService.Builder setRequestBody(String value)
Optional. Defines a custom JSON object as request body to send to flexible webhook.
string request_body = 8 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The requestBody to set.- Returns:
- This builder for chaining.
-
clearRequestBody
public Webhook.GenericWebService.Builder clearRequestBody()
Optional. Defines a custom JSON object as request body to send to flexible webhook.
string request_body = 8 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- This builder for chaining.
-
setRequestBodyBytes
public Webhook.GenericWebService.Builder setRequestBodyBytes(com.google.protobuf.ByteString value)
Optional. Defines a custom JSON object as request body to send to flexible webhook.
string request_body = 8 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The bytes for requestBody to set.- Returns:
- This builder for chaining.
-
getParameterMappingCount
public int getParameterMappingCount()
Description copied from interface:Webhook.GenericWebServiceOrBuilder
Optional. Maps the values extracted from specific fields of the flexible webhook response into session parameters. - Key: session parameter name - Value: field path in the webhook response
map<string, string> parameter_mapping = 9 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getParameterMappingCount
in interfaceWebhook.GenericWebServiceOrBuilder
-
containsParameterMapping
public boolean containsParameterMapping(String key)
Optional. Maps the values extracted from specific fields of the flexible webhook response into session parameters. - Key: session parameter name - Value: field path in the webhook response
map<string, string> parameter_mapping = 9 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
containsParameterMapping
in interfaceWebhook.GenericWebServiceOrBuilder
-
getParameterMapping
@Deprecated public Map<String,String> getParameterMapping()
Deprecated.UsegetParameterMappingMap()
instead.- Specified by:
getParameterMapping
in interfaceWebhook.GenericWebServiceOrBuilder
-
getParameterMappingMap
public Map<String,String> getParameterMappingMap()
Optional. Maps the values extracted from specific fields of the flexible webhook response into session parameters. - Key: session parameter name - Value: field path in the webhook response
map<string, string> parameter_mapping = 9 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getParameterMappingMap
in interfaceWebhook.GenericWebServiceOrBuilder
-
getParameterMappingOrDefault
public String getParameterMappingOrDefault(String key, String defaultValue)
Optional. Maps the values extracted from specific fields of the flexible webhook response into session parameters. - Key: session parameter name - Value: field path in the webhook response
map<string, string> parameter_mapping = 9 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getParameterMappingOrDefault
in interfaceWebhook.GenericWebServiceOrBuilder
-
getParameterMappingOrThrow
public String getParameterMappingOrThrow(String key)
Optional. Maps the values extracted from specific fields of the flexible webhook response into session parameters. - Key: session parameter name - Value: field path in the webhook response
map<string, string> parameter_mapping = 9 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getParameterMappingOrThrow
in interfaceWebhook.GenericWebServiceOrBuilder
-
clearParameterMapping
public Webhook.GenericWebService.Builder clearParameterMapping()
-
removeParameterMapping
public Webhook.GenericWebService.Builder removeParameterMapping(String key)
Optional. Maps the values extracted from specific fields of the flexible webhook response into session parameters. - Key: session parameter name - Value: field path in the webhook response
map<string, string> parameter_mapping = 9 [(.google.api.field_behavior) = OPTIONAL];
-
getMutableParameterMapping
@Deprecated public Map<String,String> getMutableParameterMapping()
Deprecated.Use alternate mutation accessors instead.
-
putParameterMapping
public Webhook.GenericWebService.Builder putParameterMapping(String key, String value)
Optional. Maps the values extracted from specific fields of the flexible webhook response into session parameters. - Key: session parameter name - Value: field path in the webhook response
map<string, string> parameter_mapping = 9 [(.google.api.field_behavior) = OPTIONAL];
-
putAllParameterMapping
public Webhook.GenericWebService.Builder putAllParameterMapping(Map<String,String> values)
Optional. Maps the values extracted from specific fields of the flexible webhook response into session parameters. - Key: session parameter name - Value: field path in the webhook response
map<string, string> parameter_mapping = 9 [(.google.api.field_behavior) = OPTIONAL];
-
setUnknownFields
public final Webhook.GenericWebService.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Webhook.GenericWebService.Builder>
-
mergeUnknownFields
public final Webhook.GenericWebService.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Webhook.GenericWebService.Builder>
-
-