All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.services.documentai.v1.model.GoogleCloudDocumentaiV1beta1DocumentRevision Maven / Gradle / Ivy

There is a newer version: v1-rev20250117-2.0.0
Show newest version
/*
 * 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
 *
 * http://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.
 */
/*
 * This code was generated by https://github.com/googleapis/google-api-java-client-services/
 * Modify at your own risk.
 */

package com.google.api.services.documentai.v1.model;

/**
 * Contains past or forward revisions of this document.
 *
 * 

This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Cloud Document AI API. For a detailed explanation * see: * https://developers.google.com/api-client-library/java/google-http-java-client/json *

* * @author Google, Inc. */ @SuppressWarnings("javadoc") public final class GoogleCloudDocumentaiV1beta1DocumentRevision extends com.google.api.client.json.GenericJson { /** * If the change was made by a person specify the name or id of that person. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String agent; /** * The time that the revision was created, internally generated by doc proto storage at the time * of create. * The value may be {@code null}. */ @com.google.api.client.util.Key private String createTime; /** * Human Review information of this revision. * The value may be {@code null}. */ @com.google.api.client.util.Key private GoogleCloudDocumentaiV1beta1DocumentRevisionHumanReview humanReview; /** * Id of the revision, internally generated by doc proto storage. Unique within the context of the * document. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String id; /** * The revisions that this revision is based on. This can include one or more parent (when * documents are merged.) This field represents the index into the `revisions` field. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List parent; /** * The revisions that this revision is based on. Must include all the ids that have anything to do * with this revision - eg. there are `provenance.parent.revision` fields that index into this * field. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List parentIds; /** * If the annotation was made by processor identify the processor by its resource name. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String processor; /** * If the change was made by a person specify the name or id of that person. * @return value or {@code null} for none */ public java.lang.String getAgent() { return agent; } /** * If the change was made by a person specify the name or id of that person. * @param agent agent or {@code null} for none */ public GoogleCloudDocumentaiV1beta1DocumentRevision setAgent(java.lang.String agent) { this.agent = agent; return this; } /** * The time that the revision was created, internally generated by doc proto storage at the time * of create. * @return value or {@code null} for none */ public String getCreateTime() { return createTime; } /** * The time that the revision was created, internally generated by doc proto storage at the time * of create. * @param createTime createTime or {@code null} for none */ public GoogleCloudDocumentaiV1beta1DocumentRevision setCreateTime(String createTime) { this.createTime = createTime; return this; } /** * Human Review information of this revision. * @return value or {@code null} for none */ public GoogleCloudDocumentaiV1beta1DocumentRevisionHumanReview getHumanReview() { return humanReview; } /** * Human Review information of this revision. * @param humanReview humanReview or {@code null} for none */ public GoogleCloudDocumentaiV1beta1DocumentRevision setHumanReview(GoogleCloudDocumentaiV1beta1DocumentRevisionHumanReview humanReview) { this.humanReview = humanReview; return this; } /** * Id of the revision, internally generated by doc proto storage. Unique within the context of the * document. * @return value or {@code null} for none */ public java.lang.String getId() { return id; } /** * Id of the revision, internally generated by doc proto storage. Unique within the context of the * document. * @param id id or {@code null} for none */ public GoogleCloudDocumentaiV1beta1DocumentRevision setId(java.lang.String id) { this.id = id; return this; } /** * The revisions that this revision is based on. This can include one or more parent (when * documents are merged.) This field represents the index into the `revisions` field. * @return value or {@code null} for none */ public java.util.List getParent() { return parent; } /** * The revisions that this revision is based on. This can include one or more parent (when * documents are merged.) This field represents the index into the `revisions` field. * @param parent parent or {@code null} for none */ public GoogleCloudDocumentaiV1beta1DocumentRevision setParent(java.util.List parent) { this.parent = parent; return this; } /** * The revisions that this revision is based on. Must include all the ids that have anything to do * with this revision - eg. there are `provenance.parent.revision` fields that index into this * field. * @return value or {@code null} for none */ public java.util.List getParentIds() { return parentIds; } /** * The revisions that this revision is based on. Must include all the ids that have anything to do * with this revision - eg. there are `provenance.parent.revision` fields that index into this * field. * @param parentIds parentIds or {@code null} for none */ public GoogleCloudDocumentaiV1beta1DocumentRevision setParentIds(java.util.List parentIds) { this.parentIds = parentIds; return this; } /** * If the annotation was made by processor identify the processor by its resource name. * @return value or {@code null} for none */ public java.lang.String getProcessor() { return processor; } /** * If the annotation was made by processor identify the processor by its resource name. * @param processor processor or {@code null} for none */ public GoogleCloudDocumentaiV1beta1DocumentRevision setProcessor(java.lang.String processor) { this.processor = processor; return this; } @Override public GoogleCloudDocumentaiV1beta1DocumentRevision set(String fieldName, Object value) { return (GoogleCloudDocumentaiV1beta1DocumentRevision) super.set(fieldName, value); } @Override public GoogleCloudDocumentaiV1beta1DocumentRevision clone() { return (GoogleCloudDocumentaiV1beta1DocumentRevision) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy