Class SourceObjectIdentifier.MongodbObjectIdentifier.Builder (1.71.0)

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

MongoDB data source object identifier.

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

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > SourceObjectIdentifier.MongodbObjectIdentifier.Builder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SourceObjectIdentifier.MongodbObjectIdentifier.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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