Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
* Application ID that this Operation was created from
*
*
* string app_id = 4;
* @return The bytes for appId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAppIdBytes() {
java.lang.Object ref = appId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
appId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STATUS_FIELD_NUMBER = 5;
private com.clarifai.grpc.api.status.Status status_;
/**
*
* Status (pending, in-progress, completed, failed) of the operation
*
*
* .clarifai.api.status.Status status = 5;
* @return Whether the status field is set.
*/
@java.lang.Override
public boolean hasStatus() {
return status_ != null;
}
/**
*
* Status (pending, in-progress, completed, failed) of the operation
*
*
* .clarifai.api.status.Status status = 5;
* @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 (pending, in-progress, completed, failed) of the operation
*
*
* .clarifai.api.status.Status status = 5;
*/
@java.lang.Override
public com.clarifai.grpc.api.status.StatusOrBuilder getStatusOrBuilder() {
return getStatus();
}
public static final int PROGRESS_FIELD_NUMBER = 6;
private com.clarifai.grpc.api.Progress progress_;
/**
*
* Progress of an on-going Bulk Operation task
*
*
* .clarifai.api.Progress progress = 6;
* @return Whether the progress field is set.
*/
@java.lang.Override
public boolean hasProgress() {
return progress_ != null;
}
/**
*
*
* string created_by = 7;
* @return The bytes for createdBy.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCreatedByBytes() {
java.lang.Object ref = createdBy_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
createdBy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CREATED_AT_FIELD_NUMBER = 8;
private com.google.protobuf.Timestamp createdAt_;
/**
*
* When the operation was created. We follow the XXXX timestamp
* format. We use https://www.ietf.org/rfc/rfc3339.txt format:
* "2006-01-02T15:04:05.999999Z" so you can expect results like
* the following from the API:
* "2017-04-11T21:50:50.223962Z"
*
*
* .google.protobuf.Timestamp created_at = 8;
* @return Whether the createdAt field is set.
*/
@java.lang.Override
public boolean hasCreatedAt() {
return createdAt_ != null;
}
/**
*
* When the operation was created. We follow the XXXX timestamp
* format. We use https://www.ietf.org/rfc/rfc3339.txt format:
* "2006-01-02T15:04:05.999999Z" so you can expect results like
* the following from the API:
* "2017-04-11T21:50:50.223962Z"
*
* When the operation was created. We follow the XXXX timestamp
* format. We use https://www.ietf.org/rfc/rfc3339.txt format:
* "2006-01-02T15:04:05.999999Z" so you can expect results like
* the following from the API:
* "2017-04-11T21:50:50.223962Z"
*
*
* .google.protobuf.Timestamp created_at = 8;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
return getCreatedAt();
}
public static final int LAST_MODIFIED_AT_FIELD_NUMBER = 9;
private com.google.protobuf.Timestamp lastModifiedAt_;
/**
*
* Last time the status got updated
*
*
* .google.protobuf.Timestamp last_modified_at = 9;
* @return Whether the lastModifiedAt field is set.
*/
@java.lang.Override
public boolean hasLastModifiedAt() {
return lastModifiedAt_ != null;
}
/**
*
*
* .google.protobuf.Timestamp last_modified_at = 9;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getLastModifiedAtOrBuilder() {
return getLastModifiedAt();
}
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 (inputSourceCase_ == 2) {
output.writeMessage(2, (com.clarifai.grpc.api.InputIDs) inputSource_);
}
if (operation_ != null) {
output.writeMessage(3, getOperation());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(appId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, appId_);
}
if (status_ != null) {
output.writeMessage(5, getStatus());
}
if (progress_ != null) {
output.writeMessage(6, getProgress());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(createdBy_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, createdBy_);
}
if (createdAt_ != null) {
output.writeMessage(8, getCreatedAt());
}
if (lastModifiedAt_ != null) {
output.writeMessage(9, getLastModifiedAt());
}
if (inputSourceCase_ == 10) {
output.writeMessage(10, (com.clarifai.grpc.api.Search) inputSource_);
}
if (inputSourceCase_ == 11) {
output.writeMessage(11, (com.clarifai.grpc.api.Dataset) inputSource_);
}
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 (inputSourceCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (com.clarifai.grpc.api.InputIDs) inputSource_);
}
if (operation_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getOperation());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(appId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, appId_);
}
if (status_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getStatus());
}
if (progress_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getProgress());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(createdBy_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, createdBy_);
}
if (createdAt_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getCreatedAt());
}
if (lastModifiedAt_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getLastModifiedAt());
}
if (inputSourceCase_ == 10) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, (com.clarifai.grpc.api.Search) inputSource_);
}
if (inputSourceCase_ == 11) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, (com.clarifai.grpc.api.Dataset) inputSource_);
}
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.BulkOperation)) {
return super.equals(obj);
}
com.clarifai.grpc.api.BulkOperation other = (com.clarifai.grpc.api.BulkOperation) obj;
if (!getId()
.equals(other.getId())) return false;
if (hasOperation() != other.hasOperation()) return false;
if (hasOperation()) {
if (!getOperation()
.equals(other.getOperation())) return false;
}
if (!getAppId()
.equals(other.getAppId())) return false;
if (hasStatus() != other.hasStatus()) return false;
if (hasStatus()) {
if (!getStatus()
.equals(other.getStatus())) return false;
}
if (hasProgress() != other.hasProgress()) return false;
if (hasProgress()) {
if (!getProgress()
.equals(other.getProgress())) return false;
}
if (!getCreatedBy()
.equals(other.getCreatedBy())) return false;
if (hasCreatedAt() != other.hasCreatedAt()) return false;
if (hasCreatedAt()) {
if (!getCreatedAt()
.equals(other.getCreatedAt())) return false;
}
if (hasLastModifiedAt() != other.hasLastModifiedAt()) return false;
if (hasLastModifiedAt()) {
if (!getLastModifiedAt()
.equals(other.getLastModifiedAt())) return false;
}
if (!getInputSourceCase().equals(other.getInputSourceCase())) return false;
switch (inputSourceCase_) {
case 2:
if (!getInputIds()
.equals(other.getInputIds())) return false;
break;
case 10:
if (!getSearch()
.equals(other.getSearch())) return false;
break;
case 11:
if (!getDataset()
.equals(other.getDataset())) return false;
break;
case 0:
default:
}
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();
if (hasOperation()) {
hash = (37 * hash) + OPERATION_FIELD_NUMBER;
hash = (53 * hash) + getOperation().hashCode();
}
hash = (37 * hash) + APP_ID_FIELD_NUMBER;
hash = (53 * hash) + getAppId().hashCode();
if (hasStatus()) {
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + getStatus().hashCode();
}
if (hasProgress()) {
hash = (37 * hash) + PROGRESS_FIELD_NUMBER;
hash = (53 * hash) + getProgress().hashCode();
}
hash = (37 * hash) + CREATED_BY_FIELD_NUMBER;
hash = (53 * hash) + getCreatedBy().hashCode();
if (hasCreatedAt()) {
hash = (37 * hash) + CREATED_AT_FIELD_NUMBER;
hash = (53 * hash) + getCreatedAt().hashCode();
}
if (hasLastModifiedAt()) {
hash = (37 * hash) + LAST_MODIFIED_AT_FIELD_NUMBER;
hash = (53 * hash) + getLastModifiedAt().hashCode();
}
switch (inputSourceCase_) {
case 2:
hash = (37 * hash) + INPUT_IDS_FIELD_NUMBER;
hash = (53 * hash) + getInputIds().hashCode();
break;
case 10:
hash = (37 * hash) + SEARCH_FIELD_NUMBER;
hash = (53 * hash) + getSearch().hashCode();
break;
case 11:
hash = (37 * hash) + DATASET_FIELD_NUMBER;
hash = (53 * hash) + getDataset().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.clarifai.grpc.api.BulkOperation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.BulkOperation 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.BulkOperation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.BulkOperation 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.BulkOperation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.BulkOperation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.clarifai.grpc.api.BulkOperation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.BulkOperation 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.BulkOperation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.BulkOperation 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.BulkOperation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.BulkOperation 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.BulkOperation prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code clarifai.api.BulkOperation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:clarifai.api.BulkOperation)
com.clarifai.grpc.api.BulkOperationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_BulkOperation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_BulkOperation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.clarifai.grpc.api.BulkOperation.class, com.clarifai.grpc.api.BulkOperation.Builder.class);
}
// Construct using com.clarifai.grpc.api.BulkOperation.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_ = "";
if (operationBuilder_ == null) {
operation_ = null;
} else {
operation_ = null;
operationBuilder_ = null;
}
appId_ = "";
if (statusBuilder_ == null) {
status_ = null;
} else {
status_ = null;
statusBuilder_ = null;
}
if (progressBuilder_ == null) {
progress_ = null;
} else {
progress_ = null;
progressBuilder_ = null;
}
createdBy_ = "";
if (createdAtBuilder_ == null) {
createdAt_ = null;
} else {
createdAt_ = null;
createdAtBuilder_ = null;
}
if (lastModifiedAtBuilder_ == null) {
lastModifiedAt_ = null;
} else {
lastModifiedAt_ = null;
lastModifiedAtBuilder_ = null;
}
inputSourceCase_ = 0;
inputSource_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_BulkOperation_descriptor;
}
@java.lang.Override
public com.clarifai.grpc.api.BulkOperation getDefaultInstanceForType() {
return com.clarifai.grpc.api.BulkOperation.getDefaultInstance();
}
@java.lang.Override
public com.clarifai.grpc.api.BulkOperation build() {
com.clarifai.grpc.api.BulkOperation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.clarifai.grpc.api.BulkOperation buildPartial() {
com.clarifai.grpc.api.BulkOperation result = new com.clarifai.grpc.api.BulkOperation(this);
result.id_ = id_;
if (inputSourceCase_ == 2) {
if (inputIdsBuilder_ == null) {
result.inputSource_ = inputSource_;
} else {
result.inputSource_ = inputIdsBuilder_.build();
}
}
if (inputSourceCase_ == 10) {
if (searchBuilder_ == null) {
result.inputSource_ = inputSource_;
} else {
result.inputSource_ = searchBuilder_.build();
}
}
if (inputSourceCase_ == 11) {
if (datasetBuilder_ == null) {
result.inputSource_ = inputSource_;
} else {
result.inputSource_ = datasetBuilder_.build();
}
}
if (operationBuilder_ == null) {
result.operation_ = operation_;
} else {
result.operation_ = operationBuilder_.build();
}
result.appId_ = appId_;
if (statusBuilder_ == null) {
result.status_ = status_;
} else {
result.status_ = statusBuilder_.build();
}
if (progressBuilder_ == null) {
result.progress_ = progress_;
} else {
result.progress_ = progressBuilder_.build();
}
result.createdBy_ = createdBy_;
if (createdAtBuilder_ == null) {
result.createdAt_ = createdAt_;
} else {
result.createdAt_ = createdAtBuilder_.build();
}
if (lastModifiedAtBuilder_ == null) {
result.lastModifiedAt_ = lastModifiedAt_;
} else {
result.lastModifiedAt_ = lastModifiedAtBuilder_.build();
}
result.inputSourceCase_ = inputSourceCase_;
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.BulkOperation) {
return mergeFrom((com.clarifai.grpc.api.BulkOperation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.clarifai.grpc.api.BulkOperation other) {
if (other == com.clarifai.grpc.api.BulkOperation.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (other.hasOperation()) {
mergeOperation(other.getOperation());
}
if (!other.getAppId().isEmpty()) {
appId_ = other.appId_;
onChanged();
}
if (other.hasStatus()) {
mergeStatus(other.getStatus());
}
if (other.hasProgress()) {
mergeProgress(other.getProgress());
}
if (!other.getCreatedBy().isEmpty()) {
createdBy_ = other.createdBy_;
onChanged();
}
if (other.hasCreatedAt()) {
mergeCreatedAt(other.getCreatedAt());
}
if (other.hasLastModifiedAt()) {
mergeLastModifiedAt(other.getLastModifiedAt());
}
switch (other.getInputSourceCase()) {
case INPUT_IDS: {
mergeInputIds(other.getInputIds());
break;
}
case SEARCH: {
mergeSearch(other.getSearch());
break;
}
case DATASET: {
mergeDataset(other.getDataset());
break;
}
case INPUTSOURCE_NOT_SET: {
break;
}
}
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.BulkOperation parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.clarifai.grpc.api.BulkOperation) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int inputSourceCase_ = 0;
private java.lang.Object inputSource_;
public InputSourceCase
getInputSourceCase() {
return InputSourceCase.forNumber(
inputSourceCase_);
}
public Builder clearInputSource() {
inputSourceCase_ = 0;
inputSource_ = null;
onChanged();
return this;
}
private java.lang.Object id_ = "";
/**
*
* id of the Bulk Operation task
*
*
* 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 Bulk Operation task
*
*
* 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 Bulk Operation task
*
*
* 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 Bulk Operation task
*
*
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
* Application ID that this Operation was created from
*
*
* string app_id = 4;
* @return The bytes for appId.
*/
public com.google.protobuf.ByteString
getAppIdBytes() {
java.lang.Object ref = appId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
appId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Application ID that this Operation was created from
*
*
* string app_id = 4;
* @param value The appId to set.
* @return This builder for chaining.
*/
public Builder setAppId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
appId_ = value;
onChanged();
return this;
}
/**
*
* Application ID that this Operation was created from
*
*
* string app_id = 4;
* @return This builder for chaining.
*/
public Builder clearAppId() {
appId_ = getDefaultInstance().getAppId();
onChanged();
return this;
}
/**
*
* Application ID that this Operation was created from
*
*
* string app_id = 4;
* @param value The bytes for appId to set.
* @return This builder for chaining.
*/
public Builder setAppIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
appId_ = 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 (pending, in-progress, completed, failed) of the operation
*
*
* .clarifai.api.status.Status status = 5;
* @return Whether the status field is set.
*/
public boolean hasStatus() {
return statusBuilder_ != null || status_ != null;
}
/**
*
* Status (pending, in-progress, completed, failed) of the operation
*
*
* .clarifai.api.status.Status status = 5;
* @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 (pending, in-progress, completed, failed) of the operation
*
*
* .clarifai.api.status.Status status = 5;
*/
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 (pending, in-progress, completed, failed) of the operation
*
*
* string created_by = 7;
* @return The bytes for createdBy.
*/
public com.google.protobuf.ByteString
getCreatedByBytes() {
java.lang.Object ref = createdBy_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
createdBy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* User id that created this operation
*
*
* string created_by = 7;
* @param value The createdBy to set.
* @return This builder for chaining.
*/
public Builder setCreatedBy(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
createdBy_ = value;
onChanged();
return this;
}
/**
*
* User id that created this operation
*
*
* string created_by = 7;
* @return This builder for chaining.
*/
public Builder clearCreatedBy() {
createdBy_ = getDefaultInstance().getCreatedBy();
onChanged();
return this;
}
/**
*
* User id that created this operation
*
*
* string created_by = 7;
* @param value The bytes for createdBy to set.
* @return This builder for chaining.
*/
public Builder setCreatedByBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
createdBy_ = value;
onChanged();
return this;
}
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 operation was created. We follow the XXXX timestamp
* format. We use https://www.ietf.org/rfc/rfc3339.txt format:
* "2006-01-02T15:04:05.999999Z" so you can expect results like
* the following from the API:
* "2017-04-11T21:50:50.223962Z"
*
*
* .google.protobuf.Timestamp created_at = 8;
* @return Whether the createdAt field is set.
*/
public boolean hasCreatedAt() {
return createdAtBuilder_ != null || createdAt_ != null;
}
/**
*
* When the operation was created. We follow the XXXX timestamp
* format. We use https://www.ietf.org/rfc/rfc3339.txt format:
* "2006-01-02T15:04:05.999999Z" so you can expect results like
* the following from the API:
* "2017-04-11T21:50:50.223962Z"
*
* When the operation was created. We follow the XXXX timestamp
* format. We use https://www.ietf.org/rfc/rfc3339.txt format:
* "2006-01-02T15:04:05.999999Z" so you can expect results like
* the following from the API:
* "2017-04-11T21:50:50.223962Z"
*
*
* .google.protobuf.Timestamp created_at = 8;
*/
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 operation was created. We follow the XXXX timestamp
* format. We use https://www.ietf.org/rfc/rfc3339.txt format:
* "2006-01-02T15:04:05.999999Z" so you can expect results like
* the following from the API:
* "2017-04-11T21:50:50.223962Z"
*
* When the operation was created. We follow the XXXX timestamp
* format. We use https://www.ietf.org/rfc/rfc3339.txt format:
* "2006-01-02T15:04:05.999999Z" so you can expect results like
* the following from the API:
* "2017-04-11T21:50:50.223962Z"
*
* When the operation was created. We follow the XXXX timestamp
* format. We use https://www.ietf.org/rfc/rfc3339.txt format:
* "2006-01-02T15:04:05.999999Z" so you can expect results like
* the following from the API:
* "2017-04-11T21:50:50.223962Z"
*
* When the operation was created. We follow the XXXX timestamp
* format. We use https://www.ietf.org/rfc/rfc3339.txt format:
* "2006-01-02T15:04:05.999999Z" so you can expect results like
* the following from the API:
* "2017-04-11T21:50:50.223962Z"
*
* When the operation was created. We follow the XXXX timestamp
* format. We use https://www.ietf.org/rfc/rfc3339.txt format:
* "2006-01-02T15:04:05.999999Z" so you can expect results like
* the following from the API:
* "2017-04-11T21:50:50.223962Z"
*
* When the operation was created. We follow the XXXX timestamp
* format. We use https://www.ietf.org/rfc/rfc3339.txt format:
* "2006-01-02T15:04:05.999999Z" so you can expect results like
* the following from the API:
* "2017-04-11T21:50:50.223962Z"
*