Class Fulfillment.GenericWebService

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService
All Implemented Interfaces:
Fulfillment.GenericWebServiceOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
Fulfillment

public static final class Fulfillment.GenericWebService extends com.google.protobuf.GeneratedMessage implements Fulfillment.GenericWebServiceOrBuilder
 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.
 
Protobuf type google.cloud.dialogflow.v2.Fulfillment.GenericWebService
See Also:
  • Field Details

    • URI_FIELD_NUMBER

      public static final int URI_FIELD_NUMBER
      See Also:
    • USERNAME_FIELD_NUMBER

      public static final int USERNAME_FIELD_NUMBER
      See Also:
    • PASSWORD_FIELD_NUMBER

      public static final int PASSWORD_FIELD_NUMBER
      See Also:
    • REQUEST_HEADERS_FIELD_NUMBER

      public static final int REQUEST_HEADERS_FIELD_NUMBER
      See Also:
    • IS_CLOUD_FUNCTION_FIELD_NUMBER

      public static final int IS_CLOUD_FUNCTION_FIELD_NUMBER
      See Also:
  • 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
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getUri

      public String getUri()
       Required. The fulfillment URI for receiving POST requests.
       It must use https protocol.
       
      string uri = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getUri in interface Fulfillment.GenericWebServiceOrBuilder
      Returns:
      The uri.
    • getUriBytes

      public com.google.protobuf.ByteString getUriBytes()
       Required. The fulfillment URI for receiving POST requests.
       It must use https protocol.
       
      string uri = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getUriBytes in interface Fulfillment.GenericWebServiceOrBuilder
      Returns:
      The bytes for uri.
    • getUsername

      public String getUsername()
       Optional. The user name for HTTP Basic authentication.
       
      string username = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getUsername in interface Fulfillment.GenericWebServiceOrBuilder
      Returns:
      The username.
    • getUsernameBytes

      public com.google.protobuf.ByteString getUsernameBytes()
       Optional. The user name for HTTP Basic authentication.
       
      string username = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getUsernameBytes in interface Fulfillment.GenericWebServiceOrBuilder
      Returns:
      The bytes for username.
    • getPassword

      public String getPassword()
       Optional. The password for HTTP Basic authentication.
       
      string password = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPassword in interface Fulfillment.GenericWebServiceOrBuilder
      Returns:
      The password.
    • getPasswordBytes

      public com.google.protobuf.ByteString getPasswordBytes()
       Optional. The password for HTTP Basic authentication.
       
      string password = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPasswordBytes in interface Fulfillment.GenericWebServiceOrBuilder
      Returns:
      The bytes for password.
    • getRequestHeadersCount

      public int getRequestHeadersCount()
      Description copied from interface: Fulfillment.GenericWebServiceOrBuilder
       Optional. The HTTP request headers to send together with fulfillment
       requests.
       
      map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRequestHeadersCount in interface Fulfillment.GenericWebServiceOrBuilder
    • containsRequestHeaders

      public boolean containsRequestHeaders(String key)
       Optional. The HTTP request headers to send together with fulfillment
       requests.
       
      map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsRequestHeaders in interface Fulfillment.GenericWebServiceOrBuilder
    • getRequestHeaders

      @Deprecated public Map<String,String> getRequestHeaders()
      Deprecated.
      Specified by:
      getRequestHeaders in interface Fulfillment.GenericWebServiceOrBuilder
    • getRequestHeadersMap

      public Map<String,String> getRequestHeadersMap()
       Optional. The HTTP request headers to send together with fulfillment
       requests.
       
      map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRequestHeadersMap in interface Fulfillment.GenericWebServiceOrBuilder
    • getRequestHeadersOrDefault

      public String getRequestHeadersOrDefault(String key, String defaultValue)
       Optional. The HTTP request headers to send together with fulfillment
       requests.
       
      map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRequestHeadersOrDefault in interface Fulfillment.GenericWebServiceOrBuilder
    • getRequestHeadersOrThrow

      public String getRequestHeadersOrThrow(String key)
       Optional. The HTTP request headers to send together with fulfillment
       requests.
       
      map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRequestHeadersOrThrow in interface Fulfillment.GenericWebServiceOrBuilder
    • getIsCloudFunction

      @Deprecated public boolean getIsCloudFunction()
      Deprecated.
      google.cloud.dialogflow.v2.Fulfillment.GenericWebService.is_cloud_function is deprecated. See google/cloud/dialogflow/v2/fulfillment.proto;l=109
       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.
       
      bool is_cloud_function = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIsCloudFunction in interface Fulfillment.GenericWebServiceOrBuilder
      Returns:
      The isCloudFunction.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Fulfillment.GenericWebService parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Fulfillment.GenericWebService parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Fulfillment.GenericWebService parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Fulfillment.GenericWebService parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Fulfillment.GenericWebService parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Fulfillment.GenericWebService parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Fulfillment.GenericWebService parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Fulfillment.GenericWebService parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Fulfillment.GenericWebService parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Fulfillment.GenericWebService parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Fulfillment.GenericWebService parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Fulfillment.GenericWebService parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Fulfillment.GenericWebService.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Fulfillment.GenericWebService.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Fulfillment.GenericWebService.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Fulfillment.GenericWebService getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Fulfillment.GenericWebService> parser()
    • getParserForType

      public com.google.protobuf.Parser<Fulfillment.GenericWebService> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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