public static final class Fulfillment.GenericWebService extends 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.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
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 |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, 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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public 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(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class GeneratedMessageV3
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField
in class GeneratedMessageV3
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public 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.GenericWebServiceOrBuilder
public 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.GenericWebServiceOrBuilder
public String getUsername()
The user name for HTTP Basic authentication.
string username = 2;
getUsername
in interface Fulfillment.GenericWebServiceOrBuilder
public ByteString getUsernameBytes()
The user name for HTTP Basic authentication.
string username = 2;
getUsernameBytes
in interface Fulfillment.GenericWebServiceOrBuilder
public String getPassword()
The password for HTTP Basic authentication.
string password = 3;
getPassword
in interface Fulfillment.GenericWebServiceOrBuilder
public ByteString getPasswordBytes()
The password for HTTP Basic authentication.
string password = 3;
getPasswordBytes
in interface Fulfillment.GenericWebServiceOrBuilder
public int getRequestHeadersCount()
Fulfillment.GenericWebServiceOrBuilder
The HTTP request headers to send together with fulfillment requests.
map<string, string> request_headers = 4;
getRequestHeadersCount
in interface Fulfillment.GenericWebServiceOrBuilder
public 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.GenericWebServiceOrBuilder
public Map<String,String> getRequestHeadersMap()
The HTTP request headers to send together with fulfillment requests.
map<string, string> request_headers = 4;
getRequestHeadersMap
in interface Fulfillment.GenericWebServiceOrBuilder
public 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.GenericWebServiceOrBuilder
public 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.GenericWebServiceOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static Fulfillment.GenericWebService parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Fulfillment.GenericWebService parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Fulfillment.GenericWebService parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Fulfillment.GenericWebService parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Fulfillment.GenericWebService parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Fulfillment.GenericWebService parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Fulfillment.GenericWebService parseFrom(InputStream input) throws IOException
IOException
public static Fulfillment.GenericWebService parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Fulfillment.GenericWebService parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Fulfillment.GenericWebService parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Fulfillment.GenericWebService parseFrom(CodedInputStream input) throws IOException
IOException
public static Fulfillment.GenericWebService parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public Fulfillment.GenericWebService.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static Fulfillment.GenericWebService.Builder newBuilder()
public static Fulfillment.GenericWebService.Builder newBuilder(Fulfillment.GenericWebService prototype)
public Fulfillment.GenericWebService.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected Fulfillment.GenericWebService.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static Fulfillment.GenericWebService getDefaultInstance()
public static Parser<Fulfillment.GenericWebService> parser()
public Parser<Fulfillment.GenericWebService> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public Fulfillment.GenericWebService getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2022 Google LLC. All rights reserved.