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

com.google.cloud.visionai.v1.Process Maven / Gradle / Ivy

/*
 * 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/visionai/v1/lva_resources.proto

// Protobuf Java Version: 3.25.3
package com.google.cloud.visionai.v1;

/**
 *
 *
 * 
 * Message describing the Process object.
 * 
* * Protobuf type {@code google.cloud.visionai.v1.Process} */ public final class Process extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.Process) ProcessOrBuilder { private static final long serialVersionUID = 0L; // Use Process.newBuilder() to construct. private Process(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Process() { name_ = ""; analysis_ = ""; attributeOverrides_ = com.google.protobuf.LazyStringArrayList.emptyList(); runMode_ = 0; eventId_ = ""; batchId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Process(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.visionai.v1.LvaResourcesProto .internal_static_google_cloud_visionai_v1_Process_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.visionai.v1.LvaResourcesProto .internal_static_google_cloud_visionai_v1_Process_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.visionai.v1.Process.class, com.google.cloud.visionai.v1.Process.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * * *
   * The name of resource.
   * 
* * string name = 1; * * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** * * *
   * The name of resource.
   * 
* * string name = 1; * * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** * * *
   * Output only. The create timestamp.
   * 
* * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the createTime field is set. */ @java.lang.Override public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * Output only. The create timestamp.
   * 
* * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The createTime. */ @java.lang.Override public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** * * *
   * Output only. The create timestamp.
   * 
* * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** * * *
   * Output only. The update timestamp.
   * 
* * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the updateTime field is set. */ @java.lang.Override public boolean hasUpdateTime() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
   * Output only. The update timestamp.
   * 
* * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The updateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** * * *
   * Output only. The update timestamp.
   * 
* * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int ANALYSIS_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object analysis_ = ""; /** * * *
   * Required. Reference to an existing Analysis resource.
   * 
* * * string analysis = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The analysis. */ @java.lang.Override public java.lang.String getAnalysis() { java.lang.Object ref = analysis_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); analysis_ = s; return s; } } /** * * *
   * Required. Reference to an existing Analysis resource.
   * 
* * * string analysis = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for analysis. */ @java.lang.Override public com.google.protobuf.ByteString getAnalysisBytes() { java.lang.Object ref = analysis_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); analysis_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ATTRIBUTE_OVERRIDES_FIELD_NUMBER = 5; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList attributeOverrides_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * * *
   * Optional. Attribute overrides of the Analyzers.
   * Format for each single override item:
   * "{analyzer_name}:{attribute_key}={value}"
   * 
* * repeated string attribute_overrides = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the attributeOverrides. */ public com.google.protobuf.ProtocolStringList getAttributeOverridesList() { return attributeOverrides_; } /** * * *
   * Optional. Attribute overrides of the Analyzers.
   * Format for each single override item:
   * "{analyzer_name}:{attribute_key}={value}"
   * 
* * repeated string attribute_overrides = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of attributeOverrides. */ public int getAttributeOverridesCount() { return attributeOverrides_.size(); } /** * * *
   * Optional. Attribute overrides of the Analyzers.
   * Format for each single override item:
   * "{analyzer_name}:{attribute_key}={value}"
   * 
* * repeated string attribute_overrides = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The attributeOverrides at the given index. */ public java.lang.String getAttributeOverrides(int index) { return attributeOverrides_.get(index); } /** * * *
   * Optional. Attribute overrides of the Analyzers.
   * Format for each single override item:
   * "{analyzer_name}:{attribute_key}={value}"
   * 
* * repeated string attribute_overrides = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the attributeOverrides at the given index. */ public com.google.protobuf.ByteString getAttributeOverridesBytes(int index) { return attributeOverrides_.getByteString(index); } public static final int RUN_STATUS_FIELD_NUMBER = 6; private com.google.cloud.visionai.v1.RunStatus runStatus_; /** * * *
   * Optional. Status of the Process.
   * 
* * * .google.cloud.visionai.v1.RunStatus run_status = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the runStatus field is set. */ @java.lang.Override public boolean hasRunStatus() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
   * Optional. Status of the Process.
   * 
* * * .google.cloud.visionai.v1.RunStatus run_status = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The runStatus. */ @java.lang.Override public com.google.cloud.visionai.v1.RunStatus getRunStatus() { return runStatus_ == null ? com.google.cloud.visionai.v1.RunStatus.getDefaultInstance() : runStatus_; } /** * * *
   * Optional. Status of the Process.
   * 
* * * .google.cloud.visionai.v1.RunStatus run_status = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public com.google.cloud.visionai.v1.RunStatusOrBuilder getRunStatusOrBuilder() { return runStatus_ == null ? com.google.cloud.visionai.v1.RunStatus.getDefaultInstance() : runStatus_; } public static final int RUN_MODE_FIELD_NUMBER = 7; private int runMode_ = 0; /** * * *
   * Optional. Run mode of the Process.
   * 
* * .google.cloud.visionai.v1.RunMode run_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The enum numeric value on the wire for runMode. */ @java.lang.Override public int getRunModeValue() { return runMode_; } /** * * *
   * Optional. Run mode of the Process.
   * 
* * .google.cloud.visionai.v1.RunMode run_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The runMode. */ @java.lang.Override public com.google.cloud.visionai.v1.RunMode getRunMode() { com.google.cloud.visionai.v1.RunMode result = com.google.cloud.visionai.v1.RunMode.forNumber(runMode_); return result == null ? com.google.cloud.visionai.v1.RunMode.UNRECOGNIZED : result; } public static final int EVENT_ID_FIELD_NUMBER = 8; @SuppressWarnings("serial") private volatile java.lang.Object eventId_ = ""; /** * * *
   * Optional. Event ID of the input/output streams.
   * This is useful when you have a StreamSource/StreamSink operator in the
   * Analysis, and you want to manually specify the Event to read from/write to.
   * 
* * string event_id = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @return The eventId. */ @java.lang.Override public java.lang.String getEventId() { java.lang.Object ref = eventId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); eventId_ = s; return s; } } /** * * *
   * Optional. Event ID of the input/output streams.
   * This is useful when you have a StreamSource/StreamSink operator in the
   * Analysis, and you want to manually specify the Event to read from/write to.
   * 
* * string event_id = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for eventId. */ @java.lang.Override public com.google.protobuf.ByteString getEventIdBytes() { java.lang.Object ref = eventId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); eventId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BATCH_ID_FIELD_NUMBER = 9; @SuppressWarnings("serial") private volatile java.lang.Object batchId_ = ""; /** * * *
   * Optional. Optional: Batch ID of the Process.
   * 
* * string batch_id = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The batchId. */ @java.lang.Override public java.lang.String getBatchId() { java.lang.Object ref = batchId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); batchId_ = s; return s; } } /** * * *
   * Optional. Optional: Batch ID of the Process.
   * 
* * string batch_id = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for batchId. */ @java.lang.Override public com.google.protobuf.ByteString getBatchIdBytes() { java.lang.Object ref = batchId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); batchId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RETRY_COUNT_FIELD_NUMBER = 10; private int retryCount_ = 0; /** * * *
   * Optional. Optional: The number of retries for a process in submission mode
   * the system should try before declaring failure. By default, no retry will
   * be performed.
   * 
* * int32 retry_count = 10 [(.google.api.field_behavior) = OPTIONAL]; * * @return The retryCount. */ @java.lang.Override public int getRetryCount() { return retryCount_; } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getCreateTime()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(analysis_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, analysis_); } for (int i = 0; i < attributeOverrides_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, attributeOverrides_.getRaw(i)); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(6, getRunStatus()); } if (runMode_ != com.google.cloud.visionai.v1.RunMode.RUN_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(7, runMode_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, eventId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(batchId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, batchId_); } if (retryCount_ != 0) { output.writeInt32(10, retryCount_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(analysis_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, analysis_); } { int dataSize = 0; for (int i = 0; i < attributeOverrides_.size(); i++) { dataSize += computeStringSizeNoTag(attributeOverrides_.getRaw(i)); } size += dataSize; size += 1 * getAttributeOverridesList().size(); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getRunStatus()); } if (runMode_ != com.google.cloud.visionai.v1.RunMode.RUN_MODE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, runMode_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, eventId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(batchId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, batchId_); } if (retryCount_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(10, retryCount_); } 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.visionai.v1.Process)) { return super.equals(obj); } com.google.cloud.visionai.v1.Process other = (com.google.cloud.visionai.v1.Process) obj; if (!getName().equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (!getAnalysis().equals(other.getAnalysis())) return false; if (!getAttributeOverridesList().equals(other.getAttributeOverridesList())) return false; if (hasRunStatus() != other.hasRunStatus()) return false; if (hasRunStatus()) { if (!getRunStatus().equals(other.getRunStatus())) return false; } if (runMode_ != other.runMode_) return false; if (!getEventId().equals(other.getEventId())) return false; if (!getBatchId().equals(other.getBatchId())) return false; if (getRetryCount() != other.getRetryCount()) 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(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (hasCreateTime()) { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); } if (hasUpdateTime()) { hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getUpdateTime().hashCode(); } hash = (37 * hash) + ANALYSIS_FIELD_NUMBER; hash = (53 * hash) + getAnalysis().hashCode(); if (getAttributeOverridesCount() > 0) { hash = (37 * hash) + ATTRIBUTE_OVERRIDES_FIELD_NUMBER; hash = (53 * hash) + getAttributeOverridesList().hashCode(); } if (hasRunStatus()) { hash = (37 * hash) + RUN_STATUS_FIELD_NUMBER; hash = (53 * hash) + getRunStatus().hashCode(); } hash = (37 * hash) + RUN_MODE_FIELD_NUMBER; hash = (53 * hash) + runMode_; hash = (37 * hash) + EVENT_ID_FIELD_NUMBER; hash = (53 * hash) + getEventId().hashCode(); hash = (37 * hash) + BATCH_ID_FIELD_NUMBER; hash = (53 * hash) + getBatchId().hashCode(); hash = (37 * hash) + RETRY_COUNT_FIELD_NUMBER; hash = (53 * hash) + getRetryCount(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.visionai.v1.Process parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.Process 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.visionai.v1.Process parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.Process 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.visionai.v1.Process parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.Process parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.visionai.v1.Process parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.Process 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.visionai.v1.Process parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.Process 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.visionai.v1.Process parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.Process 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.visionai.v1.Process 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; } /** * * *
   * Message describing the Process object.
   * 
* * Protobuf type {@code google.cloud.visionai.v1.Process} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.Process) com.google.cloud.visionai.v1.ProcessOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.visionai.v1.LvaResourcesProto .internal_static_google_cloud_visionai_v1_Process_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.visionai.v1.LvaResourcesProto .internal_static_google_cloud_visionai_v1_Process_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.visionai.v1.Process.class, com.google.cloud.visionai.v1.Process.Builder.class); } // Construct using com.google.cloud.visionai.v1.Process.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCreateTimeFieldBuilder(); getUpdateTimeFieldBuilder(); getRunStatusFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); createTimeBuilder_ = null; } updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } analysis_ = ""; attributeOverrides_ = com.google.protobuf.LazyStringArrayList.emptyList(); runStatus_ = null; if (runStatusBuilder_ != null) { runStatusBuilder_.dispose(); runStatusBuilder_ = null; } runMode_ = 0; eventId_ = ""; batchId_ = ""; retryCount_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.visionai.v1.LvaResourcesProto .internal_static_google_cloud_visionai_v1_Process_descriptor; } @java.lang.Override public com.google.cloud.visionai.v1.Process getDefaultInstanceForType() { return com.google.cloud.visionai.v1.Process.getDefaultInstance(); } @java.lang.Override public com.google.cloud.visionai.v1.Process build() { com.google.cloud.visionai.v1.Process result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.visionai.v1.Process buildPartial() { com.google.cloud.visionai.v1.Process result = new com.google.cloud.visionai.v1.Process(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.cloud.visionai.v1.Process result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.analysis_ = analysis_; } if (((from_bitField0_ & 0x00000010) != 0)) { attributeOverrides_.makeImmutable(); result.attributeOverrides_ = attributeOverrides_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.runStatus_ = runStatusBuilder_ == null ? runStatus_ : runStatusBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000040) != 0)) { result.runMode_ = runMode_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.eventId_ = eventId_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.batchId_ = batchId_; } if (((from_bitField0_ & 0x00000200) != 0)) { result.retryCount_ = retryCount_; } 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.visionai.v1.Process) { return mergeFrom((com.google.cloud.visionai.v1.Process) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.visionai.v1.Process other) { if (other == com.google.cloud.visionai.v1.Process.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } if (!other.getAnalysis().isEmpty()) { analysis_ = other.analysis_; bitField0_ |= 0x00000008; onChanged(); } if (!other.attributeOverrides_.isEmpty()) { if (attributeOverrides_.isEmpty()) { attributeOverrides_ = other.attributeOverrides_; bitField0_ |= 0x00000010; } else { ensureAttributeOverridesIsMutable(); attributeOverrides_.addAll(other.attributeOverrides_); } onChanged(); } if (other.hasRunStatus()) { mergeRunStatus(other.getRunStatus()); } if (other.runMode_ != 0) { setRunModeValue(other.getRunModeValue()); } if (!other.getEventId().isEmpty()) { eventId_ = other.eventId_; bitField0_ |= 0x00000080; onChanged(); } if (!other.getBatchId().isEmpty()) { batchId_ = other.batchId_; bitField0_ |= 0x00000100; onChanged(); } if (other.getRetryCount() != 0) { setRetryCount(other.getRetryCount()); } 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: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { analysis_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { java.lang.String s = input.readStringRequireUtf8(); ensureAttributeOverridesIsMutable(); attributeOverrides_.add(s); break; } // case 42 case 50: { input.readMessage(getRunStatusFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 50 case 56: { runMode_ = input.readEnum(); bitField0_ |= 0x00000040; break; } // case 56 case 66: { eventId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000080; break; } // case 66 case 74: { batchId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000100; break; } // case 74 case 80: { retryCount_ = input.readInt32(); bitField0_ |= 0x00000200; break; } // case 80 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 java.lang.Object name_ = ""; /** * * *
     * The name of resource.
     * 
* * string name = 1; * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The name of resource.
     * 
* * string name = 1; * * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The name of resource.
     * 
* * string name = 1; * * @param value The name to set. * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * The name of resource.
     * 
* * string name = 1; * * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * The name of resource.
     * 
* * string name = 1; * * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** * * *
     * Output only. The create timestamp.
     * 
* * * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
     * Output only. The create timestamp.
     * 
* * * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** * * *
     * Output only. The create timestamp.
     * 
* * * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createTime_ = value; } else { createTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Output only. The create timestamp.
     * 
* * * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Output only. The create timestamp.
     * 
* * * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } } else { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * * *
     * Output only. The create timestamp.
     * 
* * * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000002); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); createTimeBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. The create timestamp.
     * 
* * * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000002; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** * * *
     * Output only. The create timestamp.
     * 
* * * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** * * *
     * Output only. The create timestamp.
     * 
* * * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; } private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** * * *
     * Output only. The update timestamp.
     * 
* * * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
     * Output only. The update timestamp.
     * 
* * * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** * * *
     * Output only. The update timestamp.
     * 
* * * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } updateTime_ = value; } else { updateTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Output only. The update timestamp.
     * 
* * * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Output only. The update timestamp.
     * 
* * * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && updateTime_ != null && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } } else { updateTimeBuilder_.mergeFrom(value); } if (updateTime_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * * *
     * Output only. The update timestamp.
     * 
* * * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000004); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. The update timestamp.
     * 
* * * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000004; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** * * *
     * Output only. The update timestamp.
     * 
* * * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** * * *
     * Output only. The update timestamp.
     * 
* * * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } private java.lang.Object analysis_ = ""; /** * * *
     * Required. Reference to an existing Analysis resource.
     * 
* * * string analysis = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The analysis. */ public java.lang.String getAnalysis() { java.lang.Object ref = analysis_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); analysis_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Required. Reference to an existing Analysis resource.
     * 
* * * string analysis = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for analysis. */ public com.google.protobuf.ByteString getAnalysisBytes() { java.lang.Object ref = analysis_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); analysis_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Required. Reference to an existing Analysis resource.
     * 
* * * string analysis = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The analysis to set. * @return This builder for chaining. */ public Builder setAnalysis(java.lang.String value) { if (value == null) { throw new NullPointerException(); } analysis_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Required. Reference to an existing Analysis resource.
     * 
* * * string analysis = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. */ public Builder clearAnalysis() { analysis_ = getDefaultInstance().getAnalysis(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * * *
     * Required. Reference to an existing Analysis resource.
     * 
* * * string analysis = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The bytes for analysis to set. * @return This builder for chaining. */ public Builder setAnalysisBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); analysis_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList attributeOverrides_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureAttributeOverridesIsMutable() { if (!attributeOverrides_.isModifiable()) { attributeOverrides_ = new com.google.protobuf.LazyStringArrayList(attributeOverrides_); } bitField0_ |= 0x00000010; } /** * * *
     * Optional. Attribute overrides of the Analyzers.
     * Format for each single override item:
     * "{analyzer_name}:{attribute_key}={value}"
     * 
* * repeated string attribute_overrides = 5 [(.google.api.field_behavior) = OPTIONAL]; * * * @return A list containing the attributeOverrides. */ public com.google.protobuf.ProtocolStringList getAttributeOverridesList() { attributeOverrides_.makeImmutable(); return attributeOverrides_; } /** * * *
     * Optional. Attribute overrides of the Analyzers.
     * Format for each single override item:
     * "{analyzer_name}:{attribute_key}={value}"
     * 
* * repeated string attribute_overrides = 5 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The count of attributeOverrides. */ public int getAttributeOverridesCount() { return attributeOverrides_.size(); } /** * * *
     * Optional. Attribute overrides of the Analyzers.
     * Format for each single override item:
     * "{analyzer_name}:{attribute_key}={value}"
     * 
* * repeated string attribute_overrides = 5 [(.google.api.field_behavior) = OPTIONAL]; * * * @param index The index of the element to return. * @return The attributeOverrides at the given index. */ public java.lang.String getAttributeOverrides(int index) { return attributeOverrides_.get(index); } /** * * *
     * Optional. Attribute overrides of the Analyzers.
     * Format for each single override item:
     * "{analyzer_name}:{attribute_key}={value}"
     * 
* * repeated string attribute_overrides = 5 [(.google.api.field_behavior) = OPTIONAL]; * * * @param index The index of the value to return. * @return The bytes of the attributeOverrides at the given index. */ public com.google.protobuf.ByteString getAttributeOverridesBytes(int index) { return attributeOverrides_.getByteString(index); } /** * * *
     * Optional. Attribute overrides of the Analyzers.
     * Format for each single override item:
     * "{analyzer_name}:{attribute_key}={value}"
     * 
* * repeated string attribute_overrides = 5 [(.google.api.field_behavior) = OPTIONAL]; * * * @param index The index to set the value at. * @param value The attributeOverrides to set. * @return This builder for chaining. */ public Builder setAttributeOverrides(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAttributeOverridesIsMutable(); attributeOverrides_.set(index, value); bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * Optional. Attribute overrides of the Analyzers.
     * Format for each single override item:
     * "{analyzer_name}:{attribute_key}={value}"
     * 
* * repeated string attribute_overrides = 5 [(.google.api.field_behavior) = OPTIONAL]; * * * @param value The attributeOverrides to add. * @return This builder for chaining. */ public Builder addAttributeOverrides(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAttributeOverridesIsMutable(); attributeOverrides_.add(value); bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * Optional. Attribute overrides of the Analyzers.
     * Format for each single override item:
     * "{analyzer_name}:{attribute_key}={value}"
     * 
* * repeated string attribute_overrides = 5 [(.google.api.field_behavior) = OPTIONAL]; * * * @param values The attributeOverrides to add. * @return This builder for chaining. */ public Builder addAllAttributeOverrides(java.lang.Iterable values) { ensureAttributeOverridesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, attributeOverrides_); bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * Optional. Attribute overrides of the Analyzers.
     * Format for each single override item:
     * "{analyzer_name}:{attribute_key}={value}"
     * 
* * repeated string attribute_overrides = 5 [(.google.api.field_behavior) = OPTIONAL]; * * * @return This builder for chaining. */ public Builder clearAttributeOverrides() { attributeOverrides_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); ; onChanged(); return this; } /** * * *
     * Optional. Attribute overrides of the Analyzers.
     * Format for each single override item:
     * "{analyzer_name}:{attribute_key}={value}"
     * 
* * repeated string attribute_overrides = 5 [(.google.api.field_behavior) = OPTIONAL]; * * * @param value The bytes of the attributeOverrides to add. * @return This builder for chaining. */ public Builder addAttributeOverridesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureAttributeOverridesIsMutable(); attributeOverrides_.add(value); bitField0_ |= 0x00000010; onChanged(); return this; } private com.google.cloud.visionai.v1.RunStatus runStatus_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.visionai.v1.RunStatus, com.google.cloud.visionai.v1.RunStatus.Builder, com.google.cloud.visionai.v1.RunStatusOrBuilder> runStatusBuilder_; /** * * *
     * Optional. Status of the Process.
     * 
* * * .google.cloud.visionai.v1.RunStatus run_status = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the runStatus field is set. */ public boolean hasRunStatus() { return ((bitField0_ & 0x00000020) != 0); } /** * * *
     * Optional. Status of the Process.
     * 
* * * .google.cloud.visionai.v1.RunStatus run_status = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The runStatus. */ public com.google.cloud.visionai.v1.RunStatus getRunStatus() { if (runStatusBuilder_ == null) { return runStatus_ == null ? com.google.cloud.visionai.v1.RunStatus.getDefaultInstance() : runStatus_; } else { return runStatusBuilder_.getMessage(); } } /** * * *
     * Optional. Status of the Process.
     * 
* * * .google.cloud.visionai.v1.RunStatus run_status = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setRunStatus(com.google.cloud.visionai.v1.RunStatus value) { if (runStatusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } runStatus_ = value; } else { runStatusBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * Optional. Status of the Process.
     * 
* * * .google.cloud.visionai.v1.RunStatus run_status = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setRunStatus(com.google.cloud.visionai.v1.RunStatus.Builder builderForValue) { if (runStatusBuilder_ == null) { runStatus_ = builderForValue.build(); } else { runStatusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * Optional. Status of the Process.
     * 
* * * .google.cloud.visionai.v1.RunStatus run_status = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeRunStatus(com.google.cloud.visionai.v1.RunStatus value) { if (runStatusBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && runStatus_ != null && runStatus_ != com.google.cloud.visionai.v1.RunStatus.getDefaultInstance()) { getRunStatusBuilder().mergeFrom(value); } else { runStatus_ = value; } } else { runStatusBuilder_.mergeFrom(value); } if (runStatus_ != null) { bitField0_ |= 0x00000020; onChanged(); } return this; } /** * * *
     * Optional. Status of the Process.
     * 
* * * .google.cloud.visionai.v1.RunStatus run_status = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearRunStatus() { bitField0_ = (bitField0_ & ~0x00000020); runStatus_ = null; if (runStatusBuilder_ != null) { runStatusBuilder_.dispose(); runStatusBuilder_ = null; } onChanged(); return this; } /** * * *
     * Optional. Status of the Process.
     * 
* * * .google.cloud.visionai.v1.RunStatus run_status = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.visionai.v1.RunStatus.Builder getRunStatusBuilder() { bitField0_ |= 0x00000020; onChanged(); return getRunStatusFieldBuilder().getBuilder(); } /** * * *
     * Optional. Status of the Process.
     * 
* * * .google.cloud.visionai.v1.RunStatus run_status = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.visionai.v1.RunStatusOrBuilder getRunStatusOrBuilder() { if (runStatusBuilder_ != null) { return runStatusBuilder_.getMessageOrBuilder(); } else { return runStatus_ == null ? com.google.cloud.visionai.v1.RunStatus.getDefaultInstance() : runStatus_; } } /** * * *
     * Optional. Status of the Process.
     * 
* * * .google.cloud.visionai.v1.RunStatus run_status = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.visionai.v1.RunStatus, com.google.cloud.visionai.v1.RunStatus.Builder, com.google.cloud.visionai.v1.RunStatusOrBuilder> getRunStatusFieldBuilder() { if (runStatusBuilder_ == null) { runStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.visionai.v1.RunStatus, com.google.cloud.visionai.v1.RunStatus.Builder, com.google.cloud.visionai.v1.RunStatusOrBuilder>( getRunStatus(), getParentForChildren(), isClean()); runStatus_ = null; } return runStatusBuilder_; } private int runMode_ = 0; /** * * *
     * Optional. Run mode of the Process.
     * 
* * * .google.cloud.visionai.v1.RunMode run_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The enum numeric value on the wire for runMode. */ @java.lang.Override public int getRunModeValue() { return runMode_; } /** * * *
     * Optional. Run mode of the Process.
     * 
* * * .google.cloud.visionai.v1.RunMode run_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; * * * @param value The enum numeric value on the wire for runMode to set. * @return This builder for chaining. */ public Builder setRunModeValue(int value) { runMode_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
     * Optional. Run mode of the Process.
     * 
* * * .google.cloud.visionai.v1.RunMode run_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The runMode. */ @java.lang.Override public com.google.cloud.visionai.v1.RunMode getRunMode() { com.google.cloud.visionai.v1.RunMode result = com.google.cloud.visionai.v1.RunMode.forNumber(runMode_); return result == null ? com.google.cloud.visionai.v1.RunMode.UNRECOGNIZED : result; } /** * * *
     * Optional. Run mode of the Process.
     * 
* * * .google.cloud.visionai.v1.RunMode run_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; * * * @param value The runMode to set. * @return This builder for chaining. */ public Builder setRunMode(com.google.cloud.visionai.v1.RunMode value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; runMode_ = value.getNumber(); onChanged(); return this; } /** * * *
     * Optional. Run mode of the Process.
     * 
* * * .google.cloud.visionai.v1.RunMode run_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; * * * @return This builder for chaining. */ public Builder clearRunMode() { bitField0_ = (bitField0_ & ~0x00000040); runMode_ = 0; onChanged(); return this; } private java.lang.Object eventId_ = ""; /** * * *
     * Optional. Event ID of the input/output streams.
     * This is useful when you have a StreamSource/StreamSink operator in the
     * Analysis, and you want to manually specify the Event to read from/write to.
     * 
* * string event_id = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @return The eventId. */ public java.lang.String getEventId() { java.lang.Object ref = eventId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); eventId_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Optional. Event ID of the input/output streams.
     * This is useful when you have a StreamSource/StreamSink operator in the
     * Analysis, and you want to manually specify the Event to read from/write to.
     * 
* * string event_id = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for eventId. */ public com.google.protobuf.ByteString getEventIdBytes() { java.lang.Object ref = eventId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); eventId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Optional. Event ID of the input/output streams.
     * This is useful when you have a StreamSource/StreamSink operator in the
     * Analysis, and you want to manually specify the Event to read from/write to.
     * 
* * string event_id = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The eventId to set. * @return This builder for chaining. */ public Builder setEventId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } eventId_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** * * *
     * Optional. Event ID of the input/output streams.
     * This is useful when you have a StreamSource/StreamSink operator in the
     * Analysis, and you want to manually specify the Event to read from/write to.
     * 
* * string event_id = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearEventId() { eventId_ = getDefaultInstance().getEventId(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } /** * * *
     * Optional. Event ID of the input/output streams.
     * This is useful when you have a StreamSource/StreamSink operator in the
     * Analysis, and you want to manually specify the Event to read from/write to.
     * 
* * string event_id = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for eventId to set. * @return This builder for chaining. */ public Builder setEventIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); eventId_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } private java.lang.Object batchId_ = ""; /** * * *
     * Optional. Optional: Batch ID of the Process.
     * 
* * string batch_id = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The batchId. */ public java.lang.String getBatchId() { java.lang.Object ref = batchId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); batchId_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Optional. Optional: Batch ID of the Process.
     * 
* * string batch_id = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for batchId. */ public com.google.protobuf.ByteString getBatchIdBytes() { java.lang.Object ref = batchId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); batchId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Optional. Optional: Batch ID of the Process.
     * 
* * string batch_id = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The batchId to set. * @return This builder for chaining. */ public Builder setBatchId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } batchId_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** * * *
     * Optional. Optional: Batch ID of the Process.
     * 
* * string batch_id = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearBatchId() { batchId_ = getDefaultInstance().getBatchId(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } /** * * *
     * Optional. Optional: Batch ID of the Process.
     * 
* * string batch_id = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for batchId to set. * @return This builder for chaining. */ public Builder setBatchIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); batchId_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } private int retryCount_; /** * * *
     * Optional. Optional: The number of retries for a process in submission mode
     * the system should try before declaring failure. By default, no retry will
     * be performed.
     * 
* * int32 retry_count = 10 [(.google.api.field_behavior) = OPTIONAL]; * * @return The retryCount. */ @java.lang.Override public int getRetryCount() { return retryCount_; } /** * * *
     * Optional. Optional: The number of retries for a process in submission mode
     * the system should try before declaring failure. By default, no retry will
     * be performed.
     * 
* * int32 retry_count = 10 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The retryCount to set. * @return This builder for chaining. */ public Builder setRetryCount(int value) { retryCount_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** * * *
     * Optional. Optional: The number of retries for a process in submission mode
     * the system should try before declaring failure. By default, no retry will
     * be performed.
     * 
* * int32 retry_count = 10 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearRetryCount() { bitField0_ = (bitField0_ & ~0x00000200); retryCount_ = 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.visionai.v1.Process) } // @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.Process) private static final com.google.cloud.visionai.v1.Process DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.visionai.v1.Process(); } public static com.google.cloud.visionai.v1.Process getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Process 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.visionai.v1.Process getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy