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.
*
* 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.
*
*
* .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;
}
/**
*