Class TransferMessage.Builder (2.36.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TransferMessage.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TransferMessage.Builder
Overrides

build()

public TransferMessage build()
Returns
TypeDescription
TransferMessage

buildPartial()

public TransferMessage buildPartial()
Returns
TypeDescription
TransferMessage

clear()

public TransferMessage.Builder clear()
Returns
TypeDescription
TransferMessage.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public TransferMessage.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
TransferMessage.Builder
Overrides

clearMessageText()

public TransferMessage.Builder clearMessageText()

Message text.

string message_text = 3;

Returns
TypeDescription
TransferMessage.Builder

This builder for chaining.

clearMessageTime()

public TransferMessage.Builder clearMessageTime()

Time when message was logged.

.google.protobuf.Timestamp message_time = 1;

Returns
TypeDescription
TransferMessage.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public TransferMessage.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
TransferMessage.Builder
Overrides

clearSeverity()

public TransferMessage.Builder clearSeverity()

Message severity.

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

Returns
TypeDescription
TransferMessage.Builder

This builder for chaining.

clone()

public TransferMessage.Builder clone()
Returns
TypeDescription
TransferMessage.Builder
Overrides

getDefaultInstanceForType()

public TransferMessage getDefaultInstanceForType()
Returns
TypeDescription
TransferMessage

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMessageText()

public String getMessageText()

Message text.

string message_text = 3;

Returns
TypeDescription
String

The messageText.

getMessageTextBytes()

public ByteString getMessageTextBytes()

Message text.

string message_text = 3;

Returns
TypeDescription
ByteString

The bytes for messageText.

getMessageTime()

public Timestamp getMessageTime()

Time when message was logged.

.google.protobuf.Timestamp message_time = 1;

Returns
TypeDescription
Timestamp

The messageTime.

getMessageTimeBuilder()

public Timestamp.Builder getMessageTimeBuilder()

Time when message was logged.

.google.protobuf.Timestamp message_time = 1;

Returns
TypeDescription
Builder

getMessageTimeOrBuilder()

public TimestampOrBuilder getMessageTimeOrBuilder()

Time when message was logged.

.google.protobuf.Timestamp message_time = 1;

Returns
TypeDescription
TimestampOrBuilder

getSeverity()

public TransferMessage.MessageSeverity getSeverity()

Message severity.

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

Returns
TypeDescription
TransferMessage.MessageSeverity

The severity.

getSeverityValue()

public int getSeverityValue()

Message severity.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the messageTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TransferMessage other)

public TransferMessage.Builder mergeFrom(TransferMessage other)
Parameter
NameDescription
otherTransferMessage
Returns
TypeDescription
TransferMessage.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TransferMessage.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TransferMessage.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public TransferMessage.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
TransferMessage.Builder
Overrides

mergeMessageTime(Timestamp value)

public TransferMessage.Builder mergeMessageTime(Timestamp value)

Time when message was logged.

.google.protobuf.Timestamp message_time = 1;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
TransferMessage.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TransferMessage.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TransferMessage.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public TransferMessage.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TransferMessage.Builder
Overrides

setMessageText(String value)

public TransferMessage.Builder setMessageText(String value)

Message text.

string message_text = 3;

Parameter
NameDescription
valueString

The messageText to set.

Returns
TypeDescription
TransferMessage.Builder

This builder for chaining.

setMessageTextBytes(ByteString value)

public TransferMessage.Builder setMessageTextBytes(ByteString value)

Message text.

string message_text = 3;

Parameter
NameDescription
valueByteString

The bytes for messageText to set.

Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
TransferMessage.Builder

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

public TransferMessage.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueTransferMessage.MessageSeverity

The severity to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
TransferMessage.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final TransferMessage.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TransferMessage.Builder
Overrides