Class Webhook.GenericWebService.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<Webhook.GenericWebService.Builder> implements Webhook.GenericWebServiceOrBuilder
 Represents configuration for a generic web service.
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Webhook.GenericWebService.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Webhook.GenericWebService.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Webhook.GenericWebService.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Webhook.GenericWebService.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Webhook.GenericWebService.Builder>
    • getDefaultInstanceForType

      public Webhook.GenericWebService getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Webhook.GenericWebService build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Webhook.GenericWebService buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Webhook.GenericWebService.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Webhook.GenericWebService.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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 interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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 interface Webhook.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 interface Webhook.GenericWebServiceOrBuilder
      Returns:
      The bytes for uri.
    • setUri

       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

       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=225
       The user name for HTTP Basic authentication.
       
      string username = 2 [deprecated = true];
      Specified by:
      getUsername in interface Webhook.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=225
       The user name for HTTP Basic authentication.
       
      string username = 2 [deprecated = true];
      Specified by:
      getUsernameBytes in interface Webhook.GenericWebServiceOrBuilder
      Returns:
      The bytes for username.
    • setUsername

      Deprecated.
      google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.username is deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=225
       The user name for HTTP Basic authentication.
       
      string username = 2 [deprecated = true];
      Parameters:
      value - The username to set.
      Returns:
      This builder for chaining.
    • clearUsername

      Deprecated.
      google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.username is deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=225
       The 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=225
       The 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=228
       The password for HTTP Basic authentication.
       
      string password = 3 [deprecated = true];
      Specified by:
      getPassword in interface Webhook.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=228
       The password for HTTP Basic authentication.
       
      string password = 3 [deprecated = true];
      Specified by:
      getPasswordBytes in interface Webhook.GenericWebServiceOrBuilder
      Returns:
      The bytes for password.
    • setPassword

      Deprecated.
      google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.password is deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=228
       The password for HTTP Basic authentication.
       
      string password = 3 [deprecated = true];
      Parameters:
      value - The password to set.
      Returns:
      This builder for chaining.
    • clearPassword

      Deprecated.
      google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.password is deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=228
       The 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=228
       The password for HTTP Basic authentication.
       
      string password = 3 [deprecated = true];
      Parameters:
      value - The bytes for password to set.
      Returns:
      This builder for chaining.
    • getSecretVersionForUsernamePassword

      public String getSecretVersionForUsernamePassword()
       Optional. The SecretManager secret version resource storing the
       username:password pair for HTTP Basic authentication. Format:
       `projects/{project}/secrets/{secret}/versions/{version}`
       
      string secret_version_for_username_password = 19 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getSecretVersionForUsernamePassword in interface Webhook.GenericWebServiceOrBuilder
      Returns:
      The secretVersionForUsernamePassword.
    • getSecretVersionForUsernamePasswordBytes

      public com.google.protobuf.ByteString getSecretVersionForUsernamePasswordBytes()
       Optional. The SecretManager secret version resource storing the
       username:password pair for HTTP Basic authentication. Format:
       `projects/{project}/secrets/{secret}/versions/{version}`
       
      string secret_version_for_username_password = 19 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getSecretVersionForUsernamePasswordBytes in interface Webhook.GenericWebServiceOrBuilder
      Returns:
      The bytes for secretVersionForUsernamePassword.
    • setSecretVersionForUsernamePassword

      public Webhook.GenericWebService.Builder setSecretVersionForUsernamePassword(String value)
       Optional. The SecretManager secret version resource storing the
       username:password pair for HTTP Basic authentication. Format:
       `projects/{project}/secrets/{secret}/versions/{version}`
       
      string secret_version_for_username_password = 19 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The secretVersionForUsernamePassword to set.
      Returns:
      This builder for chaining.
    • clearSecretVersionForUsernamePassword

      public Webhook.GenericWebService.Builder clearSecretVersionForUsernamePassword()
       Optional. The SecretManager secret version resource storing the
       username:password pair for HTTP Basic authentication. Format:
       `projects/{project}/secrets/{secret}/versions/{version}`
       
      string secret_version_for_username_password = 19 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setSecretVersionForUsernamePasswordBytes

      public Webhook.GenericWebService.Builder setSecretVersionForUsernamePasswordBytes(com.google.protobuf.ByteString value)
       Optional. The SecretManager secret version resource storing the
       username:password pair for HTTP Basic authentication. Format:
       `projects/{project}/secrets/{secret}/versions/{version}`
       
      string secret_version_for_username_password = 19 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for secretVersionForUsernamePassword 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 interface Webhook.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 interface Webhook.GenericWebServiceOrBuilder
    • getRequestHeaders

      @Deprecated public Map<String,String> getRequestHeaders()
      Deprecated.
      Specified by:
      getRequestHeaders in interface Webhook.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 interface Webhook.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 interface Webhook.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 interface Webhook.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;
    • getSecretVersionsForRequestHeadersCount

      public int getSecretVersionsForRequestHeadersCount()
      Description copied from interface: Webhook.GenericWebServiceOrBuilder
       Optional. The HTTP request headers to send together with webhook
       requests. Header values are stored in SecretManager secret versions.
      
       When the same header name is specified in both `request_headers` and
       `secret_versions_for_request_headers`, the value in
       `secret_versions_for_request_headers` will be used.
       
      map<string, .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.SecretVersionHeaderValue> secret_versions_for_request_headers = 20 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSecretVersionsForRequestHeadersCount in interface Webhook.GenericWebServiceOrBuilder
    • containsSecretVersionsForRequestHeaders

      public boolean containsSecretVersionsForRequestHeaders(String key)
       Optional. The HTTP request headers to send together with webhook
       requests. Header values are stored in SecretManager secret versions.
      
       When the same header name is specified in both `request_headers` and
       `secret_versions_for_request_headers`, the value in
       `secret_versions_for_request_headers` will be used.
       
      map<string, .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.SecretVersionHeaderValue> secret_versions_for_request_headers = 20 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsSecretVersionsForRequestHeaders in interface Webhook.GenericWebServiceOrBuilder
    • getSecretVersionsForRequestHeaders

      @Deprecated public Map<String,Webhook.GenericWebService.SecretVersionHeaderValue> getSecretVersionsForRequestHeaders()
      Deprecated.
      Specified by:
      getSecretVersionsForRequestHeaders in interface Webhook.GenericWebServiceOrBuilder
    • getSecretVersionsForRequestHeadersMap

      public Map<String,Webhook.GenericWebService.SecretVersionHeaderValue> getSecretVersionsForRequestHeadersMap()
       Optional. The HTTP request headers to send together with webhook
       requests. Header values are stored in SecretManager secret versions.
      
       When the same header name is specified in both `request_headers` and
       `secret_versions_for_request_headers`, the value in
       `secret_versions_for_request_headers` will be used.
       
      map<string, .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.SecretVersionHeaderValue> secret_versions_for_request_headers = 20 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSecretVersionsForRequestHeadersMap in interface Webhook.GenericWebServiceOrBuilder
    • getSecretVersionsForRequestHeadersOrDefault

      public Webhook.GenericWebService.SecretVersionHeaderValue getSecretVersionsForRequestHeadersOrDefault(String key, Webhook.GenericWebService.SecretVersionHeaderValue defaultValue)
       Optional. The HTTP request headers to send together with webhook
       requests. Header values are stored in SecretManager secret versions.
      
       When the same header name is specified in both `request_headers` and
       `secret_versions_for_request_headers`, the value in
       `secret_versions_for_request_headers` will be used.
       
      map<string, .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.SecretVersionHeaderValue> secret_versions_for_request_headers = 20 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSecretVersionsForRequestHeadersOrDefault in interface Webhook.GenericWebServiceOrBuilder
    • getSecretVersionsForRequestHeadersOrThrow

      public Webhook.GenericWebService.SecretVersionHeaderValue getSecretVersionsForRequestHeadersOrThrow(String key)
       Optional. The HTTP request headers to send together with webhook
       requests. Header values are stored in SecretManager secret versions.
      
       When the same header name is specified in both `request_headers` and
       `secret_versions_for_request_headers`, the value in
       `secret_versions_for_request_headers` will be used.
       
      map<string, .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.SecretVersionHeaderValue> secret_versions_for_request_headers = 20 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSecretVersionsForRequestHeadersOrThrow in interface Webhook.GenericWebServiceOrBuilder
    • clearSecretVersionsForRequestHeaders

      public Webhook.GenericWebService.Builder clearSecretVersionsForRequestHeaders()
    • removeSecretVersionsForRequestHeaders

      public Webhook.GenericWebService.Builder removeSecretVersionsForRequestHeaders(String key)
       Optional. The HTTP request headers to send together with webhook
       requests. Header values are stored in SecretManager secret versions.
      
       When the same header name is specified in both `request_headers` and
       `secret_versions_for_request_headers`, the value in
       `secret_versions_for_request_headers` will be used.
       
      map<string, .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.SecretVersionHeaderValue> secret_versions_for_request_headers = 20 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableSecretVersionsForRequestHeaders

      @Deprecated public Map<String,Webhook.GenericWebService.SecretVersionHeaderValue> getMutableSecretVersionsForRequestHeaders()
      Deprecated.
      Use alternate mutation accessors instead.
    • putSecretVersionsForRequestHeaders

      public Webhook.GenericWebService.Builder putSecretVersionsForRequestHeaders(String key, Webhook.GenericWebService.SecretVersionHeaderValue value)
       Optional. The HTTP request headers to send together with webhook
       requests. Header values are stored in SecretManager secret versions.
      
       When the same header name is specified in both `request_headers` and
       `secret_versions_for_request_headers`, the value in
       `secret_versions_for_request_headers` will be used.
       
      map<string, .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.SecretVersionHeaderValue> secret_versions_for_request_headers = 20 [(.google.api.field_behavior) = OPTIONAL];
    • putAllSecretVersionsForRequestHeaders

       Optional. The HTTP request headers to send together with webhook
       requests. Header values are stored in SecretManager secret versions.
      
       When the same header name is specified in both `request_headers` and
       `secret_versions_for_request_headers`, the value in
       `secret_versions_for_request_headers` will be used.
       
      map<string, .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.SecretVersionHeaderValue> secret_versions_for_request_headers = 20 [(.google.api.field_behavior) = OPTIONAL];
    • putSecretVersionsForRequestHeadersBuilderIfAbsent

      public Webhook.GenericWebService.SecretVersionHeaderValue.Builder putSecretVersionsForRequestHeadersBuilderIfAbsent(String key)
       Optional. The HTTP request headers to send together with webhook
       requests. Header values are stored in SecretManager secret versions.
      
       When the same header name is specified in both `request_headers` and
       `secret_versions_for_request_headers`, the value in
       `secret_versions_for_request_headers` will be used.
       
      map<string, .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.SecretVersionHeaderValue> secret_versions_for_request_headers = 20 [(.google.api.field_behavior) = OPTIONAL];
    • 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 interface Webhook.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 interface Webhook.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 interface Webhook.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.
    • hasOauthConfig

      public boolean hasOauthConfig()
       Optional. The OAuth configuration of the webhook. If specified,
       Dialogflow will initiate the OAuth client credential flow to exchange an
       access token from the 3rd party platform and put it in the auth header.
       
      .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.OAuthConfig oauth_config = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasOauthConfig in interface Webhook.GenericWebServiceOrBuilder
      Returns:
      Whether the oauthConfig field is set.
    • getOauthConfig

      public Webhook.GenericWebService.OAuthConfig getOauthConfig()
       Optional. The OAuth configuration of the webhook. If specified,
       Dialogflow will initiate the OAuth client credential flow to exchange an
       access token from the 3rd party platform and put it in the auth header.
       
      .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.OAuthConfig oauth_config = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOauthConfig in interface Webhook.GenericWebServiceOrBuilder
      Returns:
      The oauthConfig.
    • setOauthConfig

       Optional. The OAuth configuration of the webhook. If specified,
       Dialogflow will initiate the OAuth client credential flow to exchange an
       access token from the 3rd party platform and put it in the auth header.
       
      .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.OAuthConfig oauth_config = 11 [(.google.api.field_behavior) = OPTIONAL];
    • setOauthConfig

       Optional. The OAuth configuration of the webhook. If specified,
       Dialogflow will initiate the OAuth client credential flow to exchange an
       access token from the 3rd party platform and put it in the auth header.
       
      .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.OAuthConfig oauth_config = 11 [(.google.api.field_behavior) = OPTIONAL];
    • mergeOauthConfig

       Optional. The OAuth configuration of the webhook. If specified,
       Dialogflow will initiate the OAuth client credential flow to exchange an
       access token from the 3rd party platform and put it in the auth header.
       
      .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.OAuthConfig oauth_config = 11 [(.google.api.field_behavior) = OPTIONAL];
    • clearOauthConfig

      public Webhook.GenericWebService.Builder clearOauthConfig()
       Optional. The OAuth configuration of the webhook. If specified,
       Dialogflow will initiate the OAuth client credential flow to exchange an
       access token from the 3rd party platform and put it in the auth header.
       
      .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.OAuthConfig oauth_config = 11 [(.google.api.field_behavior) = OPTIONAL];
    • getOauthConfigBuilder

      public Webhook.GenericWebService.OAuthConfig.Builder getOauthConfigBuilder()
       Optional. The OAuth configuration of the webhook. If specified,
       Dialogflow will initiate the OAuth client credential flow to exchange an
       access token from the 3rd party platform and put it in the auth header.
       
      .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.OAuthConfig oauth_config = 11 [(.google.api.field_behavior) = OPTIONAL];
    • getOauthConfigOrBuilder

      public Webhook.GenericWebService.OAuthConfigOrBuilder getOauthConfigOrBuilder()
       Optional. The OAuth configuration of the webhook. If specified,
       Dialogflow will initiate the OAuth client credential flow to exchange an
       access token from the 3rd party platform and put it in the auth header.
       
      .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.OAuthConfig oauth_config = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOauthConfigOrBuilder in interface Webhook.GenericWebServiceOrBuilder
    • getServiceAgentAuthValue

      public int getServiceAgentAuthValue()
       Optional. Indicate the auth token type generated from the [Diglogflow
       service
       agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
       The generated token is sent in the Authorization header.
       
      .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.ServiceAgentAuth service_agent_auth = 12 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getServiceAgentAuthValue in interface Webhook.GenericWebServiceOrBuilder
      Returns:
      The enum numeric value on the wire for serviceAgentAuth.
    • setServiceAgentAuthValue

      public Webhook.GenericWebService.Builder setServiceAgentAuthValue(int value)
       Optional. Indicate the auth token type generated from the [Diglogflow
       service
       agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
       The generated token is sent in the Authorization header.
       
      .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.ServiceAgentAuth service_agent_auth = 12 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for serviceAgentAuth to set.
      Returns:
      This builder for chaining.
    • getServiceAgentAuth

      public Webhook.GenericWebService.ServiceAgentAuth getServiceAgentAuth()
       Optional. Indicate the auth token type generated from the [Diglogflow
       service
       agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
       The generated token is sent in the Authorization header.
       
      .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.ServiceAgentAuth service_agent_auth = 12 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getServiceAgentAuth in interface Webhook.GenericWebServiceOrBuilder
      Returns:
      The serviceAgentAuth.
    • setServiceAgentAuth

       Optional. Indicate the auth token type generated from the [Diglogflow
       service
       agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
       The generated token is sent in the Authorization header.
       
      .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.ServiceAgentAuth service_agent_auth = 12 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The serviceAgentAuth to set.
      Returns:
      This builder for chaining.
    • clearServiceAgentAuth

      public Webhook.GenericWebService.Builder clearServiceAgentAuth()
       Optional. Indicate the auth token type generated from the [Diglogflow
       service
       agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
       The generated token is sent in the Authorization header.
       
      .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.ServiceAgentAuth service_agent_auth = 12 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasServiceAccountAuthConfig

      public boolean hasServiceAccountAuthConfig()
       Optional. Configuration for service account authentication.
       
      .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.ServiceAccountAuthConfig service_account_auth_config = 18 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasServiceAccountAuthConfig in interface Webhook.GenericWebServiceOrBuilder
      Returns:
      Whether the serviceAccountAuthConfig field is set.
    • getServiceAccountAuthConfig

      public Webhook.GenericWebService.ServiceAccountAuthConfig getServiceAccountAuthConfig()
       Optional. Configuration for service account authentication.
       
      .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.ServiceAccountAuthConfig service_account_auth_config = 18 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getServiceAccountAuthConfig in interface Webhook.GenericWebServiceOrBuilder
      Returns:
      The serviceAccountAuthConfig.
    • setServiceAccountAuthConfig

       Optional. Configuration for service account authentication.
       
      .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.ServiceAccountAuthConfig service_account_auth_config = 18 [(.google.api.field_behavior) = OPTIONAL];
    • setServiceAccountAuthConfig

       Optional. Configuration for service account authentication.
       
      .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.ServiceAccountAuthConfig service_account_auth_config = 18 [(.google.api.field_behavior) = OPTIONAL];
    • mergeServiceAccountAuthConfig

       Optional. Configuration for service account authentication.
       
      .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.ServiceAccountAuthConfig service_account_auth_config = 18 [(.google.api.field_behavior) = OPTIONAL];
    • clearServiceAccountAuthConfig

      public Webhook.GenericWebService.Builder clearServiceAccountAuthConfig()
       Optional. Configuration for service account authentication.
       
      .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.ServiceAccountAuthConfig service_account_auth_config = 18 [(.google.api.field_behavior) = OPTIONAL];
    • getServiceAccountAuthConfigBuilder

      public Webhook.GenericWebService.ServiceAccountAuthConfig.Builder getServiceAccountAuthConfigBuilder()
       Optional. Configuration for service account authentication.
       
      .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.ServiceAccountAuthConfig service_account_auth_config = 18 [(.google.api.field_behavior) = OPTIONAL];
    • getServiceAccountAuthConfigOrBuilder

      public Webhook.GenericWebService.ServiceAccountAuthConfigOrBuilder getServiceAccountAuthConfigOrBuilder()
       Optional. Configuration for service account authentication.
       
      .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.ServiceAccountAuthConfig service_account_auth_config = 18 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getServiceAccountAuthConfigOrBuilder in interface Webhook.GenericWebServiceOrBuilder
    • 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 interface Webhook.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 interface Webhook.GenericWebServiceOrBuilder
      Returns:
      The webhookType.
    • setWebhookType

       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 interface Webhook.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 interface Webhook.GenericWebServiceOrBuilder
      Returns:
      The httpMethod.
    • setHttpMethod

       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 interface Webhook.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 interface Webhook.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 interface Webhook.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 interface Webhook.GenericWebServiceOrBuilder
    • getParameterMapping

      @Deprecated public Map<String,String> getParameterMapping()
      Deprecated.
      Specified by:
      getParameterMapping in interface Webhook.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 interface Webhook.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 interface Webhook.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 interface Webhook.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];