Class StreamObject.Builder (1.19.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.datastream.v1.Error>
Returns
TypeDescription
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
NameDescription
valueError
Returns
TypeDescription
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
NameDescription
builderForValueError.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueError
Returns
TypeDescription
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
NameDescription
indexint
builderForValueError.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Error.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public StreamObject build()
Returns
TypeDescription
StreamObject

buildPartial()

public StreamObject buildPartial()
Returns
TypeDescription
StreamObject

clear()

public StreamObject.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
StreamObject.Builder

clearDisplayName()

public StreamObject.Builder clearDisplayName()

Required. Display name.

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

Returns
TypeDescription
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
TypeDescription
StreamObject.Builder

clearField(Descriptors.FieldDescriptor field)

public StreamObject.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
StreamObject.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSourceObject()

public StreamObject.Builder clearSourceObject()

The object identifier in the data source.

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

Returns
TypeDescription
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
TypeDescription
StreamObject.Builder

clone()

public StreamObject.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public StreamObject getDefaultInstanceForType()
Returns
TypeDescription
StreamObject

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Required. Display name.

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

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Required. Display name.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The object resource's name.

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

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

The sourceObject.

getSourceObjectBuilder()

public SourceObjectIdentifier.Builder getSourceObjectBuilder()

The object identifier in the data source.

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

Returns
TypeDescription
SourceObjectIdentifier.Builder

getSourceObjectOrBuilder()

public SourceObjectIdentifierOrBuilder getSourceObjectOrBuilder()

The object identifier in the data source.

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

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

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueBackfillJob
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
StreamObject.Builder

mergeFrom(StreamObject other)

public StreamObject.Builder mergeFrom(StreamObject other)
Parameter
NameDescription
otherStreamObject
Returns
TypeDescription
StreamObject.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public StreamObject.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueSourceObjectIdentifier
Returns
TypeDescription
StreamObject.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StreamObject.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueBackfillJob
Returns
TypeDescription
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
NameDescription
builderForValueBackfillJob.Builder
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
StreamObject.Builder

setDisplayName(String value)

public StreamObject.Builder setDisplayName(String value)

Required. Display name.

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

Parameter
NameDescription
valueString

The displayName to set.

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

The bytes for displayName to set.

Returns
TypeDescription
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
NameDescription
indexint
valueError
Returns
TypeDescription
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
NameDescription
indexint
builderForValueError.Builder
Returns
TypeDescription
StreamObject.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public StreamObject.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

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

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueSourceObjectIdentifier
Returns
TypeDescription
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
NameDescription
builderForValueSourceObjectIdentifier.Builder
Returns
TypeDescription
StreamObject.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final StreamObject.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
StreamObject.Builder