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;
}
}