Class StreamObject.Builder (1.54.0)

public static final class StreamObject.Builder extends GeneratedMessageV3.Builder<StreamObject.Builder> implements StreamObjectOrBuilder

A specific stream object (e.g a specific DB table).

Protobuf type google.cloud.datastream.v1.StreamObject

Static Methods

getDescriptor()

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

Methods

addAllErrors(Iterable<? extends Error> values)

public StreamObject.Builder addAllErrors(Iterable<? extends Error> values)

Output only. Active errors on the object.

repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.cloud.datastream.v1.Error>
Returns
Type Description
StreamObject.Builder

addErrors(Error value)

public StreamObject.Builder addErrors(Error value)

Output only. Active errors on the object.

repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Error
Returns
Type Description
StreamObject.Builder

addErrors(Error.Builder builderForValue)

public StreamObject.Builder addErrors(Error.Builder builderForValue)

Output only. Active errors on the object.

repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Error.Builder
Returns
Type Description
StreamObject.Builder

addErrors(int index, Error value)

public StreamObject.Builder addErrors(int index, Error value)

Output only. Active errors on the object.

repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value Error
Returns
Type Description
StreamObject.Builder

addErrors(int index, Error.Builder builderForValue)

public StreamObject.Builder addErrors(int index, Error.Builder builderForValue)

Output only. Active errors on the object.

repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue Error.Builder
Returns
Type Description
StreamObject.Builder

addErrorsBuilder()

public Error.Builder addErrorsBuilder()

Output only. Active errors on the object.

repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Error.Builder

addErrorsBuilder(int index)

public Error.Builder addErrorsBuilder(int index)

Output only. Active errors on the object.

repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Error.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public StreamObject build()
Returns
Type Description
StreamObject

buildPartial()

public StreamObject buildPartial()
Returns
Type Description
StreamObject

clear()

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

clearBackfillJob()

public StreamObject.Builder clearBackfillJob()

The latest backfill job that was initiated for the stream object.

.google.cloud.datastream.v1.BackfillJob backfill_job = 7;

Returns
Type Description
StreamObject.Builder

clearCreateTime()

public StreamObject.Builder clearCreateTime()

Output only. The creation time of the object.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
StreamObject.Builder

clearDisplayName()

public StreamObject.Builder clearDisplayName()

Required. Display name.

string display_name = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
StreamObject.Builder

This builder for chaining.

clearErrors()

public StreamObject.Builder clearErrors()

Output only. Active errors on the object.

repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
StreamObject.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public StreamObject.Builder clearName()

Output only. The object resource's name.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
StreamObject.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSourceObject()

public StreamObject.Builder clearSourceObject()

The object identifier in the data source.

.google.cloud.datastream.v1.SourceObjectIdentifier source_object = 8;

Returns
Type Description
StreamObject.Builder

clearUpdateTime()

public StreamObject.Builder clearUpdateTime()

Output only. The last update time of the object.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
StreamObject.Builder

clone()

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

getBackfillJob()

public BackfillJob getBackfillJob()

The latest backfill job that was initiated for the stream object.

.google.cloud.datastream.v1.BackfillJob backfill_job = 7;

Returns
Type Description
BackfillJob

The backfillJob.

getBackfillJobBuilder()

public BackfillJob.Builder getBackfillJobBuilder()

The latest backfill job that was initiated for the stream object.

.google.cloud.datastream.v1.BackfillJob backfill_job = 7;

Returns
Type Description
BackfillJob.Builder

getBackfillJobOrBuilder()

public BackfillJobOrBuilder getBackfillJobOrBuilder()

The latest backfill job that was initiated for the stream object.

.google.cloud.datastream.v1.BackfillJob backfill_job = 7;

Returns
Type Description
BackfillJobOrBuilder

getCreateTime()

public Timestamp getCreateTime()

Output only. The creation time of the object.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The creation time of the object.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The creation time of the object.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public StreamObject getDefaultInstanceForType()
Returns
Type Description
StreamObject

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

Required. Display name.

string display_name = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Required. Display name.

string display_name = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for displayName.

getErrors(int index)

public Error getErrors(int index)

Output only. Active errors on the object.

repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Error

getErrorsBuilder(int index)

public Error.Builder getErrorsBuilder(int index)

Output only. Active errors on the object.

repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Error.Builder

getErrorsBuilderList()

public List<Error.Builder> getErrorsBuilderList()

Output only. Active errors on the object.

repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getErrorsCount()

public int getErrorsCount()

Output only. Active errors on the object.

repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getErrorsList()

public List<Error> getErrorsList()

Output only. Active errors on the object.

repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Error>

getErrorsOrBuilder(int index)

public ErrorOrBuilder getErrorsOrBuilder(int index)

Output only. Active errors on the object.

repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
ErrorOrBuilder

getErrorsOrBuilderList()

public List<? extends ErrorOrBuilder> getErrorsOrBuilderList()

Output only. Active errors on the object.

repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.datastream.v1.ErrorOrBuilder>

getName()

public String getName()

Output only. The object resource's name.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The object resource's name.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

getSourceObject()

public SourceObjectIdentifier getSourceObject()

The object identifier in the data source.

.google.cloud.datastream.v1.SourceObjectIdentifier source_object = 8;

Returns
Type Description
SourceObjectIdentifier

The sourceObject.

getSourceObjectBuilder()

public SourceObjectIdentifier.Builder getSourceObjectBuilder()

The object identifier in the data source.

.google.cloud.datastream.v1.SourceObjectIdentifier source_object = 8;

Returns
Type Description
SourceObjectIdentifier.Builder

getSourceObjectOrBuilder()

public SourceObjectIdentifierOrBuilder getSourceObjectOrBuilder()

The object identifier in the data source.

.google.cloud.datastream.v1.SourceObjectIdentifier source_object = 8;

Returns
Type Description
SourceObjectIdentifierOrBuilder

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The last update time of the object.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The last update time of the object.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The last update time of the object.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasBackfillJob()

public boolean hasBackfillJob()

The latest backfill job that was initiated for the stream object.

.google.cloud.datastream.v1.BackfillJob backfill_job = 7;

Returns
Type Description
boolean

Whether the backfillJob field is set.

hasCreateTime()

public boolean hasCreateTime()

Output only. The creation time of the object.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasSourceObject()

public boolean hasSourceObject()

The object identifier in the data source.

.google.cloud.datastream.v1.SourceObjectIdentifier source_object = 8;

Returns
Type Description
boolean

Whether the sourceObject field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The last update time of the object.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeBackfillJob(BackfillJob value)

public StreamObject.Builder mergeBackfillJob(BackfillJob value)

The latest backfill job that was initiated for the stream object.

.google.cloud.datastream.v1.BackfillJob backfill_job = 7;

Parameter
Name Description
value BackfillJob
Returns
Type Description
StreamObject.Builder

mergeCreateTime(Timestamp value)

public StreamObject.Builder mergeCreateTime(Timestamp value)

Output only. The creation time of the object.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
StreamObject.Builder

mergeFrom(StreamObject other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSourceObject(SourceObjectIdentifier value)

public StreamObject.Builder mergeSourceObject(SourceObjectIdentifier value)

The object identifier in the data source.

.google.cloud.datastream.v1.SourceObjectIdentifier source_object = 8;

Parameter
Name Description
value SourceObjectIdentifier
Returns
Type Description
StreamObject.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public StreamObject.Builder mergeUpdateTime(Timestamp value)

Output only. The last update time of the object.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
StreamObject.Builder

removeErrors(int index)

public StreamObject.Builder removeErrors(int index)

Output only. Active errors on the object.

repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
StreamObject.Builder

setBackfillJob(BackfillJob value)

public StreamObject.Builder setBackfillJob(BackfillJob value)

The latest backfill job that was initiated for the stream object.

.google.cloud.datastream.v1.BackfillJob backfill_job = 7;

Parameter
Name Description
value BackfillJob
Returns
Type Description
StreamObject.Builder

setBackfillJob(BackfillJob.Builder builderForValue)

public StreamObject.Builder setBackfillJob(BackfillJob.Builder builderForValue)

The latest backfill job that was initiated for the stream object.

.google.cloud.datastream.v1.BackfillJob backfill_job = 7;

Parameter
Name Description
builderForValue BackfillJob.Builder
Returns
Type Description
StreamObject.Builder

setCreateTime(Timestamp value)

public StreamObject.Builder setCreateTime(Timestamp value)

Output only. The creation time of the object.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
StreamObject.Builder

setCreateTime(Timestamp.Builder builderForValue)

public StreamObject.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The creation time of the object.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
StreamObject.Builder

setDisplayName(String value)

public StreamObject.Builder setDisplayName(String value)

Required. Display name.

string display_name = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
StreamObject.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public StreamObject.Builder setDisplayNameBytes(ByteString value)

Required. Display name.

string display_name = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
StreamObject.Builder

This builder for chaining.

setErrors(int index, Error value)

public StreamObject.Builder setErrors(int index, Error value)

Output only. Active errors on the object.

repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value Error
Returns
Type Description
StreamObject.Builder

setErrors(int index, Error.Builder builderForValue)

public StreamObject.Builder setErrors(int index, Error.Builder builderForValue)

Output only. Active errors on the object.

repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue Error.Builder
Returns
Type Description
StreamObject.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public StreamObject.Builder setName(String value)

Output only. The object resource's name.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
StreamObject.Builder

This builder for chaining.

setNameBytes(ByteString value)

public StreamObject.Builder setNameBytes(ByteString value)

Output only. The object resource's name.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
StreamObject.Builder

This builder for chaining.

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

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

setSourceObject(SourceObjectIdentifier value)

public StreamObject.Builder setSourceObject(SourceObjectIdentifier value)

The object identifier in the data source.

.google.cloud.datastream.v1.SourceObjectIdentifier source_object = 8;

Parameter
Name Description
value SourceObjectIdentifier
Returns
Type Description
StreamObject.Builder

setSourceObject(SourceObjectIdentifier.Builder builderForValue)

public StreamObject.Builder setSourceObject(SourceObjectIdentifier.Builder builderForValue)

The object identifier in the data source.

.google.cloud.datastream.v1.SourceObjectIdentifier source_object = 8;

Parameter
Name Description
builderForValue SourceObjectIdentifier.Builder
Returns
Type Description
StreamObject.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public StreamObject.Builder setUpdateTime(Timestamp value)

Output only. The last update time of the object.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
StreamObject.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public StreamObject.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The last update time of the object.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
StreamObject.Builder