Class SourceCatalog.Builder (1.102.0)

public static final class SourceCatalog.Builder extends GeneratedMessage.Builder<SourceCatalog.Builder> implements SourceCatalogOrBuilder

Source catalog.

Protobuf type google.cloud.datastream.v1.SourceCatalog

Static Methods

getDescriptor()

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

Methods

addAllObjects(Iterable<? extends SourceObject> values)

public SourceCatalog.Builder addAllObjects(Iterable<? extends SourceObject> values)

Optional. Source objects in the catalog.

repeated .google.cloud.datastream.v1.SourceObject objects = 1 [(.google.api.field_behavior) = OPTIONAL];

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

addObjects(SourceObject value)

public SourceCatalog.Builder addObjects(SourceObject value)

Optional. Source objects in the catalog.

repeated .google.cloud.datastream.v1.SourceObject objects = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value SourceObject
Returns
Type Description
SourceCatalog.Builder

addObjects(SourceObject.Builder builderForValue)

public SourceCatalog.Builder addObjects(SourceObject.Builder builderForValue)

Optional. Source objects in the catalog.

repeated .google.cloud.datastream.v1.SourceObject objects = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue SourceObject.Builder
Returns
Type Description
SourceCatalog.Builder

addObjects(int index, SourceObject value)

public SourceCatalog.Builder addObjects(int index, SourceObject value)

Optional. Source objects in the catalog.

repeated .google.cloud.datastream.v1.SourceObject objects = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value SourceObject
Returns
Type Description
SourceCatalog.Builder

addObjects(int index, SourceObject.Builder builderForValue)

public SourceCatalog.Builder addObjects(int index, SourceObject.Builder builderForValue)

Optional. Source objects in the catalog.

repeated .google.cloud.datastream.v1.SourceObject objects = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue SourceObject.Builder
Returns
Type Description
SourceCatalog.Builder

addObjectsBuilder()

public SourceObject.Builder addObjectsBuilder()

Optional. Source objects in the catalog.

repeated .google.cloud.datastream.v1.SourceObject objects = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SourceObject.Builder

addObjectsBuilder(int index)

public SourceObject.Builder addObjectsBuilder(int index)

Optional. Source objects in the catalog.

repeated .google.cloud.datastream.v1.SourceObject objects = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
SourceObject.Builder

build()

public SourceCatalog build()
Returns
Type Description
SourceCatalog

buildPartial()

public SourceCatalog buildPartial()
Returns
Type Description
SourceCatalog

clear()

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

clearObjects()

public SourceCatalog.Builder clearObjects()

Optional. Source objects in the catalog.

repeated .google.cloud.datastream.v1.SourceObject objects = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SourceCatalog.Builder

getDefaultInstanceForType()

public SourceCatalog getDefaultInstanceForType()
Returns
Type Description
SourceCatalog

getDescriptorForType()

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

getObjects(int index)

public SourceObject getObjects(int index)

Optional. Source objects in the catalog.

repeated .google.cloud.datastream.v1.SourceObject objects = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
SourceObject

getObjectsBuilder(int index)

public SourceObject.Builder getObjectsBuilder(int index)

Optional. Source objects in the catalog.

repeated .google.cloud.datastream.v1.SourceObject objects = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
SourceObject.Builder

getObjectsBuilderList()

public List<SourceObject.Builder> getObjectsBuilderList()

Optional. Source objects in the catalog.

repeated .google.cloud.datastream.v1.SourceObject objects = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getObjectsCount()

public int getObjectsCount()

Optional. Source objects in the catalog.

repeated .google.cloud.datastream.v1.SourceObject objects = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getObjectsList()

public List<SourceObject> getObjectsList()

Optional. Source objects in the catalog.

repeated .google.cloud.datastream.v1.SourceObject objects = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<SourceObject>

getObjectsOrBuilder(int index)

public SourceObjectOrBuilder getObjectsOrBuilder(int index)

Optional. Source objects in the catalog.

repeated .google.cloud.datastream.v1.SourceObject objects = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
SourceObjectOrBuilder

getObjectsOrBuilderList()

public List<? extends SourceObjectOrBuilder> getObjectsOrBuilderList()

Optional. Source objects in the catalog.

repeated .google.cloud.datastream.v1.SourceObject objects = 1 [(.google.api.field_behavior) = OPTIONAL];

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SourceCatalog other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeObjects(int index)

public SourceCatalog.Builder removeObjects(int index)

Optional. Source objects in the catalog.

repeated .google.cloud.datastream.v1.SourceObject objects = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
SourceCatalog.Builder

setObjects(int index, SourceObject value)

public SourceCatalog.Builder setObjects(int index, SourceObject value)

Optional. Source objects in the catalog.

repeated .google.cloud.datastream.v1.SourceObject objects = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value SourceObject
Returns
Type Description
SourceCatalog.Builder

setObjects(int index, SourceObject.Builder builderForValue)

public SourceCatalog.Builder setObjects(int index, SourceObject.Builder builderForValue)

Optional. Source objects in the catalog.

repeated .google.cloud.datastream.v1.SourceObject objects = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue SourceObject.Builder
Returns
Type Description
SourceCatalog.Builder