Class SourceObjectIdentifier.MongodbObjectIdentifier.Builder (1.82.0)

public static final class SourceObjectIdentifier.MongodbObjectIdentifier.Builder extends GeneratedMessage.Builder<SourceObjectIdentifier.MongodbObjectIdentifier.Builder> implements SourceObjectIdentifier.MongodbObjectIdentifierOrBuilder

MongoDB data source object identifier.

Protobuf type google.cloud.datastream.v1.SourceObjectIdentifier.MongodbObjectIdentifier

Static Methods

getDescriptor()

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

Methods

build()

public SourceObjectIdentifier.MongodbObjectIdentifier build()
Returns
Type Description
SourceObjectIdentifier.MongodbObjectIdentifier

buildPartial()

public SourceObjectIdentifier.MongodbObjectIdentifier buildPartial()
Returns
Type Description
SourceObjectIdentifier.MongodbObjectIdentifier

clear()

public SourceObjectIdentifier.MongodbObjectIdentifier.Builder clear()
Returns
Type Description
SourceObjectIdentifier.MongodbObjectIdentifier.Builder
Overrides

clearCollection()

public SourceObjectIdentifier.MongodbObjectIdentifier.Builder clearCollection()

Required. The collection name.

string collection = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SourceObjectIdentifier.MongodbObjectIdentifier.Builder

This builder for chaining.

clearDatabase()

public SourceObjectIdentifier.MongodbObjectIdentifier.Builder clearDatabase()

Required. The database name.

string database = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SourceObjectIdentifier.MongodbObjectIdentifier.Builder

This builder for chaining.

getCollection()

public String getCollection()

Required. The collection name.

string collection = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The collection.

getCollectionBytes()

public ByteString getCollectionBytes()

Required. The collection name.

string collection = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for collection.

getDatabase()

public String getDatabase()

Required. The database name.

string database = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The database.

getDatabaseBytes()

public ByteString getDatabaseBytes()

Required. The database name.

string database = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for database.

getDefaultInstanceForType()

public SourceObjectIdentifier.MongodbObjectIdentifier getDefaultInstanceForType()
Returns
Type Description
SourceObjectIdentifier.MongodbObjectIdentifier

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SourceObjectIdentifier.MongodbObjectIdentifier other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setCollection(String value)

public SourceObjectIdentifier.MongodbObjectIdentifier.Builder setCollection(String value)

Required. The collection name.

string collection = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The collection to set.

Returns
Type Description
SourceObjectIdentifier.MongodbObjectIdentifier.Builder

This builder for chaining.

setCollectionBytes(ByteString value)

public SourceObjectIdentifier.MongodbObjectIdentifier.Builder setCollectionBytes(ByteString value)

Required. The collection name.

string collection = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for collection to set.

Returns
Type Description
SourceObjectIdentifier.MongodbObjectIdentifier.Builder

This builder for chaining.

setDatabase(String value)

public SourceObjectIdentifier.MongodbObjectIdentifier.Builder setDatabase(String value)

Required. The database name.

string database = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The database to set.

Returns
Type Description
SourceObjectIdentifier.MongodbObjectIdentifier.Builder

This builder for chaining.

setDatabaseBytes(ByteString value)

public SourceObjectIdentifier.MongodbObjectIdentifier.Builder setDatabaseBytes(ByteString value)

Required. The database name.

string database = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for database to set.

Returns
Type Description
SourceObjectIdentifier.MongodbObjectIdentifier.Builder

This builder for chaining.