Dialogflow V2 API - Class Google::Cloud::Dialogflow::V2::Fulfillment::GenericWebService (v0.21.0)

Reference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::Fulfillment::GenericWebService.

Represents configuration for a generic web service. Dialogflow supports two mechanisms for authentications:

  • Basic authentication with username and password.
  • Authentication with additional authentication headers.

More information could be found at: https://cloud.google.com/dialogflow/docs/fulfillment-configure.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#is_cloud_function

def is_cloud_function() -> ::Boolean
Returns
  • (::Boolean) — Optional. Indicates if generic web service is created through Cloud Functions integration. Defaults to false.

    is_cloud_function is deprecated. Cloud functions can be configured by its uri as a regular web service now.

#is_cloud_function=

def is_cloud_function=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Optional. Indicates if generic web service is created through Cloud Functions integration. Defaults to false.

    is_cloud_function is deprecated. Cloud functions can be configured by its uri as a regular web service now.

Returns
  • (::Boolean) — Optional. Indicates if generic web service is created through Cloud Functions integration. Defaults to false.

    is_cloud_function is deprecated. Cloud functions can be configured by its uri as a regular web service now.

#password

def password() -> ::String
Returns
  • (::String) — Optional. The password for HTTP Basic authentication.

#password=

def password=(value) -> ::String
Parameter
  • value (::String) — Optional. The password for HTTP Basic authentication.
Returns
  • (::String) — Optional. The password for HTTP Basic authentication.

#request_headers

def request_headers() -> ::Google::Protobuf::Map{::String => ::String}
Returns
  • (::Google::Protobuf::Map{::String => ::String}) — Optional. The HTTP request headers to send together with fulfillment requests.

#request_headers=

def request_headers=(value) -> ::Google::Protobuf::Map{::String => ::String}
Parameter
  • value (::Google::Protobuf::Map{::String => ::String}) — Optional. The HTTP request headers to send together with fulfillment requests.
Returns
  • (::Google::Protobuf::Map{::String => ::String}) — Optional. The HTTP request headers to send together with fulfillment requests.

#uri

def uri() -> ::String
Returns
  • (::String) — Required. The fulfillment URI for receiving POST requests. It must use https protocol.

#uri=

def uri=(value) -> ::String
Parameter
  • value (::String) — Required. The fulfillment URI for receiving POST requests. It must use https protocol.
Returns
  • (::String) — Required. The fulfillment URI for receiving POST requests. It must use https protocol.

#username

def username() -> ::String
Returns
  • (::String) — Optional. The user name for HTTP Basic authentication.

#username=

def username=(value) -> ::String
Parameter
  • value (::String) — Optional. The user name for HTTP Basic authentication.
Returns
  • (::String) — Optional. The user name for HTTP Basic authentication.