public static final class Fulfillment.GenericWebService extends com.google.protobuf.GeneratedMessageV3 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.v2beta1.Fulfillment.GenericWebService| Modifier and Type | Class and Description |
|---|---|
static class |
Fulfillment.GenericWebService.Builder
Represents configuration for a generic web service.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
IS_CLOUD_FUNCTION_FIELD_NUMBER |
static int |
PASSWORD_FIELD_NUMBER |
static int |
REQUEST_HEADERS_FIELD_NUMBER |
static int |
URI_FIELD_NUMBER |
static int |
USERNAME_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsRequestHeaders(String key)
The HTTP request headers to send together with fulfillment requests.
|
boolean |
equals(Object obj) |
static Fulfillment.GenericWebService |
getDefaultInstance() |
Fulfillment.GenericWebService |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
boolean |
getIsCloudFunction()
Deprecated.
google.cloud.dialogflow.v2beta1.Fulfillment.GenericWebService.is_cloud_function
is deprecated. See google/cloud/dialogflow/v2beta1/fulfillment.proto;l=109
|
com.google.protobuf.Parser<Fulfillment.GenericWebService> |
getParserForType() |
String |
getPassword()
The password for HTTP Basic authentication.
|
com.google.protobuf.ByteString |
getPasswordBytes()
The password for HTTP Basic authentication.
|
Map<String,String> |
getRequestHeaders()
Deprecated.
|
int |
getRequestHeadersCount()
The HTTP request headers to send together with fulfillment requests.
|
Map<String,String> |
getRequestHeadersMap()
The HTTP request headers to send together with fulfillment requests.
|
String |
getRequestHeadersOrDefault(String key,
String defaultValue)
The HTTP request headers to send together with fulfillment requests.
|
String |
getRequestHeadersOrThrow(String key)
The HTTP request headers to send together with fulfillment requests.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
String |
getUri()
Required.
|
com.google.protobuf.ByteString |
getUriBytes()
Required.
|
String |
getUsername()
The user name for HTTP Basic authentication.
|
com.google.protobuf.ByteString |
getUsernameBytes()
The user name for HTTP Basic authentication.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static Fulfillment.GenericWebService.Builder |
newBuilder() |
static Fulfillment.GenericWebService.Builder |
newBuilder(Fulfillment.GenericWebService prototype) |
Fulfillment.GenericWebService.Builder |
newBuilderForType() |
protected Fulfillment.GenericWebService.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Fulfillment.GenericWebService |
parseDelimitedFrom(InputStream input) |
static Fulfillment.GenericWebService |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Fulfillment.GenericWebService |
parseFrom(byte[] data) |
static Fulfillment.GenericWebService |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Fulfillment.GenericWebService |
parseFrom(ByteBuffer data) |
static Fulfillment.GenericWebService |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Fulfillment.GenericWebService |
parseFrom(com.google.protobuf.ByteString data) |
static Fulfillment.GenericWebService |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Fulfillment.GenericWebService |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Fulfillment.GenericWebService |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Fulfillment.GenericWebService |
parseFrom(InputStream input) |
static Fulfillment.GenericWebService |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Fulfillment.GenericWebService> |
parser() |
Fulfillment.GenericWebService.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int URI_FIELD_NUMBER
public static final int USERNAME_FIELD_NUMBER
public static final int PASSWORD_FIELD_NUMBER
public static final int REQUEST_HEADERS_FIELD_NUMBER
public static final int IS_CLOUD_FUNCTION_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getUri()
Required. The fulfillment URI for receiving POST requests. It must use https protocol.
string uri = 1 [(.google.api.field_behavior) = REQUIRED];getUri in interface Fulfillment.GenericWebServiceOrBuilderpublic 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];getUriBytes in interface Fulfillment.GenericWebServiceOrBuilderpublic String getUsername()
The user name for HTTP Basic authentication.
string username = 2;getUsername in interface Fulfillment.GenericWebServiceOrBuilderpublic com.google.protobuf.ByteString getUsernameBytes()
The user name for HTTP Basic authentication.
string username = 2;getUsernameBytes in interface Fulfillment.GenericWebServiceOrBuilderpublic String getPassword()
The password for HTTP Basic authentication.
string password = 3;getPassword in interface Fulfillment.GenericWebServiceOrBuilderpublic com.google.protobuf.ByteString getPasswordBytes()
The password for HTTP Basic authentication.
string password = 3;getPasswordBytes in interface Fulfillment.GenericWebServiceOrBuilderpublic int getRequestHeadersCount()
Fulfillment.GenericWebServiceOrBuilderThe HTTP request headers to send together with fulfillment requests.
map<string, string> request_headers = 4;getRequestHeadersCount in interface Fulfillment.GenericWebServiceOrBuilderpublic boolean containsRequestHeaders(String key)
The HTTP request headers to send together with fulfillment requests.
map<string, string> request_headers = 4;containsRequestHeaders in interface Fulfillment.GenericWebServiceOrBuilder@Deprecated public Map<String,String> getRequestHeaders()
getRequestHeadersMap() instead.getRequestHeaders in interface Fulfillment.GenericWebServiceOrBuilderpublic Map<String,String> getRequestHeadersMap()
The HTTP request headers to send together with fulfillment requests.
map<string, string> request_headers = 4;getRequestHeadersMap in interface Fulfillment.GenericWebServiceOrBuilderpublic String getRequestHeadersOrDefault(String key, String defaultValue)
The HTTP request headers to send together with fulfillment requests.
map<string, string> request_headers = 4;getRequestHeadersOrDefault in interface Fulfillment.GenericWebServiceOrBuilderpublic String getRequestHeadersOrThrow(String key)
The HTTP request headers to send together with fulfillment requests.
map<string, string> request_headers = 4;getRequestHeadersOrThrow in interface Fulfillment.GenericWebServiceOrBuilder@Deprecated public boolean getIsCloudFunction()
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];
getIsCloudFunction in interface Fulfillment.GenericWebServiceOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Fulfillment.GenericWebService parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Fulfillment.GenericWebService parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Fulfillment.GenericWebService parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Fulfillment.GenericWebService parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Fulfillment.GenericWebService parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Fulfillment.GenericWebService parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Fulfillment.GenericWebService parseFrom(InputStream input) throws IOException
IOExceptionpublic static Fulfillment.GenericWebService parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Fulfillment.GenericWebService parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Fulfillment.GenericWebService parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Fulfillment.GenericWebService parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Fulfillment.GenericWebService parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Fulfillment.GenericWebService.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Fulfillment.GenericWebService.Builder newBuilder()
public static Fulfillment.GenericWebService.Builder newBuilder(Fulfillment.GenericWebService prototype)
public Fulfillment.GenericWebService.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Fulfillment.GenericWebService.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Fulfillment.GenericWebService getDefaultInstance()
public static com.google.protobuf.Parser<Fulfillment.GenericWebService> parser()
public com.google.protobuf.Parser<Fulfillment.GenericWebService> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Fulfillment.GenericWebService getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.