com.clarifai.grpc.api.InputsExtractionJob 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.InputsExtractionJob}
*/
public final class InputsExtractionJob extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:clarifai.api.InputsExtractionJob)
InputsExtractionJobOrBuilder {
private static final long serialVersionUID = 0L;
// Use InputsExtractionJob.newBuilder() to construct.
private InputsExtractionJob(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private InputsExtractionJob() {
id_ = "";
url_ = "";
inputIdConflictResolution_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new InputsExtractionJob();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private InputsExtractionJob(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.clarifai.grpc.api.status.Status.Builder subBuilder = null;
if (status_ != null) {
subBuilder = status_.toBuilder();
}
status_ = input.readMessage(com.clarifai.grpc.api.status.Status.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(status_);
status_ = subBuilder.buildPartial();
}
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
id_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
url_ = s;
break;
}
case 34: {
com.clarifai.grpc.api.InputsExtractionJobProgress.Builder subBuilder = null;
if (progress_ != null) {
subBuilder = progress_.toBuilder();
}
progress_ = input.readMessage(com.clarifai.grpc.api.InputsExtractionJobProgress.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(progress_);
progress_ = subBuilder.buildPartial();
}
break;
}
case 42: {
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 50: {
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 56: {
int rawValue = input.readEnum();
inputIdConflictResolution_ = rawValue;
break;
}
case 66: {
com.clarifai.grpc.api.Input.Builder subBuilder = null;
if (inputTemplate_ != null) {
subBuilder = inputTemplate_.toBuilder();
}
inputTemplate_ = input.readMessage(com.clarifai.grpc.api.Input.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(inputTemplate_);
inputTemplate_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_InputsExtractionJob_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_InputsExtractionJob_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.clarifai.grpc.api.InputsExtractionJob.class, com.clarifai.grpc.api.InputsExtractionJob.Builder.class);
}
public static final int STATUS_FIELD_NUMBER = 1;
private com.clarifai.grpc.api.status.Status status_;
/**
* .clarifai.api.status.Status status = 1;
* @return Whether the status field is set.
*/
@java.lang.Override
public boolean hasStatus() {
return status_ != null;
}
/**
* .clarifai.api.status.Status status = 1;
* @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_;
}
/**
* .clarifai.api.status.Status status = 1;
*/
@java.lang.Override
public com.clarifai.grpc.api.status.StatusOrBuilder getStatusOrBuilder() {
return getStatus();
}
public static final int ID_FIELD_NUMBER = 2;
private volatile java.lang.Object id_;
/**
*
* ID of extraction job
*
*
* string id = 2;
* @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 extraction job
*
*
* string id = 2;
* @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 URL_FIELD_NUMBER = 3;
private volatile java.lang.Object url_;
/**
*
* Url of archive or bucket
*
*
* string url = 3;
* @return The url.
*/
@java.lang.Override
public java.lang.String getUrl() {
java.lang.Object ref = url_;
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();
url_ = s;
return s;
}
}
/**
*
* Url of archive or bucket
*
*
* string url = 3;
* @return The bytes for url.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUrlBytes() {
java.lang.Object ref = url_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
url_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PROGRESS_FIELD_NUMBER = 4;
private com.clarifai.grpc.api.InputsExtractionJobProgress progress_;
/**
*
* Progress counts of the job
*
*
* .clarifai.api.InputsExtractionJobProgress progress = 4;
* @return Whether the progress field is set.
*/
@java.lang.Override
public boolean hasProgress() {
return progress_ != null;
}
/**
*
* Progress counts of the job
*
*
* .clarifai.api.InputsExtractionJobProgress progress = 4;
* @return The progress.
*/
@java.lang.Override
public com.clarifai.grpc.api.InputsExtractionJobProgress getProgress() {
return progress_ == null ? com.clarifai.grpc.api.InputsExtractionJobProgress.getDefaultInstance() : progress_;
}
/**
*
* Progress counts of the job
*
*
* .clarifai.api.InputsExtractionJobProgress progress = 4;
*/
@java.lang.Override
public com.clarifai.grpc.api.InputsExtractionJobProgressOrBuilder getProgressOrBuilder() {
return getProgress();
}
public static final int CREATED_AT_FIELD_NUMBER = 5;
private com.google.protobuf.Timestamp createdAt_;
/**
*
* When the extraction job was started.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp created_at = 5;
* @return Whether the createdAt field is set.
*/
@java.lang.Override
public boolean hasCreatedAt() {
return createdAt_ != null;
}
/**
*
* When the extraction job was started.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp created_at = 5;
* @return The createdAt.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getCreatedAt() {
return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
}
/**
*
* When the extraction job was started.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp created_at = 5;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
return getCreatedAt();
}
public static final int MODIFIED_AT_FIELD_NUMBER = 6;
private com.google.protobuf.Timestamp modifiedAt_;
/**
*
* Most recent time when the extraction 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 = 6;
* @return Whether the modifiedAt field is set.
*/
@java.lang.Override
public boolean hasModifiedAt() {
return modifiedAt_ != null;
}
/**
*
* Most recent time when the extraction 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 = 6;
* @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 extraction 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 = 6;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getModifiedAtOrBuilder() {
return getModifiedAt();
}
public static final int INPUT_ID_CONFLICT_RESOLUTION_FIELD_NUMBER = 7;
private int inputIdConflictResolution_;
/**
*
* How to handle input ID conflicts.
*
*
* .clarifai.api.InputIDConflictResolution input_id_conflict_resolution = 7;
* @return The enum numeric value on the wire for inputIdConflictResolution.
*/
@java.lang.Override public int getInputIdConflictResolutionValue() {
return inputIdConflictResolution_;
}
/**
*
* How to handle input ID conflicts.
*
*
* .clarifai.api.InputIDConflictResolution input_id_conflict_resolution = 7;
* @return The inputIdConflictResolution.
*/
@java.lang.Override public com.clarifai.grpc.api.InputIDConflictResolution getInputIdConflictResolution() {
@SuppressWarnings("deprecation")
com.clarifai.grpc.api.InputIDConflictResolution result = com.clarifai.grpc.api.InputIDConflictResolution.valueOf(inputIdConflictResolution_);
return result == null ? com.clarifai.grpc.api.InputIDConflictResolution.UNRECOGNIZED : result;
}
public static final int INPUT_TEMPLATE_FIELD_NUMBER = 8;
private com.clarifai.grpc.api.Input inputTemplate_;
/**
*
* Fields set in the template are added to all generated inputs
*
*
* .clarifai.api.Input input_template = 8;
* @return Whether the inputTemplate field is set.
*/
@java.lang.Override
public boolean hasInputTemplate() {
return inputTemplate_ != null;
}
/**
*
* Fields set in the template are added to all generated inputs
*
*
* .clarifai.api.Input input_template = 8;
* @return The inputTemplate.
*/
@java.lang.Override
public com.clarifai.grpc.api.Input getInputTemplate() {
return inputTemplate_ == null ? com.clarifai.grpc.api.Input.getDefaultInstance() : inputTemplate_;
}
/**
*
* Fields set in the template are added to all generated inputs
*
*
* .clarifai.api.Input input_template = 8;
*/
@java.lang.Override
public com.clarifai.grpc.api.InputOrBuilder getInputTemplateOrBuilder() {
return getInputTemplate();
}
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 (status_ != null) {
output.writeMessage(1, getStatus());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, url_);
}
if (progress_ != null) {
output.writeMessage(4, getProgress());
}
if (createdAt_ != null) {
output.writeMessage(5, getCreatedAt());
}
if (modifiedAt_ != null) {
output.writeMessage(6, getModifiedAt());
}
if (inputIdConflictResolution_ != com.clarifai.grpc.api.InputIDConflictResolution.INPUT_ID_CONFLICT_RESOLUTION_NOT_SET.getNumber()) {
output.writeEnum(7, inputIdConflictResolution_);
}
if (inputTemplate_ != null) {
output.writeMessage(8, getInputTemplate());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (status_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getStatus());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, url_);
}
if (progress_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getProgress());
}
if (createdAt_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getCreatedAt());
}
if (modifiedAt_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getModifiedAt());
}
if (inputIdConflictResolution_ != com.clarifai.grpc.api.InputIDConflictResolution.INPUT_ID_CONFLICT_RESOLUTION_NOT_SET.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(7, inputIdConflictResolution_);
}
if (inputTemplate_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getInputTemplate());
}
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.InputsExtractionJob)) {
return super.equals(obj);
}
com.clarifai.grpc.api.InputsExtractionJob other = (com.clarifai.grpc.api.InputsExtractionJob) obj;
if (hasStatus() != other.hasStatus()) return false;
if (hasStatus()) {
if (!getStatus()
.equals(other.getStatus())) return false;
}
if (!getId()
.equals(other.getId())) return false;
if (!getUrl()
.equals(other.getUrl())) 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 (inputIdConflictResolution_ != other.inputIdConflictResolution_) return false;
if (hasInputTemplate() != other.hasInputTemplate()) return false;
if (hasInputTemplate()) {
if (!getInputTemplate()
.equals(other.getInputTemplate())) 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();
if (hasStatus()) {
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + getStatus().hashCode();
}
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
hash = (37 * hash) + URL_FIELD_NUMBER;
hash = (53 * hash) + getUrl().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();
}
hash = (37 * hash) + INPUT_ID_CONFLICT_RESOLUTION_FIELD_NUMBER;
hash = (53 * hash) + inputIdConflictResolution_;
if (hasInputTemplate()) {
hash = (37 * hash) + INPUT_TEMPLATE_FIELD_NUMBER;
hash = (53 * hash) + getInputTemplate().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.clarifai.grpc.api.InputsExtractionJob parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.InputsExtractionJob 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.InputsExtractionJob parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.InputsExtractionJob 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.InputsExtractionJob parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.InputsExtractionJob parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.clarifai.grpc.api.InputsExtractionJob parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.InputsExtractionJob 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.InputsExtractionJob parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.InputsExtractionJob 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.InputsExtractionJob parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.InputsExtractionJob 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.InputsExtractionJob 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.InputsExtractionJob}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:clarifai.api.InputsExtractionJob)
com.clarifai.grpc.api.InputsExtractionJobOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_InputsExtractionJob_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_InputsExtractionJob_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.clarifai.grpc.api.InputsExtractionJob.class, com.clarifai.grpc.api.InputsExtractionJob.Builder.class);
}
// Construct using com.clarifai.grpc.api.InputsExtractionJob.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();
if (statusBuilder_ == null) {
status_ = null;
} else {
status_ = null;
statusBuilder_ = null;
}
id_ = "";
url_ = "";
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;
}
inputIdConflictResolution_ = 0;
if (inputTemplateBuilder_ == null) {
inputTemplate_ = null;
} else {
inputTemplate_ = null;
inputTemplateBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_InputsExtractionJob_descriptor;
}
@java.lang.Override
public com.clarifai.grpc.api.InputsExtractionJob getDefaultInstanceForType() {
return com.clarifai.grpc.api.InputsExtractionJob.getDefaultInstance();
}
@java.lang.Override
public com.clarifai.grpc.api.InputsExtractionJob build() {
com.clarifai.grpc.api.InputsExtractionJob result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.clarifai.grpc.api.InputsExtractionJob buildPartial() {
com.clarifai.grpc.api.InputsExtractionJob result = new com.clarifai.grpc.api.InputsExtractionJob(this);
if (statusBuilder_ == null) {
result.status_ = status_;
} else {
result.status_ = statusBuilder_.build();
}
result.id_ = id_;
result.url_ = url_;
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();
}
result.inputIdConflictResolution_ = inputIdConflictResolution_;
if (inputTemplateBuilder_ == null) {
result.inputTemplate_ = inputTemplate_;
} else {
result.inputTemplate_ = inputTemplateBuilder_.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.InputsExtractionJob) {
return mergeFrom((com.clarifai.grpc.api.InputsExtractionJob)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.clarifai.grpc.api.InputsExtractionJob other) {
if (other == com.clarifai.grpc.api.InputsExtractionJob.getDefaultInstance()) return this;
if (other.hasStatus()) {
mergeStatus(other.getStatus());
}
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (!other.getUrl().isEmpty()) {
url_ = other.url_;
onChanged();
}
if (other.hasProgress()) {
mergeProgress(other.getProgress());
}
if (other.hasCreatedAt()) {
mergeCreatedAt(other.getCreatedAt());
}
if (other.hasModifiedAt()) {
mergeModifiedAt(other.getModifiedAt());
}
if (other.inputIdConflictResolution_ != 0) {
setInputIdConflictResolutionValue(other.getInputIdConflictResolutionValue());
}
if (other.hasInputTemplate()) {
mergeInputTemplate(other.getInputTemplate());
}
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.InputsExtractionJob parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.clarifai.grpc.api.InputsExtractionJob) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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_;
/**
* .clarifai.api.status.Status status = 1;
* @return Whether the status field is set.
*/
public boolean hasStatus() {
return statusBuilder_ != null || status_ != null;
}
/**
* .clarifai.api.status.Status status = 1;
* @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();
}
}
/**
* .clarifai.api.status.Status status = 1;
*/
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;
}
/**
* .clarifai.api.status.Status status = 1;
*/
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;
}
/**
* .clarifai.api.status.Status status = 1;
*/
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;
}
/**
* .clarifai.api.status.Status status = 1;
*/
public Builder clearStatus() {
if (statusBuilder_ == null) {
status_ = null;
onChanged();
} else {
status_ = null;
statusBuilder_ = null;
}
return this;
}
/**
* .clarifai.api.status.Status status = 1;
*/
public com.clarifai.grpc.api.status.Status.Builder getStatusBuilder() {
onChanged();
return getStatusFieldBuilder().getBuilder();
}
/**
* .clarifai.api.status.Status status = 1;
*/
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_;
}
}
/**
* .clarifai.api.status.Status status = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.status.Status, com.clarifai.grpc.api.status.Status.Builder, com.clarifai.grpc.api.status.StatusOrBuilder>
getStatusFieldBuilder() {
if (statusBuilder_ == null) {
statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.status.Status, com.clarifai.grpc.api.status.Status.Builder, com.clarifai.grpc.api.status.StatusOrBuilder>(
getStatus(),
getParentForChildren(),
isClean());
status_ = null;
}
return statusBuilder_;
}
private java.lang.Object id_ = "";
/**
*
* ID of extraction job
*
*
* string id = 2;
* @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 extraction job
*
*
* string id = 2;
* @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 extraction job
*
*
* string id = 2;
* @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 extraction job
*
*
* string id = 2;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
* ID of extraction job
*
*
* string id = 2;
* @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 url_ = "";
/**
*
* Url of archive or bucket
*
*
* string url = 3;
* @return The url.
*/
public java.lang.String getUrl() {
java.lang.Object ref = url_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
url_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Url of archive or bucket
*
*
* string url = 3;
* @return The bytes for url.
*/
public com.google.protobuf.ByteString
getUrlBytes() {
java.lang.Object ref = url_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
url_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Url of archive or bucket
*
*
* string url = 3;
* @param value The url to set.
* @return This builder for chaining.
*/
public Builder setUrl(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
url_ = value;
onChanged();
return this;
}
/**
*
* Url of archive or bucket
*
*
* string url = 3;
* @return This builder for chaining.
*/
public Builder clearUrl() {
url_ = getDefaultInstance().getUrl();
onChanged();
return this;
}
/**
*
* Url of archive or bucket
*
*
* string url = 3;
* @param value The bytes for url to set.
* @return This builder for chaining.
*/
public Builder setUrlBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
url_ = value;
onChanged();
return this;
}
private com.clarifai.grpc.api.InputsExtractionJobProgress progress_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.InputsExtractionJobProgress, com.clarifai.grpc.api.InputsExtractionJobProgress.Builder, com.clarifai.grpc.api.InputsExtractionJobProgressOrBuilder> progressBuilder_;
/**
*
* Progress counts of the job
*
*
* .clarifai.api.InputsExtractionJobProgress progress = 4;
* @return Whether the progress field is set.
*/
public boolean hasProgress() {
return progressBuilder_ != null || progress_ != null;
}
/**
*
* Progress counts of the job
*
*
* .clarifai.api.InputsExtractionJobProgress progress = 4;
* @return The progress.
*/
public com.clarifai.grpc.api.InputsExtractionJobProgress getProgress() {
if (progressBuilder_ == null) {
return progress_ == null ? com.clarifai.grpc.api.InputsExtractionJobProgress.getDefaultInstance() : progress_;
} else {
return progressBuilder_.getMessage();
}
}
/**
*
* Progress counts of the job
*
*
* .clarifai.api.InputsExtractionJobProgress progress = 4;
*/
public Builder setProgress(com.clarifai.grpc.api.InputsExtractionJobProgress value) {
if (progressBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
progress_ = value;
onChanged();
} else {
progressBuilder_.setMessage(value);
}
return this;
}
/**
*
* Progress counts of the job
*
*
* .clarifai.api.InputsExtractionJobProgress progress = 4;
*/
public Builder setProgress(
com.clarifai.grpc.api.InputsExtractionJobProgress.Builder builderForValue) {
if (progressBuilder_ == null) {
progress_ = builderForValue.build();
onChanged();
} else {
progressBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Progress counts of the job
*
*
* .clarifai.api.InputsExtractionJobProgress progress = 4;
*/
public Builder mergeProgress(com.clarifai.grpc.api.InputsExtractionJobProgress value) {
if (progressBuilder_ == null) {
if (progress_ != null) {
progress_ =
com.clarifai.grpc.api.InputsExtractionJobProgress.newBuilder(progress_).mergeFrom(value).buildPartial();
} else {
progress_ = value;
}
onChanged();
} else {
progressBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Progress counts of the job
*
*
* .clarifai.api.InputsExtractionJobProgress progress = 4;
*/
public Builder clearProgress() {
if (progressBuilder_ == null) {
progress_ = null;
onChanged();
} else {
progress_ = null;
progressBuilder_ = null;
}
return this;
}
/**
*
* Progress counts of the job
*
*
* .clarifai.api.InputsExtractionJobProgress progress = 4;
*/
public com.clarifai.grpc.api.InputsExtractionJobProgress.Builder getProgressBuilder() {
onChanged();
return getProgressFieldBuilder().getBuilder();
}
/**
*
* Progress counts of the job
*
*
* .clarifai.api.InputsExtractionJobProgress progress = 4;
*/
public com.clarifai.grpc.api.InputsExtractionJobProgressOrBuilder getProgressOrBuilder() {
if (progressBuilder_ != null) {
return progressBuilder_.getMessageOrBuilder();
} else {
return progress_ == null ?
com.clarifai.grpc.api.InputsExtractionJobProgress.getDefaultInstance() : progress_;
}
}
/**
*
* Progress counts of the job
*
*
* .clarifai.api.InputsExtractionJobProgress progress = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.InputsExtractionJobProgress, com.clarifai.grpc.api.InputsExtractionJobProgress.Builder, com.clarifai.grpc.api.InputsExtractionJobProgressOrBuilder>
getProgressFieldBuilder() {
if (progressBuilder_ == null) {
progressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.InputsExtractionJobProgress, com.clarifai.grpc.api.InputsExtractionJobProgress.Builder, com.clarifai.grpc.api.InputsExtractionJobProgressOrBuilder>(
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 extraction job was started.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp created_at = 5;
* @return Whether the createdAt field is set.
*/
public boolean hasCreatedAt() {
return createdAtBuilder_ != null || createdAt_ != null;
}
/**
*
* When the extraction job was started.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp created_at = 5;
* @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 extraction job was started.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp created_at = 5;
*/
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 extraction job was started.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp created_at = 5;
*/
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 extraction job was started.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp created_at = 5;
*/
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 extraction job was started.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp created_at = 5;
*/
public Builder clearCreatedAt() {
if (createdAtBuilder_ == null) {
createdAt_ = null;
onChanged();
} else {
createdAt_ = null;
createdAtBuilder_ = null;
}
return this;
}
/**
*
* When the extraction job was started.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp created_at = 5;
*/
public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() {
onChanged();
return getCreatedAtFieldBuilder().getBuilder();
}
/**
*
* When the extraction job was started.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp created_at = 5;
*/
public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
if (createdAtBuilder_ != null) {
return createdAtBuilder_.getMessageOrBuilder();
} else {
return createdAt_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
}
}
/**
*
* When the extraction job was started.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp created_at = 5;
*/
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 extraction 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 = 6;
* @return Whether the modifiedAt field is set.
*/
public boolean hasModifiedAt() {
return modifiedAtBuilder_ != null || modifiedAt_ != null;
}
/**
*
* Most recent time when the extraction 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 = 6;
* @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 extraction 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 = 6;
*/
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 extraction 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 = 6;
*/
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 extraction 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 = 6;
*/
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 extraction 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 = 6;
*/
public Builder clearModifiedAt() {
if (modifiedAtBuilder_ == null) {
modifiedAt_ = null;
onChanged();
} else {
modifiedAt_ = null;
modifiedAtBuilder_ = null;
}
return this;
}
/**
*
* Most recent time when the extraction 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 = 6;
*/
public com.google.protobuf.Timestamp.Builder getModifiedAtBuilder() {
onChanged();
return getModifiedAtFieldBuilder().getBuilder();
}
/**
*
* Most recent time when the extraction 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 = 6;
*/
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 extraction 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 = 6;
*/
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 int inputIdConflictResolution_ = 0;
/**
*
* How to handle input ID conflicts.
*
*
* .clarifai.api.InputIDConflictResolution input_id_conflict_resolution = 7;
* @return The enum numeric value on the wire for inputIdConflictResolution.
*/
@java.lang.Override public int getInputIdConflictResolutionValue() {
return inputIdConflictResolution_;
}
/**
*
* How to handle input ID conflicts.
*
*
* .clarifai.api.InputIDConflictResolution input_id_conflict_resolution = 7;
* @param value The enum numeric value on the wire for inputIdConflictResolution to set.
* @return This builder for chaining.
*/
public Builder setInputIdConflictResolutionValue(int value) {
inputIdConflictResolution_ = value;
onChanged();
return this;
}
/**
*
* How to handle input ID conflicts.
*
*
* .clarifai.api.InputIDConflictResolution input_id_conflict_resolution = 7;
* @return The inputIdConflictResolution.
*/
@java.lang.Override
public com.clarifai.grpc.api.InputIDConflictResolution getInputIdConflictResolution() {
@SuppressWarnings("deprecation")
com.clarifai.grpc.api.InputIDConflictResolution result = com.clarifai.grpc.api.InputIDConflictResolution.valueOf(inputIdConflictResolution_);
return result == null ? com.clarifai.grpc.api.InputIDConflictResolution.UNRECOGNIZED : result;
}
/**
*
* How to handle input ID conflicts.
*
*
* .clarifai.api.InputIDConflictResolution input_id_conflict_resolution = 7;
* @param value The inputIdConflictResolution to set.
* @return This builder for chaining.
*/
public Builder setInputIdConflictResolution(com.clarifai.grpc.api.InputIDConflictResolution value) {
if (value == null) {
throw new NullPointerException();
}
inputIdConflictResolution_ = value.getNumber();
onChanged();
return this;
}
/**
*
* How to handle input ID conflicts.
*
*
* .clarifai.api.InputIDConflictResolution input_id_conflict_resolution = 7;
* @return This builder for chaining.
*/
public Builder clearInputIdConflictResolution() {
inputIdConflictResolution_ = 0;
onChanged();
return this;
}
private com.clarifai.grpc.api.Input inputTemplate_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.Input, com.clarifai.grpc.api.Input.Builder, com.clarifai.grpc.api.InputOrBuilder> inputTemplateBuilder_;
/**
*
* Fields set in the template are added to all generated inputs
*
*
* .clarifai.api.Input input_template = 8;
* @return Whether the inputTemplate field is set.
*/
public boolean hasInputTemplate() {
return inputTemplateBuilder_ != null || inputTemplate_ != null;
}
/**
*
* Fields set in the template are added to all generated inputs
*
*
* .clarifai.api.Input input_template = 8;
* @return The inputTemplate.
*/
public com.clarifai.grpc.api.Input getInputTemplate() {
if (inputTemplateBuilder_ == null) {
return inputTemplate_ == null ? com.clarifai.grpc.api.Input.getDefaultInstance() : inputTemplate_;
} else {
return inputTemplateBuilder_.getMessage();
}
}
/**
*
* Fields set in the template are added to all generated inputs
*
*
* .clarifai.api.Input input_template = 8;
*/
public Builder setInputTemplate(com.clarifai.grpc.api.Input value) {
if (inputTemplateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
inputTemplate_ = value;
onChanged();
} else {
inputTemplateBuilder_.setMessage(value);
}
return this;
}
/**
*
* Fields set in the template are added to all generated inputs
*
*
* .clarifai.api.Input input_template = 8;
*/
public Builder setInputTemplate(
com.clarifai.grpc.api.Input.Builder builderForValue) {
if (inputTemplateBuilder_ == null) {
inputTemplate_ = builderForValue.build();
onChanged();
} else {
inputTemplateBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Fields set in the template are added to all generated inputs
*
*
* .clarifai.api.Input input_template = 8;
*/
public Builder mergeInputTemplate(com.clarifai.grpc.api.Input value) {
if (inputTemplateBuilder_ == null) {
if (inputTemplate_ != null) {
inputTemplate_ =
com.clarifai.grpc.api.Input.newBuilder(inputTemplate_).mergeFrom(value).buildPartial();
} else {
inputTemplate_ = value;
}
onChanged();
} else {
inputTemplateBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Fields set in the template are added to all generated inputs
*
*
* .clarifai.api.Input input_template = 8;
*/
public Builder clearInputTemplate() {
if (inputTemplateBuilder_ == null) {
inputTemplate_ = null;
onChanged();
} else {
inputTemplate_ = null;
inputTemplateBuilder_ = null;
}
return this;
}
/**
*
* Fields set in the template are added to all generated inputs
*
*
* .clarifai.api.Input input_template = 8;
*/
public com.clarifai.grpc.api.Input.Builder getInputTemplateBuilder() {
onChanged();
return getInputTemplateFieldBuilder().getBuilder();
}
/**
*
* Fields set in the template are added to all generated inputs
*
*
* .clarifai.api.Input input_template = 8;
*/
public com.clarifai.grpc.api.InputOrBuilder getInputTemplateOrBuilder() {
if (inputTemplateBuilder_ != null) {
return inputTemplateBuilder_.getMessageOrBuilder();
} else {
return inputTemplate_ == null ?
com.clarifai.grpc.api.Input.getDefaultInstance() : inputTemplate_;
}
}
/**
*
* Fields set in the template are added to all generated inputs
*
*
* .clarifai.api.Input input_template = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.Input, com.clarifai.grpc.api.Input.Builder, com.clarifai.grpc.api.InputOrBuilder>
getInputTemplateFieldBuilder() {
if (inputTemplateBuilder_ == null) {
inputTemplateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.Input, com.clarifai.grpc.api.Input.Builder, com.clarifai.grpc.api.InputOrBuilder>(
getInputTemplate(),
getParentForChildren(),
isClean());
inputTemplate_ = null;
}
return inputTemplateBuilder_;
}
@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.InputsExtractionJob)
}
// @@protoc_insertion_point(class_scope:clarifai.api.InputsExtractionJob)
private static final com.clarifai.grpc.api.InputsExtractionJob DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.clarifai.grpc.api.InputsExtractionJob();
}
public static com.clarifai.grpc.api.InputsExtractionJob getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public InputsExtractionJob parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new InputsExtractionJob(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.InputsExtractionJob getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}