public static final class SendMessageConfiguration.Builder extends GeneratedMessage.Builder<SendMessageConfiguration.Builder> implements SendMessageConfigurationOrBuilderConfiguration of a send message request.
Protobuf type google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > SendMessageConfiguration.BuilderImplements
SendMessageConfigurationOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAcceptedOutputModes(String value)
public SendMessageConfiguration.Builder addAcceptedOutputModes(String value)Optional. The output modes that the agent is expected to respond with.
repeated string accepted_output_modes = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe acceptedOutputModes to add. |
| Returns | |
|---|---|
| Type | Description |
SendMessageConfiguration.Builder |
This builder for chaining. |
addAcceptedOutputModesBytes(ByteString value)
public SendMessageConfiguration.Builder addAcceptedOutputModesBytes(ByteString value)Optional. The output modes that the agent is expected to respond with.
repeated string accepted_output_modes = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the acceptedOutputModes to add. |
| Returns | |
|---|---|
| Type | Description |
SendMessageConfiguration.Builder |
This builder for chaining. |
addAllAcceptedOutputModes(Iterable<String> values)
public SendMessageConfiguration.Builder addAllAcceptedOutputModes(Iterable<String> values)Optional. The output modes that the agent is expected to respond with.
repeated string accepted_output_modes = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The acceptedOutputModes to add. |
| Returns | |
|---|---|
| Type | Description |
SendMessageConfiguration.Builder |
This builder for chaining. |
build()
public SendMessageConfiguration build()| Returns | |
|---|---|
| Type | Description |
SendMessageConfiguration |
|
buildPartial()
public SendMessageConfiguration buildPartial()| Returns | |
|---|---|
| Type | Description |
SendMessageConfiguration |
|
clear()
public SendMessageConfiguration.Builder clear()| Returns | |
|---|---|
| Type | Description |
SendMessageConfiguration.Builder |
|
clearAcceptedOutputModes()
public SendMessageConfiguration.Builder clearAcceptedOutputModes()Optional. The output modes that the agent is expected to respond with.
repeated string accepted_output_modes = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
SendMessageConfiguration.Builder |
This builder for chaining. |
clearBlocking()
public SendMessageConfiguration.Builder clearBlocking()Optional. If true, the message will be blocking until the task is completed. If false, the task will be returned immediately.
bool blocking = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
SendMessageConfiguration.Builder |
This builder for chaining. |
clearHistoryLength()
public SendMessageConfiguration.Builder clearHistoryLength()Optional. The maximum number of messages to include in the history. If 0, the history will be unlimited.
int32 history_length = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
SendMessageConfiguration.Builder |
This builder for chaining. |
clearPushNotification()
public SendMessageConfiguration.Builder clearPushNotification()Optional. A configuration of a webhook that can be used to receive updates.
.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig push_notification = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
SendMessageConfiguration.Builder |
|
getAcceptedOutputModes(int index)
public String getAcceptedOutputModes(int index)Optional. The output modes that the agent is expected to respond with.
repeated string accepted_output_modes = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The acceptedOutputModes at the given index. |
getAcceptedOutputModesBytes(int index)
public ByteString getAcceptedOutputModesBytes(int index)Optional. The output modes that the agent is expected to respond with.
repeated string accepted_output_modes = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the acceptedOutputModes at the given index. |
getAcceptedOutputModesCount()
public int getAcceptedOutputModesCount()Optional. The output modes that the agent is expected to respond with.
repeated string accepted_output_modes = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The count of acceptedOutputModes. |
getAcceptedOutputModesList()
public ProtocolStringList getAcceptedOutputModesList()Optional. The output modes that the agent is expected to respond with.
repeated string accepted_output_modes = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the acceptedOutputModes. |
getBlocking()
public boolean getBlocking()Optional. If true, the message will be blocking until the task is completed. If false, the task will be returned immediately.
bool blocking = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The blocking. |
getDefaultInstanceForType()
public SendMessageConfiguration getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
SendMessageConfiguration |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getHistoryLength()
public int getHistoryLength()Optional. The maximum number of messages to include in the history. If 0, the history will be unlimited.
int32 history_length = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The historyLength. |
getPushNotification()
public PushNotificationConfig getPushNotification()Optional. A configuration of a webhook that can be used to receive updates.
.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig push_notification = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
PushNotificationConfig |
The pushNotification. |
getPushNotificationBuilder()
public PushNotificationConfig.Builder getPushNotificationBuilder()Optional. A configuration of a webhook that can be used to receive updates.
.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig push_notification = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
PushNotificationConfig.Builder |
|
getPushNotificationOrBuilder()
public PushNotificationConfigOrBuilder getPushNotificationOrBuilder()Optional. A configuration of a webhook that can be used to receive updates.
.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig push_notification = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
PushNotificationConfigOrBuilder |
|
hasPushNotification()
public boolean hasPushNotification()Optional. A configuration of a webhook that can be used to receive updates.
.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig push_notification = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the pushNotification field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(SendMessageConfiguration other)
public SendMessageConfiguration.Builder mergeFrom(SendMessageConfiguration other)| Parameter | |
|---|---|
| Name | Description |
other |
SendMessageConfiguration |
| Returns | |
|---|---|
| Type | Description |
SendMessageConfiguration.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SendMessageConfiguration.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
SendMessageConfiguration.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public SendMessageConfiguration.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
SendMessageConfiguration.Builder |
|
mergePushNotification(PushNotificationConfig value)
public SendMessageConfiguration.Builder mergePushNotification(PushNotificationConfig value)Optional. A configuration of a webhook that can be used to receive updates.
.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig push_notification = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
PushNotificationConfig |
| Returns | |
|---|---|
| Type | Description |
SendMessageConfiguration.Builder |
|
setAcceptedOutputModes(int index, String value)
public SendMessageConfiguration.Builder setAcceptedOutputModes(int index, String value)Optional. The output modes that the agent is expected to respond with.
repeated string accepted_output_modes = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe acceptedOutputModes to set. |
| Returns | |
|---|---|
| Type | Description |
SendMessageConfiguration.Builder |
This builder for chaining. |
setBlocking(boolean value)
public SendMessageConfiguration.Builder setBlocking(boolean value)Optional. If true, the message will be blocking until the task is completed. If false, the task will be returned immediately.
bool blocking = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe blocking to set. |
| Returns | |
|---|---|
| Type | Description |
SendMessageConfiguration.Builder |
This builder for chaining. |
setHistoryLength(int value)
public SendMessageConfiguration.Builder setHistoryLength(int value)Optional. The maximum number of messages to include in the history. If 0, the history will be unlimited.
int32 history_length = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe historyLength to set. |
| Returns | |
|---|---|
| Type | Description |
SendMessageConfiguration.Builder |
This builder for chaining. |
setPushNotification(PushNotificationConfig value)
public SendMessageConfiguration.Builder setPushNotification(PushNotificationConfig value)Optional. A configuration of a webhook that can be used to receive updates.
.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig push_notification = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
PushNotificationConfig |
| Returns | |
|---|---|
| Type | Description |
SendMessageConfiguration.Builder |
|
setPushNotification(PushNotificationConfig.Builder builderForValue)
public SendMessageConfiguration.Builder setPushNotification(PushNotificationConfig.Builder builderForValue)Optional. A configuration of a webhook that can be used to receive updates.
.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig push_notification = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
PushNotificationConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
SendMessageConfiguration.Builder |
|