com.clarifai.grpc.api.InputsAddJob 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;
/**
* Protobuf type {@code clarifai.api.InputsAddJob}
*/
public final class InputsAddJob extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:clarifai.api.InputsAddJob)
InputsAddJobOrBuilder {
private static final long serialVersionUID = 0L;
// Use InputsAddJob.newBuilder() to construct.
private InputsAddJob(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private InputsAddJob() {
id_ = "";
callBackUrl_ = "";
appPat_ = "";
extractionJobs_ = java.util.Collections.emptyList();
uploads_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new InputsAddJob();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private InputsAddJob(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
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 26: {
java.lang.String s = input.readStringRequireUtf8();
callBackUrl_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
appPat_ = s;
break;
}
case 58: {
com.clarifai.grpc.api.InputsAddJobProgress.Builder subBuilder = null;
if (progress_ != null) {
subBuilder = progress_.toBuilder();
}
progress_ = input.readMessage(com.clarifai.grpc.api.InputsAddJobProgress.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(progress_);
progress_ = subBuilder.buildPartial();
}
break;
}
case 66: {
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 74: {
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;
}
case 82: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
extractionJobs_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
extractionJobs_.add(
input.readMessage(com.clarifai.grpc.api.InputsExtractionJob.parser(), extensionRegistry));
break;
}
case 90: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
uploads_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
uploads_.add(
input.readMessage(com.clarifai.grpc.api.Upload.parser(), extensionRegistry));
break;
}
case 98: {
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;
}
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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
extractionJobs_ = java.util.Collections.unmodifiableList(extractionJobs_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
uploads_ = java.util.Collections.unmodifiableList(uploads_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_InputsAddJob_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_InputsAddJob_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.clarifai.grpc.api.InputsAddJob.class, com.clarifai.grpc.api.InputsAddJob.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
*
* id of the job
*
*
* 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 job
*
*
* 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 CALL_BACK_URL_FIELD_NUMBER = 3;
private volatile java.lang.Object callBackUrl_;
/**
*
* If call back url is set, we will send a Post request to this endpoint with job status.
*
*
* string call_back_url = 3;
* @return The callBackUrl.
*/
@java.lang.Override
public java.lang.String getCallBackUrl() {
java.lang.Object ref = callBackUrl_;
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();
callBackUrl_ = s;
return s;
}
}
/**
*
* If call back url is set, we will send a Post request to this endpoint with job status.
*
*
* string call_back_url = 3;
* @return The bytes for callBackUrl.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCallBackUrlBytes() {
java.lang.Object ref = callBackUrl_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
callBackUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int APP_PAT_FIELD_NUMBER = 4;
private volatile java.lang.Object appPat_;
/**
*
* Personal Access Token to the application to which inputs are added
*
*
* string app_pat = 4;
* @return The appPat.
*/
@java.lang.Override
public java.lang.String getAppPat() {
java.lang.Object ref = appPat_;
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();
appPat_ = s;
return s;
}
}
/**
*
* Personal Access Token to the application to which inputs are added
*
*
* string app_pat = 4;
* @return The bytes for appPat.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAppPatBytes() {
java.lang.Object ref = appPat_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
appPat_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PROGRESS_FIELD_NUMBER = 7;
private com.clarifai.grpc.api.InputsAddJobProgress progress_;
/**
*
* Progress of an on-going Input Ingestion task
*
*
* .clarifai.api.InputsAddJobProgress progress = 7;
* @return Whether the progress field is set.
*/
@java.lang.Override
public boolean hasProgress() {
return progress_ != null;
}
/**
*
* Progress of an on-going Input Ingestion task
*
*
* .clarifai.api.InputsAddJobProgress progress = 7;
* @return The progress.
*/
@java.lang.Override
public com.clarifai.grpc.api.InputsAddJobProgress getProgress() {
return progress_ == null ? com.clarifai.grpc.api.InputsAddJobProgress.getDefaultInstance() : progress_;
}
/**
*
* Progress of an on-going Input Ingestion task
*
*
* .clarifai.api.InputsAddJobProgress progress = 7;
*/
@java.lang.Override
public com.clarifai.grpc.api.InputsAddJobProgressOrBuilder getProgressOrBuilder() {
return getProgress();
}
public static final int CREATED_AT_FIELD_NUMBER = 8;
private com.google.protobuf.Timestamp createdAt_;
/**
*
* When the job was created.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp created_at = 8;
* @return Whether the createdAt field is set.
*/
@java.lang.Override
public boolean hasCreatedAt() {
return createdAt_ != null;
}
/**
*
* When the job was created.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp created_at = 8;
* @return The createdAt.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getCreatedAt() {
return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
}
/**
*
* When the job was created.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp created_at = 8;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
return getCreatedAt();
}
public static final int MODIFIED_AT_FIELD_NUMBER = 9;
private com.google.protobuf.Timestamp modifiedAt_;
/**
*
* Most recent time when the job was updated.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp modified_at = 9;
* @return Whether the modifiedAt field is set.
*/
@java.lang.Override
public boolean hasModifiedAt() {
return modifiedAt_ != null;
}
/**
*
* Most recent time when the job was updated.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp modified_at = 9;
* @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 job was updated.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp modified_at = 9;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getModifiedAtOrBuilder() {
return getModifiedAt();
}
public static final int EXTRACTION_JOBS_FIELD_NUMBER = 10;
private java.util.List extractionJobs_;
/**
*
* Sub-jobs that extract inputs from the cloud and/or archives
*
*
* repeated .clarifai.api.InputsExtractionJob extraction_jobs = 10;
*/
@java.lang.Override
public java.util.List getExtractionJobsList() {
return extractionJobs_;
}
/**
*
* Sub-jobs that extract inputs from the cloud and/or archives
*
*
* repeated .clarifai.api.InputsExtractionJob extraction_jobs = 10;
*/
@java.lang.Override
public java.util.List extends com.clarifai.grpc.api.InputsExtractionJobOrBuilder>
getExtractionJobsOrBuilderList() {
return extractionJobs_;
}
/**
*
* Sub-jobs that extract inputs from the cloud and/or archives
*
*
* repeated .clarifai.api.InputsExtractionJob extraction_jobs = 10;
*/
@java.lang.Override
public int getExtractionJobsCount() {
return extractionJobs_.size();
}
/**
*
* Sub-jobs that extract inputs from the cloud and/or archives
*
*
* repeated .clarifai.api.InputsExtractionJob extraction_jobs = 10;
*/
@java.lang.Override
public com.clarifai.grpc.api.InputsExtractionJob getExtractionJobs(int index) {
return extractionJobs_.get(index);
}
/**
*
* Sub-jobs that extract inputs from the cloud and/or archives
*
*
* repeated .clarifai.api.InputsExtractionJob extraction_jobs = 10;
*/
@java.lang.Override
public com.clarifai.grpc.api.InputsExtractionJobOrBuilder getExtractionJobsOrBuilder(
int index) {
return extractionJobs_.get(index);
}
public static final int UPLOADS_FIELD_NUMBER = 11;
private java.util.List uploads_;
/**
*
* Archive uploads
*
*
* repeated .clarifai.api.Upload uploads = 11;
*/
@java.lang.Override
public java.util.List getUploadsList() {
return uploads_;
}
/**
*
* Archive uploads
*
*
* repeated .clarifai.api.Upload uploads = 11;
*/
@java.lang.Override
public java.util.List extends com.clarifai.grpc.api.UploadOrBuilder>
getUploadsOrBuilderList() {
return uploads_;
}
/**
*
* Archive uploads
*
*
* repeated .clarifai.api.Upload uploads = 11;
*/
@java.lang.Override
public int getUploadsCount() {
return uploads_.size();
}
/**
*
* Archive uploads
*
*
* repeated .clarifai.api.Upload uploads = 11;
*/
@java.lang.Override
public com.clarifai.grpc.api.Upload getUploads(int index) {
return uploads_.get(index);
}
/**
*
* Archive uploads
*
*
* repeated .clarifai.api.Upload uploads = 11;
*/
@java.lang.Override
public com.clarifai.grpc.api.UploadOrBuilder getUploadsOrBuilder(
int index) {
return uploads_.get(index);
}
public static final int STATUS_FIELD_NUMBER = 12;
private com.clarifai.grpc.api.status.Status status_;
/**
*
* Status of the job
*
*
* .clarifai.api.status.Status status = 12;
* @return Whether the status field is set.
*/
@java.lang.Override
public boolean hasStatus() {
return status_ != null;
}
/**
*
* Status of the job
*
*
* .clarifai.api.status.Status status = 12;
* @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 job
*
*
* .clarifai.api.status.Status status = 12;
*/
@java.lang.Override
public com.clarifai.grpc.api.status.StatusOrBuilder getStatusOrBuilder() {
return getStatus();
}
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(callBackUrl_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, callBackUrl_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(appPat_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, appPat_);
}
if (progress_ != null) {
output.writeMessage(7, getProgress());
}
if (createdAt_ != null) {
output.writeMessage(8, getCreatedAt());
}
if (modifiedAt_ != null) {
output.writeMessage(9, getModifiedAt());
}
for (int i = 0; i < extractionJobs_.size(); i++) {
output.writeMessage(10, extractionJobs_.get(i));
}
for (int i = 0; i < uploads_.size(); i++) {
output.writeMessage(11, uploads_.get(i));
}
if (status_ != null) {
output.writeMessage(12, getStatus());
}
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(callBackUrl_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, callBackUrl_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(appPat_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, appPat_);
}
if (progress_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getProgress());
}
if (createdAt_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getCreatedAt());
}
if (modifiedAt_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getModifiedAt());
}
for (int i = 0; i < extractionJobs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, extractionJobs_.get(i));
}
for (int i = 0; i < uploads_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, uploads_.get(i));
}
if (status_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, getStatus());
}
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.InputsAddJob)) {
return super.equals(obj);
}
com.clarifai.grpc.api.InputsAddJob other = (com.clarifai.grpc.api.InputsAddJob) obj;
if (!getId()
.equals(other.getId())) return false;
if (!getCallBackUrl()
.equals(other.getCallBackUrl())) return false;
if (!getAppPat()
.equals(other.getAppPat())) return false;
if (hasProgress() != other.hasProgress()) return false;
if (hasProgress()) {
if (!getProgress()
.equals(other.getProgress())) 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 (!getExtractionJobsList()
.equals(other.getExtractionJobsList())) return false;
if (!getUploadsList()
.equals(other.getUploadsList())) return false;
if (hasStatus() != other.hasStatus()) return false;
if (hasStatus()) {
if (!getStatus()
.equals(other.getStatus())) 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) + CALL_BACK_URL_FIELD_NUMBER;
hash = (53 * hash) + getCallBackUrl().hashCode();
hash = (37 * hash) + APP_PAT_FIELD_NUMBER;
hash = (53 * hash) + getAppPat().hashCode();
if (hasProgress()) {
hash = (37 * hash) + PROGRESS_FIELD_NUMBER;
hash = (53 * hash) + getProgress().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();
}
if (getExtractionJobsCount() > 0) {
hash = (37 * hash) + EXTRACTION_JOBS_FIELD_NUMBER;
hash = (53 * hash) + getExtractionJobsList().hashCode();
}
if (getUploadsCount() > 0) {
hash = (37 * hash) + UPLOADS_FIELD_NUMBER;
hash = (53 * hash) + getUploadsList().hashCode();
}
if (hasStatus()) {
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + getStatus().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.clarifai.grpc.api.InputsAddJob parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.InputsAddJob 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.InputsAddJob parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.InputsAddJob 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.InputsAddJob parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.InputsAddJob parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.clarifai.grpc.api.InputsAddJob parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.InputsAddJob 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.InputsAddJob parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.InputsAddJob 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.InputsAddJob parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.InputsAddJob 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.InputsAddJob 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.InputsAddJob}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:clarifai.api.InputsAddJob)
com.clarifai.grpc.api.InputsAddJobOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_InputsAddJob_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_InputsAddJob_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.clarifai.grpc.api.InputsAddJob.class, com.clarifai.grpc.api.InputsAddJob.Builder.class);
}
// Construct using com.clarifai.grpc.api.InputsAddJob.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getExtractionJobsFieldBuilder();
getUploadsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
id_ = "";
callBackUrl_ = "";
appPat_ = "";
if (progressBuilder_ == null) {
progress_ = null;
} else {
progress_ = null;
progressBuilder_ = null;
}
if (createdAtBuilder_ == null) {
createdAt_ = null;
} else {
createdAt_ = null;
createdAtBuilder_ = null;
}
if (modifiedAtBuilder_ == null) {
modifiedAt_ = null;
} else {
modifiedAt_ = null;
modifiedAtBuilder_ = null;
}
if (extractionJobsBuilder_ == null) {
extractionJobs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
extractionJobsBuilder_.clear();
}
if (uploadsBuilder_ == null) {
uploads_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
uploadsBuilder_.clear();
}
if (statusBuilder_ == null) {
status_ = null;
} else {
status_ = null;
statusBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_InputsAddJob_descriptor;
}
@java.lang.Override
public com.clarifai.grpc.api.InputsAddJob getDefaultInstanceForType() {
return com.clarifai.grpc.api.InputsAddJob.getDefaultInstance();
}
@java.lang.Override
public com.clarifai.grpc.api.InputsAddJob build() {
com.clarifai.grpc.api.InputsAddJob result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.clarifai.grpc.api.InputsAddJob buildPartial() {
com.clarifai.grpc.api.InputsAddJob result = new com.clarifai.grpc.api.InputsAddJob(this);
int from_bitField0_ = bitField0_;
result.id_ = id_;
result.callBackUrl_ = callBackUrl_;
result.appPat_ = appPat_;
if (progressBuilder_ == null) {
result.progress_ = progress_;
} else {
result.progress_ = progressBuilder_.build();
}
if (createdAtBuilder_ == null) {
result.createdAt_ = createdAt_;
} else {
result.createdAt_ = createdAtBuilder_.build();
}
if (modifiedAtBuilder_ == null) {
result.modifiedAt_ = modifiedAt_;
} else {
result.modifiedAt_ = modifiedAtBuilder_.build();
}
if (extractionJobsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
extractionJobs_ = java.util.Collections.unmodifiableList(extractionJobs_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.extractionJobs_ = extractionJobs_;
} else {
result.extractionJobs_ = extractionJobsBuilder_.build();
}
if (uploadsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
uploads_ = java.util.Collections.unmodifiableList(uploads_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.uploads_ = uploads_;
} else {
result.uploads_ = uploadsBuilder_.build();
}
if (statusBuilder_ == null) {
result.status_ = status_;
} else {
result.status_ = statusBuilder_.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.InputsAddJob) {
return mergeFrom((com.clarifai.grpc.api.InputsAddJob)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.clarifai.grpc.api.InputsAddJob other) {
if (other == com.clarifai.grpc.api.InputsAddJob.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (!other.getCallBackUrl().isEmpty()) {
callBackUrl_ = other.callBackUrl_;
onChanged();
}
if (!other.getAppPat().isEmpty()) {
appPat_ = other.appPat_;
onChanged();
}
if (other.hasProgress()) {
mergeProgress(other.getProgress());
}
if (other.hasCreatedAt()) {
mergeCreatedAt(other.getCreatedAt());
}
if (other.hasModifiedAt()) {
mergeModifiedAt(other.getModifiedAt());
}
if (extractionJobsBuilder_ == null) {
if (!other.extractionJobs_.isEmpty()) {
if (extractionJobs_.isEmpty()) {
extractionJobs_ = other.extractionJobs_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureExtractionJobsIsMutable();
extractionJobs_.addAll(other.extractionJobs_);
}
onChanged();
}
} else {
if (!other.extractionJobs_.isEmpty()) {
if (extractionJobsBuilder_.isEmpty()) {
extractionJobsBuilder_.dispose();
extractionJobsBuilder_ = null;
extractionJobs_ = other.extractionJobs_;
bitField0_ = (bitField0_ & ~0x00000001);
extractionJobsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getExtractionJobsFieldBuilder() : null;
} else {
extractionJobsBuilder_.addAllMessages(other.extractionJobs_);
}
}
}
if (uploadsBuilder_ == null) {
if (!other.uploads_.isEmpty()) {
if (uploads_.isEmpty()) {
uploads_ = other.uploads_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureUploadsIsMutable();
uploads_.addAll(other.uploads_);
}
onChanged();
}
} else {
if (!other.uploads_.isEmpty()) {
if (uploadsBuilder_.isEmpty()) {
uploadsBuilder_.dispose();
uploadsBuilder_ = null;
uploads_ = other.uploads_;
bitField0_ = (bitField0_ & ~0x00000002);
uploadsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getUploadsFieldBuilder() : null;
} else {
uploadsBuilder_.addAllMessages(other.uploads_);
}
}
}
if (other.hasStatus()) {
mergeStatus(other.getStatus());
}
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.InputsAddJob parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.clarifai.grpc.api.InputsAddJob) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object id_ = "";
/**
*
* id of the job
*
*
* 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 job
*
*
* 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 job
*
*
* 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 job
*
*
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
* id of the job
*
*
* 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 callBackUrl_ = "";
/**
*
* If call back url is set, we will send a Post request to this endpoint with job status.
*
*
* string call_back_url = 3;
* @return The callBackUrl.
*/
public java.lang.String getCallBackUrl() {
java.lang.Object ref = callBackUrl_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
callBackUrl_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* If call back url is set, we will send a Post request to this endpoint with job status.
*
*
* string call_back_url = 3;
* @return The bytes for callBackUrl.
*/
public com.google.protobuf.ByteString
getCallBackUrlBytes() {
java.lang.Object ref = callBackUrl_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
callBackUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* If call back url is set, we will send a Post request to this endpoint with job status.
*
*
* string call_back_url = 3;
* @param value The callBackUrl to set.
* @return This builder for chaining.
*/
public Builder setCallBackUrl(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
callBackUrl_ = value;
onChanged();
return this;
}
/**
*
* If call back url is set, we will send a Post request to this endpoint with job status.
*
*
* string call_back_url = 3;
* @return This builder for chaining.
*/
public Builder clearCallBackUrl() {
callBackUrl_ = getDefaultInstance().getCallBackUrl();
onChanged();
return this;
}
/**
*
* If call back url is set, we will send a Post request to this endpoint with job status.
*
*
* string call_back_url = 3;
* @param value The bytes for callBackUrl to set.
* @return This builder for chaining.
*/
public Builder setCallBackUrlBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
callBackUrl_ = value;
onChanged();
return this;
}
private java.lang.Object appPat_ = "";
/**
*
* Personal Access Token to the application to which inputs are added
*
*
* string app_pat = 4;
* @return The appPat.
*/
public java.lang.String getAppPat() {
java.lang.Object ref = appPat_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
appPat_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Personal Access Token to the application to which inputs are added
*
*
* string app_pat = 4;
* @return The bytes for appPat.
*/
public com.google.protobuf.ByteString
getAppPatBytes() {
java.lang.Object ref = appPat_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
appPat_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Personal Access Token to the application to which inputs are added
*
*
* string app_pat = 4;
* @param value The appPat to set.
* @return This builder for chaining.
*/
public Builder setAppPat(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
appPat_ = value;
onChanged();
return this;
}
/**
*
* Personal Access Token to the application to which inputs are added
*
*
* string app_pat = 4;
* @return This builder for chaining.
*/
public Builder clearAppPat() {
appPat_ = getDefaultInstance().getAppPat();
onChanged();
return this;
}
/**
*
* Personal Access Token to the application to which inputs are added
*
*
* string app_pat = 4;
* @param value The bytes for appPat to set.
* @return This builder for chaining.
*/
public Builder setAppPatBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
appPat_ = value;
onChanged();
return this;
}
private com.clarifai.grpc.api.InputsAddJobProgress progress_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.InputsAddJobProgress, com.clarifai.grpc.api.InputsAddJobProgress.Builder, com.clarifai.grpc.api.InputsAddJobProgressOrBuilder> progressBuilder_;
/**
*
* Progress of an on-going Input Ingestion task
*
*
* .clarifai.api.InputsAddJobProgress progress = 7;
* @return Whether the progress field is set.
*/
public boolean hasProgress() {
return progressBuilder_ != null || progress_ != null;
}
/**
*
* Progress of an on-going Input Ingestion task
*
*
* .clarifai.api.InputsAddJobProgress progress = 7;
* @return The progress.
*/
public com.clarifai.grpc.api.InputsAddJobProgress getProgress() {
if (progressBuilder_ == null) {
return progress_ == null ? com.clarifai.grpc.api.InputsAddJobProgress.getDefaultInstance() : progress_;
} else {
return progressBuilder_.getMessage();
}
}
/**
*
* Progress of an on-going Input Ingestion task
*
*
* .clarifai.api.InputsAddJobProgress progress = 7;
*/
public Builder setProgress(com.clarifai.grpc.api.InputsAddJobProgress value) {
if (progressBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
progress_ = value;
onChanged();
} else {
progressBuilder_.setMessage(value);
}
return this;
}
/**
*
* Progress of an on-going Input Ingestion task
*
*
* .clarifai.api.InputsAddJobProgress progress = 7;
*/
public Builder setProgress(
com.clarifai.grpc.api.InputsAddJobProgress.Builder builderForValue) {
if (progressBuilder_ == null) {
progress_ = builderForValue.build();
onChanged();
} else {
progressBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Progress of an on-going Input Ingestion task
*
*
* .clarifai.api.InputsAddJobProgress progress = 7;
*/
public Builder mergeProgress(com.clarifai.grpc.api.InputsAddJobProgress value) {
if (progressBuilder_ == null) {
if (progress_ != null) {
progress_ =
com.clarifai.grpc.api.InputsAddJobProgress.newBuilder(progress_).mergeFrom(value).buildPartial();
} else {
progress_ = value;
}
onChanged();
} else {
progressBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Progress of an on-going Input Ingestion task
*
*
* .clarifai.api.InputsAddJobProgress progress = 7;
*/
public Builder clearProgress() {
if (progressBuilder_ == null) {
progress_ = null;
onChanged();
} else {
progress_ = null;
progressBuilder_ = null;
}
return this;
}
/**
*
* Progress of an on-going Input Ingestion task
*
*
* .clarifai.api.InputsAddJobProgress progress = 7;
*/
public com.clarifai.grpc.api.InputsAddJobProgress.Builder getProgressBuilder() {
onChanged();
return getProgressFieldBuilder().getBuilder();
}
/**
*
* Progress of an on-going Input Ingestion task
*
*
* .clarifai.api.InputsAddJobProgress progress = 7;
*/
public com.clarifai.grpc.api.InputsAddJobProgressOrBuilder getProgressOrBuilder() {
if (progressBuilder_ != null) {
return progressBuilder_.getMessageOrBuilder();
} else {
return progress_ == null ?
com.clarifai.grpc.api.InputsAddJobProgress.getDefaultInstance() : progress_;
}
}
/**
*
* Progress of an on-going Input Ingestion task
*
*
* .clarifai.api.InputsAddJobProgress progress = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.InputsAddJobProgress, com.clarifai.grpc.api.InputsAddJobProgress.Builder, com.clarifai.grpc.api.InputsAddJobProgressOrBuilder>
getProgressFieldBuilder() {
if (progressBuilder_ == null) {
progressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.InputsAddJobProgress, com.clarifai.grpc.api.InputsAddJobProgress.Builder, com.clarifai.grpc.api.InputsAddJobProgressOrBuilder>(
getProgress(),
getParentForChildren(),
isClean());
progress_ = null;
}
return progressBuilder_;
}
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 job was created.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp created_at = 8;
* @return Whether the createdAt field is set.
*/
public boolean hasCreatedAt() {
return createdAtBuilder_ != null || createdAt_ != null;
}
/**
*
* When the job was created.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp created_at = 8;
* @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 job was created.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .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 job was created.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp created_at = 8;
*/
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 job was created.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp created_at = 8;
*/
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 job was created.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp created_at = 8;
*/
public Builder clearCreatedAt() {
if (createdAtBuilder_ == null) {
createdAt_ = null;
onChanged();
} else {
createdAt_ = null;
createdAtBuilder_ = null;
}
return this;
}
/**
*
* When the job was created.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp created_at = 8;
*/
public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() {
onChanged();
return getCreatedAtFieldBuilder().getBuilder();
}
/**
*
* When the job was created.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp created_at = 8;
*/
public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
if (createdAtBuilder_ != null) {
return createdAtBuilder_.getMessageOrBuilder();
} else {
return createdAt_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
}
}
/**
*
* When the job was created.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp created_at = 8;
*/
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 job was updated.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp modified_at = 9;
* @return Whether the modifiedAt field is set.
*/
public boolean hasModifiedAt() {
return modifiedAtBuilder_ != null || modifiedAt_ != null;
}
/**
*
* Most recent time when the job was updated.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp modified_at = 9;
* @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 job was updated.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp modified_at = 9;
*/
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 job was updated.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp modified_at = 9;
*/
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 job was updated.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp modified_at = 9;
*/
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 job was updated.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp modified_at = 9;
*/
public Builder clearModifiedAt() {
if (modifiedAtBuilder_ == null) {
modifiedAt_ = null;
onChanged();
} else {
modifiedAt_ = null;
modifiedAtBuilder_ = null;
}
return this;
}
/**
*
* Most recent time when the job was updated.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp modified_at = 9;
*/
public com.google.protobuf.Timestamp.Builder getModifiedAtBuilder() {
onChanged();
return getModifiedAtFieldBuilder().getBuilder();
}
/**
*
* Most recent time when the job was updated.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp modified_at = 9;
*/
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 job was updated.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp modified_at = 9;
*/
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_;
}
private java.util.List extractionJobs_ =
java.util.Collections.emptyList();
private void ensureExtractionJobsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
extractionJobs_ = new java.util.ArrayList(extractionJobs_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.clarifai.grpc.api.InputsExtractionJob, com.clarifai.grpc.api.InputsExtractionJob.Builder, com.clarifai.grpc.api.InputsExtractionJobOrBuilder> extractionJobsBuilder_;
/**
*
* Sub-jobs that extract inputs from the cloud and/or archives
*
*
* repeated .clarifai.api.InputsExtractionJob extraction_jobs = 10;
*/
public java.util.List getExtractionJobsList() {
if (extractionJobsBuilder_ == null) {
return java.util.Collections.unmodifiableList(extractionJobs_);
} else {
return extractionJobsBuilder_.getMessageList();
}
}
/**
*
* Sub-jobs that extract inputs from the cloud and/or archives
*
*
* repeated .clarifai.api.InputsExtractionJob extraction_jobs = 10;
*/
public int getExtractionJobsCount() {
if (extractionJobsBuilder_ == null) {
return extractionJobs_.size();
} else {
return extractionJobsBuilder_.getCount();
}
}
/**
*
* Sub-jobs that extract inputs from the cloud and/or archives
*
*
* repeated .clarifai.api.InputsExtractionJob extraction_jobs = 10;
*/
public com.clarifai.grpc.api.InputsExtractionJob getExtractionJobs(int index) {
if (extractionJobsBuilder_ == null) {
return extractionJobs_.get(index);
} else {
return extractionJobsBuilder_.getMessage(index);
}
}
/**
*
* Sub-jobs that extract inputs from the cloud and/or archives
*
*
* repeated .clarifai.api.InputsExtractionJob extraction_jobs = 10;
*/
public Builder setExtractionJobs(
int index, com.clarifai.grpc.api.InputsExtractionJob value) {
if (extractionJobsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureExtractionJobsIsMutable();
extractionJobs_.set(index, value);
onChanged();
} else {
extractionJobsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Sub-jobs that extract inputs from the cloud and/or archives
*
*
* repeated .clarifai.api.InputsExtractionJob extraction_jobs = 10;
*/
public Builder setExtractionJobs(
int index, com.clarifai.grpc.api.InputsExtractionJob.Builder builderForValue) {
if (extractionJobsBuilder_ == null) {
ensureExtractionJobsIsMutable();
extractionJobs_.set(index, builderForValue.build());
onChanged();
} else {
extractionJobsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Sub-jobs that extract inputs from the cloud and/or archives
*
*
* repeated .clarifai.api.InputsExtractionJob extraction_jobs = 10;
*/
public Builder addExtractionJobs(com.clarifai.grpc.api.InputsExtractionJob value) {
if (extractionJobsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureExtractionJobsIsMutable();
extractionJobs_.add(value);
onChanged();
} else {
extractionJobsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Sub-jobs that extract inputs from the cloud and/or archives
*
*
* repeated .clarifai.api.InputsExtractionJob extraction_jobs = 10;
*/
public Builder addExtractionJobs(
int index, com.clarifai.grpc.api.InputsExtractionJob value) {
if (extractionJobsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureExtractionJobsIsMutable();
extractionJobs_.add(index, value);
onChanged();
} else {
extractionJobsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Sub-jobs that extract inputs from the cloud and/or archives
*
*
* repeated .clarifai.api.InputsExtractionJob extraction_jobs = 10;
*/
public Builder addExtractionJobs(
com.clarifai.grpc.api.InputsExtractionJob.Builder builderForValue) {
if (extractionJobsBuilder_ == null) {
ensureExtractionJobsIsMutable();
extractionJobs_.add(builderForValue.build());
onChanged();
} else {
extractionJobsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Sub-jobs that extract inputs from the cloud and/or archives
*
*
* repeated .clarifai.api.InputsExtractionJob extraction_jobs = 10;
*/
public Builder addExtractionJobs(
int index, com.clarifai.grpc.api.InputsExtractionJob.Builder builderForValue) {
if (extractionJobsBuilder_ == null) {
ensureExtractionJobsIsMutable();
extractionJobs_.add(index, builderForValue.build());
onChanged();
} else {
extractionJobsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Sub-jobs that extract inputs from the cloud and/or archives
*
*
* repeated .clarifai.api.InputsExtractionJob extraction_jobs = 10;
*/
public Builder addAllExtractionJobs(
java.lang.Iterable extends com.clarifai.grpc.api.InputsExtractionJob> values) {
if (extractionJobsBuilder_ == null) {
ensureExtractionJobsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, extractionJobs_);
onChanged();
} else {
extractionJobsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Sub-jobs that extract inputs from the cloud and/or archives
*
*
* repeated .clarifai.api.InputsExtractionJob extraction_jobs = 10;
*/
public Builder clearExtractionJobs() {
if (extractionJobsBuilder_ == null) {
extractionJobs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
extractionJobsBuilder_.clear();
}
return this;
}
/**
*
* Sub-jobs that extract inputs from the cloud and/or archives
*
*
* repeated .clarifai.api.InputsExtractionJob extraction_jobs = 10;
*/
public Builder removeExtractionJobs(int index) {
if (extractionJobsBuilder_ == null) {
ensureExtractionJobsIsMutable();
extractionJobs_.remove(index);
onChanged();
} else {
extractionJobsBuilder_.remove(index);
}
return this;
}
/**
*
* Sub-jobs that extract inputs from the cloud and/or archives
*
*
* repeated .clarifai.api.InputsExtractionJob extraction_jobs = 10;
*/
public com.clarifai.grpc.api.InputsExtractionJob.Builder getExtractionJobsBuilder(
int index) {
return getExtractionJobsFieldBuilder().getBuilder(index);
}
/**
*
* Sub-jobs that extract inputs from the cloud and/or archives
*
*
* repeated .clarifai.api.InputsExtractionJob extraction_jobs = 10;
*/
public com.clarifai.grpc.api.InputsExtractionJobOrBuilder getExtractionJobsOrBuilder(
int index) {
if (extractionJobsBuilder_ == null) {
return extractionJobs_.get(index); } else {
return extractionJobsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Sub-jobs that extract inputs from the cloud and/or archives
*
*
* repeated .clarifai.api.InputsExtractionJob extraction_jobs = 10;
*/
public java.util.List extends com.clarifai.grpc.api.InputsExtractionJobOrBuilder>
getExtractionJobsOrBuilderList() {
if (extractionJobsBuilder_ != null) {
return extractionJobsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(extractionJobs_);
}
}
/**
*
* Sub-jobs that extract inputs from the cloud and/or archives
*
*
* repeated .clarifai.api.InputsExtractionJob extraction_jobs = 10;
*/
public com.clarifai.grpc.api.InputsExtractionJob.Builder addExtractionJobsBuilder() {
return getExtractionJobsFieldBuilder().addBuilder(
com.clarifai.grpc.api.InputsExtractionJob.getDefaultInstance());
}
/**
*
* Sub-jobs that extract inputs from the cloud and/or archives
*
*
* repeated .clarifai.api.InputsExtractionJob extraction_jobs = 10;
*/
public com.clarifai.grpc.api.InputsExtractionJob.Builder addExtractionJobsBuilder(
int index) {
return getExtractionJobsFieldBuilder().addBuilder(
index, com.clarifai.grpc.api.InputsExtractionJob.getDefaultInstance());
}
/**
*
* Sub-jobs that extract inputs from the cloud and/or archives
*
*
* repeated .clarifai.api.InputsExtractionJob extraction_jobs = 10;
*/
public java.util.List
getExtractionJobsBuilderList() {
return getExtractionJobsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.clarifai.grpc.api.InputsExtractionJob, com.clarifai.grpc.api.InputsExtractionJob.Builder, com.clarifai.grpc.api.InputsExtractionJobOrBuilder>
getExtractionJobsFieldBuilder() {
if (extractionJobsBuilder_ == null) {
extractionJobsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.clarifai.grpc.api.InputsExtractionJob, com.clarifai.grpc.api.InputsExtractionJob.Builder, com.clarifai.grpc.api.InputsExtractionJobOrBuilder>(
extractionJobs_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
extractionJobs_ = null;
}
return extractionJobsBuilder_;
}
private java.util.List uploads_ =
java.util.Collections.emptyList();
private void ensureUploadsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
uploads_ = new java.util.ArrayList(uploads_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.clarifai.grpc.api.Upload, com.clarifai.grpc.api.Upload.Builder, com.clarifai.grpc.api.UploadOrBuilder> uploadsBuilder_;
/**
*
* Archive uploads
*
*
* repeated .clarifai.api.Upload uploads = 11;
*/
public java.util.List getUploadsList() {
if (uploadsBuilder_ == null) {
return java.util.Collections.unmodifiableList(uploads_);
} else {
return uploadsBuilder_.getMessageList();
}
}
/**
*
* Archive uploads
*
*
* repeated .clarifai.api.Upload uploads = 11;
*/
public int getUploadsCount() {
if (uploadsBuilder_ == null) {
return uploads_.size();
} else {
return uploadsBuilder_.getCount();
}
}
/**
*
* Archive uploads
*
*
* repeated .clarifai.api.Upload uploads = 11;
*/
public com.clarifai.grpc.api.Upload getUploads(int index) {
if (uploadsBuilder_ == null) {
return uploads_.get(index);
} else {
return uploadsBuilder_.getMessage(index);
}
}
/**
*
* Archive uploads
*
*
* repeated .clarifai.api.Upload uploads = 11;
*/
public Builder setUploads(
int index, com.clarifai.grpc.api.Upload value) {
if (uploadsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUploadsIsMutable();
uploads_.set(index, value);
onChanged();
} else {
uploadsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Archive uploads
*
*
* repeated .clarifai.api.Upload uploads = 11;
*/
public Builder setUploads(
int index, com.clarifai.grpc.api.Upload.Builder builderForValue) {
if (uploadsBuilder_ == null) {
ensureUploadsIsMutable();
uploads_.set(index, builderForValue.build());
onChanged();
} else {
uploadsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Archive uploads
*
*
* repeated .clarifai.api.Upload uploads = 11;
*/
public Builder addUploads(com.clarifai.grpc.api.Upload value) {
if (uploadsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUploadsIsMutable();
uploads_.add(value);
onChanged();
} else {
uploadsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Archive uploads
*
*
* repeated .clarifai.api.Upload uploads = 11;
*/
public Builder addUploads(
int index, com.clarifai.grpc.api.Upload value) {
if (uploadsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUploadsIsMutable();
uploads_.add(index, value);
onChanged();
} else {
uploadsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Archive uploads
*
*
* repeated .clarifai.api.Upload uploads = 11;
*/
public Builder addUploads(
com.clarifai.grpc.api.Upload.Builder builderForValue) {
if (uploadsBuilder_ == null) {
ensureUploadsIsMutable();
uploads_.add(builderForValue.build());
onChanged();
} else {
uploadsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Archive uploads
*
*
* repeated .clarifai.api.Upload uploads = 11;
*/
public Builder addUploads(
int index, com.clarifai.grpc.api.Upload.Builder builderForValue) {
if (uploadsBuilder_ == null) {
ensureUploadsIsMutable();
uploads_.add(index, builderForValue.build());
onChanged();
} else {
uploadsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Archive uploads
*
*
* repeated .clarifai.api.Upload uploads = 11;
*/
public Builder addAllUploads(
java.lang.Iterable extends com.clarifai.grpc.api.Upload> values) {
if (uploadsBuilder_ == null) {
ensureUploadsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, uploads_);
onChanged();
} else {
uploadsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Archive uploads
*
*
* repeated .clarifai.api.Upload uploads = 11;
*/
public Builder clearUploads() {
if (uploadsBuilder_ == null) {
uploads_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
uploadsBuilder_.clear();
}
return this;
}
/**
*
* Archive uploads
*
*
* repeated .clarifai.api.Upload uploads = 11;
*/
public Builder removeUploads(int index) {
if (uploadsBuilder_ == null) {
ensureUploadsIsMutable();
uploads_.remove(index);
onChanged();
} else {
uploadsBuilder_.remove(index);
}
return this;
}
/**
*
* Archive uploads
*
*
* repeated .clarifai.api.Upload uploads = 11;
*/
public com.clarifai.grpc.api.Upload.Builder getUploadsBuilder(
int index) {
return getUploadsFieldBuilder().getBuilder(index);
}
/**
*
* Archive uploads
*
*
* repeated .clarifai.api.Upload uploads = 11;
*/
public com.clarifai.grpc.api.UploadOrBuilder getUploadsOrBuilder(
int index) {
if (uploadsBuilder_ == null) {
return uploads_.get(index); } else {
return uploadsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Archive uploads
*
*
* repeated .clarifai.api.Upload uploads = 11;
*/
public java.util.List extends com.clarifai.grpc.api.UploadOrBuilder>
getUploadsOrBuilderList() {
if (uploadsBuilder_ != null) {
return uploadsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(uploads_);
}
}
/**
*
* Archive uploads
*
*
* repeated .clarifai.api.Upload uploads = 11;
*/
public com.clarifai.grpc.api.Upload.Builder addUploadsBuilder() {
return getUploadsFieldBuilder().addBuilder(
com.clarifai.grpc.api.Upload.getDefaultInstance());
}
/**
*
* Archive uploads
*
*
* repeated .clarifai.api.Upload uploads = 11;
*/
public com.clarifai.grpc.api.Upload.Builder addUploadsBuilder(
int index) {
return getUploadsFieldBuilder().addBuilder(
index, com.clarifai.grpc.api.Upload.getDefaultInstance());
}
/**
*
* Archive uploads
*
*
* repeated .clarifai.api.Upload uploads = 11;
*/
public java.util.List
getUploadsBuilderList() {
return getUploadsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.clarifai.grpc.api.Upload, com.clarifai.grpc.api.Upload.Builder, com.clarifai.grpc.api.UploadOrBuilder>
getUploadsFieldBuilder() {
if (uploadsBuilder_ == null) {
uploadsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.clarifai.grpc.api.Upload, com.clarifai.grpc.api.Upload.Builder, com.clarifai.grpc.api.UploadOrBuilder>(
uploads_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
uploads_ = null;
}
return uploadsBuilder_;
}
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 job
*
*
* .clarifai.api.status.Status status = 12;
* @return Whether the status field is set.
*/
public boolean hasStatus() {
return statusBuilder_ != null || status_ != null;
}
/**
*
* Status of the job
*
*
* .clarifai.api.status.Status status = 12;
* @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 job
*
*
* .clarifai.api.status.Status status = 12;
*/
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 job
*
*
* .clarifai.api.status.Status status = 12;
*/
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 job
*
*
* .clarifai.api.status.Status status = 12;
*/
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 job
*
*
* .clarifai.api.status.Status status = 12;
*/
public Builder clearStatus() {
if (statusBuilder_ == null) {
status_ = null;
onChanged();
} else {
status_ = null;
statusBuilder_ = null;
}
return this;
}
/**
*
* Status of the job
*
*
* .clarifai.api.status.Status status = 12;
*/
public com.clarifai.grpc.api.status.Status.Builder getStatusBuilder() {
onChanged();
return getStatusFieldBuilder().getBuilder();
}
/**
*
* Status of the job
*
*
* .clarifai.api.status.Status status = 12;
*/
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 job
*
*
* .clarifai.api.status.Status status = 12;
*/
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_;
}
@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.InputsAddJob)
}
// @@protoc_insertion_point(class_scope:clarifai.api.InputsAddJob)
private static final com.clarifai.grpc.api.InputsAddJob DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.clarifai.grpc.api.InputsAddJob();
}
public static com.clarifai.grpc.api.InputsAddJob getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public InputsAddJob parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new InputsAddJob(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.InputsAddJob getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}