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

com.clarifai.grpc.api.LabelOrder Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: proto/clarifai/api/resources.proto

package com.clarifai.grpc.api;

/**
 * 
 * LabelOrder
 * 
* * Protobuf type {@code clarifai.api.LabelOrder} */ public final class LabelOrder extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:clarifai.api.LabelOrder) LabelOrderOrBuilder { private static final long serialVersionUID = 0L; // Use LabelOrder.newBuilder() to construct. private LabelOrder(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LabelOrder() { id_ = ""; name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new LabelOrder(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LabelOrder( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); id_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 26: { com.clarifai.grpc.api.status.Status.Builder subBuilder = null; if (status_ != null) { subBuilder = status_.toBuilder(); } status_ = input.readMessage(com.clarifai.grpc.api.status.Status.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(status_); status_ = subBuilder.buildPartial(); } break; } case 32: { autoRelease_ = input.readBool(); break; } case 40: { allowEmptyTag_ = input.readBool(); break; } case 50: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (desiredFulfillTime_ != null) { subBuilder = desiredFulfillTime_.toBuilder(); } desiredFulfillTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(desiredFulfillTime_); desiredFulfillTime_ = subBuilder.buildPartial(); } break; } case 58: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (estimateFulfillTime_ != null) { subBuilder = estimateFulfillTime_.toBuilder(); } estimateFulfillTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(estimateFulfillTime_); estimateFulfillTime_ = subBuilder.buildPartial(); } break; } case 66: { com.clarifai.grpc.api.Task.Builder subBuilder = null; if (task_ != null) { subBuilder = task_.toBuilder(); } task_ = input.readMessage(com.clarifai.grpc.api.Task.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(task_); task_ = subBuilder.buildPartial(); } break; } case 74: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (createdAt_ != null) { subBuilder = createdAt_.toBuilder(); } createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(createdAt_); createdAt_ = subBuilder.buildPartial(); } break; } case 82: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (modifiedAt_ != null) { subBuilder = modifiedAt_.toBuilder(); } modifiedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(modifiedAt_); modifiedAt_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_LabelOrder_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_LabelOrder_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clarifai.grpc.api.LabelOrder.class, com.clarifai.grpc.api.LabelOrder.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
   * id of the order
   * 
* * string id = 1; * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; 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(); id_ = s; return s; } } /** *
   * id of the order
   * 
* * string id = 1; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** *
   * name of the order
   * 
* * string name = 2; * @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; } } /** *
   * name of the order
   * 
* * string name = 2; * @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 STATUS_FIELD_NUMBER = 3; private com.clarifai.grpc.api.status.Status status_; /** *
   * status of the order.
   * pending (QA lead review the order),
   * in progress (labeling in progress),
   * ready for release (passed clarifai QA and client can review)
   * success (released)
   * 
* * .clarifai.api.status.Status status = 3; * @return Whether the status field is set. */ @java.lang.Override public boolean hasStatus() { return status_ != null; } /** *
   * status of the order.
   * pending (QA lead review the order),
   * in progress (labeling in progress),
   * ready for release (passed clarifai QA and client can review)
   * success (released)
   * 
* * .clarifai.api.status.Status status = 3; * @return The status. */ @java.lang.Override public com.clarifai.grpc.api.status.Status getStatus() { return status_ == null ? com.clarifai.grpc.api.status.Status.getDefaultInstance() : status_; } /** *
   * status of the order.
   * pending (QA lead review the order),
   * in progress (labeling in progress),
   * ready for release (passed clarifai QA and client can review)
   * success (released)
   * 
* * .clarifai.api.status.Status status = 3; */ @java.lang.Override public com.clarifai.grpc.api.status.StatusOrBuilder getStatusOrBuilder() { return getStatus(); } public static final int AUTO_RELEASE_FIELD_NUMBER = 4; private boolean autoRelease_; /** *
   * if set to true, automatically release the labels once passed clarifai review.
   * 
* * bool auto_release = 4; * @return The autoRelease. */ @java.lang.Override public boolean getAutoRelease() { return autoRelease_; } public static final int ALLOW_EMPTY_TAG_FIELD_NUMBER = 5; private boolean allowEmptyTag_; /** *
   * allow input without any tag.
   * 
* * bool allow_empty_tag = 5; * @return The allowEmptyTag. */ @java.lang.Override public boolean getAllowEmptyTag() { return allowEmptyTag_; } public static final int DESIRED_FULFILL_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp desiredFulfillTime_; /** *
   * User desired estimation when the task should be done
   * 
* * .google.protobuf.Timestamp desired_fulfill_time = 6; * @return Whether the desiredFulfillTime field is set. */ @java.lang.Override public boolean hasDesiredFulfillTime() { return desiredFulfillTime_ != null; } /** *
   * User desired estimation when the task should be done
   * 
* * .google.protobuf.Timestamp desired_fulfill_time = 6; * @return The desiredFulfillTime. */ @java.lang.Override public com.google.protobuf.Timestamp getDesiredFulfillTime() { return desiredFulfillTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : desiredFulfillTime_; } /** *
   * User desired estimation when the task should be done
   * 
* * .google.protobuf.Timestamp desired_fulfill_time = 6; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDesiredFulfillTimeOrBuilder() { return getDesiredFulfillTime(); } public static final int ESTIMATE_FULFILL_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp estimateFulfillTime_; /** *
   * Clarifai estimation when the task should be done .
   * 
* * .google.protobuf.Timestamp estimate_fulfill_time = 7; * @return Whether the estimateFulfillTime field is set. */ @java.lang.Override public boolean hasEstimateFulfillTime() { return estimateFulfillTime_ != null; } /** *
   * Clarifai estimation when the task should be done .
   * 
* * .google.protobuf.Timestamp estimate_fulfill_time = 7; * @return The estimateFulfillTime. */ @java.lang.Override public com.google.protobuf.Timestamp getEstimateFulfillTime() { return estimateFulfillTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : estimateFulfillTime_; } /** *
   * Clarifai estimation when the task should be done .
   * 
* * .google.protobuf.Timestamp estimate_fulfill_time = 7; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEstimateFulfillTimeOrBuilder() { return getEstimateFulfillTime(); } public static final int TASK_FIELD_NUMBER = 8; private com.clarifai.grpc.api.Task task_; /** *
   * task for this label order
   * 
* * .clarifai.api.Task task = 8; * @return Whether the task field is set. */ @java.lang.Override public boolean hasTask() { return task_ != null; } /** *
   * task for this label order
   * 
* * .clarifai.api.Task task = 8; * @return The task. */ @java.lang.Override public com.clarifai.grpc.api.Task getTask() { return task_ == null ? com.clarifai.grpc.api.Task.getDefaultInstance() : task_; } /** *
   * task for this label order
   * 
* * .clarifai.api.Task task = 8; */ @java.lang.Override public com.clarifai.grpc.api.TaskOrBuilder getTaskOrBuilder() { return getTask(); } public static final int CREATED_AT_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp createdAt_; /** *
   * When the label order was created.
   * The format is https://www.ietf.org/rfc/rfc3339.txt.
   * Example: "2006-01-02T15:04:05.999999Z".
   * 
* * .google.protobuf.Timestamp created_at = 9; * @return Whether the createdAt field is set. */ @java.lang.Override public boolean hasCreatedAt() { return createdAt_ != null; } /** *
   * When the label order was created.
   * The format is https://www.ietf.org/rfc/rfc3339.txt.
   * Example: "2006-01-02T15:04:05.999999Z".
   * 
* * .google.protobuf.Timestamp created_at = 9; * @return The createdAt. */ @java.lang.Override public com.google.protobuf.Timestamp getCreatedAt() { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } /** *
   * When the label order was created.
   * The format is https://www.ietf.org/rfc/rfc3339.txt.
   * Example: "2006-01-02T15:04:05.999999Z".
   * 
* * .google.protobuf.Timestamp created_at = 9; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { return getCreatedAt(); } public static final int MODIFIED_AT_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp modifiedAt_; /** *
   * Most recent time when the label order was updated.
   * The format is https://www.ietf.org/rfc/rfc3339.txt.
   * Example: "2006-01-02T15:04:05.999999Z".
   * 
* * .google.protobuf.Timestamp modified_at = 10; * @return Whether the modifiedAt field is set. */ @java.lang.Override public boolean hasModifiedAt() { return modifiedAt_ != null; } /** *
   * Most recent time when the label order was updated.
   * The format is https://www.ietf.org/rfc/rfc3339.txt.
   * Example: "2006-01-02T15:04:05.999999Z".
   * 
* * .google.protobuf.Timestamp modified_at = 10; * @return The modifiedAt. */ @java.lang.Override public com.google.protobuf.Timestamp getModifiedAt() { return modifiedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modifiedAt_; } /** *
   * Most recent time when the label order was updated.
   * The format is https://www.ietf.org/rfc/rfc3339.txt.
   * Example: "2006-01-02T15:04:05.999999Z".
   * 
* * .google.protobuf.Timestamp modified_at = 10; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getModifiedAtOrBuilder() { return getModifiedAt(); } 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(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } if (status_ != null) { output.writeMessage(3, getStatus()); } if (autoRelease_ != false) { output.writeBool(4, autoRelease_); } if (allowEmptyTag_ != false) { output.writeBool(5, allowEmptyTag_); } if (desiredFulfillTime_ != null) { output.writeMessage(6, getDesiredFulfillTime()); } if (estimateFulfillTime_ != null) { output.writeMessage(7, getEstimateFulfillTime()); } if (task_ != null) { output.writeMessage(8, getTask()); } if (createdAt_ != null) { output.writeMessage(9, getCreatedAt()); } if (modifiedAt_ != null) { output.writeMessage(10, getModifiedAt()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } if (status_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getStatus()); } if (autoRelease_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, autoRelease_); } if (allowEmptyTag_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, allowEmptyTag_); } if (desiredFulfillTime_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getDesiredFulfillTime()); } if (estimateFulfillTime_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getEstimateFulfillTime()); } if (task_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getTask()); } if (createdAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getCreatedAt()); } if (modifiedAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getModifiedAt()); } size += unknownFields.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.clarifai.grpc.api.LabelOrder)) { return super.equals(obj); } com.clarifai.grpc.api.LabelOrder other = (com.clarifai.grpc.api.LabelOrder) obj; if (!getId() .equals(other.getId())) return false; if (!getName() .equals(other.getName())) return false; if (hasStatus() != other.hasStatus()) return false; if (hasStatus()) { if (!getStatus() .equals(other.getStatus())) return false; } if (getAutoRelease() != other.getAutoRelease()) return false; if (getAllowEmptyTag() != other.getAllowEmptyTag()) return false; if (hasDesiredFulfillTime() != other.hasDesiredFulfillTime()) return false; if (hasDesiredFulfillTime()) { if (!getDesiredFulfillTime() .equals(other.getDesiredFulfillTime())) return false; } if (hasEstimateFulfillTime() != other.hasEstimateFulfillTime()) return false; if (hasEstimateFulfillTime()) { if (!getEstimateFulfillTime() .equals(other.getEstimateFulfillTime())) return false; } if (hasTask() != other.hasTask()) return false; if (hasTask()) { if (!getTask() .equals(other.getTask())) return false; } if (hasCreatedAt() != other.hasCreatedAt()) return false; if (hasCreatedAt()) { if (!getCreatedAt() .equals(other.getCreatedAt())) return false; } if (hasModifiedAt() != other.hasModifiedAt()) return false; if (hasModifiedAt()) { if (!getModifiedAt() .equals(other.getModifiedAt())) return false; } if (!unknownFields.equals(other.unknownFields)) 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) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (hasStatus()) { hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + getStatus().hashCode(); } hash = (37 * hash) + AUTO_RELEASE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getAutoRelease()); hash = (37 * hash) + ALLOW_EMPTY_TAG_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getAllowEmptyTag()); if (hasDesiredFulfillTime()) { hash = (37 * hash) + DESIRED_FULFILL_TIME_FIELD_NUMBER; hash = (53 * hash) + getDesiredFulfillTime().hashCode(); } if (hasEstimateFulfillTime()) { hash = (37 * hash) + ESTIMATE_FULFILL_TIME_FIELD_NUMBER; hash = (53 * hash) + getEstimateFulfillTime().hashCode(); } if (hasTask()) { hash = (37 * hash) + TASK_FIELD_NUMBER; hash = (53 * hash) + getTask().hashCode(); } if (hasCreatedAt()) { hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; hash = (53 * hash) + getCreatedAt().hashCode(); } if (hasModifiedAt()) { hash = (37 * hash) + MODIFIED_AT_FIELD_NUMBER; hash = (53 * hash) + getModifiedAt().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.clarifai.grpc.api.LabelOrder parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.LabelOrder parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clarifai.grpc.api.LabelOrder parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.LabelOrder parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clarifai.grpc.api.LabelOrder parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.LabelOrder parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clarifai.grpc.api.LabelOrder parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clarifai.grpc.api.LabelOrder 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.clarifai.grpc.api.LabelOrder parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.clarifai.grpc.api.LabelOrder 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.clarifai.grpc.api.LabelOrder parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clarifai.grpc.api.LabelOrder 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.clarifai.grpc.api.LabelOrder 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; } /** *
   * LabelOrder
   * 
* * Protobuf type {@code clarifai.api.LabelOrder} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:clarifai.api.LabelOrder) com.clarifai.grpc.api.LabelOrderOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_LabelOrder_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_LabelOrder_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clarifai.grpc.api.LabelOrder.class, com.clarifai.grpc.api.LabelOrder.Builder.class); } // Construct using com.clarifai.grpc.api.LabelOrder.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); id_ = ""; name_ = ""; if (statusBuilder_ == null) { status_ = null; } else { status_ = null; statusBuilder_ = null; } autoRelease_ = false; allowEmptyTag_ = false; if (desiredFulfillTimeBuilder_ == null) { desiredFulfillTime_ = null; } else { desiredFulfillTime_ = null; desiredFulfillTimeBuilder_ = null; } if (estimateFulfillTimeBuilder_ == null) { estimateFulfillTime_ = null; } else { estimateFulfillTime_ = null; estimateFulfillTimeBuilder_ = null; } if (taskBuilder_ == null) { task_ = null; } else { task_ = null; taskBuilder_ = null; } if (createdAtBuilder_ == null) { createdAt_ = null; } else { createdAt_ = null; createdAtBuilder_ = null; } if (modifiedAtBuilder_ == null) { modifiedAt_ = null; } else { modifiedAt_ = null; modifiedAtBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_LabelOrder_descriptor; } @java.lang.Override public com.clarifai.grpc.api.LabelOrder getDefaultInstanceForType() { return com.clarifai.grpc.api.LabelOrder.getDefaultInstance(); } @java.lang.Override public com.clarifai.grpc.api.LabelOrder build() { com.clarifai.grpc.api.LabelOrder result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.clarifai.grpc.api.LabelOrder buildPartial() { com.clarifai.grpc.api.LabelOrder result = new com.clarifai.grpc.api.LabelOrder(this); result.id_ = id_; result.name_ = name_; if (statusBuilder_ == null) { result.status_ = status_; } else { result.status_ = statusBuilder_.build(); } result.autoRelease_ = autoRelease_; result.allowEmptyTag_ = allowEmptyTag_; if (desiredFulfillTimeBuilder_ == null) { result.desiredFulfillTime_ = desiredFulfillTime_; } else { result.desiredFulfillTime_ = desiredFulfillTimeBuilder_.build(); } if (estimateFulfillTimeBuilder_ == null) { result.estimateFulfillTime_ = estimateFulfillTime_; } else { result.estimateFulfillTime_ = estimateFulfillTimeBuilder_.build(); } if (taskBuilder_ == null) { result.task_ = task_; } else { result.task_ = taskBuilder_.build(); } if (createdAtBuilder_ == null) { result.createdAt_ = createdAt_; } else { result.createdAt_ = createdAtBuilder_.build(); } if (modifiedAtBuilder_ == null) { result.modifiedAt_ = modifiedAt_; } else { result.modifiedAt_ = modifiedAtBuilder_.build(); } onBuilt(); return result; } @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.clarifai.grpc.api.LabelOrder) { return mergeFrom((com.clarifai.grpc.api.LabelOrder)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.clarifai.grpc.api.LabelOrder other) { if (other == com.clarifai.grpc.api.LabelOrder.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.hasStatus()) { mergeStatus(other.getStatus()); } if (other.getAutoRelease() != false) { setAutoRelease(other.getAutoRelease()); } if (other.getAllowEmptyTag() != false) { setAllowEmptyTag(other.getAllowEmptyTag()); } if (other.hasDesiredFulfillTime()) { mergeDesiredFulfillTime(other.getDesiredFulfillTime()); } if (other.hasEstimateFulfillTime()) { mergeEstimateFulfillTime(other.getEstimateFulfillTime()); } if (other.hasTask()) { mergeTask(other.getTask()); } if (other.hasCreatedAt()) { mergeCreatedAt(other.getCreatedAt()); } if (other.hasModifiedAt()) { mergeModifiedAt(other.getModifiedAt()); } this.mergeUnknownFields(other.unknownFields); 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 { com.clarifai.grpc.api.LabelOrder parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.clarifai.grpc.api.LabelOrder) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object id_ = ""; /** *
     * id of the order
     * 
* * string id = 1; * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * id of the order
     * 
* * string id = 1; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * id of the order
     * 
* * string id = 1; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** *
     * id of the order
     * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
     * id of the order
     * 
* * string id = 1; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; onChanged(); return this; } private java.lang.Object name_ = ""; /** *
     * name of the order
     * 
* * string name = 2; * @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; } } /** *
     * name of the order
     * 
* * string name = 2; * @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; } } /** *
     * name of the order
     * 
* * string name = 2; * @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; onChanged(); return this; } /** *
     * name of the order
     * 
* * string name = 2; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
     * name of the order
     * 
* * string name = 2; * @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; onChanged(); return this; } private com.clarifai.grpc.api.status.Status status_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.status.Status, com.clarifai.grpc.api.status.Status.Builder, com.clarifai.grpc.api.status.StatusOrBuilder> statusBuilder_; /** *
     * status of the order.
     * pending (QA lead review the order),
     * in progress (labeling in progress),
     * ready for release (passed clarifai QA and client can review)
     * success (released)
     * 
* * .clarifai.api.status.Status status = 3; * @return Whether the status field is set. */ public boolean hasStatus() { return statusBuilder_ != null || status_ != null; } /** *
     * status of the order.
     * pending (QA lead review the order),
     * in progress (labeling in progress),
     * ready for release (passed clarifai QA and client can review)
     * success (released)
     * 
* * .clarifai.api.status.Status status = 3; * @return The status. */ public com.clarifai.grpc.api.status.Status getStatus() { if (statusBuilder_ == null) { return status_ == null ? com.clarifai.grpc.api.status.Status.getDefaultInstance() : status_; } else { return statusBuilder_.getMessage(); } } /** *
     * status of the order.
     * pending (QA lead review the order),
     * in progress (labeling in progress),
     * ready for release (passed clarifai QA and client can review)
     * success (released)
     * 
* * .clarifai.api.status.Status status = 3; */ public Builder setStatus(com.clarifai.grpc.api.status.Status value) { if (statusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } status_ = value; onChanged(); } else { statusBuilder_.setMessage(value); } return this; } /** *
     * status of the order.
     * pending (QA lead review the order),
     * in progress (labeling in progress),
     * ready for release (passed clarifai QA and client can review)
     * success (released)
     * 
* * .clarifai.api.status.Status status = 3; */ public Builder setStatus( com.clarifai.grpc.api.status.Status.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); onChanged(); } else { statusBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * status of the order.
     * pending (QA lead review the order),
     * in progress (labeling in progress),
     * ready for release (passed clarifai QA and client can review)
     * success (released)
     * 
* * .clarifai.api.status.Status status = 3; */ public Builder mergeStatus(com.clarifai.grpc.api.status.Status value) { if (statusBuilder_ == null) { if (status_ != null) { status_ = com.clarifai.grpc.api.status.Status.newBuilder(status_).mergeFrom(value).buildPartial(); } else { status_ = value; } onChanged(); } else { statusBuilder_.mergeFrom(value); } return this; } /** *
     * status of the order.
     * pending (QA lead review the order),
     * in progress (labeling in progress),
     * ready for release (passed clarifai QA and client can review)
     * success (released)
     * 
* * .clarifai.api.status.Status status = 3; */ public Builder clearStatus() { if (statusBuilder_ == null) { status_ = null; onChanged(); } else { status_ = null; statusBuilder_ = null; } return this; } /** *
     * status of the order.
     * pending (QA lead review the order),
     * in progress (labeling in progress),
     * ready for release (passed clarifai QA and client can review)
     * success (released)
     * 
* * .clarifai.api.status.Status status = 3; */ public com.clarifai.grpc.api.status.Status.Builder getStatusBuilder() { onChanged(); return getStatusFieldBuilder().getBuilder(); } /** *
     * status of the order.
     * pending (QA lead review the order),
     * in progress (labeling in progress),
     * ready for release (passed clarifai QA and client can review)
     * success (released)
     * 
* * .clarifai.api.status.Status status = 3; */ public com.clarifai.grpc.api.status.StatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { return status_ == null ? com.clarifai.grpc.api.status.Status.getDefaultInstance() : status_; } } /** *
     * status of the order.
     * pending (QA lead review the order),
     * in progress (labeling in progress),
     * ready for release (passed clarifai QA and client can review)
     * success (released)
     * 
* * .clarifai.api.status.Status status = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.status.Status, com.clarifai.grpc.api.status.Status.Builder, com.clarifai.grpc.api.status.StatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.status.Status, com.clarifai.grpc.api.status.Status.Builder, com.clarifai.grpc.api.status.StatusOrBuilder>( getStatus(), getParentForChildren(), isClean()); status_ = null; } return statusBuilder_; } private boolean autoRelease_ ; /** *
     * if set to true, automatically release the labels once passed clarifai review.
     * 
* * bool auto_release = 4; * @return The autoRelease. */ @java.lang.Override public boolean getAutoRelease() { return autoRelease_; } /** *
     * if set to true, automatically release the labels once passed clarifai review.
     * 
* * bool auto_release = 4; * @param value The autoRelease to set. * @return This builder for chaining. */ public Builder setAutoRelease(boolean value) { autoRelease_ = value; onChanged(); return this; } /** *
     * if set to true, automatically release the labels once passed clarifai review.
     * 
* * bool auto_release = 4; * @return This builder for chaining. */ public Builder clearAutoRelease() { autoRelease_ = false; onChanged(); return this; } private boolean allowEmptyTag_ ; /** *
     * allow input without any tag.
     * 
* * bool allow_empty_tag = 5; * @return The allowEmptyTag. */ @java.lang.Override public boolean getAllowEmptyTag() { return allowEmptyTag_; } /** *
     * allow input without any tag.
     * 
* * bool allow_empty_tag = 5; * @param value The allowEmptyTag to set. * @return This builder for chaining. */ public Builder setAllowEmptyTag(boolean value) { allowEmptyTag_ = value; onChanged(); return this; } /** *
     * allow input without any tag.
     * 
* * bool allow_empty_tag = 5; * @return This builder for chaining. */ public Builder clearAllowEmptyTag() { allowEmptyTag_ = false; onChanged(); return this; } private com.google.protobuf.Timestamp desiredFulfillTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> desiredFulfillTimeBuilder_; /** *
     * User desired estimation when the task should be done
     * 
* * .google.protobuf.Timestamp desired_fulfill_time = 6; * @return Whether the desiredFulfillTime field is set. */ public boolean hasDesiredFulfillTime() { return desiredFulfillTimeBuilder_ != null || desiredFulfillTime_ != null; } /** *
     * User desired estimation when the task should be done
     * 
* * .google.protobuf.Timestamp desired_fulfill_time = 6; * @return The desiredFulfillTime. */ public com.google.protobuf.Timestamp getDesiredFulfillTime() { if (desiredFulfillTimeBuilder_ == null) { return desiredFulfillTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : desiredFulfillTime_; } else { return desiredFulfillTimeBuilder_.getMessage(); } } /** *
     * User desired estimation when the task should be done
     * 
* * .google.protobuf.Timestamp desired_fulfill_time = 6; */ public Builder setDesiredFulfillTime(com.google.protobuf.Timestamp value) { if (desiredFulfillTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } desiredFulfillTime_ = value; onChanged(); } else { desiredFulfillTimeBuilder_.setMessage(value); } return this; } /** *
     * User desired estimation when the task should be done
     * 
* * .google.protobuf.Timestamp desired_fulfill_time = 6; */ public Builder setDesiredFulfillTime( com.google.protobuf.Timestamp.Builder builderForValue) { if (desiredFulfillTimeBuilder_ == null) { desiredFulfillTime_ = builderForValue.build(); onChanged(); } else { desiredFulfillTimeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * User desired estimation when the task should be done
     * 
* * .google.protobuf.Timestamp desired_fulfill_time = 6; */ public Builder mergeDesiredFulfillTime(com.google.protobuf.Timestamp value) { if (desiredFulfillTimeBuilder_ == null) { if (desiredFulfillTime_ != null) { desiredFulfillTime_ = com.google.protobuf.Timestamp.newBuilder(desiredFulfillTime_).mergeFrom(value).buildPartial(); } else { desiredFulfillTime_ = value; } onChanged(); } else { desiredFulfillTimeBuilder_.mergeFrom(value); } return this; } /** *
     * User desired estimation when the task should be done
     * 
* * .google.protobuf.Timestamp desired_fulfill_time = 6; */ public Builder clearDesiredFulfillTime() { if (desiredFulfillTimeBuilder_ == null) { desiredFulfillTime_ = null; onChanged(); } else { desiredFulfillTime_ = null; desiredFulfillTimeBuilder_ = null; } return this; } /** *
     * User desired estimation when the task should be done
     * 
* * .google.protobuf.Timestamp desired_fulfill_time = 6; */ public com.google.protobuf.Timestamp.Builder getDesiredFulfillTimeBuilder() { onChanged(); return getDesiredFulfillTimeFieldBuilder().getBuilder(); } /** *
     * User desired estimation when the task should be done
     * 
* * .google.protobuf.Timestamp desired_fulfill_time = 6; */ public com.google.protobuf.TimestampOrBuilder getDesiredFulfillTimeOrBuilder() { if (desiredFulfillTimeBuilder_ != null) { return desiredFulfillTimeBuilder_.getMessageOrBuilder(); } else { return desiredFulfillTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : desiredFulfillTime_; } } /** *
     * User desired estimation when the task should be done
     * 
* * .google.protobuf.Timestamp desired_fulfill_time = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getDesiredFulfillTimeFieldBuilder() { if (desiredFulfillTimeBuilder_ == null) { desiredFulfillTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getDesiredFulfillTime(), getParentForChildren(), isClean()); desiredFulfillTime_ = null; } return desiredFulfillTimeBuilder_; } private com.google.protobuf.Timestamp estimateFulfillTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> estimateFulfillTimeBuilder_; /** *
     * Clarifai estimation when the task should be done .
     * 
* * .google.protobuf.Timestamp estimate_fulfill_time = 7; * @return Whether the estimateFulfillTime field is set. */ public boolean hasEstimateFulfillTime() { return estimateFulfillTimeBuilder_ != null || estimateFulfillTime_ != null; } /** *
     * Clarifai estimation when the task should be done .
     * 
* * .google.protobuf.Timestamp estimate_fulfill_time = 7; * @return The estimateFulfillTime. */ public com.google.protobuf.Timestamp getEstimateFulfillTime() { if (estimateFulfillTimeBuilder_ == null) { return estimateFulfillTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : estimateFulfillTime_; } else { return estimateFulfillTimeBuilder_.getMessage(); } } /** *
     * Clarifai estimation when the task should be done .
     * 
* * .google.protobuf.Timestamp estimate_fulfill_time = 7; */ public Builder setEstimateFulfillTime(com.google.protobuf.Timestamp value) { if (estimateFulfillTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } estimateFulfillTime_ = value; onChanged(); } else { estimateFulfillTimeBuilder_.setMessage(value); } return this; } /** *
     * Clarifai estimation when the task should be done .
     * 
* * .google.protobuf.Timestamp estimate_fulfill_time = 7; */ public Builder setEstimateFulfillTime( com.google.protobuf.Timestamp.Builder builderForValue) { if (estimateFulfillTimeBuilder_ == null) { estimateFulfillTime_ = builderForValue.build(); onChanged(); } else { estimateFulfillTimeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Clarifai estimation when the task should be done .
     * 
* * .google.protobuf.Timestamp estimate_fulfill_time = 7; */ public Builder mergeEstimateFulfillTime(com.google.protobuf.Timestamp value) { if (estimateFulfillTimeBuilder_ == null) { if (estimateFulfillTime_ != null) { estimateFulfillTime_ = com.google.protobuf.Timestamp.newBuilder(estimateFulfillTime_).mergeFrom(value).buildPartial(); } else { estimateFulfillTime_ = value; } onChanged(); } else { estimateFulfillTimeBuilder_.mergeFrom(value); } return this; } /** *
     * Clarifai estimation when the task should be done .
     * 
* * .google.protobuf.Timestamp estimate_fulfill_time = 7; */ public Builder clearEstimateFulfillTime() { if (estimateFulfillTimeBuilder_ == null) { estimateFulfillTime_ = null; onChanged(); } else { estimateFulfillTime_ = null; estimateFulfillTimeBuilder_ = null; } return this; } /** *
     * Clarifai estimation when the task should be done .
     * 
* * .google.protobuf.Timestamp estimate_fulfill_time = 7; */ public com.google.protobuf.Timestamp.Builder getEstimateFulfillTimeBuilder() { onChanged(); return getEstimateFulfillTimeFieldBuilder().getBuilder(); } /** *
     * Clarifai estimation when the task should be done .
     * 
* * .google.protobuf.Timestamp estimate_fulfill_time = 7; */ public com.google.protobuf.TimestampOrBuilder getEstimateFulfillTimeOrBuilder() { if (estimateFulfillTimeBuilder_ != null) { return estimateFulfillTimeBuilder_.getMessageOrBuilder(); } else { return estimateFulfillTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : estimateFulfillTime_; } } /** *
     * Clarifai estimation when the task should be done .
     * 
* * .google.protobuf.Timestamp estimate_fulfill_time = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEstimateFulfillTimeFieldBuilder() { if (estimateFulfillTimeBuilder_ == null) { estimateFulfillTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getEstimateFulfillTime(), getParentForChildren(), isClean()); estimateFulfillTime_ = null; } return estimateFulfillTimeBuilder_; } private com.clarifai.grpc.api.Task task_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Task, com.clarifai.grpc.api.Task.Builder, com.clarifai.grpc.api.TaskOrBuilder> taskBuilder_; /** *
     * task for this label order
     * 
* * .clarifai.api.Task task = 8; * @return Whether the task field is set. */ public boolean hasTask() { return taskBuilder_ != null || task_ != null; } /** *
     * task for this label order
     * 
* * .clarifai.api.Task task = 8; * @return The task. */ public com.clarifai.grpc.api.Task getTask() { if (taskBuilder_ == null) { return task_ == null ? com.clarifai.grpc.api.Task.getDefaultInstance() : task_; } else { return taskBuilder_.getMessage(); } } /** *
     * task for this label order
     * 
* * .clarifai.api.Task task = 8; */ public Builder setTask(com.clarifai.grpc.api.Task value) { if (taskBuilder_ == null) { if (value == null) { throw new NullPointerException(); } task_ = value; onChanged(); } else { taskBuilder_.setMessage(value); } return this; } /** *
     * task for this label order
     * 
* * .clarifai.api.Task task = 8; */ public Builder setTask( com.clarifai.grpc.api.Task.Builder builderForValue) { if (taskBuilder_ == null) { task_ = builderForValue.build(); onChanged(); } else { taskBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * task for this label order
     * 
* * .clarifai.api.Task task = 8; */ public Builder mergeTask(com.clarifai.grpc.api.Task value) { if (taskBuilder_ == null) { if (task_ != null) { task_ = com.clarifai.grpc.api.Task.newBuilder(task_).mergeFrom(value).buildPartial(); } else { task_ = value; } onChanged(); } else { taskBuilder_.mergeFrom(value); } return this; } /** *
     * task for this label order
     * 
* * .clarifai.api.Task task = 8; */ public Builder clearTask() { if (taskBuilder_ == null) { task_ = null; onChanged(); } else { task_ = null; taskBuilder_ = null; } return this; } /** *
     * task for this label order
     * 
* * .clarifai.api.Task task = 8; */ public com.clarifai.grpc.api.Task.Builder getTaskBuilder() { onChanged(); return getTaskFieldBuilder().getBuilder(); } /** *
     * task for this label order
     * 
* * .clarifai.api.Task task = 8; */ public com.clarifai.grpc.api.TaskOrBuilder getTaskOrBuilder() { if (taskBuilder_ != null) { return taskBuilder_.getMessageOrBuilder(); } else { return task_ == null ? com.clarifai.grpc.api.Task.getDefaultInstance() : task_; } } /** *
     * task for this label order
     * 
* * .clarifai.api.Task task = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Task, com.clarifai.grpc.api.Task.Builder, com.clarifai.grpc.api.TaskOrBuilder> getTaskFieldBuilder() { if (taskBuilder_ == null) { taskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Task, com.clarifai.grpc.api.Task.Builder, com.clarifai.grpc.api.TaskOrBuilder>( getTask(), getParentForChildren(), isClean()); task_ = null; } return taskBuilder_; } private com.google.protobuf.Timestamp createdAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; /** *
     * When the label order was created.
     * The format is https://www.ietf.org/rfc/rfc3339.txt.
     * Example: "2006-01-02T15:04:05.999999Z".
     * 
* * .google.protobuf.Timestamp created_at = 9; * @return Whether the createdAt field is set. */ public boolean hasCreatedAt() { return createdAtBuilder_ != null || createdAt_ != null; } /** *
     * When the label order was created.
     * The format is https://www.ietf.org/rfc/rfc3339.txt.
     * Example: "2006-01-02T15:04:05.999999Z".
     * 
* * .google.protobuf.Timestamp created_at = 9; * @return The createdAt. */ public com.google.protobuf.Timestamp getCreatedAt() { if (createdAtBuilder_ == null) { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } else { return createdAtBuilder_.getMessage(); } } /** *
     * When the label order was created.
     * The format is https://www.ietf.org/rfc/rfc3339.txt.
     * Example: "2006-01-02T15:04:05.999999Z".
     * 
* * .google.protobuf.Timestamp created_at = 9; */ public Builder setCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createdAt_ = value; onChanged(); } else { createdAtBuilder_.setMessage(value); } return this; } /** *
     * When the label order was created.
     * The format is https://www.ietf.org/rfc/rfc3339.txt.
     * Example: "2006-01-02T15:04:05.999999Z".
     * 
* * .google.protobuf.Timestamp created_at = 9; */ public Builder setCreatedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (createdAtBuilder_ == null) { createdAt_ = builderForValue.build(); onChanged(); } else { createdAtBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * When the label order was created.
     * The format is https://www.ietf.org/rfc/rfc3339.txt.
     * Example: "2006-01-02T15:04:05.999999Z".
     * 
* * .google.protobuf.Timestamp created_at = 9; */ public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (createdAt_ != null) { createdAt_ = com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial(); } else { createdAt_ = value; } onChanged(); } else { createdAtBuilder_.mergeFrom(value); } return this; } /** *
     * When the label order was created.
     * The format is https://www.ietf.org/rfc/rfc3339.txt.
     * Example: "2006-01-02T15:04:05.999999Z".
     * 
* * .google.protobuf.Timestamp created_at = 9; */ public Builder clearCreatedAt() { if (createdAtBuilder_ == null) { createdAt_ = null; onChanged(); } else { createdAt_ = null; createdAtBuilder_ = null; } return this; } /** *
     * When the label order was created.
     * The format is https://www.ietf.org/rfc/rfc3339.txt.
     * Example: "2006-01-02T15:04:05.999999Z".
     * 
* * .google.protobuf.Timestamp created_at = 9; */ public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { onChanged(); return getCreatedAtFieldBuilder().getBuilder(); } /** *
     * When the label order was created.
     * The format is https://www.ietf.org/rfc/rfc3339.txt.
     * Example: "2006-01-02T15:04:05.999999Z".
     * 
* * .google.protobuf.Timestamp created_at = 9; */ public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { if (createdAtBuilder_ != null) { return createdAtBuilder_.getMessageOrBuilder(); } else { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } } /** *
     * When the label order was created.
     * The format is https://www.ietf.org/rfc/rfc3339.txt.
     * Example: "2006-01-02T15:04:05.999999Z".
     * 
* * .google.protobuf.Timestamp created_at = 9; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreatedAtFieldBuilder() { if (createdAtBuilder_ == null) { createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCreatedAt(), getParentForChildren(), isClean()); createdAt_ = null; } return createdAtBuilder_; } private com.google.protobuf.Timestamp modifiedAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> modifiedAtBuilder_; /** *
     * Most recent time when the label order was updated.
     * The format is https://www.ietf.org/rfc/rfc3339.txt.
     * Example: "2006-01-02T15:04:05.999999Z".
     * 
* * .google.protobuf.Timestamp modified_at = 10; * @return Whether the modifiedAt field is set. */ public boolean hasModifiedAt() { return modifiedAtBuilder_ != null || modifiedAt_ != null; } /** *
     * Most recent time when the label order was updated.
     * The format is https://www.ietf.org/rfc/rfc3339.txt.
     * Example: "2006-01-02T15:04:05.999999Z".
     * 
* * .google.protobuf.Timestamp modified_at = 10; * @return The modifiedAt. */ public com.google.protobuf.Timestamp getModifiedAt() { if (modifiedAtBuilder_ == null) { return modifiedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modifiedAt_; } else { return modifiedAtBuilder_.getMessage(); } } /** *
     * Most recent time when the label order was updated.
     * The format is https://www.ietf.org/rfc/rfc3339.txt.
     * Example: "2006-01-02T15:04:05.999999Z".
     * 
* * .google.protobuf.Timestamp modified_at = 10; */ public Builder setModifiedAt(com.google.protobuf.Timestamp value) { if (modifiedAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } modifiedAt_ = value; onChanged(); } else { modifiedAtBuilder_.setMessage(value); } return this; } /** *
     * Most recent time when the label order was updated.
     * The format is https://www.ietf.org/rfc/rfc3339.txt.
     * Example: "2006-01-02T15:04:05.999999Z".
     * 
* * .google.protobuf.Timestamp modified_at = 10; */ public Builder setModifiedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (modifiedAtBuilder_ == null) { modifiedAt_ = builderForValue.build(); onChanged(); } else { modifiedAtBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Most recent time when the label order was updated.
     * The format is https://www.ietf.org/rfc/rfc3339.txt.
     * Example: "2006-01-02T15:04:05.999999Z".
     * 
* * .google.protobuf.Timestamp modified_at = 10; */ public Builder mergeModifiedAt(com.google.protobuf.Timestamp value) { if (modifiedAtBuilder_ == null) { if (modifiedAt_ != null) { modifiedAt_ = com.google.protobuf.Timestamp.newBuilder(modifiedAt_).mergeFrom(value).buildPartial(); } else { modifiedAt_ = value; } onChanged(); } else { modifiedAtBuilder_.mergeFrom(value); } return this; } /** *
     * Most recent time when the label order was updated.
     * The format is https://www.ietf.org/rfc/rfc3339.txt.
     * Example: "2006-01-02T15:04:05.999999Z".
     * 
* * .google.protobuf.Timestamp modified_at = 10; */ public Builder clearModifiedAt() { if (modifiedAtBuilder_ == null) { modifiedAt_ = null; onChanged(); } else { modifiedAt_ = null; modifiedAtBuilder_ = null; } return this; } /** *
     * Most recent time when the label order was updated.
     * The format is https://www.ietf.org/rfc/rfc3339.txt.
     * Example: "2006-01-02T15:04:05.999999Z".
     * 
* * .google.protobuf.Timestamp modified_at = 10; */ public com.google.protobuf.Timestamp.Builder getModifiedAtBuilder() { onChanged(); return getModifiedAtFieldBuilder().getBuilder(); } /** *
     * Most recent time when the label order was updated.
     * The format is https://www.ietf.org/rfc/rfc3339.txt.
     * Example: "2006-01-02T15:04:05.999999Z".
     * 
* * .google.protobuf.Timestamp modified_at = 10; */ public com.google.protobuf.TimestampOrBuilder getModifiedAtOrBuilder() { if (modifiedAtBuilder_ != null) { return modifiedAtBuilder_.getMessageOrBuilder(); } else { return modifiedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modifiedAt_; } } /** *
     * Most recent time when the label order was updated.
     * The format is https://www.ietf.org/rfc/rfc3339.txt.
     * Example: "2006-01-02T15:04:05.999999Z".
     * 
* * .google.protobuf.Timestamp modified_at = 10; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getModifiedAtFieldBuilder() { if (modifiedAtBuilder_ == null) { modifiedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getModifiedAt(), getParentForChildren(), isClean()); modifiedAt_ = null; } return modifiedAtBuilder_; } @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:clarifai.api.LabelOrder) } // @@protoc_insertion_point(class_scope:clarifai.api.LabelOrder) private static final com.clarifai.grpc.api.LabelOrder DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.clarifai.grpc.api.LabelOrder(); } public static com.clarifai.grpc.api.LabelOrder getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LabelOrder parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LabelOrder(input, extensionRegistry); } }; 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.clarifai.grpc.api.LabelOrder getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy