com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto-google-cloud-document-ai-v1beta3 Show documentation
Show all versions of proto-google-cloud-document-ai-v1beta3 Show documentation
PROTO library for proto-google-cloud-document-ai-v1beta3
/*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/documentai/v1beta3/document_service.proto
// Protobuf Java Version: 3.25.2
package com.google.cloud.documentai.v1beta3;
/** Protobuf type {@code google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata} */
public final class BatchDeleteDocumentsMetadata extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata)
BatchDeleteDocumentsMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use BatchDeleteDocumentsMetadata.newBuilder() to construct.
private BatchDeleteDocumentsMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BatchDeleteDocumentsMetadata() {
individualBatchDeleteStatuses_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new BatchDeleteDocumentsMetadata();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.documentai.v1beta3.DocumentAiDocumentService
.internal_static_google_cloud_documentai_v1beta3_BatchDeleteDocumentsMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.documentai.v1beta3.DocumentAiDocumentService
.internal_static_google_cloud_documentai_v1beta3_BatchDeleteDocumentsMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.class,
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.Builder.class);
}
public interface IndividualBatchDeleteStatusOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* The document id of the document.
*
*
* .google.cloud.documentai.v1beta3.DocumentId document_id = 1;
*
* @return Whether the documentId field is set.
*/
boolean hasDocumentId();
/**
*
*
*
* The document id of the document.
*
*
* .google.cloud.documentai.v1beta3.DocumentId document_id = 1;
*
* @return The documentId.
*/
com.google.cloud.documentai.v1beta3.DocumentId getDocumentId();
/**
*
*
*
* The document id of the document.
*
*
* .google.cloud.documentai.v1beta3.DocumentId document_id = 1;
*/
com.google.cloud.documentai.v1beta3.DocumentIdOrBuilder getDocumentIdOrBuilder();
/**
*
*
*
* The status of deleting the document in storage.
*
*
* .google.rpc.Status status = 2;
*
* @return Whether the status field is set.
*/
boolean hasStatus();
/**
*
*
*
* The status of deleting the document in storage.
*
*
* .google.rpc.Status status = 2;
*
* @return The status.
*/
com.google.rpc.Status getStatus();
/**
*
*
*
* The status of deleting the document in storage.
*
*
* .google.rpc.Status status = 2;
*/
com.google.rpc.StatusOrBuilder getStatusOrBuilder();
}
/**
*
*
*
* The status of each individual document in the batch delete process.
*
*
* Protobuf type {@code
* google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus}
*/
public static final class IndividualBatchDeleteStatus
extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus)
IndividualBatchDeleteStatusOrBuilder {
private static final long serialVersionUID = 0L;
// Use IndividualBatchDeleteStatus.newBuilder() to construct.
private IndividualBatchDeleteStatus(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IndividualBatchDeleteStatus() {}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new IndividualBatchDeleteStatus();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.documentai.v1beta3.DocumentAiDocumentService
.internal_static_google_cloud_documentai_v1beta3_BatchDeleteDocumentsMetadata_IndividualBatchDeleteStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.documentai.v1beta3.DocumentAiDocumentService
.internal_static_google_cloud_documentai_v1beta3_BatchDeleteDocumentsMetadata_IndividualBatchDeleteStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus.class,
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus.Builder.class);
}
private int bitField0_;
public static final int DOCUMENT_ID_FIELD_NUMBER = 1;
private com.google.cloud.documentai.v1beta3.DocumentId documentId_;
/**
*
*
*
* The document id of the document.
*
*
* .google.cloud.documentai.v1beta3.DocumentId document_id = 1;
*
* @return Whether the documentId field is set.
*/
@java.lang.Override
public boolean hasDocumentId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* The document id of the document.
*
*
* .google.cloud.documentai.v1beta3.DocumentId document_id = 1;
*
* @return The documentId.
*/
@java.lang.Override
public com.google.cloud.documentai.v1beta3.DocumentId getDocumentId() {
return documentId_ == null
? com.google.cloud.documentai.v1beta3.DocumentId.getDefaultInstance()
: documentId_;
}
/**
*
*
*
* The document id of the document.
*
*
* .google.cloud.documentai.v1beta3.DocumentId document_id = 1;
*/
@java.lang.Override
public com.google.cloud.documentai.v1beta3.DocumentIdOrBuilder getDocumentIdOrBuilder() {
return documentId_ == null
? com.google.cloud.documentai.v1beta3.DocumentId.getDefaultInstance()
: documentId_;
}
public static final int STATUS_FIELD_NUMBER = 2;
private com.google.rpc.Status status_;
/**
*
*
*
* The status of deleting the document in storage.
*
*
* .google.rpc.Status status = 2;
*
* @return Whether the status field is set.
*/
@java.lang.Override
public boolean hasStatus() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* The status of deleting the document in storage.
*
*
* .google.rpc.Status status = 2;
*
* @return The status.
*/
@java.lang.Override
public com.google.rpc.Status getStatus() {
return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_;
}
/**
*
*
*
* The status of deleting the document in storage.
*
*
* .google.rpc.Status status = 2;
*/
@java.lang.Override
public com.google.rpc.StatusOrBuilder getStatusOrBuilder() {
return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getDocumentId());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getStatus());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDocumentId());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStatus());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj
instanceof
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus)) {
return super.equals(obj);
}
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus
other =
(com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus)
obj;
if (hasDocumentId() != other.hasDocumentId()) return false;
if (hasDocumentId()) {
if (!getDocumentId().equals(other.getDocumentId())) return false;
}
if (hasStatus() != other.hasStatus()) return false;
if (hasStatus()) {
if (!getStatus().equals(other.getStatus())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasDocumentId()) {
hash = (37 * hash) + DOCUMENT_ID_FIELD_NUMBER;
hash = (53 * hash) + getDocumentId().hashCode();
}
if (hasStatus()) {
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + getStatus().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus
parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus
parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus
parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus
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.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus
parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus
parseFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus
parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus
parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus
parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus
parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus
prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* The status of each individual document in the batch delete process.
*
*
* Protobuf type {@code
* google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus)
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatusOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.documentai.v1beta3.DocumentAiDocumentService
.internal_static_google_cloud_documentai_v1beta3_BatchDeleteDocumentsMetadata_IndividualBatchDeleteStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.documentai.v1beta3.DocumentAiDocumentService
.internal_static_google_cloud_documentai_v1beta3_BatchDeleteDocumentsMetadata_IndividualBatchDeleteStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus.class,
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus.Builder.class);
}
// Construct using
// com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getDocumentIdFieldBuilder();
getStatusFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
documentId_ = null;
if (documentIdBuilder_ != null) {
documentIdBuilder_.dispose();
documentIdBuilder_ = null;
}
status_ = null;
if (statusBuilder_ != null) {
statusBuilder_.dispose();
statusBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.documentai.v1beta3.DocumentAiDocumentService
.internal_static_google_cloud_documentai_v1beta3_BatchDeleteDocumentsMetadata_IndividualBatchDeleteStatus_descriptor;
}
@java.lang.Override
public com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus
getDefaultInstanceForType() {
return com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus
build() {
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus
result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus
buildPartial() {
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus
result =
new com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus
result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.documentId_ =
documentIdBuilder_ == null ? documentId_ : documentIdBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build();
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other
instanceof
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus) {
return mergeFrom(
(com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus)
other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus
other) {
if (other
== com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus.getDefaultInstance()) return this;
if (other.hasDocumentId()) {
mergeDocumentId(other.getDocumentId());
}
if (other.hasStatus()) {
mergeStatus(other.getStatus());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
input.readMessage(getDocumentIdFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.cloud.documentai.v1beta3.DocumentId documentId_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.documentai.v1beta3.DocumentId,
com.google.cloud.documentai.v1beta3.DocumentId.Builder,
com.google.cloud.documentai.v1beta3.DocumentIdOrBuilder>
documentIdBuilder_;
/**
*
*
*
* The document id of the document.
*
*
* .google.cloud.documentai.v1beta3.DocumentId document_id = 1;
*
* @return Whether the documentId field is set.
*/
public boolean hasDocumentId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* The document id of the document.
*
*
* .google.cloud.documentai.v1beta3.DocumentId document_id = 1;
*
* @return The documentId.
*/
public com.google.cloud.documentai.v1beta3.DocumentId getDocumentId() {
if (documentIdBuilder_ == null) {
return documentId_ == null
? com.google.cloud.documentai.v1beta3.DocumentId.getDefaultInstance()
: documentId_;
} else {
return documentIdBuilder_.getMessage();
}
}
/**
*
*
*
* The document id of the document.
*
*
* .google.cloud.documentai.v1beta3.DocumentId document_id = 1;
*/
public Builder setDocumentId(com.google.cloud.documentai.v1beta3.DocumentId value) {
if (documentIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
documentId_ = value;
} else {
documentIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* The document id of the document.
*
*
* .google.cloud.documentai.v1beta3.DocumentId document_id = 1;
*/
public Builder setDocumentId(
com.google.cloud.documentai.v1beta3.DocumentId.Builder builderForValue) {
if (documentIdBuilder_ == null) {
documentId_ = builderForValue.build();
} else {
documentIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* The document id of the document.
*
*
* .google.cloud.documentai.v1beta3.DocumentId document_id = 1;
*/
public Builder mergeDocumentId(com.google.cloud.documentai.v1beta3.DocumentId value) {
if (documentIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)
&& documentId_ != null
&& documentId_
!= com.google.cloud.documentai.v1beta3.DocumentId.getDefaultInstance()) {
getDocumentIdBuilder().mergeFrom(value);
} else {
documentId_ = value;
}
} else {
documentIdBuilder_.mergeFrom(value);
}
if (documentId_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
*
*
* The document id of the document.
*
*
* .google.cloud.documentai.v1beta3.DocumentId document_id = 1;
*/
public Builder clearDocumentId() {
bitField0_ = (bitField0_ & ~0x00000001);
documentId_ = null;
if (documentIdBuilder_ != null) {
documentIdBuilder_.dispose();
documentIdBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* The document id of the document.
*
*
* .google.cloud.documentai.v1beta3.DocumentId document_id = 1;
*/
public com.google.cloud.documentai.v1beta3.DocumentId.Builder getDocumentIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getDocumentIdFieldBuilder().getBuilder();
}
/**
*
*
*
* The document id of the document.
*
*
* .google.cloud.documentai.v1beta3.DocumentId document_id = 1;
*/
public com.google.cloud.documentai.v1beta3.DocumentIdOrBuilder getDocumentIdOrBuilder() {
if (documentIdBuilder_ != null) {
return documentIdBuilder_.getMessageOrBuilder();
} else {
return documentId_ == null
? com.google.cloud.documentai.v1beta3.DocumentId.getDefaultInstance()
: documentId_;
}
}
/**
*
*
*
* The document id of the document.
*
*
* .google.cloud.documentai.v1beta3.DocumentId document_id = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.documentai.v1beta3.DocumentId,
com.google.cloud.documentai.v1beta3.DocumentId.Builder,
com.google.cloud.documentai.v1beta3.DocumentIdOrBuilder>
getDocumentIdFieldBuilder() {
if (documentIdBuilder_ == null) {
documentIdBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.documentai.v1beta3.DocumentId,
com.google.cloud.documentai.v1beta3.DocumentId.Builder,
com.google.cloud.documentai.v1beta3.DocumentIdOrBuilder>(
getDocumentId(), getParentForChildren(), isClean());
documentId_ = null;
}
return documentIdBuilder_;
}
private com.google.rpc.Status status_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
statusBuilder_;
/**
*
*
*
* The status of deleting the document in storage.
*
*
* .google.rpc.Status status = 2;
*
* @return Whether the status field is set.
*/
public boolean hasStatus() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* The status of deleting the document in storage.
*
*
* .google.rpc.Status status = 2;
*
* @return The status.
*/
public com.google.rpc.Status getStatus() {
if (statusBuilder_ == null) {
return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_;
} else {
return statusBuilder_.getMessage();
}
}
/**
*
*
*
* The status of deleting the document in storage.
*
*
* .google.rpc.Status status = 2;
*/
public Builder setStatus(com.google.rpc.Status value) {
if (statusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
status_ = value;
} else {
statusBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* The status of deleting the document in storage.
*
*
* .google.rpc.Status status = 2;
*/
public Builder setStatus(com.google.rpc.Status.Builder builderForValue) {
if (statusBuilder_ == null) {
status_ = builderForValue.build();
} else {
statusBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* The status of deleting the document in storage.
*
*
* .google.rpc.Status status = 2;
*/
public Builder mergeStatus(com.google.rpc.Status value) {
if (statusBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)
&& status_ != null
&& status_ != com.google.rpc.Status.getDefaultInstance()) {
getStatusBuilder().mergeFrom(value);
} else {
status_ = value;
}
} else {
statusBuilder_.mergeFrom(value);
}
if (status_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
*
*
* The status of deleting the document in storage.
*
*
* .google.rpc.Status status = 2;
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000002);
status_ = null;
if (statusBuilder_ != null) {
statusBuilder_.dispose();
statusBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* The status of deleting the document in storage.
*
*
* .google.rpc.Status status = 2;
*/
public com.google.rpc.Status.Builder getStatusBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getStatusFieldBuilder().getBuilder();
}
/**
*
*
*
* The status of deleting the document in storage.
*
*
* .google.rpc.Status status = 2;
*/
public com.google.rpc.StatusOrBuilder getStatusOrBuilder() {
if (statusBuilder_ != null) {
return statusBuilder_.getMessageOrBuilder();
} else {
return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_;
}
}
/**
*
*
*
* The status of deleting the document in storage.
*
*
* .google.rpc.Status status = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
getStatusFieldBuilder() {
if (statusBuilder_ == null) {
statusBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.rpc.Status,
com.google.rpc.Status.Builder,
com.google.rpc.StatusOrBuilder>(getStatus(), getParentForChildren(), isClean());
status_ = null;
}
return statusBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus)
}
// @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus)
private static final com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE =
new com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus();
}
public static com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IndividualBatchDeleteStatus parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException()
.setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int COMMON_METADATA_FIELD_NUMBER = 1;
private com.google.cloud.documentai.v1beta3.CommonOperationMetadata commonMetadata_;
/**
*
*
*
* The basic metadata of the long-running operation.
*
*
* .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1;
*
* @return Whether the commonMetadata field is set.
*/
@java.lang.Override
public boolean hasCommonMetadata() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* The basic metadata of the long-running operation.
*
*
* .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1;
*
* @return The commonMetadata.
*/
@java.lang.Override
public com.google.cloud.documentai.v1beta3.CommonOperationMetadata getCommonMetadata() {
return commonMetadata_ == null
? com.google.cloud.documentai.v1beta3.CommonOperationMetadata.getDefaultInstance()
: commonMetadata_;
}
/**
*
*
*
* The basic metadata of the long-running operation.
*
*
* .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1;
*/
@java.lang.Override
public com.google.cloud.documentai.v1beta3.CommonOperationMetadataOrBuilder
getCommonMetadataOrBuilder() {
return commonMetadata_ == null
? com.google.cloud.documentai.v1beta3.CommonOperationMetadata.getDefaultInstance()
: commonMetadata_;
}
public static final int INDIVIDUAL_BATCH_DELETE_STATUSES_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List<
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus>
individualBatchDeleteStatuses_;
/**
*
*
*
* The list of response details of each document.
*
*
*
* repeated .google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus individual_batch_delete_statuses = 2;
*
*/
@java.lang.Override
public java.util.List<
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus>
getIndividualBatchDeleteStatusesList() {
return individualBatchDeleteStatuses_;
}
/**
*
*
*
* The list of response details of each document.
*
*
*
* repeated .google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus individual_batch_delete_statuses = 2;
*
*/
@java.lang.Override
public java.util.List<
? extends
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatusOrBuilder>
getIndividualBatchDeleteStatusesOrBuilderList() {
return individualBatchDeleteStatuses_;
}
/**
*
*
*
* The list of response details of each document.
*
*
*
* repeated .google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus individual_batch_delete_statuses = 2;
*
*/
@java.lang.Override
public int getIndividualBatchDeleteStatusesCount() {
return individualBatchDeleteStatuses_.size();
}
/**
*
*
*
* The list of response details of each document.
*
*
*
* repeated .google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus individual_batch_delete_statuses = 2;
*
*/
@java.lang.Override
public com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus
getIndividualBatchDeleteStatuses(int index) {
return individualBatchDeleteStatuses_.get(index);
}
/**
*
*
*
* The list of response details of each document.
*
*
*
* repeated .google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus individual_batch_delete_statuses = 2;
*
*/
@java.lang.Override
public com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatusOrBuilder
getIndividualBatchDeleteStatusesOrBuilder(int index) {
return individualBatchDeleteStatuses_.get(index);
}
public static final int TOTAL_DOCUMENT_COUNT_FIELD_NUMBER = 3;
private int totalDocumentCount_ = 0;
/**
*
*
*
* Total number of documents deleting from dataset.
*
*
* int32 total_document_count = 3;
*
* @return The totalDocumentCount.
*/
@java.lang.Override
public int getTotalDocumentCount() {
return totalDocumentCount_;
}
public static final int ERROR_DOCUMENT_COUNT_FIELD_NUMBER = 4;
private int errorDocumentCount_ = 0;
/**
*
*
*
* Total number of documents that failed to be deleted in storage.
*
*
* int32 error_document_count = 4;
*
* @return The errorDocumentCount.
*/
@java.lang.Override
public int getErrorDocumentCount() {
return errorDocumentCount_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getCommonMetadata());
}
for (int i = 0; i < individualBatchDeleteStatuses_.size(); i++) {
output.writeMessage(2, individualBatchDeleteStatuses_.get(i));
}
if (totalDocumentCount_ != 0) {
output.writeInt32(3, totalDocumentCount_);
}
if (errorDocumentCount_ != 0) {
output.writeInt32(4, errorDocumentCount_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCommonMetadata());
}
for (int i = 0; i < individualBatchDeleteStatuses_.size(); i++) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
2, individualBatchDeleteStatuses_.get(i));
}
if (totalDocumentCount_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalDocumentCount_);
}
if (errorDocumentCount_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, errorDocumentCount_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata)) {
return super.equals(obj);
}
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata other =
(com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata) obj;
if (hasCommonMetadata() != other.hasCommonMetadata()) return false;
if (hasCommonMetadata()) {
if (!getCommonMetadata().equals(other.getCommonMetadata())) return false;
}
if (!getIndividualBatchDeleteStatusesList()
.equals(other.getIndividualBatchDeleteStatusesList())) return false;
if (getTotalDocumentCount() != other.getTotalDocumentCount()) return false;
if (getErrorDocumentCount() != other.getErrorDocumentCount()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasCommonMetadata()) {
hash = (37 * hash) + COMMON_METADATA_FIELD_NUMBER;
hash = (53 * hash) + getCommonMetadata().hashCode();
}
if (getIndividualBatchDeleteStatusesCount() > 0) {
hash = (37 * hash) + INDIVIDUAL_BATCH_DELETE_STATUSES_FIELD_NUMBER;
hash = (53 * hash) + getIndividualBatchDeleteStatusesList().hashCode();
}
hash = (37 * hash) + TOTAL_DOCUMENT_COUNT_FIELD_NUMBER;
hash = (53 * hash) + getTotalDocumentCount();
hash = (37 * hash) + ERROR_DOCUMENT_COUNT_FIELD_NUMBER;
hash = (53 * hash) + getErrorDocumentCount();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata 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.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/** Protobuf type {@code google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata} */
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata)
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.documentai.v1beta3.DocumentAiDocumentService
.internal_static_google_cloud_documentai_v1beta3_BatchDeleteDocumentsMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.documentai.v1beta3.DocumentAiDocumentService
.internal_static_google_cloud_documentai_v1beta3_BatchDeleteDocumentsMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.class,
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.Builder.class);
}
// Construct using com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getCommonMetadataFieldBuilder();
getIndividualBatchDeleteStatusesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
commonMetadata_ = null;
if (commonMetadataBuilder_ != null) {
commonMetadataBuilder_.dispose();
commonMetadataBuilder_ = null;
}
if (individualBatchDeleteStatusesBuilder_ == null) {
individualBatchDeleteStatuses_ = java.util.Collections.emptyList();
} else {
individualBatchDeleteStatuses_ = null;
individualBatchDeleteStatusesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
totalDocumentCount_ = 0;
errorDocumentCount_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.documentai.v1beta3.DocumentAiDocumentService
.internal_static_google_cloud_documentai_v1beta3_BatchDeleteDocumentsMetadata_descriptor;
}
@java.lang.Override
public com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
getDefaultInstanceForType() {
return com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata build() {
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata buildPartial() {
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata result =
new com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartialRepeatedFields(
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata result) {
if (individualBatchDeleteStatusesBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
individualBatchDeleteStatuses_ =
java.util.Collections.unmodifiableList(individualBatchDeleteStatuses_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.individualBatchDeleteStatuses_ = individualBatchDeleteStatuses_;
} else {
result.individualBatchDeleteStatuses_ = individualBatchDeleteStatusesBuilder_.build();
}
}
private void buildPartial0(
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.commonMetadata_ =
commonMetadataBuilder_ == null ? commonMetadata_ : commonMetadataBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.totalDocumentCount_ = totalDocumentCount_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.errorDocumentCount_ = errorDocumentCount_;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata) {
return mergeFrom((com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata other) {
if (other
== com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.getDefaultInstance())
return this;
if (other.hasCommonMetadata()) {
mergeCommonMetadata(other.getCommonMetadata());
}
if (individualBatchDeleteStatusesBuilder_ == null) {
if (!other.individualBatchDeleteStatuses_.isEmpty()) {
if (individualBatchDeleteStatuses_.isEmpty()) {
individualBatchDeleteStatuses_ = other.individualBatchDeleteStatuses_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureIndividualBatchDeleteStatusesIsMutable();
individualBatchDeleteStatuses_.addAll(other.individualBatchDeleteStatuses_);
}
onChanged();
}
} else {
if (!other.individualBatchDeleteStatuses_.isEmpty()) {
if (individualBatchDeleteStatusesBuilder_.isEmpty()) {
individualBatchDeleteStatusesBuilder_.dispose();
individualBatchDeleteStatusesBuilder_ = null;
individualBatchDeleteStatuses_ = other.individualBatchDeleteStatuses_;
bitField0_ = (bitField0_ & ~0x00000002);
individualBatchDeleteStatusesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getIndividualBatchDeleteStatusesFieldBuilder()
: null;
} else {
individualBatchDeleteStatusesBuilder_.addAllMessages(
other.individualBatchDeleteStatuses_);
}
}
}
if (other.getTotalDocumentCount() != 0) {
setTotalDocumentCount(other.getTotalDocumentCount());
}
if (other.getErrorDocumentCount() != 0) {
setErrorDocumentCount(other.getErrorDocumentCount());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
input.readMessage(getCommonMetadataFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus
m =
input.readMessage(
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus.parser(),
extensionRegistry);
if (individualBatchDeleteStatusesBuilder_ == null) {
ensureIndividualBatchDeleteStatusesIsMutable();
individualBatchDeleteStatuses_.add(m);
} else {
individualBatchDeleteStatusesBuilder_.addMessage(m);
}
break;
} // case 18
case 24:
{
totalDocumentCount_ = input.readInt32();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32:
{
errorDocumentCount_ = input.readInt32();
bitField0_ |= 0x00000008;
break;
} // case 32
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.cloud.documentai.v1beta3.CommonOperationMetadata commonMetadata_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.documentai.v1beta3.CommonOperationMetadata,
com.google.cloud.documentai.v1beta3.CommonOperationMetadata.Builder,
com.google.cloud.documentai.v1beta3.CommonOperationMetadataOrBuilder>
commonMetadataBuilder_;
/**
*
*
*
* The basic metadata of the long-running operation.
*
*
* .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1;
*
* @return Whether the commonMetadata field is set.
*/
public boolean hasCommonMetadata() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* The basic metadata of the long-running operation.
*
*
* .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1;
*
* @return The commonMetadata.
*/
public com.google.cloud.documentai.v1beta3.CommonOperationMetadata getCommonMetadata() {
if (commonMetadataBuilder_ == null) {
return commonMetadata_ == null
? com.google.cloud.documentai.v1beta3.CommonOperationMetadata.getDefaultInstance()
: commonMetadata_;
} else {
return commonMetadataBuilder_.getMessage();
}
}
/**
*
*
*
* The basic metadata of the long-running operation.
*
*
* .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1;
*/
public Builder setCommonMetadata(
com.google.cloud.documentai.v1beta3.CommonOperationMetadata value) {
if (commonMetadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
commonMetadata_ = value;
} else {
commonMetadataBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* The basic metadata of the long-running operation.
*
*
* .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1;
*/
public Builder setCommonMetadata(
com.google.cloud.documentai.v1beta3.CommonOperationMetadata.Builder builderForValue) {
if (commonMetadataBuilder_ == null) {
commonMetadata_ = builderForValue.build();
} else {
commonMetadataBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* The basic metadata of the long-running operation.
*
*
* .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1;
*/
public Builder mergeCommonMetadata(
com.google.cloud.documentai.v1beta3.CommonOperationMetadata value) {
if (commonMetadataBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)
&& commonMetadata_ != null
&& commonMetadata_
!= com.google.cloud.documentai.v1beta3.CommonOperationMetadata
.getDefaultInstance()) {
getCommonMetadataBuilder().mergeFrom(value);
} else {
commonMetadata_ = value;
}
} else {
commonMetadataBuilder_.mergeFrom(value);
}
if (commonMetadata_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
*
*
* The basic metadata of the long-running operation.
*
*
* .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1;
*/
public Builder clearCommonMetadata() {
bitField0_ = (bitField0_ & ~0x00000001);
commonMetadata_ = null;
if (commonMetadataBuilder_ != null) {
commonMetadataBuilder_.dispose();
commonMetadataBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* The basic metadata of the long-running operation.
*
*
* .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1;
*/
public com.google.cloud.documentai.v1beta3.CommonOperationMetadata.Builder
getCommonMetadataBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getCommonMetadataFieldBuilder().getBuilder();
}
/**
*
*
*
* The basic metadata of the long-running operation.
*
*
* .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1;
*/
public com.google.cloud.documentai.v1beta3.CommonOperationMetadataOrBuilder
getCommonMetadataOrBuilder() {
if (commonMetadataBuilder_ != null) {
return commonMetadataBuilder_.getMessageOrBuilder();
} else {
return commonMetadata_ == null
? com.google.cloud.documentai.v1beta3.CommonOperationMetadata.getDefaultInstance()
: commonMetadata_;
}
}
/**
*
*
*
* The basic metadata of the long-running operation.
*
*
* .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.documentai.v1beta3.CommonOperationMetadata,
com.google.cloud.documentai.v1beta3.CommonOperationMetadata.Builder,
com.google.cloud.documentai.v1beta3.CommonOperationMetadataOrBuilder>
getCommonMetadataFieldBuilder() {
if (commonMetadataBuilder_ == null) {
commonMetadataBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.documentai.v1beta3.CommonOperationMetadata,
com.google.cloud.documentai.v1beta3.CommonOperationMetadata.Builder,
com.google.cloud.documentai.v1beta3.CommonOperationMetadataOrBuilder>(
getCommonMetadata(), getParentForChildren(), isClean());
commonMetadata_ = null;
}
return commonMetadataBuilder_;
}
private java.util.List<
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus>
individualBatchDeleteStatuses_ = java.util.Collections.emptyList();
private void ensureIndividualBatchDeleteStatusesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
individualBatchDeleteStatuses_ =
new java.util.ArrayList<
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus>(individualBatchDeleteStatuses_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus,
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus.Builder,
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatusOrBuilder>
individualBatchDeleteStatusesBuilder_;
/**
*
*
*
* The list of response details of each document.
*
*
*
* repeated .google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus individual_batch_delete_statuses = 2;
*
*/
public java.util.List<
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus>
getIndividualBatchDeleteStatusesList() {
if (individualBatchDeleteStatusesBuilder_ == null) {
return java.util.Collections.unmodifiableList(individualBatchDeleteStatuses_);
} else {
return individualBatchDeleteStatusesBuilder_.getMessageList();
}
}
/**
*
*
*
* The list of response details of each document.
*
*
*
* repeated .google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus individual_batch_delete_statuses = 2;
*
*/
public int getIndividualBatchDeleteStatusesCount() {
if (individualBatchDeleteStatusesBuilder_ == null) {
return individualBatchDeleteStatuses_.size();
} else {
return individualBatchDeleteStatusesBuilder_.getCount();
}
}
/**
*
*
*
* The list of response details of each document.
*
*
*
* repeated .google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus individual_batch_delete_statuses = 2;
*
*/
public com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus
getIndividualBatchDeleteStatuses(int index) {
if (individualBatchDeleteStatusesBuilder_ == null) {
return individualBatchDeleteStatuses_.get(index);
} else {
return individualBatchDeleteStatusesBuilder_.getMessage(index);
}
}
/**
*
*
*
* The list of response details of each document.
*
*
*
* repeated .google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus individual_batch_delete_statuses = 2;
*
*/
public Builder setIndividualBatchDeleteStatuses(
int index,
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus
value) {
if (individualBatchDeleteStatusesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIndividualBatchDeleteStatusesIsMutable();
individualBatchDeleteStatuses_.set(index, value);
onChanged();
} else {
individualBatchDeleteStatusesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* The list of response details of each document.
*
*
*
* repeated .google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus individual_batch_delete_statuses = 2;
*
*/
public Builder setIndividualBatchDeleteStatuses(
int index,
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus
.Builder
builderForValue) {
if (individualBatchDeleteStatusesBuilder_ == null) {
ensureIndividualBatchDeleteStatusesIsMutable();
individualBatchDeleteStatuses_.set(index, builderForValue.build());
onChanged();
} else {
individualBatchDeleteStatusesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* The list of response details of each document.
*
*
*
* repeated .google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus individual_batch_delete_statuses = 2;
*
*/
public Builder addIndividualBatchDeleteStatuses(
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus
value) {
if (individualBatchDeleteStatusesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIndividualBatchDeleteStatusesIsMutable();
individualBatchDeleteStatuses_.add(value);
onChanged();
} else {
individualBatchDeleteStatusesBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* The list of response details of each document.
*
*
*
* repeated .google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus individual_batch_delete_statuses = 2;
*
*/
public Builder addIndividualBatchDeleteStatuses(
int index,
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus
value) {
if (individualBatchDeleteStatusesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIndividualBatchDeleteStatusesIsMutable();
individualBatchDeleteStatuses_.add(index, value);
onChanged();
} else {
individualBatchDeleteStatusesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* The list of response details of each document.
*
*
*
* repeated .google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus individual_batch_delete_statuses = 2;
*
*/
public Builder addIndividualBatchDeleteStatuses(
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus
.Builder
builderForValue) {
if (individualBatchDeleteStatusesBuilder_ == null) {
ensureIndividualBatchDeleteStatusesIsMutable();
individualBatchDeleteStatuses_.add(builderForValue.build());
onChanged();
} else {
individualBatchDeleteStatusesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* The list of response details of each document.
*
*
*
* repeated .google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus individual_batch_delete_statuses = 2;
*
*/
public Builder addIndividualBatchDeleteStatuses(
int index,
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus
.Builder
builderForValue) {
if (individualBatchDeleteStatusesBuilder_ == null) {
ensureIndividualBatchDeleteStatusesIsMutable();
individualBatchDeleteStatuses_.add(index, builderForValue.build());
onChanged();
} else {
individualBatchDeleteStatusesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* The list of response details of each document.
*
*
*
* repeated .google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus individual_batch_delete_statuses = 2;
*
*/
public Builder addAllIndividualBatchDeleteStatuses(
java.lang.Iterable<
? extends
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus>
values) {
if (individualBatchDeleteStatusesBuilder_ == null) {
ensureIndividualBatchDeleteStatusesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, individualBatchDeleteStatuses_);
onChanged();
} else {
individualBatchDeleteStatusesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* The list of response details of each document.
*
*
*
* repeated .google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus individual_batch_delete_statuses = 2;
*
*/
public Builder clearIndividualBatchDeleteStatuses() {
if (individualBatchDeleteStatusesBuilder_ == null) {
individualBatchDeleteStatuses_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
individualBatchDeleteStatusesBuilder_.clear();
}
return this;
}
/**
*
*
*
* The list of response details of each document.
*
*
*
* repeated .google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus individual_batch_delete_statuses = 2;
*
*/
public Builder removeIndividualBatchDeleteStatuses(int index) {
if (individualBatchDeleteStatusesBuilder_ == null) {
ensureIndividualBatchDeleteStatusesIsMutable();
individualBatchDeleteStatuses_.remove(index);
onChanged();
} else {
individualBatchDeleteStatusesBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* The list of response details of each document.
*
*
*
* repeated .google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus individual_batch_delete_statuses = 2;
*
*/
public com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus.Builder
getIndividualBatchDeleteStatusesBuilder(int index) {
return getIndividualBatchDeleteStatusesFieldBuilder().getBuilder(index);
}
/**
*
*
*
* The list of response details of each document.
*
*
*
* repeated .google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus individual_batch_delete_statuses = 2;
*
*/
public com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatusOrBuilder
getIndividualBatchDeleteStatusesOrBuilder(int index) {
if (individualBatchDeleteStatusesBuilder_ == null) {
return individualBatchDeleteStatuses_.get(index);
} else {
return individualBatchDeleteStatusesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* The list of response details of each document.
*
*
*
* repeated .google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus individual_batch_delete_statuses = 2;
*
*/
public java.util.List<
? extends
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatusOrBuilder>
getIndividualBatchDeleteStatusesOrBuilderList() {
if (individualBatchDeleteStatusesBuilder_ != null) {
return individualBatchDeleteStatusesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(individualBatchDeleteStatuses_);
}
}
/**
*
*
*
* The list of response details of each document.
*
*
*
* repeated .google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus individual_batch_delete_statuses = 2;
*
*/
public com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus.Builder
addIndividualBatchDeleteStatusesBuilder() {
return getIndividualBatchDeleteStatusesFieldBuilder()
.addBuilder(
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus.getDefaultInstance());
}
/**
*
*
*
* The list of response details of each document.
*
*
*
* repeated .google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus individual_batch_delete_statuses = 2;
*
*/
public com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus.Builder
addIndividualBatchDeleteStatusesBuilder(int index) {
return getIndividualBatchDeleteStatusesFieldBuilder()
.addBuilder(
index,
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus.getDefaultInstance());
}
/**
*
*
*
* The list of response details of each document.
*
*
*
* repeated .google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus individual_batch_delete_statuses = 2;
*
*/
public java.util.List<
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus.Builder>
getIndividualBatchDeleteStatusesBuilderList() {
return getIndividualBatchDeleteStatusesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus,
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus.Builder,
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatusOrBuilder>
getIndividualBatchDeleteStatusesFieldBuilder() {
if (individualBatchDeleteStatusesBuilder_ == null) {
individualBatchDeleteStatusesBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus,
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatus.Builder,
com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
.IndividualBatchDeleteStatusOrBuilder>(
individualBatchDeleteStatuses_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
individualBatchDeleteStatuses_ = null;
}
return individualBatchDeleteStatusesBuilder_;
}
private int totalDocumentCount_;
/**
*
*
*
* Total number of documents deleting from dataset.
*
*
* int32 total_document_count = 3;
*
* @return The totalDocumentCount.
*/
@java.lang.Override
public int getTotalDocumentCount() {
return totalDocumentCount_;
}
/**
*
*
*
* Total number of documents deleting from dataset.
*
*
* int32 total_document_count = 3;
*
* @param value The totalDocumentCount to set.
* @return This builder for chaining.
*/
public Builder setTotalDocumentCount(int value) {
totalDocumentCount_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Total number of documents deleting from dataset.
*
*
* int32 total_document_count = 3;
*
* @return This builder for chaining.
*/
public Builder clearTotalDocumentCount() {
bitField0_ = (bitField0_ & ~0x00000004);
totalDocumentCount_ = 0;
onChanged();
return this;
}
private int errorDocumentCount_;
/**
*
*
*
* Total number of documents that failed to be deleted in storage.
*
*
* int32 error_document_count = 4;
*
* @return The errorDocumentCount.
*/
@java.lang.Override
public int getErrorDocumentCount() {
return errorDocumentCount_;
}
/**
*
*
*
* Total number of documents that failed to be deleted in storage.
*
*
* int32 error_document_count = 4;
*
* @param value The errorDocumentCount to set.
* @return This builder for chaining.
*/
public Builder setErrorDocumentCount(int value) {
errorDocumentCount_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Total number of documents that failed to be deleted in storage.
*
*
* int32 error_document_count = 4;
*
* @return This builder for chaining.
*/
public Builder clearErrorDocumentCount() {
bitField0_ = (bitField0_ & ~0x00000008);
errorDocumentCount_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata)
}
// @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata)
private static final com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata();
}
public static com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BatchDeleteDocumentsMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy