diff --git a/google-api-grpc/grpc-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/FirestoreGrpc.java b/google-api-grpc/grpc-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/FirestoreGrpc.java index 8bb5b96c0bbe..a790b7c2db85 100644 --- a/google-api-grpc/grpc-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/FirestoreGrpc.java +++ b/google-api-grpc/grpc-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/FirestoreGrpc.java @@ -2,20 +2,20 @@ import static io.grpc.MethodDescriptor.generateFullMethodName; import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; import static io.grpc.stub.ClientCalls.asyncUnaryCall; import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; import static io.grpc.stub.ClientCalls.blockingUnaryCall; import static io.grpc.stub.ClientCalls.futureUnaryCall; import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; import static io.grpc.stub.ServerCalls.asyncUnaryCall; import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** + * + * *
* The Cloud Firestore service. * This service exposes several types of comparable timestamps: @@ -44,490 +44,704 @@ private FirestoreGrpc() {} // Static method descriptors that strictly reflect the proto. @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getGetDocumentMethod()} instead. - public static final io.grpc.MethodDescriptorMETHOD_GET_DOCUMENT = getGetDocumentMethodHelper(); + @java.lang.Deprecated // Use {@link #getGetDocumentMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.GetDocumentRequest, com.google.firestore.v1beta1.Document> + METHOD_GET_DOCUMENT = getGetDocumentMethodHelper(); - private static volatile io.grpc.MethodDescriptor getGetDocumentMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.GetDocumentRequest, com.google.firestore.v1beta1.Document> + getGetDocumentMethod; @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor getGetDocumentMethod() { + public static io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.GetDocumentRequest, com.google.firestore.v1beta1.Document> + getGetDocumentMethod() { return getGetDocumentMethodHelper(); } - private static io.grpc.MethodDescriptor getGetDocumentMethodHelper() { - io.grpc.MethodDescriptor getGetDocumentMethod; + private static io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.GetDocumentRequest, com.google.firestore.v1beta1.Document> + getGetDocumentMethodHelper() { + io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.GetDocumentRequest, com.google.firestore.v1beta1.Document> + getGetDocumentMethod; if ((getGetDocumentMethod = FirestoreGrpc.getGetDocumentMethod) == null) { synchronized (FirestoreGrpc.class) { if ((getGetDocumentMethod = FirestoreGrpc.getGetDocumentMethod) == null) { - FirestoreGrpc.getGetDocumentMethod = getGetDocumentMethod = - io.grpc.MethodDescriptor. newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "google.firestore.v1beta1.Firestore", "GetDocument")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.firestore.v1beta1.GetDocumentRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.firestore.v1beta1.Document.getDefaultInstance())) - .setSchemaDescriptor(new FirestoreMethodDescriptorSupplier("GetDocument")) - .build(); - } + FirestoreGrpc.getGetDocumentMethod = + getGetDocumentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.firestore.v1beta1.Firestore", "GetDocument")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.firestore.v1beta1.GetDocumentRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.firestore.v1beta1.Document.getDefaultInstance())) + .setSchemaDescriptor(new FirestoreMethodDescriptorSupplier("GetDocument")) + .build(); } - } - return getGetDocumentMethod; + } + } + return getGetDocumentMethod; } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getListDocumentsMethod()} instead. - public static final io.grpc.MethodDescriptor METHOD_LIST_DOCUMENTS = getListDocumentsMethodHelper(); + @java.lang.Deprecated // Use {@link #getListDocumentsMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.ListDocumentsRequest, + com.google.firestore.v1beta1.ListDocumentsResponse> + METHOD_LIST_DOCUMENTS = getListDocumentsMethodHelper(); - private static volatile io.grpc.MethodDescriptor getListDocumentsMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.ListDocumentsRequest, + com.google.firestore.v1beta1.ListDocumentsResponse> + getListDocumentsMethod; @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor getListDocumentsMethod() { + public static io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.ListDocumentsRequest, + com.google.firestore.v1beta1.ListDocumentsResponse> + getListDocumentsMethod() { return getListDocumentsMethodHelper(); } - private static io.grpc.MethodDescriptor getListDocumentsMethodHelper() { - io.grpc.MethodDescriptor getListDocumentsMethod; + private static io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.ListDocumentsRequest, + com.google.firestore.v1beta1.ListDocumentsResponse> + getListDocumentsMethodHelper() { + io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.ListDocumentsRequest, + com.google.firestore.v1beta1.ListDocumentsResponse> + getListDocumentsMethod; if ((getListDocumentsMethod = FirestoreGrpc.getListDocumentsMethod) == null) { synchronized (FirestoreGrpc.class) { if ((getListDocumentsMethod = FirestoreGrpc.getListDocumentsMethod) == null) { - FirestoreGrpc.getListDocumentsMethod = getListDocumentsMethod = - io.grpc.MethodDescriptor. newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "google.firestore.v1beta1.Firestore", "ListDocuments")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.firestore.v1beta1.ListDocumentsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.firestore.v1beta1.ListDocumentsResponse.getDefaultInstance())) - .setSchemaDescriptor(new FirestoreMethodDescriptorSupplier("ListDocuments")) - .build(); - } + FirestoreGrpc.getListDocumentsMethod = + getListDocumentsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.firestore.v1beta1.Firestore", "ListDocuments")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.firestore.v1beta1.ListDocumentsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.firestore.v1beta1.ListDocumentsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new FirestoreMethodDescriptorSupplier("ListDocuments")) + .build(); } - } - return getListDocumentsMethod; + } + } + return getListDocumentsMethod; } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getCreateDocumentMethod()} instead. - public static final io.grpc.MethodDescriptor METHOD_CREATE_DOCUMENT = getCreateDocumentMethodHelper(); + @java.lang.Deprecated // Use {@link #getCreateDocumentMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.CreateDocumentRequest, com.google.firestore.v1beta1.Document> + METHOD_CREATE_DOCUMENT = getCreateDocumentMethodHelper(); - private static volatile io.grpc.MethodDescriptor getCreateDocumentMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.CreateDocumentRequest, com.google.firestore.v1beta1.Document> + getCreateDocumentMethod; @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor getCreateDocumentMethod() { + public static io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.CreateDocumentRequest, com.google.firestore.v1beta1.Document> + getCreateDocumentMethod() { return getCreateDocumentMethodHelper(); } - private static io.grpc.MethodDescriptor getCreateDocumentMethodHelper() { - io.grpc.MethodDescriptor getCreateDocumentMethod; + private static io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.CreateDocumentRequest, com.google.firestore.v1beta1.Document> + getCreateDocumentMethodHelper() { + io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.CreateDocumentRequest, + com.google.firestore.v1beta1.Document> + getCreateDocumentMethod; if ((getCreateDocumentMethod = FirestoreGrpc.getCreateDocumentMethod) == null) { synchronized (FirestoreGrpc.class) { if ((getCreateDocumentMethod = FirestoreGrpc.getCreateDocumentMethod) == null) { - FirestoreGrpc.getCreateDocumentMethod = getCreateDocumentMethod = - io.grpc.MethodDescriptor. newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "google.firestore.v1beta1.Firestore", "CreateDocument")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.firestore.v1beta1.CreateDocumentRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.firestore.v1beta1.Document.getDefaultInstance())) - .setSchemaDescriptor(new FirestoreMethodDescriptorSupplier("CreateDocument")) - .build(); - } + FirestoreGrpc.getCreateDocumentMethod = + getCreateDocumentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.firestore.v1beta1.Firestore", "CreateDocument")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.firestore.v1beta1.CreateDocumentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.firestore.v1beta1.Document.getDefaultInstance())) + .setSchemaDescriptor(new FirestoreMethodDescriptorSupplier("CreateDocument")) + .build(); } - } - return getCreateDocumentMethod; + } + } + return getCreateDocumentMethod; } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getUpdateDocumentMethod()} instead. - public static final io.grpc.MethodDescriptor METHOD_UPDATE_DOCUMENT = getUpdateDocumentMethodHelper(); + @java.lang.Deprecated // Use {@link #getUpdateDocumentMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.UpdateDocumentRequest, com.google.firestore.v1beta1.Document> + METHOD_UPDATE_DOCUMENT = getUpdateDocumentMethodHelper(); - private static volatile io.grpc.MethodDescriptor getUpdateDocumentMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.UpdateDocumentRequest, com.google.firestore.v1beta1.Document> + getUpdateDocumentMethod; @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor getUpdateDocumentMethod() { + public static io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.UpdateDocumentRequest, com.google.firestore.v1beta1.Document> + getUpdateDocumentMethod() { return getUpdateDocumentMethodHelper(); } - private static io.grpc.MethodDescriptor getUpdateDocumentMethodHelper() { - io.grpc.MethodDescriptor getUpdateDocumentMethod; + private static io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.UpdateDocumentRequest, com.google.firestore.v1beta1.Document> + getUpdateDocumentMethodHelper() { + io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.UpdateDocumentRequest, + com.google.firestore.v1beta1.Document> + getUpdateDocumentMethod; if ((getUpdateDocumentMethod = FirestoreGrpc.getUpdateDocumentMethod) == null) { synchronized (FirestoreGrpc.class) { if ((getUpdateDocumentMethod = FirestoreGrpc.getUpdateDocumentMethod) == null) { - FirestoreGrpc.getUpdateDocumentMethod = getUpdateDocumentMethod = - io.grpc.MethodDescriptor. newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "google.firestore.v1beta1.Firestore", "UpdateDocument")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.firestore.v1beta1.UpdateDocumentRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.firestore.v1beta1.Document.getDefaultInstance())) - .setSchemaDescriptor(new FirestoreMethodDescriptorSupplier("UpdateDocument")) - .build(); - } + FirestoreGrpc.getUpdateDocumentMethod = + getUpdateDocumentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.firestore.v1beta1.Firestore", "UpdateDocument")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.firestore.v1beta1.UpdateDocumentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.firestore.v1beta1.Document.getDefaultInstance())) + .setSchemaDescriptor(new FirestoreMethodDescriptorSupplier("UpdateDocument")) + .build(); } - } - return getUpdateDocumentMethod; + } + } + return getUpdateDocumentMethod; } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getDeleteDocumentMethod()} instead. - public static final io.grpc.MethodDescriptor METHOD_DELETE_DOCUMENT = getDeleteDocumentMethodHelper(); + @java.lang.Deprecated // Use {@link #getDeleteDocumentMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.DeleteDocumentRequest, com.google.protobuf.Empty> + METHOD_DELETE_DOCUMENT = getDeleteDocumentMethodHelper(); - private static volatile io.grpc.MethodDescriptor getDeleteDocumentMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.DeleteDocumentRequest, com.google.protobuf.Empty> + getDeleteDocumentMethod; @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor getDeleteDocumentMethod() { + public static io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.DeleteDocumentRequest, com.google.protobuf.Empty> + getDeleteDocumentMethod() { return getDeleteDocumentMethodHelper(); } - private static io.grpc.MethodDescriptor getDeleteDocumentMethodHelper() { - io.grpc.MethodDescriptor getDeleteDocumentMethod; + private static io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.DeleteDocumentRequest, com.google.protobuf.Empty> + getDeleteDocumentMethodHelper() { + io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.DeleteDocumentRequest, com.google.protobuf.Empty> + getDeleteDocumentMethod; if ((getDeleteDocumentMethod = FirestoreGrpc.getDeleteDocumentMethod) == null) { synchronized (FirestoreGrpc.class) { if ((getDeleteDocumentMethod = FirestoreGrpc.getDeleteDocumentMethod) == null) { - FirestoreGrpc.getDeleteDocumentMethod = getDeleteDocumentMethod = - io.grpc.MethodDescriptor. newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "google.firestore.v1beta1.Firestore", "DeleteDocument")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.firestore.v1beta1.DeleteDocumentRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new FirestoreMethodDescriptorSupplier("DeleteDocument")) - .build(); - } + FirestoreGrpc.getDeleteDocumentMethod = + getDeleteDocumentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.firestore.v1beta1.Firestore", "DeleteDocument")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.firestore.v1beta1.DeleteDocumentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new FirestoreMethodDescriptorSupplier("DeleteDocument")) + .build(); } - } - return getDeleteDocumentMethod; + } + } + return getDeleteDocumentMethod; } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getBatchGetDocumentsMethod()} instead. - public static final io.grpc.MethodDescriptor METHOD_BATCH_GET_DOCUMENTS = getBatchGetDocumentsMethodHelper(); + @java.lang.Deprecated // Use {@link #getBatchGetDocumentsMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.BatchGetDocumentsRequest, + com.google.firestore.v1beta1.BatchGetDocumentsResponse> + METHOD_BATCH_GET_DOCUMENTS = getBatchGetDocumentsMethodHelper(); - private static volatile io.grpc.MethodDescriptor getBatchGetDocumentsMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.BatchGetDocumentsRequest, + com.google.firestore.v1beta1.BatchGetDocumentsResponse> + getBatchGetDocumentsMethod; @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor getBatchGetDocumentsMethod() { + public static io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.BatchGetDocumentsRequest, + com.google.firestore.v1beta1.BatchGetDocumentsResponse> + getBatchGetDocumentsMethod() { return getBatchGetDocumentsMethodHelper(); } - private static io.grpc.MethodDescriptor getBatchGetDocumentsMethodHelper() { - io.grpc.MethodDescriptor getBatchGetDocumentsMethod; + private static io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.BatchGetDocumentsRequest, + com.google.firestore.v1beta1.BatchGetDocumentsResponse> + getBatchGetDocumentsMethodHelper() { + io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.BatchGetDocumentsRequest, + com.google.firestore.v1beta1.BatchGetDocumentsResponse> + getBatchGetDocumentsMethod; if ((getBatchGetDocumentsMethod = FirestoreGrpc.getBatchGetDocumentsMethod) == null) { synchronized (FirestoreGrpc.class) { if ((getBatchGetDocumentsMethod = FirestoreGrpc.getBatchGetDocumentsMethod) == null) { - FirestoreGrpc.getBatchGetDocumentsMethod = getBatchGetDocumentsMethod = - io.grpc.MethodDescriptor. newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - .setFullMethodName(generateFullMethodName( - "google.firestore.v1beta1.Firestore", "BatchGetDocuments")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.firestore.v1beta1.BatchGetDocumentsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.firestore.v1beta1.BatchGetDocumentsResponse.getDefaultInstance())) - .setSchemaDescriptor(new FirestoreMethodDescriptorSupplier("BatchGetDocuments")) - .build(); - } + FirestoreGrpc.getBatchGetDocumentsMethod = + getBatchGetDocumentsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + .setFullMethodName( + generateFullMethodName( + "google.firestore.v1beta1.Firestore", "BatchGetDocuments")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.firestore.v1beta1.BatchGetDocumentsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.firestore.v1beta1.BatchGetDocumentsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new FirestoreMethodDescriptorSupplier("BatchGetDocuments")) + .build(); } - } - return getBatchGetDocumentsMethod; + } + } + return getBatchGetDocumentsMethod; } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getBeginTransactionMethod()} instead. - public static final io.grpc.MethodDescriptor METHOD_BEGIN_TRANSACTION = getBeginTransactionMethodHelper(); + @java.lang.Deprecated // Use {@link #getBeginTransactionMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.BeginTransactionRequest, + com.google.firestore.v1beta1.BeginTransactionResponse> + METHOD_BEGIN_TRANSACTION = getBeginTransactionMethodHelper(); - private static volatile io.grpc.MethodDescriptor getBeginTransactionMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.BeginTransactionRequest, + com.google.firestore.v1beta1.BeginTransactionResponse> + getBeginTransactionMethod; @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor getBeginTransactionMethod() { + public static io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.BeginTransactionRequest, + com.google.firestore.v1beta1.BeginTransactionResponse> + getBeginTransactionMethod() { return getBeginTransactionMethodHelper(); } - private static io.grpc.MethodDescriptor getBeginTransactionMethodHelper() { - io.grpc.MethodDescriptor getBeginTransactionMethod; + private static io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.BeginTransactionRequest, + com.google.firestore.v1beta1.BeginTransactionResponse> + getBeginTransactionMethodHelper() { + io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.BeginTransactionRequest, + com.google.firestore.v1beta1.BeginTransactionResponse> + getBeginTransactionMethod; if ((getBeginTransactionMethod = FirestoreGrpc.getBeginTransactionMethod) == null) { synchronized (FirestoreGrpc.class) { if ((getBeginTransactionMethod = FirestoreGrpc.getBeginTransactionMethod) == null) { - FirestoreGrpc.getBeginTransactionMethod = getBeginTransactionMethod = - io.grpc.MethodDescriptor. newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "google.firestore.v1beta1.Firestore", "BeginTransaction")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.firestore.v1beta1.BeginTransactionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.firestore.v1beta1.BeginTransactionResponse.getDefaultInstance())) - .setSchemaDescriptor(new FirestoreMethodDescriptorSupplier("BeginTransaction")) - .build(); - } + FirestoreGrpc.getBeginTransactionMethod = + getBeginTransactionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.firestore.v1beta1.Firestore", "BeginTransaction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.firestore.v1beta1.BeginTransactionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.firestore.v1beta1.BeginTransactionResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new FirestoreMethodDescriptorSupplier("BeginTransaction")) + .build(); } - } - return getBeginTransactionMethod; + } + } + return getBeginTransactionMethod; } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getCommitMethod()} instead. - public static final io.grpc.MethodDescriptor METHOD_COMMIT = getCommitMethodHelper(); + @java.lang.Deprecated // Use {@link #getCommitMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.CommitRequest, com.google.firestore.v1beta1.CommitResponse> + METHOD_COMMIT = getCommitMethodHelper(); - private static volatile io.grpc.MethodDescriptor getCommitMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.CommitRequest, com.google.firestore.v1beta1.CommitResponse> + getCommitMethod; @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor getCommitMethod() { + public static io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.CommitRequest, com.google.firestore.v1beta1.CommitResponse> + getCommitMethod() { return getCommitMethodHelper(); } - private static io.grpc.MethodDescriptor getCommitMethodHelper() { - io.grpc.MethodDescriptor getCommitMethod; + private static io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.CommitRequest, com.google.firestore.v1beta1.CommitResponse> + getCommitMethodHelper() { + io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.CommitRequest, com.google.firestore.v1beta1.CommitResponse> + getCommitMethod; if ((getCommitMethod = FirestoreGrpc.getCommitMethod) == null) { synchronized (FirestoreGrpc.class) { if ((getCommitMethod = FirestoreGrpc.getCommitMethod) == null) { - FirestoreGrpc.getCommitMethod = getCommitMethod = - io.grpc.MethodDescriptor. newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "google.firestore.v1beta1.Firestore", "Commit")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.firestore.v1beta1.CommitRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.firestore.v1beta1.CommitResponse.getDefaultInstance())) - .setSchemaDescriptor(new FirestoreMethodDescriptorSupplier("Commit")) - .build(); - } + FirestoreGrpc.getCommitMethod = + getCommitMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName("google.firestore.v1beta1.Firestore", "Commit")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.firestore.v1beta1.CommitRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.firestore.v1beta1.CommitResponse.getDefaultInstance())) + .setSchemaDescriptor(new FirestoreMethodDescriptorSupplier("Commit")) + .build(); } - } - return getCommitMethod; + } + } + return getCommitMethod; } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getRollbackMethod()} instead. - public static final io.grpc.MethodDescriptor METHOD_ROLLBACK = getRollbackMethodHelper(); + @java.lang.Deprecated // Use {@link #getRollbackMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.RollbackRequest, com.google.protobuf.Empty> + METHOD_ROLLBACK = getRollbackMethodHelper(); - private static volatile io.grpc.MethodDescriptor getRollbackMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.RollbackRequest, com.google.protobuf.Empty> + getRollbackMethod; @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor getRollbackMethod() { + public static io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.RollbackRequest, com.google.protobuf.Empty> + getRollbackMethod() { return getRollbackMethodHelper(); } - private static io.grpc.MethodDescriptor getRollbackMethodHelper() { - io.grpc.MethodDescriptor getRollbackMethod; + private static io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.RollbackRequest, com.google.protobuf.Empty> + getRollbackMethodHelper() { + io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.RollbackRequest, com.google.protobuf.Empty> + getRollbackMethod; if ((getRollbackMethod = FirestoreGrpc.getRollbackMethod) == null) { synchronized (FirestoreGrpc.class) { if ((getRollbackMethod = FirestoreGrpc.getRollbackMethod) == null) { - FirestoreGrpc.getRollbackMethod = getRollbackMethod = - io.grpc.MethodDescriptor. newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "google.firestore.v1beta1.Firestore", "Rollback")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.firestore.v1beta1.RollbackRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new FirestoreMethodDescriptorSupplier("Rollback")) - .build(); - } + FirestoreGrpc.getRollbackMethod = + getRollbackMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName("google.firestore.v1beta1.Firestore", "Rollback")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.firestore.v1beta1.RollbackRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new FirestoreMethodDescriptorSupplier("Rollback")) + .build(); } - } - return getRollbackMethod; + } + } + return getRollbackMethod; } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getRunQueryMethod()} instead. - public static final io.grpc.MethodDescriptor METHOD_RUN_QUERY = getRunQueryMethodHelper(); + @java.lang.Deprecated // Use {@link #getRunQueryMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.RunQueryRequest, + com.google.firestore.v1beta1.RunQueryResponse> + METHOD_RUN_QUERY = getRunQueryMethodHelper(); - private static volatile io.grpc.MethodDescriptor getRunQueryMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.RunQueryRequest, + com.google.firestore.v1beta1.RunQueryResponse> + getRunQueryMethod; @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor getRunQueryMethod() { + public static io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.RunQueryRequest, + com.google.firestore.v1beta1.RunQueryResponse> + getRunQueryMethod() { return getRunQueryMethodHelper(); } - private static io.grpc.MethodDescriptor getRunQueryMethodHelper() { - io.grpc.MethodDescriptor getRunQueryMethod; + private static io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.RunQueryRequest, + com.google.firestore.v1beta1.RunQueryResponse> + getRunQueryMethodHelper() { + io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.RunQueryRequest, + com.google.firestore.v1beta1.RunQueryResponse> + getRunQueryMethod; if ((getRunQueryMethod = FirestoreGrpc.getRunQueryMethod) == null) { synchronized (FirestoreGrpc.class) { if ((getRunQueryMethod = FirestoreGrpc.getRunQueryMethod) == null) { - FirestoreGrpc.getRunQueryMethod = getRunQueryMethod = - io.grpc.MethodDescriptor. newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - .setFullMethodName(generateFullMethodName( - "google.firestore.v1beta1.Firestore", "RunQuery")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.firestore.v1beta1.RunQueryRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.firestore.v1beta1.RunQueryResponse.getDefaultInstance())) - .setSchemaDescriptor(new FirestoreMethodDescriptorSupplier("RunQuery")) - .build(); - } + FirestoreGrpc.getRunQueryMethod = + getRunQueryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + .setFullMethodName( + generateFullMethodName("google.firestore.v1beta1.Firestore", "RunQuery")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.firestore.v1beta1.RunQueryRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.firestore.v1beta1.RunQueryResponse.getDefaultInstance())) + .setSchemaDescriptor(new FirestoreMethodDescriptorSupplier("RunQuery")) + .build(); } - } - return getRunQueryMethod; + } + } + return getRunQueryMethod; } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getWriteMethod()} instead. - public static final io.grpc.MethodDescriptor METHOD_WRITE = getWriteMethodHelper(); + @java.lang.Deprecated // Use {@link #getWriteMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.WriteRequest, com.google.firestore.v1beta1.WriteResponse> + METHOD_WRITE = getWriteMethodHelper(); - private static volatile io.grpc.MethodDescriptor getWriteMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.WriteRequest, com.google.firestore.v1beta1.WriteResponse> + getWriteMethod; @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor getWriteMethod() { + public static io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.WriteRequest, com.google.firestore.v1beta1.WriteResponse> + getWriteMethod() { return getWriteMethodHelper(); } - private static io.grpc.MethodDescriptor getWriteMethodHelper() { - io.grpc.MethodDescriptor getWriteMethod; + private static io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.WriteRequest, com.google.firestore.v1beta1.WriteResponse> + getWriteMethodHelper() { + io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.WriteRequest, com.google.firestore.v1beta1.WriteResponse> + getWriteMethod; if ((getWriteMethod = FirestoreGrpc.getWriteMethod) == null) { synchronized (FirestoreGrpc.class) { if ((getWriteMethod = FirestoreGrpc.getWriteMethod) == null) { - FirestoreGrpc.getWriteMethod = getWriteMethod = - io.grpc.MethodDescriptor. newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - .setFullMethodName(generateFullMethodName( - "google.firestore.v1beta1.Firestore", "Write")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.firestore.v1beta1.WriteRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.firestore.v1beta1.WriteResponse.getDefaultInstance())) - .setSchemaDescriptor(new FirestoreMethodDescriptorSupplier("Write")) - .build(); - } + FirestoreGrpc.getWriteMethod = + getWriteMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + .setFullMethodName( + generateFullMethodName("google.firestore.v1beta1.Firestore", "Write")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.firestore.v1beta1.WriteRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.firestore.v1beta1.WriteResponse.getDefaultInstance())) + .setSchemaDescriptor(new FirestoreMethodDescriptorSupplier("Write")) + .build(); } - } - return getWriteMethod; + } + } + return getWriteMethod; } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getListenMethod()} instead. - public static final io.grpc.MethodDescriptor METHOD_LISTEN = getListenMethodHelper(); + @java.lang.Deprecated // Use {@link #getListenMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.ListenRequest, com.google.firestore.v1beta1.ListenResponse> + METHOD_LISTEN = getListenMethodHelper(); - private static volatile io.grpc.MethodDescriptor getListenMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.ListenRequest, com.google.firestore.v1beta1.ListenResponse> + getListenMethod; @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor getListenMethod() { + public static io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.ListenRequest, com.google.firestore.v1beta1.ListenResponse> + getListenMethod() { return getListenMethodHelper(); } - private static io.grpc.MethodDescriptor getListenMethodHelper() { - io.grpc.MethodDescriptor getListenMethod; + private static io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.ListenRequest, com.google.firestore.v1beta1.ListenResponse> + getListenMethodHelper() { + io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.ListenRequest, com.google.firestore.v1beta1.ListenResponse> + getListenMethod; if ((getListenMethod = FirestoreGrpc.getListenMethod) == null) { synchronized (FirestoreGrpc.class) { if ((getListenMethod = FirestoreGrpc.getListenMethod) == null) { - FirestoreGrpc.getListenMethod = getListenMethod = - io.grpc.MethodDescriptor. newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - .setFullMethodName(generateFullMethodName( - "google.firestore.v1beta1.Firestore", "Listen")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.firestore.v1beta1.ListenRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.firestore.v1beta1.ListenResponse.getDefaultInstance())) - .setSchemaDescriptor(new FirestoreMethodDescriptorSupplier("Listen")) - .build(); - } + FirestoreGrpc.getListenMethod = + getListenMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + .setFullMethodName( + generateFullMethodName("google.firestore.v1beta1.Firestore", "Listen")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.firestore.v1beta1.ListenRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.firestore.v1beta1.ListenResponse.getDefaultInstance())) + .setSchemaDescriptor(new FirestoreMethodDescriptorSupplier("Listen")) + .build(); } - } - return getListenMethod; + } + } + return getListenMethod; } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getListCollectionIdsMethod()} instead. - public static final io.grpc.MethodDescriptor METHOD_LIST_COLLECTION_IDS = getListCollectionIdsMethodHelper(); + @java.lang.Deprecated // Use {@link #getListCollectionIdsMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.ListCollectionIdsRequest, + com.google.firestore.v1beta1.ListCollectionIdsResponse> + METHOD_LIST_COLLECTION_IDS = getListCollectionIdsMethodHelper(); - private static volatile io.grpc.MethodDescriptor getListCollectionIdsMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.ListCollectionIdsRequest, + com.google.firestore.v1beta1.ListCollectionIdsResponse> + getListCollectionIdsMethod; @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor getListCollectionIdsMethod() { + public static io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.ListCollectionIdsRequest, + com.google.firestore.v1beta1.ListCollectionIdsResponse> + getListCollectionIdsMethod() { return getListCollectionIdsMethodHelper(); } - private static io.grpc.MethodDescriptor getListCollectionIdsMethodHelper() { - io.grpc.MethodDescriptor getListCollectionIdsMethod; + private static io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.ListCollectionIdsRequest, + com.google.firestore.v1beta1.ListCollectionIdsResponse> + getListCollectionIdsMethodHelper() { + io.grpc.MethodDescriptor< + com.google.firestore.v1beta1.ListCollectionIdsRequest, + com.google.firestore.v1beta1.ListCollectionIdsResponse> + getListCollectionIdsMethod; if ((getListCollectionIdsMethod = FirestoreGrpc.getListCollectionIdsMethod) == null) { synchronized (FirestoreGrpc.class) { if ((getListCollectionIdsMethod = FirestoreGrpc.getListCollectionIdsMethod) == null) { - FirestoreGrpc.getListCollectionIdsMethod = getListCollectionIdsMethod = - io.grpc.MethodDescriptor. newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "google.firestore.v1beta1.Firestore", "ListCollectionIds")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.firestore.v1beta1.ListCollectionIdsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.firestore.v1beta1.ListCollectionIdsResponse.getDefaultInstance())) - .setSchemaDescriptor(new FirestoreMethodDescriptorSupplier("ListCollectionIds")) - .build(); - } + FirestoreGrpc.getListCollectionIdsMethod = + getListCollectionIdsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.firestore.v1beta1.Firestore", "ListCollectionIds")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.firestore.v1beta1.ListCollectionIdsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.firestore.v1beta1.ListCollectionIdsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new FirestoreMethodDescriptorSupplier("ListCollectionIds")) + .build(); } - } - return getListCollectionIdsMethod; + } + } + return getListCollectionIdsMethod; } - /** - * Creates a new async stub that supports all call types for the service - */ + /** Creates a new async stub that supports all call types for the service */ public static FirestoreStub newStub(io.grpc.Channel channel) { return new FirestoreStub(channel); } @@ -535,20 +749,18 @@ public static FirestoreStub newStub(io.grpc.Channel channel) { /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ - public static FirestoreBlockingStub newBlockingStub( - io.grpc.Channel channel) { + public static FirestoreBlockingStub newBlockingStub(io.grpc.Channel channel) { return new FirestoreBlockingStub(channel); } - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static FirestoreFutureStub newFutureStub( - io.grpc.Channel channel) { + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static FirestoreFutureStub newFutureStub(io.grpc.Channel channel) { return new FirestoreFutureStub(channel); } /** + * + * * * The Cloud Firestore service. * This service exposes several types of comparable timestamps: @@ -566,111 +778,147 @@ public static FirestoreFutureStub newFutureStub( * to see the effects of the transaction. **/ - public static abstract class FirestoreImplBase implements io.grpc.BindableService { + public abstract static class FirestoreImplBase implements io.grpc.BindableService { /** + * + * ** Gets a single document. **/ - public void getDocument(com.google.firestore.v1beta1.GetDocumentRequest request, + public void getDocument( + com.google.firestore.v1beta1.GetDocumentRequest request, io.grpc.stub.StreamObserverresponseObserver) { asyncUnimplementedUnaryCall(getGetDocumentMethodHelper(), responseObserver); } /** + * + * * * Lists documents. **/ - public void listDocuments(com.google.firestore.v1beta1.ListDocumentsRequest request, - io.grpc.stub.StreamObserverresponseObserver) { + public void listDocuments( + com.google.firestore.v1beta1.ListDocumentsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { asyncUnimplementedUnaryCall(getListDocumentsMethodHelper(), responseObserver); } /** + * + * * * Creates a new document. **/ - public void createDocument(com.google.firestore.v1beta1.CreateDocumentRequest request, + public void createDocument( + com.google.firestore.v1beta1.CreateDocumentRequest request, io.grpc.stub.StreamObserverresponseObserver) { asyncUnimplementedUnaryCall(getCreateDocumentMethodHelper(), responseObserver); } /** + * + * * * Updates or inserts a document. **/ - public void updateDocument(com.google.firestore.v1beta1.UpdateDocumentRequest request, + public void updateDocument( + com.google.firestore.v1beta1.UpdateDocumentRequest request, io.grpc.stub.StreamObserverresponseObserver) { asyncUnimplementedUnaryCall(getUpdateDocumentMethodHelper(), responseObserver); } /** + * + * * * Deletes a document. **/ - public void deleteDocument(com.google.firestore.v1beta1.DeleteDocumentRequest request, + public void deleteDocument( + com.google.firestore.v1beta1.DeleteDocumentRequest request, io.grpc.stub.StreamObserverresponseObserver) { asyncUnimplementedUnaryCall(getDeleteDocumentMethodHelper(), responseObserver); } /** + * + * * * Gets multiple documents. * Documents returned by this method are not guaranteed to be returned in the * same order that they were requested. **/ - public void batchGetDocuments(com.google.firestore.v1beta1.BatchGetDocumentsRequest request, - io.grpc.stub.StreamObserverresponseObserver) { + public void batchGetDocuments( + com.google.firestore.v1beta1.BatchGetDocumentsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { asyncUnimplementedUnaryCall(getBatchGetDocumentsMethodHelper(), responseObserver); } /** + * + * * * Starts a new transaction. **/ - public void beginTransaction(com.google.firestore.v1beta1.BeginTransactionRequest request, - io.grpc.stub.StreamObserverresponseObserver) { + public void beginTransaction( + com.google.firestore.v1beta1.BeginTransactionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { asyncUnimplementedUnaryCall(getBeginTransactionMethodHelper(), responseObserver); } /** + * + * * * Commits a transaction, while optionally updating documents. **/ - public void commit(com.google.firestore.v1beta1.CommitRequest request, + public void commit( + com.google.firestore.v1beta1.CommitRequest request, io.grpc.stub.StreamObserverresponseObserver) { asyncUnimplementedUnaryCall(getCommitMethodHelper(), responseObserver); } /** + * + * * * Rolls back a transaction. **/ - public void rollback(com.google.firestore.v1beta1.RollbackRequest request, + public void rollback( + com.google.firestore.v1beta1.RollbackRequest request, io.grpc.stub.StreamObserverresponseObserver) { asyncUnimplementedUnaryCall(getRollbackMethodHelper(), responseObserver); } /** + * + * * * Runs a query. **/ - public void runQuery(com.google.firestore.v1beta1.RunQueryRequest request, - io.grpc.stub.StreamObserverresponseObserver) { + public void runQuery( + com.google.firestore.v1beta1.RunQueryRequest request, + io.grpc.stub.StreamObserver + responseObserver) { asyncUnimplementedUnaryCall(getRunQueryMethodHelper(), responseObserver); } /** + * + * * * Streams batches of document updates and deletes, in order. *@@ -681,6 +929,8 @@ public io.grpc.stub.StreamObserverwr } /** + * + * * * Listens to changes. *@@ -691,113 +941,111 @@ public io.grpc.stub.StreamObserverl } /** + * + * * * Lists all the collection IDs underneath a document. **/ - public void listCollectionIds(com.google.firestore.v1beta1.ListCollectionIdsRequest request, - io.grpc.stub.StreamObserverresponseObserver) { + public void listCollectionIds( + com.google.firestore.v1beta1.ListCollectionIdsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { asyncUnimplementedUnaryCall(getListCollectionIdsMethodHelper(), responseObserver); } - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getGetDocumentMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.firestore.v1beta1.GetDocumentRequest, - com.google.firestore.v1beta1.Document>( - this, METHODID_GET_DOCUMENT))) + getGetDocumentMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.firestore.v1beta1.GetDocumentRequest, + com.google.firestore.v1beta1.Document>(this, METHODID_GET_DOCUMENT))) .addMethod( - getListDocumentsMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.firestore.v1beta1.ListDocumentsRequest, - com.google.firestore.v1beta1.ListDocumentsResponse>( - this, METHODID_LIST_DOCUMENTS))) + getListDocumentsMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.firestore.v1beta1.ListDocumentsRequest, + com.google.firestore.v1beta1.ListDocumentsResponse>( + this, METHODID_LIST_DOCUMENTS))) .addMethod( - getCreateDocumentMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.firestore.v1beta1.CreateDocumentRequest, - com.google.firestore.v1beta1.Document>( - this, METHODID_CREATE_DOCUMENT))) + getCreateDocumentMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.firestore.v1beta1.CreateDocumentRequest, + com.google.firestore.v1beta1.Document>(this, METHODID_CREATE_DOCUMENT))) .addMethod( - getUpdateDocumentMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.firestore.v1beta1.UpdateDocumentRequest, - com.google.firestore.v1beta1.Document>( - this, METHODID_UPDATE_DOCUMENT))) + getUpdateDocumentMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.firestore.v1beta1.UpdateDocumentRequest, + com.google.firestore.v1beta1.Document>(this, METHODID_UPDATE_DOCUMENT))) .addMethod( - getDeleteDocumentMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.firestore.v1beta1.DeleteDocumentRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_DOCUMENT))) + getDeleteDocumentMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.firestore.v1beta1.DeleteDocumentRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_DOCUMENT))) .addMethod( - getBatchGetDocumentsMethodHelper(), - asyncServerStreamingCall( - new MethodHandlers< - com.google.firestore.v1beta1.BatchGetDocumentsRequest, - com.google.firestore.v1beta1.BatchGetDocumentsResponse>( - this, METHODID_BATCH_GET_DOCUMENTS))) + getBatchGetDocumentsMethodHelper(), + asyncServerStreamingCall( + new MethodHandlers< + com.google.firestore.v1beta1.BatchGetDocumentsRequest, + com.google.firestore.v1beta1.BatchGetDocumentsResponse>( + this, METHODID_BATCH_GET_DOCUMENTS))) .addMethod( - getBeginTransactionMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.firestore.v1beta1.BeginTransactionRequest, - com.google.firestore.v1beta1.BeginTransactionResponse>( - this, METHODID_BEGIN_TRANSACTION))) + getBeginTransactionMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.firestore.v1beta1.BeginTransactionRequest, + com.google.firestore.v1beta1.BeginTransactionResponse>( + this, METHODID_BEGIN_TRANSACTION))) .addMethod( - getCommitMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.firestore.v1beta1.CommitRequest, - com.google.firestore.v1beta1.CommitResponse>( - this, METHODID_COMMIT))) + getCommitMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.firestore.v1beta1.CommitRequest, + com.google.firestore.v1beta1.CommitResponse>(this, METHODID_COMMIT))) .addMethod( - getRollbackMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.firestore.v1beta1.RollbackRequest, - com.google.protobuf.Empty>( - this, METHODID_ROLLBACK))) + getRollbackMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.firestore.v1beta1.RollbackRequest, com.google.protobuf.Empty>( + this, METHODID_ROLLBACK))) .addMethod( - getRunQueryMethodHelper(), - asyncServerStreamingCall( - new MethodHandlers< - com.google.firestore.v1beta1.RunQueryRequest, - com.google.firestore.v1beta1.RunQueryResponse>( - this, METHODID_RUN_QUERY))) + getRunQueryMethodHelper(), + asyncServerStreamingCall( + new MethodHandlers< + com.google.firestore.v1beta1.RunQueryRequest, + com.google.firestore.v1beta1.RunQueryResponse>(this, METHODID_RUN_QUERY))) .addMethod( - getWriteMethodHelper(), - asyncBidiStreamingCall( - new MethodHandlers< - com.google.firestore.v1beta1.WriteRequest, - com.google.firestore.v1beta1.WriteResponse>( - this, METHODID_WRITE))) + getWriteMethodHelper(), + asyncBidiStreamingCall( + new MethodHandlers< + com.google.firestore.v1beta1.WriteRequest, + com.google.firestore.v1beta1.WriteResponse>(this, METHODID_WRITE))) .addMethod( - getListenMethodHelper(), - asyncBidiStreamingCall( - new MethodHandlers< - com.google.firestore.v1beta1.ListenRequest, - com.google.firestore.v1beta1.ListenResponse>( - this, METHODID_LISTEN))) + getListenMethodHelper(), + asyncBidiStreamingCall( + new MethodHandlers< + com.google.firestore.v1beta1.ListenRequest, + com.google.firestore.v1beta1.ListenResponse>(this, METHODID_LISTEN))) .addMethod( - getListCollectionIdsMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.firestore.v1beta1.ListCollectionIdsRequest, - com.google.firestore.v1beta1.ListCollectionIdsResponse>( - this, METHODID_LIST_COLLECTION_IDS))) + getListCollectionIdsMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.firestore.v1beta1.ListCollectionIdsRequest, + com.google.firestore.v1beta1.ListCollectionIdsResponse>( + this, METHODID_LIST_COLLECTION_IDS))) .build(); } } /** + * + * * * The Cloud Firestore service. * This service exposes several types of comparable timestamps: @@ -820,130 +1068,184 @@ private FirestoreStub(io.grpc.Channel channel) { super(channel); } - private FirestoreStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { + private FirestoreStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected FirestoreStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { + protected FirestoreStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new FirestoreStub(channel, callOptions); } /** + * + * **/ - public com.google.common.util.concurrent.ListenableFuture* Gets a single document. **/ - public void getDocument(com.google.firestore.v1beta1.GetDocumentRequest request, + public void getDocument( + com.google.firestore.v1beta1.GetDocumentRequest request, io.grpc.stub.StreamObserverresponseObserver) { asyncUnaryCall( - getChannel().newCall(getGetDocumentMethodHelper(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGetDocumentMethodHelper(), getCallOptions()), + request, + responseObserver); } /** + * + * * * Lists documents. **/ - public void listDocuments(com.google.firestore.v1beta1.ListDocumentsRequest request, - io.grpc.stub.StreamObserverresponseObserver) { + public void listDocuments( + com.google.firestore.v1beta1.ListDocumentsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { asyncUnaryCall( - getChannel().newCall(getListDocumentsMethodHelper(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListDocumentsMethodHelper(), getCallOptions()), + request, + responseObserver); } /** + * + * * * Creates a new document. **/ - public void createDocument(com.google.firestore.v1beta1.CreateDocumentRequest request, + public void createDocument( + com.google.firestore.v1beta1.CreateDocumentRequest request, io.grpc.stub.StreamObserverresponseObserver) { asyncUnaryCall( - getChannel().newCall(getCreateDocumentMethodHelper(), getCallOptions()), request, responseObserver); + getChannel().newCall(getCreateDocumentMethodHelper(), getCallOptions()), + request, + responseObserver); } /** + * + * * * Updates or inserts a document. **/ - public void updateDocument(com.google.firestore.v1beta1.UpdateDocumentRequest request, + public void updateDocument( + com.google.firestore.v1beta1.UpdateDocumentRequest request, io.grpc.stub.StreamObserverresponseObserver) { asyncUnaryCall( - getChannel().newCall(getUpdateDocumentMethodHelper(), getCallOptions()), request, responseObserver); + getChannel().newCall(getUpdateDocumentMethodHelper(), getCallOptions()), + request, + responseObserver); } /** + * + * * * Deletes a document. **/ - public void deleteDocument(com.google.firestore.v1beta1.DeleteDocumentRequest request, + public void deleteDocument( + com.google.firestore.v1beta1.DeleteDocumentRequest request, io.grpc.stub.StreamObserverresponseObserver) { asyncUnaryCall( - getChannel().newCall(getDeleteDocumentMethodHelper(), getCallOptions()), request, responseObserver); + getChannel().newCall(getDeleteDocumentMethodHelper(), getCallOptions()), + request, + responseObserver); } /** + * + * * * Gets multiple documents. * Documents returned by this method are not guaranteed to be returned in the * same order that they were requested. **/ - public void batchGetDocuments(com.google.firestore.v1beta1.BatchGetDocumentsRequest request, - io.grpc.stub.StreamObserverresponseObserver) { + public void batchGetDocuments( + com.google.firestore.v1beta1.BatchGetDocumentsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { asyncServerStreamingCall( - getChannel().newCall(getBatchGetDocumentsMethodHelper(), getCallOptions()), request, responseObserver); + getChannel().newCall(getBatchGetDocumentsMethodHelper(), getCallOptions()), + request, + responseObserver); } /** + * + * * * Starts a new transaction. **/ - public void beginTransaction(com.google.firestore.v1beta1.BeginTransactionRequest request, - io.grpc.stub.StreamObserverresponseObserver) { + public void beginTransaction( + com.google.firestore.v1beta1.BeginTransactionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { asyncUnaryCall( - getChannel().newCall(getBeginTransactionMethodHelper(), getCallOptions()), request, responseObserver); + getChannel().newCall(getBeginTransactionMethodHelper(), getCallOptions()), + request, + responseObserver); } /** + * + * * * Commits a transaction, while optionally updating documents. **/ - public void commit(com.google.firestore.v1beta1.CommitRequest request, + public void commit( + com.google.firestore.v1beta1.CommitRequest request, io.grpc.stub.StreamObserverresponseObserver) { asyncUnaryCall( - getChannel().newCall(getCommitMethodHelper(), getCallOptions()), request, responseObserver); + getChannel().newCall(getCommitMethodHelper(), getCallOptions()), + request, + responseObserver); } /** + * + * * * Rolls back a transaction. **/ - public void rollback(com.google.firestore.v1beta1.RollbackRequest request, + public void rollback( + com.google.firestore.v1beta1.RollbackRequest request, io.grpc.stub.StreamObserverresponseObserver) { asyncUnaryCall( - getChannel().newCall(getRollbackMethodHelper(), getCallOptions()), request, responseObserver); + getChannel().newCall(getRollbackMethodHelper(), getCallOptions()), + request, + responseObserver); } /** + * + * * * Runs a query. **/ - public void runQuery(com.google.firestore.v1beta1.RunQueryRequest request, - io.grpc.stub.StreamObserverresponseObserver) { + public void runQuery( + com.google.firestore.v1beta1.RunQueryRequest request, + io.grpc.stub.StreamObserver + responseObserver) { asyncServerStreamingCall( - getChannel().newCall(getRunQueryMethodHelper(), getCallOptions()), request, responseObserver); + getChannel().newCall(getRunQueryMethodHelper(), getCallOptions()), + request, + responseObserver); } /** + * + * * * Streams batches of document updates and deletes, in order. *@@ -955,6 +1257,8 @@ public io.grpc.stub.StreamObserverwr } /** + * + * * * Listens to changes. *@@ -966,18 +1270,26 @@ public io.grpc.stub.StreamObserverl } /** + * + * * * Lists all the collection IDs underneath a document. **/ - public void listCollectionIds(com.google.firestore.v1beta1.ListCollectionIdsRequest request, - io.grpc.stub.StreamObserverresponseObserver) { + public void listCollectionIds( + com.google.firestore.v1beta1.ListCollectionIdsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { asyncUnaryCall( - getChannel().newCall(getListCollectionIdsMethodHelper(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListCollectionIdsMethodHelper(), getCallOptions()), + request, + responseObserver); } } /** + * + * * * The Cloud Firestore service. * This service exposes several types of comparable timestamps: @@ -995,116 +1307,142 @@ public void listCollectionIds(com.google.firestore.v1beta1.ListCollectionIdsRequ * to see the effects of the transaction. **/ - public static final class FirestoreBlockingStub extends io.grpc.stub.AbstractStub{ + public static final class FirestoreBlockingStub + extends io.grpc.stub.AbstractStub { private FirestoreBlockingStub(io.grpc.Channel channel) { super(channel); } - private FirestoreBlockingStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { + private FirestoreBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected FirestoreBlockingStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { + protected FirestoreBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new FirestoreBlockingStub(channel, callOptions); } /** + * + * * * Gets a single document. **/ - public com.google.firestore.v1beta1.Document getDocument(com.google.firestore.v1beta1.GetDocumentRequest request) { + public com.google.firestore.v1beta1.Document getDocument( + com.google.firestore.v1beta1.GetDocumentRequest request) { return blockingUnaryCall( getChannel(), getGetDocumentMethodHelper(), getCallOptions(), request); } /** + * + * ** Lists documents. **/ - public com.google.firestore.v1beta1.ListDocumentsResponse listDocuments(com.google.firestore.v1beta1.ListDocumentsRequest request) { + public com.google.firestore.v1beta1.ListDocumentsResponse listDocuments( + com.google.firestore.v1beta1.ListDocumentsRequest request) { return blockingUnaryCall( getChannel(), getListDocumentsMethodHelper(), getCallOptions(), request); } /** + * + * ** Creates a new document. **/ - public com.google.firestore.v1beta1.Document createDocument(com.google.firestore.v1beta1.CreateDocumentRequest request) { + public com.google.firestore.v1beta1.Document createDocument( + com.google.firestore.v1beta1.CreateDocumentRequest request) { return blockingUnaryCall( getChannel(), getCreateDocumentMethodHelper(), getCallOptions(), request); } /** + * + * ** Updates or inserts a document. **/ - public com.google.firestore.v1beta1.Document updateDocument(com.google.firestore.v1beta1.UpdateDocumentRequest request) { + public com.google.firestore.v1beta1.Document updateDocument( + com.google.firestore.v1beta1.UpdateDocumentRequest request) { return blockingUnaryCall( getChannel(), getUpdateDocumentMethodHelper(), getCallOptions(), request); } /** + * + * ** Deletes a document. **/ - public com.google.protobuf.Empty deleteDocument(com.google.firestore.v1beta1.DeleteDocumentRequest request) { + public com.google.protobuf.Empty deleteDocument( + com.google.firestore.v1beta1.DeleteDocumentRequest request) { return blockingUnaryCall( getChannel(), getDeleteDocumentMethodHelper(), getCallOptions(), request); } /** + * + * ** Gets multiple documents. * Documents returned by this method are not guaranteed to be returned in the * same order that they were requested. **/ - public java.util.IteratorbatchGetDocuments( - com.google.firestore.v1beta1.BatchGetDocumentsRequest request) { + public java.util.Iterator + batchGetDocuments(com.google.firestore.v1beta1.BatchGetDocumentsRequest request) { return blockingServerStreamingCall( getChannel(), getBatchGetDocumentsMethodHelper(), getCallOptions(), request); } /** + * + * * * Starts a new transaction. **/ - public com.google.firestore.v1beta1.BeginTransactionResponse beginTransaction(com.google.firestore.v1beta1.BeginTransactionRequest request) { + public com.google.firestore.v1beta1.BeginTransactionResponse beginTransaction( + com.google.firestore.v1beta1.BeginTransactionRequest request) { return blockingUnaryCall( getChannel(), getBeginTransactionMethodHelper(), getCallOptions(), request); } /** + * + * ** Commits a transaction, while optionally updating documents. **/ - public com.google.firestore.v1beta1.CommitResponse commit(com.google.firestore.v1beta1.CommitRequest request) { - return blockingUnaryCall( - getChannel(), getCommitMethodHelper(), getCallOptions(), request); + public com.google.firestore.v1beta1.CommitResponse commit( + com.google.firestore.v1beta1.CommitRequest request) { + return blockingUnaryCall(getChannel(), getCommitMethodHelper(), getCallOptions(), request); } /** + * + * ** Rolls back a transaction. **/ - public com.google.protobuf.Empty rollback(com.google.firestore.v1beta1.RollbackRequest request) { - return blockingUnaryCall( - getChannel(), getRollbackMethodHelper(), getCallOptions(), request); + public com.google.protobuf.Empty rollback( + com.google.firestore.v1beta1.RollbackRequest request) { + return blockingUnaryCall(getChannel(), getRollbackMethodHelper(), getCallOptions(), request); } /** + * + * ** Runs a query. *@@ -1116,17 +1454,22 @@ public java.util.IteratorrunQuer } /** + * + * * * Lists all the collection IDs underneath a document. **/ - public com.google.firestore.v1beta1.ListCollectionIdsResponse listCollectionIds(com.google.firestore.v1beta1.ListCollectionIdsRequest request) { + public com.google.firestore.v1beta1.ListCollectionIdsResponse listCollectionIds( + com.google.firestore.v1beta1.ListCollectionIdsRequest request) { return blockingUnaryCall( getChannel(), getListCollectionIdsMethodHelper(), getCallOptions(), request); } } /** + * + * ** The Cloud Firestore service. * This service exposes several types of comparable timestamps: @@ -1144,100 +1487,118 @@ public com.google.firestore.v1beta1.ListCollectionIdsResponse listCollectionIds( * to see the effects of the transaction. **/ - public static final class FirestoreFutureStub extends io.grpc.stub.AbstractStub{ + public static final class FirestoreFutureStub + extends io.grpc.stub.AbstractStub { private FirestoreFutureStub(io.grpc.Channel channel) { super(channel); } - private FirestoreFutureStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { + private FirestoreFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected FirestoreFutureStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { + protected FirestoreFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new FirestoreFutureStub(channel, callOptions); } /** + * + * * * Gets a single document. **/ - public com.google.common.util.concurrent.ListenableFuturegetDocument( - com.google.firestore.v1beta1.GetDocumentRequest request) { + public com.google.common.util.concurrent.ListenableFuture + getDocument(com.google.firestore.v1beta1.GetDocumentRequest request) { return futureUnaryCall( getChannel().newCall(getGetDocumentMethodHelper(), getCallOptions()), request); } /** + * + * * * Lists documents. **/ - public com.google.common.util.concurrent.ListenableFuturelistDocuments( - com.google.firestore.v1beta1.ListDocumentsRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.firestore.v1beta1.ListDocumentsResponse> + listDocuments(com.google.firestore.v1beta1.ListDocumentsRequest request) { return futureUnaryCall( getChannel().newCall(getListDocumentsMethodHelper(), getCallOptions()), request); } /** + * + * * * Creates a new document. **/ - public com.google.common.util.concurrent.ListenableFuturecreateDocument( - com.google.firestore.v1beta1.CreateDocumentRequest request) { + public com.google.common.util.concurrent.ListenableFuture + createDocument(com.google.firestore.v1beta1.CreateDocumentRequest request) { return futureUnaryCall( getChannel().newCall(getCreateDocumentMethodHelper(), getCallOptions()), request); } /** + * + * * * Updates or inserts a document. **/ - public com.google.common.util.concurrent.ListenableFutureupdateDocument( - com.google.firestore.v1beta1.UpdateDocumentRequest request) { + public com.google.common.util.concurrent.ListenableFuture + updateDocument(com.google.firestore.v1beta1.UpdateDocumentRequest request) { return futureUnaryCall( getChannel().newCall(getUpdateDocumentMethodHelper(), getCallOptions()), request); } /** + * + * * * Deletes a document. **/ - public com.google.common.util.concurrent.ListenableFuturedeleteDocument( - com.google.firestore.v1beta1.DeleteDocumentRequest request) { + public com.google.common.util.concurrent.ListenableFuture + deleteDocument(com.google.firestore.v1beta1.DeleteDocumentRequest request) { return futureUnaryCall( getChannel().newCall(getDeleteDocumentMethodHelper(), getCallOptions()), request); } /** + * + * * * Starts a new transaction. **/ - public com.google.common.util.concurrent.ListenableFuturebeginTransaction( - com.google.firestore.v1beta1.BeginTransactionRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.firestore.v1beta1.BeginTransactionResponse> + beginTransaction(com.google.firestore.v1beta1.BeginTransactionRequest request) { return futureUnaryCall( getChannel().newCall(getBeginTransactionMethodHelper(), getCallOptions()), request); } /** + * + * * * Commits a transaction, while optionally updating documents. **/ - public com.google.common.util.concurrent.ListenableFuturecommit( - com.google.firestore.v1beta1.CommitRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.firestore.v1beta1.CommitResponse> + commit(com.google.firestore.v1beta1.CommitRequest request) { return futureUnaryCall( getChannel().newCall(getCommitMethodHelper(), getCallOptions()), request); } /** + * + * * * Rolls back a transaction. *@@ -1249,12 +1610,15 @@ public com.google.common.util.concurrent.ListenableFuture* Lists all the collection IDs underneath a document. * listCollectionIds( - com.google.firestore.v1beta1.ListCollectionIdsRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.firestore.v1beta1.ListCollectionIdsResponse> + listCollectionIds(com.google.firestore.v1beta1.ListCollectionIdsRequest request) { return futureUnaryCall( getChannel().newCall(getListCollectionIdsMethodHelper(), getCallOptions()), request); } @@ -1274,11 +1638,11 @@ public com.google.common.util.concurrent.ListenableFuture implements - io.grpc.stub.ServerCalls.UnaryMethod , - io.grpc.stub.ServerCalls.ServerStreamingMethod , - io.grpc.stub.ServerCalls.ClientStreamingMethod , - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod , + io.grpc.stub.ServerCalls.ServerStreamingMethod , + io.grpc.stub.ServerCalls.ClientStreamingMethod , + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final FirestoreImplBase serviceImpl; private final int methodId; @@ -1292,48 +1656,68 @@ private static final class MethodHandlers implements public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_GET_DOCUMENT: - serviceImpl.getDocument((com.google.firestore.v1beta1.GetDocumentRequest) request, - (io.grpc.stub.StreamObserver ) responseObserver); + serviceImpl.getDocument( + (com.google.firestore.v1beta1.GetDocumentRequest) request, + (io.grpc.stub.StreamObserver ) + responseObserver); break; case METHODID_LIST_DOCUMENTS: - serviceImpl.listDocuments((com.google.firestore.v1beta1.ListDocumentsRequest) request, - (io.grpc.stub.StreamObserver ) responseObserver); + serviceImpl.listDocuments( + (com.google.firestore.v1beta1.ListDocumentsRequest) request, + (io.grpc.stub.StreamObserver ) + responseObserver); break; case METHODID_CREATE_DOCUMENT: - serviceImpl.createDocument((com.google.firestore.v1beta1.CreateDocumentRequest) request, - (io.grpc.stub.StreamObserver ) responseObserver); + serviceImpl.createDocument( + (com.google.firestore.v1beta1.CreateDocumentRequest) request, + (io.grpc.stub.StreamObserver ) + responseObserver); break; case METHODID_UPDATE_DOCUMENT: - serviceImpl.updateDocument((com.google.firestore.v1beta1.UpdateDocumentRequest) request, - (io.grpc.stub.StreamObserver ) responseObserver); + serviceImpl.updateDocument( + (com.google.firestore.v1beta1.UpdateDocumentRequest) request, + (io.grpc.stub.StreamObserver ) + responseObserver); break; case METHODID_DELETE_DOCUMENT: - serviceImpl.deleteDocument((com.google.firestore.v1beta1.DeleteDocumentRequest) request, + serviceImpl.deleteDocument( + (com.google.firestore.v1beta1.DeleteDocumentRequest) request, (io.grpc.stub.StreamObserver ) responseObserver); break; case METHODID_BATCH_GET_DOCUMENTS: - serviceImpl.batchGetDocuments((com.google.firestore.v1beta1.BatchGetDocumentsRequest) request, - (io.grpc.stub.StreamObserver ) responseObserver); + serviceImpl.batchGetDocuments( + (com.google.firestore.v1beta1.BatchGetDocumentsRequest) request, + (io.grpc.stub.StreamObserver ) + responseObserver); break; case METHODID_BEGIN_TRANSACTION: - serviceImpl.beginTransaction((com.google.firestore.v1beta1.BeginTransactionRequest) request, - (io.grpc.stub.StreamObserver ) responseObserver); + serviceImpl.beginTransaction( + (com.google.firestore.v1beta1.BeginTransactionRequest) request, + (io.grpc.stub.StreamObserver ) + responseObserver); break; case METHODID_COMMIT: - serviceImpl.commit((com.google.firestore.v1beta1.CommitRequest) request, - (io.grpc.stub.StreamObserver ) responseObserver); + serviceImpl.commit( + (com.google.firestore.v1beta1.CommitRequest) request, + (io.grpc.stub.StreamObserver ) + responseObserver); break; case METHODID_ROLLBACK: - serviceImpl.rollback((com.google.firestore.v1beta1.RollbackRequest) request, + serviceImpl.rollback( + (com.google.firestore.v1beta1.RollbackRequest) request, (io.grpc.stub.StreamObserver ) responseObserver); break; case METHODID_RUN_QUERY: - serviceImpl.runQuery((com.google.firestore.v1beta1.RunQueryRequest) request, - (io.grpc.stub.StreamObserver ) responseObserver); + serviceImpl.runQuery( + (com.google.firestore.v1beta1.RunQueryRequest) request, + (io.grpc.stub.StreamObserver ) + responseObserver); break; case METHODID_LIST_COLLECTION_IDS: - serviceImpl.listCollectionIds((com.google.firestore.v1beta1.ListCollectionIdsRequest) request, - (io.grpc.stub.StreamObserver ) responseObserver); + serviceImpl.listCollectionIds( + (com.google.firestore.v1beta1.ListCollectionIdsRequest) request, + (io.grpc.stub.StreamObserver ) + responseObserver); break; default: throw new AssertionError(); @@ -1346,19 +1730,24 @@ public io.grpc.stub.StreamObserver invoke( io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_WRITE: - return (io.grpc.stub.StreamObserver ) serviceImpl.write( - (io.grpc.stub.StreamObserver ) responseObserver); + return (io.grpc.stub.StreamObserver ) + serviceImpl.write( + (io.grpc.stub.StreamObserver ) + responseObserver); case METHODID_LISTEN: - return (io.grpc.stub.StreamObserver ) serviceImpl.listen( - (io.grpc.stub.StreamObserver ) responseObserver); + return (io.grpc.stub.StreamObserver ) + serviceImpl.listen( + (io.grpc.stub.StreamObserver ) + responseObserver); default: throw new AssertionError(); } } } - private static abstract class FirestoreBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private abstract static class FirestoreBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { FirestoreBaseDescriptorSupplier() {} @java.lang.Override @@ -1400,22 +1789,24 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (FirestoreGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new FirestoreFileDescriptorSupplier()) - .addMethod(getGetDocumentMethodHelper()) - .addMethod(getListDocumentsMethodHelper()) - .addMethod(getCreateDocumentMethodHelper()) - .addMethod(getUpdateDocumentMethodHelper()) - .addMethod(getDeleteDocumentMethodHelper()) - .addMethod(getBatchGetDocumentsMethodHelper()) - .addMethod(getBeginTransactionMethodHelper()) - .addMethod(getCommitMethodHelper()) - .addMethod(getRollbackMethodHelper()) - .addMethod(getRunQueryMethodHelper()) - .addMethod(getWriteMethodHelper()) - .addMethod(getListenMethodHelper()) - .addMethod(getListCollectionIdsMethodHelper()) - .build(); + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new FirestoreFileDescriptorSupplier()) + .addMethod(getGetDocumentMethodHelper()) + .addMethod(getListDocumentsMethodHelper()) + .addMethod(getCreateDocumentMethodHelper()) + .addMethod(getUpdateDocumentMethodHelper()) + .addMethod(getDeleteDocumentMethodHelper()) + .addMethod(getBatchGetDocumentsMethodHelper()) + .addMethod(getBeginTransactionMethodHelper()) + .addMethod(getCommitMethodHelper()) + .addMethod(getRollbackMethodHelper()) + .addMethod(getRunQueryMethodHelper()) + .addMethod(getWriteMethodHelper()) + .addMethod(getListenMethodHelper()) + .addMethod(getListCollectionIdsMethodHelper()) + .build(); } } } diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/AnyPathName.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/AnyPathName.java index eb99fe4f26ea..618209f5daf2 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/AnyPathName.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/AnyPathName.java @@ -14,20 +14,21 @@ package com.google.firestore.v1beta1; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; import com.google.api.pathtemplate.PathTemplate; import com.google.api.resourcenames.ResourceName; -import java.util.Map; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; import java.util.ArrayList; import java.util.List; +import java.util.Map; // AUTO-GENERATED DOCUMENTATION AND CLASS @javax.annotation.Generated("by GAPIC protoc plugin") public class AnyPathName implements ResourceName { private static final PathTemplate PATH_TEMPLATE = - PathTemplate.createWithoutUrlEncoding("projects/{project}/databases/{database}/documents/{document}/{any_path=**}"); + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/databases/{database}/documents/{document}/{any_path=**}"); private volatile Map fieldValuesMap; @@ -69,21 +70,21 @@ private AnyPathName(Builder builder) { public static AnyPathName of(String project, String database, String document, String anyPath) { return newBuilder() - .setProject(project) - .setDatabase(database) - .setDocument(document) - .setAnyPath(anyPath) - .build(); + .setProject(project) + .setDatabase(database) + .setDocument(document) + .setAnyPath(anyPath) + .build(); } public static String format(String project, String database, String document, String anyPath) { return newBuilder() - .setProject(project) - .setDatabase(database) - .setDocument(document) - .setAnyPath(anyPath) - .build() - .toString(); + .setProject(project) + .setDatabase(database) + .setDocument(document) + .setAnyPath(anyPath) + .build() + .toString(); } public static AnyPathName parse(String formattedString) { @@ -91,8 +92,13 @@ public static AnyPathName parse(String formattedString) { return null; } Map matchMap = - PATH_TEMPLATE.validatedMatch(formattedString, "AnyPathName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("database"), matchMap.get("document"), matchMap.get("any_path")); + PATH_TEMPLATE.validatedMatch( + formattedString, "AnyPathName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("database"), + matchMap.get("document"), + matchMap.get("any_path")); } public static List parseList(List formattedStrings) { @@ -141,7 +147,8 @@ public String getFieldValue(String fieldName) { @Override public String toString() { - return PATH_TEMPLATE.instantiate("project", project, "database", database, "document", document, "any_path", anyPath); + return PATH_TEMPLATE.instantiate( + "project", project, "database", database, "document", document, "any_path", anyPath); } /** Builder for AnyPathName. */ @@ -188,8 +195,7 @@ public Builder setAnyPath(String anyPath) { return this; } - private Builder() { - } + private Builder() {} private Builder(AnyPathName anyPathName) { project = anyPathName.project; @@ -232,4 +238,3 @@ public int hashCode() { return h; } } - diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/ArrayValue.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/ArrayValue.java index b1d1ef1533cb..b29683b66963 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/ArrayValue.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/ArrayValue.java @@ -4,30 +4,33 @@ package com.google.firestore.v1beta1; /** + * + * * * An array value. ** * Protobuf type {@code google.firestore.v1beta1.ArrayValue} */ -public final class ArrayValue extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ArrayValue extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.firestore.v1beta1.ArrayValue) ArrayValueOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ArrayValue.newBuilder() to construct. private ArrayValue(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } + private ArrayValue() { values_ = java.util.Collections.emptyList(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ArrayValue( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -47,29 +50,30 @@ private ArrayValue( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - values_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + values_ = new java.util.ArrayList (); + mutable_bitField0_ |= 0x00000001; + } + values_.add( + input.readMessage( + com.google.firestore.v1beta1.Value.parser(), extensionRegistry)); + break; } - values_.add( - input.readMessage(com.google.firestore.v1beta1.Value.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { values_ = java.util.Collections.unmodifiableList(values_); @@ -78,22 +82,27 @@ private ArrayValue( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.firestore.v1beta1.DocumentProto.internal_static_google_firestore_v1beta1_ArrayValue_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.v1beta1.DocumentProto + .internal_static_google_firestore_v1beta1_ArrayValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.firestore.v1beta1.DocumentProto.internal_static_google_firestore_v1beta1_ArrayValue_fieldAccessorTable + return com.google.firestore.v1beta1.DocumentProto + .internal_static_google_firestore_v1beta1_ArrayValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.firestore.v1beta1.ArrayValue.class, com.google.firestore.v1beta1.ArrayValue.Builder.class); + com.google.firestore.v1beta1.ArrayValue.class, + com.google.firestore.v1beta1.ArrayValue.Builder.class); } public static final int VALUES_FIELD_NUMBER = 1; private java.util.List values_; /** + * + * * * Values in the array. *@@ -104,17 +113,21 @@ public java.util.ListgetValuesList() { return values_; } /** + * + * * * Values in the array. ** *repeated .google.firestore.v1beta1.Value values = 1;
*/ - public java.util.List extends com.google.firestore.v1beta1.ValueOrBuilder> + public java.util.List extends com.google.firestore.v1beta1.ValueOrBuilder> getValuesOrBuilderList() { return values_; } /** + * + * ** Values in the array. *@@ -125,6 +138,8 @@ public int getValuesCount() { return values_.size(); } /** + * + * ** Values in the array. *@@ -135,18 +150,20 @@ public com.google.firestore.v1beta1.Value getValues(int index) { return values_.get(index); } /** + * + * ** Values in the array. ** *repeated .google.firestore.v1beta1.Value values = 1;
*/ - public com.google.firestore.v1beta1.ValueOrBuilder getValuesOrBuilder( - int index) { + public com.google.firestore.v1beta1.ValueOrBuilder getValuesOrBuilder(int index) { return values_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -158,8 +175,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < values_.size(); i++) { output.writeMessage(1, values_.get(i)); } @@ -173,8 +189,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < values_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, values_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, values_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -184,7 +199,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.firestore.v1beta1.ArrayValue)) { return super.equals(obj); @@ -192,8 +207,7 @@ public boolean equals(final java.lang.Object obj) { com.google.firestore.v1beta1.ArrayValue other = (com.google.firestore.v1beta1.ArrayValue) obj; boolean result = true; - result = result && getValuesList() - .equals(other.getValuesList()); + result = result && getValuesList().equals(other.getValuesList()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -214,118 +228,127 @@ public int hashCode() { return hash; } - public static com.google.firestore.v1beta1.ArrayValue parseFrom( - java.nio.ByteBuffer data) + public static com.google.firestore.v1beta1.ArrayValue parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.firestore.v1beta1.ArrayValue parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.firestore.v1beta1.ArrayValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.firestore.v1beta1.ArrayValue parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.firestore.v1beta1.ArrayValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.firestore.v1beta1.ArrayValue parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.firestore.v1beta1.ArrayValue parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.firestore.v1beta1.ArrayValue parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.firestore.v1beta1.ArrayValue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.firestore.v1beta1.ArrayValue parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.firestore.v1beta1.ArrayValue parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.firestore.v1beta1.ArrayValue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.firestore.v1beta1.ArrayValue parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.firestore.v1beta1.ArrayValue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * ** An array value. ** * Protobuf type {@code google.firestore.v1beta1.ArrayValue} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builderimplements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.firestore.v1beta1.ArrayValue) com.google.firestore.v1beta1.ArrayValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.firestore.v1beta1.DocumentProto.internal_static_google_firestore_v1beta1_ArrayValue_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.v1beta1.DocumentProto + .internal_static_google_firestore_v1beta1_ArrayValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.firestore.v1beta1.DocumentProto.internal_static_google_firestore_v1beta1_ArrayValue_fieldAccessorTable + return com.google.firestore.v1beta1.DocumentProto + .internal_static_google_firestore_v1beta1_ArrayValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.firestore.v1beta1.ArrayValue.class, com.google.firestore.v1beta1.ArrayValue.Builder.class); + com.google.firestore.v1beta1.ArrayValue.class, + com.google.firestore.v1beta1.ArrayValue.Builder.class); } // Construct using com.google.firestore.v1beta1.ArrayValue.newBuilder() @@ -333,17 +356,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getValuesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -357,9 +380,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.firestore.v1beta1.DocumentProto.internal_static_google_firestore_v1beta1_ArrayValue_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.firestore.v1beta1.DocumentProto + .internal_static_google_firestore_v1beta1_ArrayValue_descriptor; } @java.lang.Override @@ -378,7 +401,8 @@ public com.google.firestore.v1beta1.ArrayValue build() { @java.lang.Override public com.google.firestore.v1beta1.ArrayValue buildPartial() { - com.google.firestore.v1beta1.ArrayValue result = new com.google.firestore.v1beta1.ArrayValue(this); + com.google.firestore.v1beta1.ArrayValue result = + new com.google.firestore.v1beta1.ArrayValue(this); int from_bitField0_ = bitField0_; if (valuesBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { @@ -397,38 +421,39 @@ public com.google.firestore.v1beta1.ArrayValue buildPartial() { public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.firestore.v1beta1.ArrayValue) { - return mergeFrom((com.google.firestore.v1beta1.ArrayValue)other); + return mergeFrom((com.google.firestore.v1beta1.ArrayValue) other); } else { super.mergeFrom(other); return this; @@ -455,9 +480,10 @@ public Builder mergeFrom(com.google.firestore.v1beta1.ArrayValue other) { valuesBuilder_ = null; values_ = other.values_; bitField0_ = (bitField0_ & ~0x00000001); - valuesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getValuesFieldBuilder() : null; + valuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getValuesFieldBuilder() + : null; } else { valuesBuilder_.addAllMessages(other.values_); } @@ -491,21 +517,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List values_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { values_ = new java.util.ArrayList (values_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.firestore.v1beta1.Value, com.google.firestore.v1beta1.Value.Builder, com.google.firestore.v1beta1.ValueOrBuilder> valuesBuilder_; + com.google.firestore.v1beta1.Value, + com.google.firestore.v1beta1.Value.Builder, + com.google.firestore.v1beta1.ValueOrBuilder> + valuesBuilder_; /** + * + * * * Values in the array. *@@ -520,6 +553,8 @@ public java.util.ListgetValuesList() { } } /** + * + * * * Values in the array. *@@ -534,6 +569,8 @@ public int getValuesCount() { } } /** + * + * ** Values in the array. *@@ -548,14 +585,15 @@ public com.google.firestore.v1beta1.Value getValues(int index) { } } /** + * + * ** Values in the array. ** *repeated .google.firestore.v1beta1.Value values = 1;
*/ - public Builder setValues( - int index, com.google.firestore.v1beta1.Value value) { + public Builder setValues(int index, com.google.firestore.v1beta1.Value value) { if (valuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -569,6 +607,8 @@ public Builder setValues( return this; } /** + * + * ** Values in the array. *@@ -587,6 +627,8 @@ public Builder setValues( return this; } /** + * + * ** Values in the array. *@@ -607,14 +649,15 @@ public Builder addValues(com.google.firestore.v1beta1.Value value) { return this; } /** + * + * ** Values in the array. ** *repeated .google.firestore.v1beta1.Value values = 1;
*/ - public Builder addValues( - int index, com.google.firestore.v1beta1.Value value) { + public Builder addValues(int index, com.google.firestore.v1beta1.Value value) { if (valuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -628,14 +671,15 @@ public Builder addValues( return this; } /** + * + * ** Values in the array. ** *repeated .google.firestore.v1beta1.Value values = 1;
*/ - public Builder addValues( - com.google.firestore.v1beta1.Value.Builder builderForValue) { + public Builder addValues(com.google.firestore.v1beta1.Value.Builder builderForValue) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); values_.add(builderForValue.build()); @@ -646,6 +690,8 @@ public Builder addValues( return this; } /** + * + * ** Values in the array. *@@ -664,6 +710,8 @@ public Builder addValues( return this; } /** + * + * ** Values in the array. *@@ -674,8 +722,7 @@ public Builder addAllValues( java.lang.Iterable extends com.google.firestore.v1beta1.Value> values) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, values_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); onChanged(); } else { valuesBuilder_.addAllMessages(values); @@ -683,6 +730,8 @@ public Builder addAllValues( return this; } /** + * + * ** Values in the array. *@@ -700,6 +749,8 @@ public Builder clearValues() { return this; } /** + * + * ** Values in the array. *@@ -717,39 +768,44 @@ public Builder removeValues(int index) { return this; } /** + * + * ** Values in the array. ** *repeated .google.firestore.v1beta1.Value values = 1;
*/ - public com.google.firestore.v1beta1.Value.Builder getValuesBuilder( - int index) { + public com.google.firestore.v1beta1.Value.Builder getValuesBuilder(int index) { return getValuesFieldBuilder().getBuilder(index); } /** + * + * ** Values in the array. ** *repeated .google.firestore.v1beta1.Value values = 1;
*/ - public com.google.firestore.v1beta1.ValueOrBuilder getValuesOrBuilder( - int index) { + public com.google.firestore.v1beta1.ValueOrBuilder getValuesOrBuilder(int index) { if (valuesBuilder_ == null) { - return values_.get(index); } else { + return values_.get(index); + } else { return valuesBuilder_.getMessageOrBuilder(index); } } /** + * + * ** Values in the array. ** *repeated .google.firestore.v1beta1.Value values = 1;
*/ - public java.util.List extends com.google.firestore.v1beta1.ValueOrBuilder> - getValuesOrBuilderList() { + public java.util.List extends com.google.firestore.v1beta1.ValueOrBuilder> + getValuesOrBuilderList() { if (valuesBuilder_ != null) { return valuesBuilder_.getMessageOrBuilderList(); } else { @@ -757,6 +813,8 @@ public com.google.firestore.v1beta1.ValueOrBuilder getValuesOrBuilder( } } /** + * + * ** Values in the array. *@@ -764,38 +822,46 @@ public com.google.firestore.v1beta1.ValueOrBuilder getValuesOrBuilder( *repeated .google.firestore.v1beta1.Value values = 1;
*/ public com.google.firestore.v1beta1.Value.Builder addValuesBuilder() { - return getValuesFieldBuilder().addBuilder( - com.google.firestore.v1beta1.Value.getDefaultInstance()); + return getValuesFieldBuilder() + .addBuilder(com.google.firestore.v1beta1.Value.getDefaultInstance()); } /** + * + * ** Values in the array. ** *repeated .google.firestore.v1beta1.Value values = 1;
*/ - public com.google.firestore.v1beta1.Value.Builder addValuesBuilder( - int index) { - return getValuesFieldBuilder().addBuilder( - index, com.google.firestore.v1beta1.Value.getDefaultInstance()); + public com.google.firestore.v1beta1.Value.Builder addValuesBuilder(int index) { + return getValuesFieldBuilder() + .addBuilder(index, com.google.firestore.v1beta1.Value.getDefaultInstance()); } /** + * + * ** Values in the array. ** *repeated .google.firestore.v1beta1.Value values = 1;
*/ - public java.util.List- getValuesBuilderList() { + public java.util.List getValuesBuilderList() { return getValuesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.firestore.v1beta1.Value, com.google.firestore.v1beta1.Value.Builder, com.google.firestore.v1beta1.ValueOrBuilder> + com.google.firestore.v1beta1.Value, + com.google.firestore.v1beta1.Value.Builder, + com.google.firestore.v1beta1.ValueOrBuilder> getValuesFieldBuilder() { if (valuesBuilder_ == null) { - valuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.firestore.v1beta1.Value, com.google.firestore.v1beta1.Value.Builder, com.google.firestore.v1beta1.ValueOrBuilder>( + valuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.firestore.v1beta1.Value, + com.google.firestore.v1beta1.Value.Builder, + com.google.firestore.v1beta1.ValueOrBuilder>( values_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), @@ -804,9 +870,9 @@ public com.google.firestore.v1beta1.Value.Builder addValuesBuilder( } return valuesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @@ -816,12 +882,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.firestore.v1beta1.ArrayValue) } // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.ArrayValue) private static final com.google.firestore.v1beta1.ArrayValue DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.firestore.v1beta1.ArrayValue(); } @@ -830,16 +896,16 @@ public static com.google.firestore.v1beta1.ArrayValue getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override - public ArrayValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ArrayValue(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser () { + @java.lang.Override + public ArrayValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ArrayValue(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -854,6 +920,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.firestore.v1beta1.ArrayValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/ArrayValueOrBuilder.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/ArrayValueOrBuilder.java index cac4ed7574af..a7724c5477ea 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/ArrayValueOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/ArrayValueOrBuilder.java @@ -3,20 +3,24 @@ package com.google.firestore.v1beta1; -public interface ArrayValueOrBuilder extends +public interface ArrayValueOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.firestore.v1beta1.ArrayValue) com.google.protobuf.MessageOrBuilder { /** + * + * * * Values in the array. ** *repeated .google.firestore.v1beta1.Value values = 1;
*/ - java.util.List- getValuesList(); + java.util.List getValuesList(); /** + * + * * * Values in the array. *@@ -25,6 +29,8 @@ public interface ArrayValueOrBuilder extends */ com.google.firestore.v1beta1.Value getValues(int index); /** + * + * ** Values in the array. *@@ -33,21 +39,23 @@ public interface ArrayValueOrBuilder extends */ int getValuesCount(); /** + * + * ** Values in the array. ** *repeated .google.firestore.v1beta1.Value values = 1;
*/ - java.util.List extends com.google.firestore.v1beta1.ValueOrBuilder> - getValuesOrBuilderList(); + java.util.List extends com.google.firestore.v1beta1.ValueOrBuilder> getValuesOrBuilderList(); /** + * + * ** Values in the array. ** *repeated .google.firestore.v1beta1.Value values = 1;
*/ - com.google.firestore.v1beta1.ValueOrBuilder getValuesOrBuilder( - int index); + com.google.firestore.v1beta1.ValueOrBuilder getValuesOrBuilder(int index); } diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/BatchGetDocumentsRequest.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/BatchGetDocumentsRequest.java index af5645993de9..26c9ea6d78d4 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/BatchGetDocumentsRequest.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/BatchGetDocumentsRequest.java @@ -4,31 +4,34 @@ package com.google.firestore.v1beta1; /** + * + * ** The request for [Firestore.BatchGetDocuments][google.firestore.v1beta1.Firestore.BatchGetDocuments]. ** * Protobuf type {@code google.firestore.v1beta1.BatchGetDocumentsRequest} */ -public final class BatchGetDocumentsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchGetDocumentsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.firestore.v1beta1.BatchGetDocumentsRequest) BatchGetDocumentsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchGetDocumentsRequest.newBuilder() to construct. private BatchGetDocumentsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } + private BatchGetDocumentsRequest() { database_ = ""; documents_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BatchGetDocumentsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -48,81 +51,92 @@ private BatchGetDocumentsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - database_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - documents_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + database_ = s; + break; } - documents_.add(s); - break; - } - case 26: { - com.google.firestore.v1beta1.DocumentMask.Builder subBuilder = null; - if (mask_ != null) { - subBuilder = mask_.toBuilder(); - } - mask_ = input.readMessage(com.google.firestore.v1beta1.DocumentMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(mask_); - mask_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + documents_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + documents_.add(s); + break; } + case 26: + { + com.google.firestore.v1beta1.DocumentMask.Builder subBuilder = null; + if (mask_ != null) { + subBuilder = mask_.toBuilder(); + } + mask_ = + input.readMessage( + com.google.firestore.v1beta1.DocumentMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(mask_); + mask_ = subBuilder.buildPartial(); + } - break; - } - case 34: { - consistencySelectorCase_ = 4; - consistencySelector_ = input.readBytes(); - break; - } - case 42: { - com.google.firestore.v1beta1.TransactionOptions.Builder subBuilder = null; - if (consistencySelectorCase_ == 5) { - subBuilder = ((com.google.firestore.v1beta1.TransactionOptions) consistencySelector_).toBuilder(); + break; } - consistencySelector_ = - input.readMessage(com.google.firestore.v1beta1.TransactionOptions.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.firestore.v1beta1.TransactionOptions) consistencySelector_); - consistencySelector_ = subBuilder.buildPartial(); + case 34: + { + consistencySelectorCase_ = 4; + consistencySelector_ = input.readBytes(); + break; } - consistencySelectorCase_ = 5; - break; - } - case 58: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (consistencySelectorCase_ == 7) { - subBuilder = ((com.google.protobuf.Timestamp) consistencySelector_).toBuilder(); + case 42: + { + com.google.firestore.v1beta1.TransactionOptions.Builder subBuilder = null; + if (consistencySelectorCase_ == 5) { + subBuilder = + ((com.google.firestore.v1beta1.TransactionOptions) consistencySelector_) + .toBuilder(); + } + consistencySelector_ = + input.readMessage( + com.google.firestore.v1beta1.TransactionOptions.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.firestore.v1beta1.TransactionOptions) consistencySelector_); + consistencySelector_ = subBuilder.buildPartial(); + } + consistencySelectorCase_ = 5; + break; } - consistencySelector_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.protobuf.Timestamp) consistencySelector_); - consistencySelector_ = subBuilder.buildPartial(); + case 58: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (consistencySelectorCase_ == 7) { + subBuilder = ((com.google.protobuf.Timestamp) consistencySelector_).toBuilder(); + } + consistencySelector_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.protobuf.Timestamp) consistencySelector_); + consistencySelector_ = subBuilder.buildPartial(); + } + consistencySelectorCase_ = 7; + break; } - consistencySelectorCase_ = 7; - break; - } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { documents_ = documents_.getUnmodifiableView(); @@ -131,35 +145,37 @@ private BatchGetDocumentsRequest( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.firestore.v1beta1.FirestoreProto.internal_static_google_firestore_v1beta1_BatchGetDocumentsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.v1beta1.FirestoreProto + .internal_static_google_firestore_v1beta1_BatchGetDocumentsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.firestore.v1beta1.FirestoreProto.internal_static_google_firestore_v1beta1_BatchGetDocumentsRequest_fieldAccessorTable + return com.google.firestore.v1beta1.FirestoreProto + .internal_static_google_firestore_v1beta1_BatchGetDocumentsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.firestore.v1beta1.BatchGetDocumentsRequest.class, com.google.firestore.v1beta1.BatchGetDocumentsRequest.Builder.class); + com.google.firestore.v1beta1.BatchGetDocumentsRequest.class, + com.google.firestore.v1beta1.BatchGetDocumentsRequest.Builder.class); } private int bitField0_; private int consistencySelectorCase_ = 0; private java.lang.Object consistencySelector_; - public enum ConsistencySelectorCase - implements com.google.protobuf.Internal.EnumLite { + + public enum ConsistencySelectorCase implements com.google.protobuf.Internal.EnumLite { TRANSACTION(4), NEW_TRANSACTION(5), READ_TIME(7), CONSISTENCYSELECTOR_NOT_SET(0); private final int value; + private ConsistencySelectorCase(int value) { this.value = value; } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ + /** @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ConsistencySelectorCase valueOf(int value) { return forNumber(value); @@ -167,27 +183,33 @@ public static ConsistencySelectorCase valueOf(int value) { public static ConsistencySelectorCase forNumber(int value) { switch (value) { - case 4: return TRANSACTION; - case 5: return NEW_TRANSACTION; - case 7: return READ_TIME; - case 0: return CONSISTENCYSELECTOR_NOT_SET; - default: return null; + case 4: + return TRANSACTION; + case 5: + return NEW_TRANSACTION; + case 7: + return READ_TIME; + case 0: + return CONSISTENCYSELECTOR_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ConsistencySelectorCase - getConsistencySelectorCase() { - return ConsistencySelectorCase.forNumber( - consistencySelectorCase_); + public ConsistencySelectorCase getConsistencySelectorCase() { + return ConsistencySelectorCase.forNumber(consistencySelectorCase_); } public static final int DATABASE_FIELD_NUMBER = 1; private volatile java.lang.Object database_; /** + * + * ** The database name. In the format: * `projects/{project_id}/databases/{database_id}`. @@ -200,14 +222,15 @@ public java.lang.String getDatabase() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); database_ = s; return s; } } /** + * + * ** The database name. In the format: * `projects/{project_id}/databases/{database_id}`. @@ -215,13 +238,11 @@ public java.lang.String getDatabase() { * *string database = 1;
*/ - public com.google.protobuf.ByteString - getDatabaseBytes() { + public com.google.protobuf.ByteString getDatabaseBytes() { java.lang.Object ref = database_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); database_ = b; return b; } else { @@ -232,6 +253,8 @@ public java.lang.String getDatabase() { public static final int DOCUMENTS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList documents_; /** + * + * ** The names of the documents to retrieve. In the format: * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. @@ -241,11 +264,12 @@ public java.lang.String getDatabase() { * *repeated string documents = 2;
*/ - public com.google.protobuf.ProtocolStringList - getDocumentsList() { + public com.google.protobuf.ProtocolStringList getDocumentsList() { return documents_; } /** + * + * ** The names of the documents to retrieve. In the format: * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. @@ -259,6 +283,8 @@ public int getDocumentsCount() { return documents_.size(); } /** + * + * ** The names of the documents to retrieve. In the format: * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. @@ -272,6 +298,8 @@ public java.lang.String getDocuments(int index) { return documents_.get(index); } /** + * + * ** The names of the documents to retrieve. In the format: * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. @@ -281,14 +309,15 @@ public java.lang.String getDocuments(int index) { * *repeated string documents = 2;
*/ - public com.google.protobuf.ByteString - getDocumentsBytes(int index) { + public com.google.protobuf.ByteString getDocumentsBytes(int index) { return documents_.getByteString(index); } public static final int MASK_FIELD_NUMBER = 3; private com.google.firestore.v1beta1.DocumentMask mask_; /** + * + * ** The fields to return. If not set, returns all fields. * If a document has a field that is not present in this mask, that field will @@ -301,6 +330,8 @@ public boolean hasMask() { return mask_ != null; } /** + * + * ** The fields to return. If not set, returns all fields. * If a document has a field that is not present in this mask, that field will @@ -313,6 +344,8 @@ public com.google.firestore.v1beta1.DocumentMask getMask() { return mask_ == null ? com.google.firestore.v1beta1.DocumentMask.getDefaultInstance() : mask_; } /** + * + * ** The fields to return. If not set, returns all fields. * If a document has a field that is not present in this mask, that field will @@ -327,6 +360,8 @@ public com.google.firestore.v1beta1.DocumentMaskOrBuilder getMaskOrBuilder() { public static final int TRANSACTION_FIELD_NUMBER = 4; /** + * + * ** Reads documents in a transaction. *@@ -342,6 +377,8 @@ public com.google.protobuf.ByteString getTransaction() { public static final int NEW_TRANSACTION_FIELD_NUMBER = 5; /** + * + * ** Starts a new transaction and reads the documents. * Defaults to a read-only transaction. @@ -355,6 +392,8 @@ public boolean hasNewTransaction() { return consistencySelectorCase_ == 5; } /** + * + * ** Starts a new transaction and reads the documents. * Defaults to a read-only transaction. @@ -366,11 +405,13 @@ public boolean hasNewTransaction() { */ public com.google.firestore.v1beta1.TransactionOptions getNewTransaction() { if (consistencySelectorCase_ == 5) { - return (com.google.firestore.v1beta1.TransactionOptions) consistencySelector_; + return (com.google.firestore.v1beta1.TransactionOptions) consistencySelector_; } return com.google.firestore.v1beta1.TransactionOptions.getDefaultInstance(); } /** + * + * ** Starts a new transaction and reads the documents. * Defaults to a read-only transaction. @@ -382,13 +423,15 @@ public com.google.firestore.v1beta1.TransactionOptions getNewTransaction() { */ public com.google.firestore.v1beta1.TransactionOptionsOrBuilder getNewTransactionOrBuilder() { if (consistencySelectorCase_ == 5) { - return (com.google.firestore.v1beta1.TransactionOptions) consistencySelector_; + return (com.google.firestore.v1beta1.TransactionOptions) consistencySelector_; } return com.google.firestore.v1beta1.TransactionOptions.getDefaultInstance(); } public static final int READ_TIME_FIELD_NUMBER = 7; /** + * + * ** Reads documents as they were at the given time. * This may not be older than 60 seconds. @@ -400,6 +443,8 @@ public boolean hasReadTime() { return consistencySelectorCase_ == 7; } /** + * + * ** Reads documents as they were at the given time. * This may not be older than 60 seconds. @@ -409,11 +454,13 @@ public boolean hasReadTime() { */ public com.google.protobuf.Timestamp getReadTime() { if (consistencySelectorCase_ == 7) { - return (com.google.protobuf.Timestamp) consistencySelector_; + return (com.google.protobuf.Timestamp) consistencySelector_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } /** + * + * ** Reads documents as they were at the given time. * This may not be older than 60 seconds. @@ -423,12 +470,13 @@ public com.google.protobuf.Timestamp getReadTime() { */ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { if (consistencySelectorCase_ == 7) { - return (com.google.protobuf.Timestamp) consistencySelector_; + return (com.google.protobuf.Timestamp) consistencySelector_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -440,8 +488,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getDatabaseBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, database_); } @@ -452,11 +499,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(3, getMask()); } if (consistencySelectorCase_ == 4) { - output.writeBytes( - 4, (com.google.protobuf.ByteString) consistencySelector_); + output.writeBytes(4, (com.google.protobuf.ByteString) consistencySelector_); } if (consistencySelectorCase_ == 5) { - output.writeMessage(5, (com.google.firestore.v1beta1.TransactionOptions) consistencySelector_); + output.writeMessage( + 5, (com.google.firestore.v1beta1.TransactionOptions) consistencySelector_); } if (consistencySelectorCase_ == 7) { output.writeMessage(7, (com.google.protobuf.Timestamp) consistencySelector_); @@ -482,21 +529,22 @@ public int getSerializedSize() { size += 1 * getDocumentsList().size(); } if (mask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMask()); } if (consistencySelectorCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize( - 4, (com.google.protobuf.ByteString) consistencySelector_); + size += + com.google.protobuf.CodedOutputStream.computeBytesSize( + 4, (com.google.protobuf.ByteString) consistencySelector_); } if (consistencySelectorCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.google.firestore.v1beta1.TransactionOptions) consistencySelector_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.firestore.v1beta1.TransactionOptions) consistencySelector_); } if (consistencySelectorCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (com.google.protobuf.Timestamp) consistencySelector_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.protobuf.Timestamp) consistencySelector_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -506,38 +554,32 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.firestore.v1beta1.BatchGetDocumentsRequest)) { return super.equals(obj); } - com.google.firestore.v1beta1.BatchGetDocumentsRequest other = (com.google.firestore.v1beta1.BatchGetDocumentsRequest) obj; + com.google.firestore.v1beta1.BatchGetDocumentsRequest other = + (com.google.firestore.v1beta1.BatchGetDocumentsRequest) obj; boolean result = true; - result = result && getDatabase() - .equals(other.getDatabase()); - result = result && getDocumentsList() - .equals(other.getDocumentsList()); + result = result && getDatabase().equals(other.getDatabase()); + result = result && getDocumentsList().equals(other.getDocumentsList()); result = result && (hasMask() == other.hasMask()); if (hasMask()) { - result = result && getMask() - .equals(other.getMask()); + result = result && getMask().equals(other.getMask()); } - result = result && getConsistencySelectorCase().equals( - other.getConsistencySelectorCase()); + result = result && getConsistencySelectorCase().equals(other.getConsistencySelectorCase()); if (!result) return false; switch (consistencySelectorCase_) { case 4: - result = result && getTransaction() - .equals(other.getTransaction()); + result = result && getTransaction().equals(other.getTransaction()); break; case 5: - result = result && getNewTransaction() - .equals(other.getNewTransaction()); + result = result && getNewTransaction().equals(other.getNewTransaction()); break; case 7: - result = result && getReadTime() - .equals(other.getReadTime()); + result = result && getReadTime().equals(other.getReadTime()); break; case 0: default: @@ -585,117 +627,127 @@ public int hashCode() { } public static com.google.firestore.v1beta1.BatchGetDocumentsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.firestore.v1beta1.BatchGetDocumentsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.firestore.v1beta1.BatchGetDocumentsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.firestore.v1beta1.BatchGetDocumentsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.firestore.v1beta1.BatchGetDocumentsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.firestore.v1beta1.BatchGetDocumentsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.firestore.v1beta1.BatchGetDocumentsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.firestore.v1beta1.BatchGetDocumentsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.firestore.v1beta1.BatchGetDocumentsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.firestore.v1beta1.BatchGetDocumentsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.firestore.v1beta1.BatchGetDocumentsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.firestore.v1beta1.BatchGetDocumentsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.firestore.v1beta1.BatchGetDocumentsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.firestore.v1beta1.BatchGetDocumentsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.firestore.v1beta1.BatchGetDocumentsRequest prototype) { + + public static Builder newBuilder( + com.google.firestore.v1beta1.BatchGetDocumentsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * ** The request for [Firestore.BatchGetDocuments][google.firestore.v1beta1.Firestore.BatchGetDocuments]. ** * Protobuf type {@code google.firestore.v1beta1.BatchGetDocumentsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builderimplements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.firestore.v1beta1.BatchGetDocumentsRequest) com.google.firestore.v1beta1.BatchGetDocumentsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.firestore.v1beta1.FirestoreProto.internal_static_google_firestore_v1beta1_BatchGetDocumentsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.v1beta1.FirestoreProto + .internal_static_google_firestore_v1beta1_BatchGetDocumentsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.firestore.v1beta1.FirestoreProto.internal_static_google_firestore_v1beta1_BatchGetDocumentsRequest_fieldAccessorTable + return com.google.firestore.v1beta1.FirestoreProto + .internal_static_google_firestore_v1beta1_BatchGetDocumentsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.firestore.v1beta1.BatchGetDocumentsRequest.class, com.google.firestore.v1beta1.BatchGetDocumentsRequest.Builder.class); + com.google.firestore.v1beta1.BatchGetDocumentsRequest.class, + com.google.firestore.v1beta1.BatchGetDocumentsRequest.Builder.class); } // Construct using com.google.firestore.v1beta1.BatchGetDocumentsRequest.newBuilder() @@ -703,16 +755,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -732,9 +783,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.firestore.v1beta1.FirestoreProto.internal_static_google_firestore_v1beta1_BatchGetDocumentsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.firestore.v1beta1.FirestoreProto + .internal_static_google_firestore_v1beta1_BatchGetDocumentsRequest_descriptor; } @java.lang.Override @@ -753,7 +804,8 @@ public com.google.firestore.v1beta1.BatchGetDocumentsRequest build() { @java.lang.Override public com.google.firestore.v1beta1.BatchGetDocumentsRequest buildPartial() { - com.google.firestore.v1beta1.BatchGetDocumentsRequest result = new com.google.firestore.v1beta1.BatchGetDocumentsRequest(this); + com.google.firestore.v1beta1.BatchGetDocumentsRequest result = + new com.google.firestore.v1beta1.BatchGetDocumentsRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.database_ = database_; @@ -794,38 +846,39 @@ public com.google.firestore.v1beta1.BatchGetDocumentsRequest buildPartial() { public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.firestore.v1beta1.BatchGetDocumentsRequest) { - return mergeFrom((com.google.firestore.v1beta1.BatchGetDocumentsRequest)other); + return mergeFrom((com.google.firestore.v1beta1.BatchGetDocumentsRequest) other); } else { super.mergeFrom(other); return this; @@ -833,7 +886,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.firestore.v1beta1.BatchGetDocumentsRequest other) { - if (other == com.google.firestore.v1beta1.BatchGetDocumentsRequest.getDefaultInstance()) return this; + if (other == com.google.firestore.v1beta1.BatchGetDocumentsRequest.getDefaultInstance()) + return this; if (!other.getDatabase().isEmpty()) { database_ = other.database_; onChanged(); @@ -852,21 +906,25 @@ public Builder mergeFrom(com.google.firestore.v1beta1.BatchGetDocumentsRequest o mergeMask(other.getMask()); } switch (other.getConsistencySelectorCase()) { - case TRANSACTION: { - setTransaction(other.getTransaction()); - break; - } - case NEW_TRANSACTION: { - mergeNewTransaction(other.getNewTransaction()); - break; - } - case READ_TIME: { - mergeReadTime(other.getReadTime()); - break; - } - case CONSISTENCYSELECTOR_NOT_SET: { - break; - } + case TRANSACTION: + { + setTransaction(other.getTransaction()); + break; + } + case NEW_TRANSACTION: + { + mergeNewTransaction(other.getNewTransaction()); + break; + } + case READ_TIME: + { + mergeReadTime(other.getReadTime()); + break; + } + case CONSISTENCYSELECTOR_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -887,7 +945,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.firestore.v1beta1.BatchGetDocumentsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.firestore.v1beta1.BatchGetDocumentsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -896,12 +955,12 @@ public Builder mergeFrom( } return this; } + private int consistencySelectorCase_ = 0; private java.lang.Object consistencySelector_; - public ConsistencySelectorCase - getConsistencySelectorCase() { - return ConsistencySelectorCase.forNumber( - consistencySelectorCase_); + + public ConsistencySelectorCase getConsistencySelectorCase() { + return ConsistencySelectorCase.forNumber(consistencySelectorCase_); } public Builder clearConsistencySelector() { @@ -915,6 +974,8 @@ public Builder clearConsistencySelector() { private java.lang.Object database_ = ""; /** + * + * * * The database name. In the format: * `projects/{project_id}/databases/{database_id}`. @@ -925,8 +986,7 @@ public Builder clearConsistencySelector() { public java.lang.String getDatabase() { java.lang.Object ref = database_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); database_ = s; return s; @@ -935,6 +995,8 @@ public java.lang.String getDatabase() { } } /** + * + * ** The database name. In the format: * `projects/{project_id}/databases/{database_id}`. @@ -942,13 +1004,11 @@ public java.lang.String getDatabase() { * *string database = 1;
*/ - public com.google.protobuf.ByteString - getDatabaseBytes() { + public com.google.protobuf.ByteString getDatabaseBytes() { java.lang.Object ref = database_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); database_ = b; return b; } else { @@ -956,6 +1016,8 @@ public java.lang.String getDatabase() { } } /** + * + * ** The database name. In the format: * `projects/{project_id}/databases/{database_id}`. @@ -963,17 +1025,18 @@ public java.lang.String getDatabase() { * *string database = 1;
*/ - public Builder setDatabase( - java.lang.String value) { + public Builder setDatabase(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + database_ = value; onChanged(); return this; } /** + * + * ** The database name. In the format: * `projects/{project_id}/databases/{database_id}`. @@ -982,12 +1045,14 @@ public Builder setDatabase( *string database = 1;
*/ public Builder clearDatabase() { - + database_ = getDefaultInstance().getDatabase(); onChanged(); return this; } /** + * + * ** The database name. In the format: * `projects/{project_id}/databases/{database_id}`. @@ -995,26 +1060,29 @@ public Builder clearDatabase() { * *string database = 1;
*/ - public Builder setDatabaseBytes( - com.google.protobuf.ByteString value) { + public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + database_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList documents_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList documents_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureDocumentsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { documents_ = new com.google.protobuf.LazyStringArrayList(documents_); bitField0_ |= 0x00000002; - } + } } /** + * + * ** The names of the documents to retrieve. In the format: * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. @@ -1024,11 +1092,12 @@ private void ensureDocumentsIsMutable() { * *repeated string documents = 2;
*/ - public com.google.protobuf.ProtocolStringList - getDocumentsList() { + public com.google.protobuf.ProtocolStringList getDocumentsList() { return documents_.getUnmodifiableView(); } /** + * + * ** The names of the documents to retrieve. In the format: * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. @@ -1042,6 +1111,8 @@ public int getDocumentsCount() { return documents_.size(); } /** + * + * ** The names of the documents to retrieve. In the format: * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. @@ -1055,6 +1126,8 @@ public java.lang.String getDocuments(int index) { return documents_.get(index); } /** + * + * ** The names of the documents to retrieve. In the format: * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. @@ -1064,11 +1137,12 @@ public java.lang.String getDocuments(int index) { * *repeated string documents = 2;
*/ - public com.google.protobuf.ByteString - getDocumentsBytes(int index) { + public com.google.protobuf.ByteString getDocumentsBytes(int index) { return documents_.getByteString(index); } /** + * + * ** The names of the documents to retrieve. In the format: * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. @@ -1078,17 +1152,18 @@ public java.lang.String getDocuments(int index) { * *repeated string documents = 2;
*/ - public Builder setDocuments( - int index, java.lang.String value) { + public Builder setDocuments(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDocumentsIsMutable(); + throw new NullPointerException(); + } + ensureDocumentsIsMutable(); documents_.set(index, value); onChanged(); return this; } /** + * + * ** The names of the documents to retrieve. In the format: * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. @@ -1098,17 +1173,18 @@ public Builder setDocuments( * *repeated string documents = 2;
*/ - public Builder addDocuments( - java.lang.String value) { + public Builder addDocuments(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDocumentsIsMutable(); + throw new NullPointerException(); + } + ensureDocumentsIsMutable(); documents_.add(value); onChanged(); return this; } /** + * + * ** The names of the documents to retrieve. In the format: * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. @@ -1118,15 +1194,15 @@ public Builder addDocuments( * *repeated string documents = 2;
*/ - public Builder addAllDocuments( - java.lang.Iterablevalues) { + public Builder addAllDocuments(java.lang.Iterable values) { ensureDocumentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, documents_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, documents_); onChanged(); return this; } /** + * + * * * The names of the documents to retrieve. In the format: * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. @@ -1143,6 +1219,8 @@ public Builder clearDocuments() { return this; } /** + * + * ** The names of the documents to retrieve. In the format: * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. @@ -1152,12 +1230,11 @@ public Builder clearDocuments() { * *repeated string documents = 2;
*/ - public Builder addDocumentsBytes( - com.google.protobuf.ByteString value) { + public Builder addDocumentsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureDocumentsIsMutable(); documents_.add(value); onChanged(); @@ -1166,8 +1243,13 @@ public Builder addDocumentsBytes( private com.google.firestore.v1beta1.DocumentMask mask_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.firestore.v1beta1.DocumentMask, com.google.firestore.v1beta1.DocumentMask.Builder, com.google.firestore.v1beta1.DocumentMaskOrBuilder> maskBuilder_; + com.google.firestore.v1beta1.DocumentMask, + com.google.firestore.v1beta1.DocumentMask.Builder, + com.google.firestore.v1beta1.DocumentMaskOrBuilder> + maskBuilder_; /** + * + * ** The fields to return. If not set, returns all fields. * If a document has a field that is not present in this mask, that field will @@ -1180,6 +1262,8 @@ public boolean hasMask() { return maskBuilder_ != null || mask_ != null; } /** + * + * ** The fields to return. If not set, returns all fields. * If a document has a field that is not present in this mask, that field will @@ -1190,12 +1274,16 @@ public boolean hasMask() { */ public com.google.firestore.v1beta1.DocumentMask getMask() { if (maskBuilder_ == null) { - return mask_ == null ? com.google.firestore.v1beta1.DocumentMask.getDefaultInstance() : mask_; + return mask_ == null + ? com.google.firestore.v1beta1.DocumentMask.getDefaultInstance() + : mask_; } else { return maskBuilder_.getMessage(); } } /** + * + * ** The fields to return. If not set, returns all fields. * If a document has a field that is not present in this mask, that field will @@ -1218,6 +1306,8 @@ public Builder setMask(com.google.firestore.v1beta1.DocumentMask value) { return this; } /** + * + * ** The fields to return. If not set, returns all fields. * If a document has a field that is not present in this mask, that field will @@ -1226,8 +1316,7 @@ public Builder setMask(com.google.firestore.v1beta1.DocumentMask value) { * *.google.firestore.v1beta1.DocumentMask mask = 3;
*/ - public Builder setMask( - com.google.firestore.v1beta1.DocumentMask.Builder builderForValue) { + public Builder setMask(com.google.firestore.v1beta1.DocumentMask.Builder builderForValue) { if (maskBuilder_ == null) { mask_ = builderForValue.build(); onChanged(); @@ -1238,6 +1327,8 @@ public Builder setMask( return this; } /** + * + * ** The fields to return. If not set, returns all fields. * If a document has a field that is not present in this mask, that field will @@ -1250,7 +1341,9 @@ public Builder mergeMask(com.google.firestore.v1beta1.DocumentMask value) { if (maskBuilder_ == null) { if (mask_ != null) { mask_ = - com.google.firestore.v1beta1.DocumentMask.newBuilder(mask_).mergeFrom(value).buildPartial(); + com.google.firestore.v1beta1.DocumentMask.newBuilder(mask_) + .mergeFrom(value) + .buildPartial(); } else { mask_ = value; } @@ -1262,6 +1355,8 @@ public Builder mergeMask(com.google.firestore.v1beta1.DocumentMask value) { return this; } /** + * + * ** The fields to return. If not set, returns all fields. * If a document has a field that is not present in this mask, that field will @@ -1282,6 +1377,8 @@ public Builder clearMask() { return this; } /** + * + * ** The fields to return. If not set, returns all fields. * If a document has a field that is not present in this mask, that field will @@ -1291,11 +1388,13 @@ public Builder clearMask() { *.google.firestore.v1beta1.DocumentMask mask = 3;
*/ public com.google.firestore.v1beta1.DocumentMask.Builder getMaskBuilder() { - + onChanged(); return getMaskFieldBuilder().getBuilder(); } /** + * + * ** The fields to return. If not set, returns all fields. * If a document has a field that is not present in this mask, that field will @@ -1308,11 +1407,14 @@ public com.google.firestore.v1beta1.DocumentMaskOrBuilder getMaskOrBuilder() { if (maskBuilder_ != null) { return maskBuilder_.getMessageOrBuilder(); } else { - return mask_ == null ? - com.google.firestore.v1beta1.DocumentMask.getDefaultInstance() : mask_; + return mask_ == null + ? com.google.firestore.v1beta1.DocumentMask.getDefaultInstance() + : mask_; } } /** + * + * ** The fields to return. If not set, returns all fields. * If a document has a field that is not present in this mask, that field will @@ -1322,20 +1424,25 @@ public com.google.firestore.v1beta1.DocumentMaskOrBuilder getMaskOrBuilder() { *.google.firestore.v1beta1.DocumentMask mask = 3;
*/ private com.google.protobuf.SingleFieldBuilderV3< - com.google.firestore.v1beta1.DocumentMask, com.google.firestore.v1beta1.DocumentMask.Builder, com.google.firestore.v1beta1.DocumentMaskOrBuilder> + com.google.firestore.v1beta1.DocumentMask, + com.google.firestore.v1beta1.DocumentMask.Builder, + com.google.firestore.v1beta1.DocumentMaskOrBuilder> getMaskFieldBuilder() { if (maskBuilder_ == null) { - maskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.firestore.v1beta1.DocumentMask, com.google.firestore.v1beta1.DocumentMask.Builder, com.google.firestore.v1beta1.DocumentMaskOrBuilder>( - getMask(), - getParentForChildren(), - isClean()); + maskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.v1beta1.DocumentMask, + com.google.firestore.v1beta1.DocumentMask.Builder, + com.google.firestore.v1beta1.DocumentMaskOrBuilder>( + getMask(), getParentForChildren(), isClean()); mask_ = null; } return maskBuilder_; } /** + * + * ** Reads documents in a transaction. *@@ -1349,6 +1456,8 @@ public com.google.protobuf.ByteString getTransaction() { return com.google.protobuf.ByteString.EMPTY; } /** + * + * ** Reads documents in a transaction. *@@ -1357,14 +1466,16 @@ public com.google.protobuf.ByteString getTransaction() { */ public Builder setTransaction(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - consistencySelectorCase_ = 4; + throw new NullPointerException(); + } + consistencySelectorCase_ = 4; consistencySelector_ = value; onChanged(); return this; } /** + * + * ** Reads documents in a transaction. *@@ -1381,8 +1492,13 @@ public Builder clearTransaction() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.firestore.v1beta1.TransactionOptions, com.google.firestore.v1beta1.TransactionOptions.Builder, com.google.firestore.v1beta1.TransactionOptionsOrBuilder> newTransactionBuilder_; + com.google.firestore.v1beta1.TransactionOptions, + com.google.firestore.v1beta1.TransactionOptions.Builder, + com.google.firestore.v1beta1.TransactionOptionsOrBuilder> + newTransactionBuilder_; /** + * + * ** Starts a new transaction and reads the documents. * Defaults to a read-only transaction. @@ -1396,6 +1512,8 @@ public boolean hasNewTransaction() { return consistencySelectorCase_ == 5; } /** + * + * ** Starts a new transaction and reads the documents. * Defaults to a read-only transaction. @@ -1419,6 +1537,8 @@ public com.google.firestore.v1beta1.TransactionOptions getNewTransaction() { } } /** + * + * ** Starts a new transaction and reads the documents. * Defaults to a read-only transaction. @@ -1442,6 +1562,8 @@ public Builder setNewTransaction(com.google.firestore.v1beta1.TransactionOptions return this; } /** + * + * ** Starts a new transaction and reads the documents. * Defaults to a read-only transaction. @@ -1463,6 +1585,8 @@ public Builder setNewTransaction( return this; } /** + * + * ** Starts a new transaction and reads the documents. * Defaults to a read-only transaction. @@ -1474,10 +1598,14 @@ public Builder setNewTransaction( */ public Builder mergeNewTransaction(com.google.firestore.v1beta1.TransactionOptions value) { if (newTransactionBuilder_ == null) { - if (consistencySelectorCase_ == 5 && - consistencySelector_ != com.google.firestore.v1beta1.TransactionOptions.getDefaultInstance()) { - consistencySelector_ = com.google.firestore.v1beta1.TransactionOptions.newBuilder((com.google.firestore.v1beta1.TransactionOptions) consistencySelector_) - .mergeFrom(value).buildPartial(); + if (consistencySelectorCase_ == 5 + && consistencySelector_ + != com.google.firestore.v1beta1.TransactionOptions.getDefaultInstance()) { + consistencySelector_ = + com.google.firestore.v1beta1.TransactionOptions.newBuilder( + (com.google.firestore.v1beta1.TransactionOptions) consistencySelector_) + .mergeFrom(value) + .buildPartial(); } else { consistencySelector_ = value; } @@ -1492,6 +1620,8 @@ public Builder mergeNewTransaction(com.google.firestore.v1beta1.TransactionOptio return this; } /** + * + * ** Starts a new transaction and reads the documents. * Defaults to a read-only transaction. @@ -1518,6 +1648,8 @@ public Builder clearNewTransaction() { return this; } /** + * + * ** Starts a new transaction and reads the documents. * Defaults to a read-only transaction. @@ -1531,6 +1663,8 @@ public com.google.firestore.v1beta1.TransactionOptions.Builder getNewTransaction return getNewTransactionFieldBuilder().getBuilder(); } /** + * + * ** Starts a new transaction and reads the documents. * Defaults to a read-only transaction. @@ -1551,6 +1685,8 @@ public com.google.firestore.v1beta1.TransactionOptionsOrBuilder getNewTransactio } } /** + * + * ** Starts a new transaction and reads the documents. * Defaults to a read-only transaction. @@ -1561,27 +1697,39 @@ public com.google.firestore.v1beta1.TransactionOptionsOrBuilder getNewTransactio *.google.firestore.v1beta1.TransactionOptions new_transaction = 5;
*/ private com.google.protobuf.SingleFieldBuilderV3< - com.google.firestore.v1beta1.TransactionOptions, com.google.firestore.v1beta1.TransactionOptions.Builder, com.google.firestore.v1beta1.TransactionOptionsOrBuilder> + com.google.firestore.v1beta1.TransactionOptions, + com.google.firestore.v1beta1.TransactionOptions.Builder, + com.google.firestore.v1beta1.TransactionOptionsOrBuilder> getNewTransactionFieldBuilder() { if (newTransactionBuilder_ == null) { if (!(consistencySelectorCase_ == 5)) { - consistencySelector_ = com.google.firestore.v1beta1.TransactionOptions.getDefaultInstance(); + consistencySelector_ = + com.google.firestore.v1beta1.TransactionOptions.getDefaultInstance(); } - newTransactionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.firestore.v1beta1.TransactionOptions, com.google.firestore.v1beta1.TransactionOptions.Builder, com.google.firestore.v1beta1.TransactionOptionsOrBuilder>( + newTransactionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.v1beta1.TransactionOptions, + com.google.firestore.v1beta1.TransactionOptions.Builder, + com.google.firestore.v1beta1.TransactionOptionsOrBuilder>( (com.google.firestore.v1beta1.TransactionOptions) consistencySelector_, getParentForChildren(), isClean()); consistencySelector_ = null; } consistencySelectorCase_ = 5; - onChanged();; + onChanged(); + ; return newTransactionBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + readTimeBuilder_; /** + * + * ** Reads documents as they were at the given time. * This may not be older than 60 seconds. @@ -1593,6 +1741,8 @@ public boolean hasReadTime() { return consistencySelectorCase_ == 7; } /** + * + * ** Reads documents as they were at the given time. * This may not be older than 60 seconds. @@ -1614,6 +1764,8 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** + * + * ** Reads documents as they were at the given time. * This may not be older than 60 seconds. @@ -1635,6 +1787,8 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * ** Reads documents as they were at the given time. * This may not be older than 60 seconds. @@ -1642,8 +1796,7 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { * *.google.protobuf.Timestamp read_time = 7;
*/ - public Builder setReadTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (readTimeBuilder_ == null) { consistencySelector_ = builderForValue.build(); onChanged(); @@ -1654,6 +1807,8 @@ public Builder setReadTime( return this; } /** + * + * ** Reads documents as they were at the given time. * This may not be older than 60 seconds. @@ -1663,10 +1818,13 @@ public Builder setReadTime( */ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { if (readTimeBuilder_ == null) { - if (consistencySelectorCase_ == 7 && - consistencySelector_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - consistencySelector_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) consistencySelector_) - .mergeFrom(value).buildPartial(); + if (consistencySelectorCase_ == 7 + && consistencySelector_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + consistencySelector_ = + com.google.protobuf.Timestamp.newBuilder( + (com.google.protobuf.Timestamp) consistencySelector_) + .mergeFrom(value) + .buildPartial(); } else { consistencySelector_ = value; } @@ -1681,6 +1839,8 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * ** Reads documents as they were at the given time. * This may not be older than 60 seconds. @@ -1705,6 +1865,8 @@ public Builder clearReadTime() { return this; } /** + * + * ** Reads documents as they were at the given time. * This may not be older than 60 seconds. @@ -1716,6 +1878,8 @@ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { return getReadTimeFieldBuilder().getBuilder(); } /** + * + * ** Reads documents as they were at the given time. * This may not be older than 60 seconds. @@ -1734,6 +1898,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { } } /** + * + * ** Reads documents as they were at the given time. * This may not be older than 60 seconds. @@ -1742,26 +1908,32 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { *.google.protobuf.Timestamp read_time = 7;
*/ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getReadTimeFieldBuilder() { if (readTimeBuilder_ == null) { if (!(consistencySelectorCase_ == 7)) { consistencySelector_ = com.google.protobuf.Timestamp.getDefaultInstance(); } - readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + readTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( (com.google.protobuf.Timestamp) consistencySelector_, getParentForChildren(), isClean()); consistencySelector_ = null; } consistencySelectorCase_ = 7; - onChanged();; + onChanged(); + ; return readTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @@ -1771,12 +1943,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.firestore.v1beta1.BatchGetDocumentsRequest) } // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.BatchGetDocumentsRequest) private static final com.google.firestore.v1beta1.BatchGetDocumentsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.firestore.v1beta1.BatchGetDocumentsRequest(); } @@ -1785,16 +1957,16 @@ public static com.google.firestore.v1beta1.BatchGetDocumentsRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser- PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override - public BatchGetDocumentsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchGetDocumentsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser () { + @java.lang.Override + public BatchGetDocumentsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchGetDocumentsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1809,6 +1981,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.firestore.v1beta1.BatchGetDocumentsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/BatchGetDocumentsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/BatchGetDocumentsRequestOrBuilder.java index 86d067624e8e..2c5e2af94671 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/BatchGetDocumentsRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/BatchGetDocumentsRequestOrBuilder.java @@ -3,11 +3,14 @@ package com.google.firestore.v1beta1; -public interface BatchGetDocumentsRequestOrBuilder extends +public interface BatchGetDocumentsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.firestore.v1beta1.BatchGetDocumentsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * * * The database name. In the format: * `projects/{project_id}/databases/{database_id}`. @@ -17,6 +20,8 @@ public interface BatchGetDocumentsRequestOrBuilder extends */ java.lang.String getDatabase(); /** + * + * ** The database name. In the format: * `projects/{project_id}/databases/{database_id}`. @@ -24,10 +29,11 @@ public interface BatchGetDocumentsRequestOrBuilder extends * *string database = 1;
*/ - com.google.protobuf.ByteString - getDatabaseBytes(); + com.google.protobuf.ByteString getDatabaseBytes(); /** + * + * ** The names of the documents to retrieve. In the format: * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. @@ -37,9 +43,10 @@ public interface BatchGetDocumentsRequestOrBuilder extends * *repeated string documents = 2;
*/ - java.util.List- getDocumentsList(); + java.util.List getDocumentsList(); /** + * + * * * The names of the documents to retrieve. In the format: * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. @@ -51,6 +58,8 @@ public interface BatchGetDocumentsRequestOrBuilder extends */ int getDocumentsCount(); /** + * + * ** The names of the documents to retrieve. In the format: * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. @@ -62,6 +71,8 @@ public interface BatchGetDocumentsRequestOrBuilder extends */ java.lang.String getDocuments(int index); /** + * + * ** The names of the documents to retrieve. In the format: * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. @@ -71,10 +82,11 @@ public interface BatchGetDocumentsRequestOrBuilder extends * *repeated string documents = 2;
*/ - com.google.protobuf.ByteString - getDocumentsBytes(int index); + com.google.protobuf.ByteString getDocumentsBytes(int index); /** + * + * ** The fields to return. If not set, returns all fields. * If a document has a field that is not present in this mask, that field will @@ -85,6 +97,8 @@ public interface BatchGetDocumentsRequestOrBuilder extends */ boolean hasMask(); /** + * + * ** The fields to return. If not set, returns all fields. * If a document has a field that is not present in this mask, that field will @@ -95,6 +109,8 @@ public interface BatchGetDocumentsRequestOrBuilder extends */ com.google.firestore.v1beta1.DocumentMask getMask(); /** + * + * ** The fields to return. If not set, returns all fields. * If a document has a field that is not present in this mask, that field will @@ -106,6 +122,8 @@ public interface BatchGetDocumentsRequestOrBuilder extends com.google.firestore.v1beta1.DocumentMaskOrBuilder getMaskOrBuilder(); /** + * + * ** Reads documents in a transaction. *@@ -115,6 +133,8 @@ public interface BatchGetDocumentsRequestOrBuilder extends com.google.protobuf.ByteString getTransaction(); /** + * + * ** Starts a new transaction and reads the documents. * Defaults to a read-only transaction. @@ -126,6 +146,8 @@ public interface BatchGetDocumentsRequestOrBuilder extends */ boolean hasNewTransaction(); /** + * + * ** Starts a new transaction and reads the documents. * Defaults to a read-only transaction. @@ -137,6 +159,8 @@ public interface BatchGetDocumentsRequestOrBuilder extends */ com.google.firestore.v1beta1.TransactionOptions getNewTransaction(); /** + * + * *