public static final class Fulfillment.GenericWebService.Builder extends GeneratedMessageV3.Builder<Fulfillment.GenericWebService.Builder> 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
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField
in class GeneratedMessageV3.Builder<Fulfillment.GenericWebService.Builder>
protected MapField internalGetMutableMapField(int number)
internalGetMutableMapField
in class GeneratedMessageV3.Builder<Fulfillment.GenericWebService.Builder>
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<Fulfillment.GenericWebService.Builder>
public Fulfillment.GenericWebService.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<Fulfillment.GenericWebService.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<Fulfillment.GenericWebService.Builder>
public Fulfillment.GenericWebService getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public Fulfillment.GenericWebService build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public Fulfillment.GenericWebService buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public Fulfillment.GenericWebService.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<Fulfillment.GenericWebService.Builder>
public Fulfillment.GenericWebService.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<Fulfillment.GenericWebService.Builder>
public Fulfillment.GenericWebService.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<Fulfillment.GenericWebService.Builder>
public Fulfillment.GenericWebService.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<Fulfillment.GenericWebService.Builder>
public Fulfillment.GenericWebService.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Fulfillment.GenericWebService.Builder>
public Fulfillment.GenericWebService.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<Fulfillment.GenericWebService.Builder>
public Fulfillment.GenericWebService.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<Fulfillment.GenericWebService.Builder>
public Fulfillment.GenericWebService.Builder mergeFrom(Fulfillment.GenericWebService other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<Fulfillment.GenericWebService.Builder>
public Fulfillment.GenericWebService.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Fulfillment.GenericWebService.Builder>
IOException
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 Fulfillment.GenericWebService.Builder setUri(String value)
Required. The fulfillment URI for receiving POST requests. It must use https protocol.
string uri = 1 [(.google.api.field_behavior) = REQUIRED];
value
- The uri to set.public Fulfillment.GenericWebService.Builder clearUri()
Required. The fulfillment URI for receiving POST requests. It must use https protocol.
string uri = 1 [(.google.api.field_behavior) = REQUIRED];
public Fulfillment.GenericWebService.Builder setUriBytes(ByteString value)
Required. The fulfillment URI for receiving POST requests. It must use https protocol.
string uri = 1 [(.google.api.field_behavior) = REQUIRED];
value
- The bytes for uri to set.public String getUsername()
Optional. The user name for HTTP Basic authentication.
string username = 2 [(.google.api.field_behavior) = OPTIONAL];
getUsername
in interface Fulfillment.GenericWebServiceOrBuilder
public ByteString getUsernameBytes()
Optional. The user name for HTTP Basic authentication.
string username = 2 [(.google.api.field_behavior) = OPTIONAL];
getUsernameBytes
in interface Fulfillment.GenericWebServiceOrBuilder
public Fulfillment.GenericWebService.Builder setUsername(String value)
Optional. The user name for HTTP Basic authentication.
string username = 2 [(.google.api.field_behavior) = OPTIONAL];
value
- The username to set.public Fulfillment.GenericWebService.Builder clearUsername()
Optional. The user name for HTTP Basic authentication.
string username = 2 [(.google.api.field_behavior) = OPTIONAL];
public Fulfillment.GenericWebService.Builder setUsernameBytes(ByteString value)
Optional. The user name for HTTP Basic authentication.
string username = 2 [(.google.api.field_behavior) = OPTIONAL];
value
- The bytes for username to set.public String getPassword()
Optional. The password for HTTP Basic authentication.
string password = 3 [(.google.api.field_behavior) = OPTIONAL];
getPassword
in interface Fulfillment.GenericWebServiceOrBuilder
public ByteString getPasswordBytes()
Optional. The password for HTTP Basic authentication.
string password = 3 [(.google.api.field_behavior) = OPTIONAL];
getPasswordBytes
in interface Fulfillment.GenericWebServiceOrBuilder
public Fulfillment.GenericWebService.Builder setPassword(String value)
Optional. The password for HTTP Basic authentication.
string password = 3 [(.google.api.field_behavior) = OPTIONAL];
value
- The password to set.public Fulfillment.GenericWebService.Builder clearPassword()
Optional. The password for HTTP Basic authentication.
string password = 3 [(.google.api.field_behavior) = OPTIONAL];
public Fulfillment.GenericWebService.Builder setPasswordBytes(ByteString value)
Optional. The password for HTTP Basic authentication.
string password = 3 [(.google.api.field_behavior) = OPTIONAL];
value
- The bytes for password to set.public int getRequestHeadersCount()
Fulfillment.GenericWebServiceOrBuilder
Optional. The HTTP request headers to send together with fulfillment requests.
map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL];
getRequestHeadersCount
in interface Fulfillment.GenericWebServiceOrBuilder
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];
containsRequestHeaders
in interface Fulfillment.GenericWebServiceOrBuilder
@Deprecated public Map<String,String> getRequestHeaders()
getRequestHeadersMap()
instead.getRequestHeaders
in interface Fulfillment.GenericWebServiceOrBuilder
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];
getRequestHeadersMap
in interface Fulfillment.GenericWebServiceOrBuilder
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];
getRequestHeadersOrDefault
in interface Fulfillment.GenericWebServiceOrBuilder
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];
getRequestHeadersOrThrow
in interface Fulfillment.GenericWebServiceOrBuilder
public Fulfillment.GenericWebService.Builder clearRequestHeaders()
public Fulfillment.GenericWebService.Builder removeRequestHeaders(String key)
Optional. The HTTP request headers to send together with fulfillment requests.
map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL];
@Deprecated public Map<String,String> getMutableRequestHeaders()
public Fulfillment.GenericWebService.Builder putRequestHeaders(String key, String value)
Optional. The HTTP request headers to send together with fulfillment requests.
map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL];
public Fulfillment.GenericWebService.Builder putAllRequestHeaders(Map<String,String> values)
Optional. The HTTP request headers to send together with fulfillment requests.
map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL];
@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
@Deprecated public Fulfillment.GenericWebService.Builder setIsCloudFunction(boolean value)
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];
value
- The isCloudFunction to set.@Deprecated public Fulfillment.GenericWebService.Builder clearIsCloudFunction()
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];
public final Fulfillment.GenericWebService.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<Fulfillment.GenericWebService.Builder>
public final Fulfillment.GenericWebService.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<Fulfillment.GenericWebService.Builder>
Copyright © 2022 Google LLC. All rights reserved.