public static final class MongodbCollection.Builder extends GeneratedMessage.Builder<MongodbCollection.Builder> implements MongodbCollectionOrBuilderMongoDB Collection.
Protobuf type google.cloud.datastream.v1.MongodbCollection
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > MongodbCollection.BuilderImplements
MongodbCollectionOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllFields(Iterable<? extends MongodbField> values)
public MongodbCollection.Builder addAllFields(Iterable<? extends MongodbField> values)Fields in the collection.
repeated .google.cloud.datastream.v1.MongodbField fields = 2;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.datastream.v1.MongodbField> |
| Returns | |
|---|---|
| Type | Description |
MongodbCollection.Builder |
|
addFields(MongodbField value)
public MongodbCollection.Builder addFields(MongodbField value)Fields in the collection.
repeated .google.cloud.datastream.v1.MongodbField fields = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
MongodbField |
| Returns | |
|---|---|
| Type | Description |
MongodbCollection.Builder |
|
addFields(MongodbField.Builder builderForValue)
public MongodbCollection.Builder addFields(MongodbField.Builder builderForValue)Fields in the collection.
repeated .google.cloud.datastream.v1.MongodbField fields = 2;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
MongodbField.Builder |
| Returns | |
|---|---|
| Type | Description |
MongodbCollection.Builder |
|
addFields(int index, MongodbField value)
public MongodbCollection.Builder addFields(int index, MongodbField value)Fields in the collection.
repeated .google.cloud.datastream.v1.MongodbField fields = 2;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
MongodbField |
| Returns | |
|---|---|
| Type | Description |
MongodbCollection.Builder |
|
addFields(int index, MongodbField.Builder builderForValue)
public MongodbCollection.Builder addFields(int index, MongodbField.Builder builderForValue)Fields in the collection.
repeated .google.cloud.datastream.v1.MongodbField fields = 2;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
MongodbField.Builder |
| Returns | |
|---|---|
| Type | Description |
MongodbCollection.Builder |
|
addFieldsBuilder()
public MongodbField.Builder addFieldsBuilder()Fields in the collection.
repeated .google.cloud.datastream.v1.MongodbField fields = 2;
| Returns | |
|---|---|
| Type | Description |
MongodbField.Builder |
|
addFieldsBuilder(int index)
public MongodbField.Builder addFieldsBuilder(int index)Fields in the collection.
repeated .google.cloud.datastream.v1.MongodbField fields = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
MongodbField.Builder |
|
build()
public MongodbCollection build()| Returns | |
|---|---|
| Type | Description |
MongodbCollection |
|
buildPartial()
public MongodbCollection buildPartial()| Returns | |
|---|---|
| Type | Description |
MongodbCollection |
|
clear()
public MongodbCollection.Builder clear()| Returns | |
|---|---|
| Type | Description |
MongodbCollection.Builder |
|
clearCollection()
public MongodbCollection.Builder clearCollection()Collection name.
string collection = 1;
| Returns | |
|---|---|
| Type | Description |
MongodbCollection.Builder |
This builder for chaining. |
clearFields()
public MongodbCollection.Builder clearFields()Fields in the collection.
repeated .google.cloud.datastream.v1.MongodbField fields = 2;
| Returns | |
|---|---|
| Type | Description |
MongodbCollection.Builder |
|
getCollection()
public String getCollection()Collection name.
string collection = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The collection. |
getCollectionBytes()
public ByteString getCollectionBytes()Collection name.
string collection = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for collection. |
getDefaultInstanceForType()
public MongodbCollection getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
MongodbCollection |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getFields(int index)
public MongodbField getFields(int index)Fields in the collection.
repeated .google.cloud.datastream.v1.MongodbField fields = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
MongodbField |
|
getFieldsBuilder(int index)
public MongodbField.Builder getFieldsBuilder(int index)Fields in the collection.
repeated .google.cloud.datastream.v1.MongodbField fields = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
MongodbField.Builder |
|
getFieldsBuilderList()
public List<MongodbField.Builder> getFieldsBuilderList()Fields in the collection.
repeated .google.cloud.datastream.v1.MongodbField fields = 2;
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getFieldsCount()
public int getFieldsCount()Fields in the collection.
repeated .google.cloud.datastream.v1.MongodbField fields = 2;
| Returns | |
|---|---|
| Type | Description |
int |
|
getFieldsList()
public List<MongodbField> getFieldsList()Fields in the collection.
repeated .google.cloud.datastream.v1.MongodbField fields = 2;
| Returns | |
|---|---|
| Type | Description |
List<MongodbField> |
|
getFieldsOrBuilder(int index)
public MongodbFieldOrBuilder getFieldsOrBuilder(int index)Fields in the collection.
repeated .google.cloud.datastream.v1.MongodbField fields = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
MongodbFieldOrBuilder |
|
getFieldsOrBuilderList()
public List<? extends MongodbFieldOrBuilder> getFieldsOrBuilderList()Fields in the collection.
repeated .google.cloud.datastream.v1.MongodbField fields = 2;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.datastream.v1.MongodbFieldOrBuilder> |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(MongodbCollection other)
public MongodbCollection.Builder mergeFrom(MongodbCollection other)| Parameter | |
|---|---|
| Name | Description |
other |
MongodbCollection |
| Returns | |
|---|---|
| Type | Description |
MongodbCollection.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public MongodbCollection.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
MongodbCollection.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public MongodbCollection.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
MongodbCollection.Builder |
|
removeFields(int index)
public MongodbCollection.Builder removeFields(int index)Fields in the collection.
repeated .google.cloud.datastream.v1.MongodbField fields = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
MongodbCollection.Builder |
|
setCollection(String value)
public MongodbCollection.Builder setCollection(String value)Collection name.
string collection = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe collection to set. |
| Returns | |
|---|---|
| Type | Description |
MongodbCollection.Builder |
This builder for chaining. |
setCollectionBytes(ByteString value)
public MongodbCollection.Builder setCollectionBytes(ByteString value)Collection name.
string collection = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for collection to set. |
| Returns | |
|---|---|
| Type | Description |
MongodbCollection.Builder |
This builder for chaining. |
setFields(int index, MongodbField value)
public MongodbCollection.Builder setFields(int index, MongodbField value)Fields in the collection.
repeated .google.cloud.datastream.v1.MongodbField fields = 2;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
MongodbField |
| Returns | |
|---|---|
| Type | Description |
MongodbCollection.Builder |
|
setFields(int index, MongodbField.Builder builderForValue)
public MongodbCollection.Builder setFields(int index, MongodbField.Builder builderForValue)Fields in the collection.
repeated .google.cloud.datastream.v1.MongodbField fields = 2;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
MongodbField.Builder |
| Returns | |
|---|---|
| Type | Description |
MongodbCollection.Builder |
|