Class UserMessage.Builder (0.11.0)

public static final class UserMessage.Builder extends GeneratedMessage.Builder<UserMessage.Builder> implements UserMessageOrBuilder

A message from the user that is interacting with the system.

Protobuf type google.cloud.geminidataanalytics.v1beta.UserMessage

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public UserMessage build()
Returns
Type Description
UserMessage

buildPartial()

public UserMessage buildPartial()
Returns
Type Description
UserMessage

clear()

public UserMessage.Builder clear()
Returns
Type Description
UserMessage.Builder
Overrides

clearKind()

public UserMessage.Builder clearKind()
Returns
Type Description
UserMessage.Builder

clearText()

public UserMessage.Builder clearText()

Text should use this field instead of blob.

string text = 1;

Returns
Type Description
UserMessage.Builder

This builder for chaining.

getDefaultInstanceForType()

public UserMessage getDefaultInstanceForType()
Returns
Type Description
UserMessage

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getKindCase()

public UserMessage.KindCase getKindCase()
Returns
Type Description
UserMessage.KindCase

getText()

public String getText()

Text should use this field instead of blob.

string text = 1;

Returns
Type Description
String

The text.

getTextBytes()

public ByteString getTextBytes()

Text should use this field instead of blob.

string text = 1;

Returns
Type Description
ByteString

The bytes for text.

hasText()

public boolean hasText()

Text should use this field instead of blob.

string text = 1;

Returns
Type Description
boolean

Whether the text field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UserMessage other)

public UserMessage.Builder mergeFrom(UserMessage other)
Parameter
Name Description
other UserMessage
Returns
Type Description
UserMessage.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UserMessage.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UserMessage.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public UserMessage.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
UserMessage.Builder
Overrides

setText(String value)

public UserMessage.Builder setText(String value)

Text should use this field instead of blob.

string text = 1;

Parameter
Name Description
value String

The text to set.

Returns
Type Description
UserMessage.Builder

This builder for chaining.

setTextBytes(ByteString value)

public UserMessage.Builder setTextBytes(ByteString value)

Text should use this field instead of blob.

string text = 1;

Parameter
Name Description
value ByteString

The bytes for text to set.

Returns
Type Description
UserMessage.Builder

This builder for chaining.