Reference documentation and code samples for the Google Cloud Datastream V1 Client class MongodbCollection.
MongoDB Collection.
Generated from protobuf message google.cloud.datastream.v1.MongodbCollection
Namespace
Google \ Cloud \ Datastream \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description | 
| data | arrayOptional. Data for populating the Message object. | 
| ↳ collection | stringCollection name. | 
| ↳ fields | array<MongodbField>Fields in the collection. | 
getCollection
Collection name.
| Returns | |
|---|---|
| Type | Description | 
| string | |
setCollection
Collection name.
| Parameter | |
|---|---|
| Name | Description | 
| var | string | 
| Returns | |
|---|---|
| Type | Description | 
| $this | |
getFields
Fields in the collection.
| Returns | |
|---|---|
| Type | Description | 
| Google\Protobuf\Internal\RepeatedField | |
setFields
Fields in the collection.
| Parameter | |
|---|---|
| Name | Description | 
| var | array<MongodbField> | 
| Returns | |
|---|---|
| Type | Description | 
| $this | |