public static final class Webhook.GenericWebService.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Webhook.GenericWebService.Builder> implements Webhook.GenericWebServiceOrBuilder
Represents configuration for a generic web service.Protobuf type
google.cloud.dialogflow.cx.v3.Webhook.GenericWebService| Modifier and Type | Method and Description |
|---|---|
Webhook.GenericWebService.Builder |
addAllAllowedCaCerts(Iterable<? extends com.google.protobuf.ByteString> values)
Optional.
|
Webhook.GenericWebService.Builder |
addAllowedCaCerts(com.google.protobuf.ByteString value)
Optional.
|
Webhook.GenericWebService.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Webhook.GenericWebService |
build() |
Webhook.GenericWebService |
buildPartial() |
Webhook.GenericWebService.Builder |
clear() |
Webhook.GenericWebService.Builder |
clearAllowedCaCerts()
Optional.
|
Webhook.GenericWebService.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Webhook.GenericWebService.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Webhook.GenericWebService.Builder |
clearPassword()
Deprecated.
google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.password is deprecated.
See google/cloud/dialogflow/cx/v3/webhook.proto;l=110
|
Webhook.GenericWebService.Builder |
clearRequestHeaders() |
Webhook.GenericWebService.Builder |
clearUri()
Required.
|
Webhook.GenericWebService.Builder |
clearUsername()
Deprecated.
google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.username is deprecated.
See google/cloud/dialogflow/cx/v3/webhook.proto;l=107
|
Webhook.GenericWebService.Builder |
clone() |
boolean |
containsRequestHeaders(String key)
The HTTP request headers to send together with webhook
requests.
|
com.google.protobuf.ByteString |
getAllowedCaCerts(int index)
Optional.
|
int |
getAllowedCaCertsCount()
Optional.
|
List<com.google.protobuf.ByteString> |
getAllowedCaCertsList()
Optional.
|
Webhook.GenericWebService |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Map<String,String> |
getMutableRequestHeaders()
Deprecated.
|
String |
getPassword()
Deprecated.
google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.password is deprecated.
See google/cloud/dialogflow/cx/v3/webhook.proto;l=110
|
com.google.protobuf.ByteString |
getPasswordBytes()
Deprecated.
google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.password is deprecated.
See google/cloud/dialogflow/cx/v3/webhook.proto;l=110
|
Map<String,String> |
getRequestHeaders()
Deprecated.
|
int |
getRequestHeadersCount()
The HTTP request headers to send together with webhook
requests.
|
Map<String,String> |
getRequestHeadersMap()
The HTTP request headers to send together with webhook
requests.
|
String |
getRequestHeadersOrDefault(String key,
String defaultValue)
The HTTP request headers to send together with webhook
requests.
|
String |
getRequestHeadersOrThrow(String key)
The HTTP request headers to send together with webhook
requests.
|
String |
getUri()
Required.
|
com.google.protobuf.ByteString |
getUriBytes()
Required.
|
String |
getUsername()
Deprecated.
google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.username is deprecated.
See google/cloud/dialogflow/cx/v3/webhook.proto;l=107
|
com.google.protobuf.ByteString |
getUsernameBytes()
Deprecated.
google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.username is deprecated.
See google/cloud/dialogflow/cx/v3/webhook.proto;l=107
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
Webhook.GenericWebService.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Webhook.GenericWebService.Builder |
mergeFrom(com.google.protobuf.Message other) |
Webhook.GenericWebService.Builder |
mergeFrom(Webhook.GenericWebService other) |
Webhook.GenericWebService.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Webhook.GenericWebService.Builder |
putAllRequestHeaders(Map<String,String> values)
The HTTP request headers to send together with webhook
requests.
|
Webhook.GenericWebService.Builder |
putRequestHeaders(String key,
String value)
The HTTP request headers to send together with webhook
requests.
|
Webhook.GenericWebService.Builder |
removeRequestHeaders(String key)
The HTTP request headers to send together with webhook
requests.
|
Webhook.GenericWebService.Builder |
setAllowedCaCerts(int index,
com.google.protobuf.ByteString value)
Optional.
|
Webhook.GenericWebService.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Webhook.GenericWebService.Builder |
setPassword(String value)
Deprecated.
google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.password is deprecated.
See google/cloud/dialogflow/cx/v3/webhook.proto;l=110
|
Webhook.GenericWebService.Builder |
setPasswordBytes(com.google.protobuf.ByteString value)
Deprecated.
google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.password is deprecated.
See google/cloud/dialogflow/cx/v3/webhook.proto;l=110
|
Webhook.GenericWebService.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Webhook.GenericWebService.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Webhook.GenericWebService.Builder |
setUri(String value)
Required.
|
Webhook.GenericWebService.Builder |
setUriBytes(com.google.protobuf.ByteString value)
Required.
|
Webhook.GenericWebService.Builder |
setUsername(String value)
Deprecated.
google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.username is deprecated.
See google/cloud/dialogflow/cx/v3/webhook.proto;l=107
|
Webhook.GenericWebService.Builder |
setUsernameBytes(com.google.protobuf.ByteString value)
Deprecated.
google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.username is deprecated.
See google/cloud/dialogflow/cx/v3/webhook.proto;l=107
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Webhook.GenericWebService.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Webhook.GenericWebService.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Webhook.GenericWebService.Builder>public Webhook.GenericWebService.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Webhook.GenericWebService.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Webhook.GenericWebService.Builder>public Webhook.GenericWebService getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Webhook.GenericWebService build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Webhook.GenericWebService buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Webhook.GenericWebService.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Webhook.GenericWebService.Builder>public Webhook.GenericWebService.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Webhook.GenericWebService.Builder>public Webhook.GenericWebService.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Webhook.GenericWebService.Builder>public Webhook.GenericWebService.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Webhook.GenericWebService.Builder>public Webhook.GenericWebService.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Webhook.GenericWebService.Builder>public Webhook.GenericWebService.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Webhook.GenericWebService.Builder>public Webhook.GenericWebService.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Webhook.GenericWebService.Builder>public Webhook.GenericWebService.Builder mergeFrom(Webhook.GenericWebService other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Webhook.GenericWebService.Builder>public Webhook.GenericWebService.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Webhook.GenericWebService.Builder>IOExceptionpublic String getUri()
Required. The webhook URI for receiving POST requests. It must use https protocol.
string uri = 1 [(.google.api.field_behavior) = REQUIRED];getUri in interface Webhook.GenericWebServiceOrBuilderpublic com.google.protobuf.ByteString getUriBytes()
Required. The webhook URI for receiving POST requests. It must use https protocol.
string uri = 1 [(.google.api.field_behavior) = REQUIRED];getUriBytes in interface Webhook.GenericWebServiceOrBuilderpublic Webhook.GenericWebService.Builder setUri(String value)
Required. The webhook URI for receiving POST requests. It must use https protocol.
string uri = 1 [(.google.api.field_behavior) = REQUIRED];value - The uri to set.public Webhook.GenericWebService.Builder clearUri()
Required. The webhook URI for receiving POST requests. It must use https protocol.
string uri = 1 [(.google.api.field_behavior) = REQUIRED];public Webhook.GenericWebService.Builder setUriBytes(com.google.protobuf.ByteString value)
Required. The webhook 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.@Deprecated public String getUsername()
The user name for HTTP Basic authentication.
string username = 2 [deprecated = true];getUsername in interface Webhook.GenericWebServiceOrBuilder@Deprecated public com.google.protobuf.ByteString getUsernameBytes()
The user name for HTTP Basic authentication.
string username = 2 [deprecated = true];getUsernameBytes in interface Webhook.GenericWebServiceOrBuilder@Deprecated public Webhook.GenericWebService.Builder setUsername(String value)
The user name for HTTP Basic authentication.
string username = 2 [deprecated = true];value - The username to set.@Deprecated public Webhook.GenericWebService.Builder clearUsername()
The user name for HTTP Basic authentication.
string username = 2 [deprecated = true];@Deprecated public Webhook.GenericWebService.Builder setUsernameBytes(com.google.protobuf.ByteString value)
The user name for HTTP Basic authentication.
string username = 2 [deprecated = true];value - The bytes for username to set.@Deprecated public String getPassword()
The password for HTTP Basic authentication.
string password = 3 [deprecated = true];getPassword in interface Webhook.GenericWebServiceOrBuilder@Deprecated public com.google.protobuf.ByteString getPasswordBytes()
The password for HTTP Basic authentication.
string password = 3 [deprecated = true];getPasswordBytes in interface Webhook.GenericWebServiceOrBuilder@Deprecated public Webhook.GenericWebService.Builder setPassword(String value)
The password for HTTP Basic authentication.
string password = 3 [deprecated = true];value - The password to set.@Deprecated public Webhook.GenericWebService.Builder clearPassword()
The password for HTTP Basic authentication.
string password = 3 [deprecated = true];@Deprecated public Webhook.GenericWebService.Builder setPasswordBytes(com.google.protobuf.ByteString value)
The password for HTTP Basic authentication.
string password = 3 [deprecated = true];value - The bytes for password to set.public int getRequestHeadersCount()
Webhook.GenericWebServiceOrBuilderThe HTTP request headers to send together with webhook requests.
map<string, string> request_headers = 4;getRequestHeadersCount in interface Webhook.GenericWebServiceOrBuilderpublic boolean containsRequestHeaders(String key)
The HTTP request headers to send together with webhook requests.
map<string, string> request_headers = 4;containsRequestHeaders in interface Webhook.GenericWebServiceOrBuilder@Deprecated public Map<String,String> getRequestHeaders()
getRequestHeadersMap() instead.getRequestHeaders in interface Webhook.GenericWebServiceOrBuilderpublic Map<String,String> getRequestHeadersMap()
The HTTP request headers to send together with webhook requests.
map<string, string> request_headers = 4;getRequestHeadersMap in interface Webhook.GenericWebServiceOrBuilderpublic String getRequestHeadersOrDefault(String key, String defaultValue)
The HTTP request headers to send together with webhook requests.
map<string, string> request_headers = 4;getRequestHeadersOrDefault in interface Webhook.GenericWebServiceOrBuilderpublic String getRequestHeadersOrThrow(String key)
The HTTP request headers to send together with webhook requests.
map<string, string> request_headers = 4;getRequestHeadersOrThrow in interface Webhook.GenericWebServiceOrBuilderpublic Webhook.GenericWebService.Builder clearRequestHeaders()
public Webhook.GenericWebService.Builder removeRequestHeaders(String key)
The HTTP request headers to send together with webhook requests.
map<string, string> request_headers = 4;@Deprecated public Map<String,String> getMutableRequestHeaders()
public Webhook.GenericWebService.Builder putRequestHeaders(String key, String value)
The HTTP request headers to send together with webhook requests.
map<string, string> request_headers = 4;public Webhook.GenericWebService.Builder putAllRequestHeaders(Map<String,String> values)
The HTTP request headers to send together with webhook requests.
map<string, string> request_headers = 4;public List<com.google.protobuf.ByteString> getAllowedCaCertsList()
Optional. Specifies a list of allowed custom CA certificates (in DER format) for
HTTPS verification. This overrides the default SSL trust store. If this
is empty or unspecified, Dialogflow will use Google's default trust store
to verify certificates.
N.B. Make sure the HTTPS server certificates are signed with "subject alt
name". For instance a certificate can be self-signed using the following
command,
```
openssl x509 -req -days 200 -in example.com.csr \
-signkey example.com.key \
-out example.com.crt \
-extfile <(printf "\nsubjectAltName='DNS:www.example.com'")
```
repeated bytes allowed_ca_certs = 5 [(.google.api.field_behavior) = OPTIONAL];getAllowedCaCertsList in interface Webhook.GenericWebServiceOrBuilderpublic int getAllowedCaCertsCount()
Optional. Specifies a list of allowed custom CA certificates (in DER format) for
HTTPS verification. This overrides the default SSL trust store. If this
is empty or unspecified, Dialogflow will use Google's default trust store
to verify certificates.
N.B. Make sure the HTTPS server certificates are signed with "subject alt
name". For instance a certificate can be self-signed using the following
command,
```
openssl x509 -req -days 200 -in example.com.csr \
-signkey example.com.key \
-out example.com.crt \
-extfile <(printf "\nsubjectAltName='DNS:www.example.com'")
```
repeated bytes allowed_ca_certs = 5 [(.google.api.field_behavior) = OPTIONAL];getAllowedCaCertsCount in interface Webhook.GenericWebServiceOrBuilderpublic com.google.protobuf.ByteString getAllowedCaCerts(int index)
Optional. Specifies a list of allowed custom CA certificates (in DER format) for
HTTPS verification. This overrides the default SSL trust store. If this
is empty or unspecified, Dialogflow will use Google's default trust store
to verify certificates.
N.B. Make sure the HTTPS server certificates are signed with "subject alt
name". For instance a certificate can be self-signed using the following
command,
```
openssl x509 -req -days 200 -in example.com.csr \
-signkey example.com.key \
-out example.com.crt \
-extfile <(printf "\nsubjectAltName='DNS:www.example.com'")
```
repeated bytes allowed_ca_certs = 5 [(.google.api.field_behavior) = OPTIONAL];getAllowedCaCerts in interface Webhook.GenericWebServiceOrBuilderindex - The index of the element to return.public Webhook.GenericWebService.Builder setAllowedCaCerts(int index, com.google.protobuf.ByteString value)
Optional. Specifies a list of allowed custom CA certificates (in DER format) for
HTTPS verification. This overrides the default SSL trust store. If this
is empty or unspecified, Dialogflow will use Google's default trust store
to verify certificates.
N.B. Make sure the HTTPS server certificates are signed with "subject alt
name". For instance a certificate can be self-signed using the following
command,
```
openssl x509 -req -days 200 -in example.com.csr \
-signkey example.com.key \
-out example.com.crt \
-extfile <(printf "\nsubjectAltName='DNS:www.example.com'")
```
repeated bytes allowed_ca_certs = 5 [(.google.api.field_behavior) = OPTIONAL];index - The index to set the value at.value - The allowedCaCerts to set.public Webhook.GenericWebService.Builder addAllowedCaCerts(com.google.protobuf.ByteString value)
Optional. Specifies a list of allowed custom CA certificates (in DER format) for
HTTPS verification. This overrides the default SSL trust store. If this
is empty or unspecified, Dialogflow will use Google's default trust store
to verify certificates.
N.B. Make sure the HTTPS server certificates are signed with "subject alt
name". For instance a certificate can be self-signed using the following
command,
```
openssl x509 -req -days 200 -in example.com.csr \
-signkey example.com.key \
-out example.com.crt \
-extfile <(printf "\nsubjectAltName='DNS:www.example.com'")
```
repeated bytes allowed_ca_certs = 5 [(.google.api.field_behavior) = OPTIONAL];value - The allowedCaCerts to add.public Webhook.GenericWebService.Builder addAllAllowedCaCerts(Iterable<? extends com.google.protobuf.ByteString> values)
Optional. Specifies a list of allowed custom CA certificates (in DER format) for
HTTPS verification. This overrides the default SSL trust store. If this
is empty or unspecified, Dialogflow will use Google's default trust store
to verify certificates.
N.B. Make sure the HTTPS server certificates are signed with "subject alt
name". For instance a certificate can be self-signed using the following
command,
```
openssl x509 -req -days 200 -in example.com.csr \
-signkey example.com.key \
-out example.com.crt \
-extfile <(printf "\nsubjectAltName='DNS:www.example.com'")
```
repeated bytes allowed_ca_certs = 5 [(.google.api.field_behavior) = OPTIONAL];values - The allowedCaCerts to add.public Webhook.GenericWebService.Builder clearAllowedCaCerts()
Optional. Specifies a list of allowed custom CA certificates (in DER format) for
HTTPS verification. This overrides the default SSL trust store. If this
is empty or unspecified, Dialogflow will use Google's default trust store
to verify certificates.
N.B. Make sure the HTTPS server certificates are signed with "subject alt
name". For instance a certificate can be self-signed using the following
command,
```
openssl x509 -req -days 200 -in example.com.csr \
-signkey example.com.key \
-out example.com.crt \
-extfile <(printf "\nsubjectAltName='DNS:www.example.com'")
```
repeated bytes allowed_ca_certs = 5 [(.google.api.field_behavior) = OPTIONAL];public final Webhook.GenericWebService.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Webhook.GenericWebService.Builder>public final Webhook.GenericWebService.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Webhook.GenericWebService.Builder>Copyright © 2022 Google LLC. All rights reserved.