Class TransferMessage.Builder (2.43.0)

public static final class TransferMessage.Builder extends GeneratedMessageV3.Builder<TransferMessage.Builder> implements TransferMessageOrBuilder

Represents a user facing message for a particular data transfer run.

Protobuf type google.cloud.bigquery.datatransfer.v1.TransferMessage

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TransferMessage.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TransferMessage.Builder
Overrides

build()

public TransferMessage build()
Returns
Type Description
TransferMessage

buildPartial()

public TransferMessage buildPartial()
Returns
Type Description
TransferMessage

clear()

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

clearField(Descriptors.FieldDescriptor field)

public TransferMessage.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
TransferMessage.Builder
Overrides

clearMessageText()

public TransferMessage.Builder clearMessageText()

Message text.

string message_text = 3;

Returns
Type Description
TransferMessage.Builder

This builder for chaining.

clearMessageTime()

public TransferMessage.Builder clearMessageTime()

Time when message was logged.

.google.protobuf.Timestamp message_time = 1;

Returns
Type Description
TransferMessage.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public TransferMessage.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
TransferMessage.Builder
Overrides

clearSeverity()

public TransferMessage.Builder clearSeverity()

Message severity.

.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity severity = 2;

Returns
Type Description
TransferMessage.Builder

This builder for chaining.

clone()

public TransferMessage.Builder clone()
Returns
Type Description
TransferMessage.Builder
Overrides

getDefaultInstanceForType()

public TransferMessage getDefaultInstanceForType()
Returns
Type Description
TransferMessage

getDescriptorForType()

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

getMessageText()

public String getMessageText()

Message text.

string message_text = 3;

Returns
Type Description
String

The messageText.

getMessageTextBytes()

public ByteString getMessageTextBytes()

Message text.

string message_text = 3;

Returns
Type Description
ByteString

The bytes for messageText.

getMessageTime()

public Timestamp getMessageTime()

Time when message was logged.

.google.protobuf.Timestamp message_time = 1;

Returns
Type Description
Timestamp

The messageTime.

getMessageTimeBuilder()

public Timestamp.Builder getMessageTimeBuilder()

Time when message was logged.

.google.protobuf.Timestamp message_time = 1;

Returns
Type Description
Builder

getMessageTimeOrBuilder()

public TimestampOrBuilder getMessageTimeOrBuilder()

Time when message was logged.

.google.protobuf.Timestamp message_time = 1;

Returns
Type Description
TimestampOrBuilder

getSeverity()

public TransferMessage.MessageSeverity getSeverity()

Message severity.

.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity severity = 2;

Returns
Type Description
TransferMessage.MessageSeverity

The severity.

getSeverityValue()

public int getSeverityValue()

Message severity.

.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity severity = 2;

Returns
Type Description
int

The enum numeric value on the wire for severity.

hasMessageTime()

public boolean hasMessageTime()

Time when message was logged.

.google.protobuf.Timestamp message_time = 1;

Returns
Type Description
boolean

Whether the messageTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TransferMessage other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMessageTime(Timestamp value)

public TransferMessage.Builder mergeMessageTime(Timestamp value)

Time when message was logged.

.google.protobuf.Timestamp message_time = 1;

Parameter
Name Description
value Timestamp
Returns
Type Description
TransferMessage.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TransferMessage.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TransferMessage.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public TransferMessage.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TransferMessage.Builder
Overrides

setMessageText(String value)

public TransferMessage.Builder setMessageText(String value)

Message text.

string message_text = 3;

Parameter
Name Description
value String

The messageText to set.

Returns
Type Description
TransferMessage.Builder

This builder for chaining.

setMessageTextBytes(ByteString value)

public TransferMessage.Builder setMessageTextBytes(ByteString value)

Message text.

string message_text = 3;

Parameter
Name Description
value ByteString

The bytes for messageText to set.

Returns
Type Description
TransferMessage.Builder

This builder for chaining.

setMessageTime(Timestamp value)

public TransferMessage.Builder setMessageTime(Timestamp value)

Time when message was logged.

.google.protobuf.Timestamp message_time = 1;

Parameter
Name Description
value Timestamp
Returns
Type Description
TransferMessage.Builder

setMessageTime(Timestamp.Builder builderForValue)

public TransferMessage.Builder setMessageTime(Timestamp.Builder builderForValue)

Time when message was logged.

.google.protobuf.Timestamp message_time = 1;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
TransferMessage.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public TransferMessage.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
TransferMessage.Builder
Overrides

setSeverity(TransferMessage.MessageSeverity value)

public TransferMessage.Builder setSeverity(TransferMessage.MessageSeverity value)

Message severity.

.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity severity = 2;

Parameter
Name Description
value TransferMessage.MessageSeverity

The severity to set.

Returns
Type Description
TransferMessage.Builder

This builder for chaining.

setSeverityValue(int value)

public TransferMessage.Builder setSeverityValue(int value)

Message severity.

.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity severity = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for severity to set.

Returns
Type Description
TransferMessage.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final TransferMessage.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TransferMessage.Builder
Overrides