public final class CommitRequest extends GeneratedMessageV3 implements CommitRequestOrBuilder
The request for Firestore.Commit.
Protobuf type google.firestore.v1.CommitRequest
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > CommitRequestImplements
CommitRequestOrBuilderStatic Fields
DATABASE_FIELD_NUMBER
public static final int DATABASE_FIELD_NUMBER
Type | Description |
int |
TRANSACTION_FIELD_NUMBER
public static final int TRANSACTION_FIELD_NUMBER
Type | Description |
int |
WRITES_FIELD_NUMBER
public static final int WRITES_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static CommitRequest getDefaultInstance()
Type | Description |
CommitRequest |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static CommitRequest.Builder newBuilder()
Type | Description |
CommitRequest.Builder |
newBuilder(CommitRequest prototype)
public static CommitRequest.Builder newBuilder(CommitRequest prototype)
Name | Description |
prototype | CommitRequest |
Type | Description |
CommitRequest.Builder |
parseDelimitedFrom(InputStream input)
public static CommitRequest parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
CommitRequest |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static CommitRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CommitRequest |
Type | Description |
IOException |
parseFrom(byte[] data)
public static CommitRequest parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
CommitRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static CommitRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CommitRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static CommitRequest parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
CommitRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CommitRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CommitRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static CommitRequest parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
CommitRequest |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static CommitRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CommitRequest |
Type | Description |
IOException |
parseFrom(InputStream input)
public static CommitRequest parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
CommitRequest |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static CommitRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CommitRequest |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static CommitRequest parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
CommitRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static CommitRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CommitRequest |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<CommitRequest> parser()
Type | Description |
Parser<CommitRequest> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getDatabase()
public String getDatabase()
Required. The database name. In the format:
projects/{project_id}/databases/{database_id}
.
string database = 1 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
String | The database. |
getDatabaseBytes()
public ByteString getDatabaseBytes()
Required. The database name. In the format:
projects/{project_id}/databases/{database_id}
.
string database = 1 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
ByteString | The bytes for database. |
getDefaultInstanceForType()
public CommitRequest getDefaultInstanceForType()
Type | Description |
CommitRequest |
getParserForType()
public Parser<CommitRequest> getParserForType()
Type | Description |
Parser<CommitRequest> |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getTransaction()
public ByteString getTransaction()
If set, applies all writes in this transaction, and commits it.
bytes transaction = 3;
Type | Description |
ByteString | The transaction. |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
getWrites(int index)
public Write getWrites(int index)
The writes to apply. Always executed atomically and in order.
repeated .google.firestore.v1.Write writes = 2;
Name | Description |
index | int |
Type | Description |
Write |
getWritesCount()
public int getWritesCount()
The writes to apply. Always executed atomically and in order.
repeated .google.firestore.v1.Write writes = 2;
Type | Description |
int |
getWritesList()
public List<Write> getWritesList()
The writes to apply. Always executed atomically and in order.
repeated .google.firestore.v1.Write writes = 2;
Type | Description |
List<Write> |
getWritesOrBuilder(int index)
public WriteOrBuilder getWritesOrBuilder(int index)
The writes to apply. Always executed atomically and in order.
repeated .google.firestore.v1.Write writes = 2;
Name | Description |
index | int |
Type | Description |
WriteOrBuilder |
getWritesOrBuilderList()
public List<? extends WriteOrBuilder> getWritesOrBuilderList()
The writes to apply. Always executed atomically and in order.
repeated .google.firestore.v1.Write writes = 2;
Type | Description |
List<? extends com.google.firestore.v1.WriteOrBuilder> |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public CommitRequest.Builder newBuilderForType()
Type | Description |
CommitRequest.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected CommitRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
CommitRequest.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public CommitRequest.Builder toBuilder()
Type | Description |
CommitRequest.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |