Class BatchWriteResponse (3.10.0)

public final class BatchWriteResponse extends GeneratedMessageV3 implements BatchWriteResponseOrBuilder

The response from Firestore.BatchWrite.

Protobuf type google.firestore.v1.BatchWriteResponse

Static Fields

STATUS_FIELD_NUMBER

public static final int STATUS_FIELD_NUMBER
Field Value
TypeDescription
int

WRITE_RESULTS_FIELD_NUMBER

public static final int WRITE_RESULTS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static BatchWriteResponse getDefaultInstance()
Returns
TypeDescription
BatchWriteResponse

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static BatchWriteResponse.Builder newBuilder()
Returns
TypeDescription
BatchWriteResponse.Builder

newBuilder(BatchWriteResponse prototype)

public static BatchWriteResponse.Builder newBuilder(BatchWriteResponse prototype)
Parameter
NameDescription
prototypeBatchWriteResponse
Returns
TypeDescription
BatchWriteResponse.Builder

parseDelimitedFrom(InputStream input)

public static BatchWriteResponse parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
BatchWriteResponse
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BatchWriteResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchWriteResponse
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static BatchWriteResponse parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
BatchWriteResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static BatchWriteResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchWriteResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static BatchWriteResponse parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
BatchWriteResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static BatchWriteResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchWriteResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static BatchWriteResponse parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
BatchWriteResponse
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static BatchWriteResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchWriteResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static BatchWriteResponse parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
BatchWriteResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BatchWriteResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchWriteResponse
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static BatchWriteResponse parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
BatchWriteResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static BatchWriteResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchWriteResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<BatchWriteResponse> parser()
Returns
TypeDescription
Parser<BatchWriteResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public BatchWriteResponse getDefaultInstanceForType()
Returns
TypeDescription
BatchWriteResponse

getParserForType()

public Parser<BatchWriteResponse> getParserForType()
Returns
TypeDescription
Parser<BatchWriteResponse>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getStatus(int index)

public Status getStatus(int index)

The status of applying the writes. This i-th write status corresponds to the i-th write in the request.

repeated .google.rpc.Status status = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
com.google.rpc.Status

getStatusCount()

public int getStatusCount()

The status of applying the writes. This i-th write status corresponds to the i-th write in the request.

repeated .google.rpc.Status status = 2;

Returns
TypeDescription
int

getStatusList()

public List<Status> getStatusList()

The status of applying the writes. This i-th write status corresponds to the i-th write in the request.

repeated .google.rpc.Status status = 2;

Returns
TypeDescription
List<com.google.rpc.Status>

getStatusOrBuilder(int index)

public StatusOrBuilder getStatusOrBuilder(int index)

The status of applying the writes. This i-th write status corresponds to the i-th write in the request.

repeated .google.rpc.Status status = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
com.google.rpc.StatusOrBuilder

getStatusOrBuilderList()

public List<? extends StatusOrBuilder> getStatusOrBuilderList()

The status of applying the writes. This i-th write status corresponds to the i-th write in the request.

repeated .google.rpc.Status status = 2;

Returns
TypeDescription
List<? extends com.google.rpc.StatusOrBuilder>

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getWriteResults(int index)

public WriteResult getWriteResults(int index)

The result of applying the writes. This i-th write result corresponds to the i-th write in the request.

repeated .google.firestore.v1.WriteResult write_results = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
WriteResult

getWriteResultsCount()

public int getWriteResultsCount()

The result of applying the writes. This i-th write result corresponds to the i-th write in the request.

repeated .google.firestore.v1.WriteResult write_results = 1;

Returns
TypeDescription
int

getWriteResultsList()

public List<WriteResult> getWriteResultsList()

The result of applying the writes. This i-th write result corresponds to the i-th write in the request.

repeated .google.firestore.v1.WriteResult write_results = 1;

Returns
TypeDescription
List<WriteResult>

getWriteResultsOrBuilder(int index)

public WriteResultOrBuilder getWriteResultsOrBuilder(int index)

The result of applying the writes. This i-th write result corresponds to the i-th write in the request.

repeated .google.firestore.v1.WriteResult write_results = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
WriteResultOrBuilder

getWriteResultsOrBuilderList()

public List<? extends WriteResultOrBuilder> getWriteResultsOrBuilderList()

The result of applying the writes. This i-th write result corresponds to the i-th write in the request.

repeated .google.firestore.v1.WriteResult write_results = 1;

Returns
TypeDescription
List<? extends com.google.firestore.v1.WriteResultOrBuilder>

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public BatchWriteResponse.Builder newBuilderForType()
Returns
TypeDescription
BatchWriteResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected BatchWriteResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
BatchWriteResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public BatchWriteResponse.Builder toBuilder()
Returns
TypeDescription
BatchWriteResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException