All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.clarifai.grpc.api.BulkOperation 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.BulkOperation}
 */
public final class BulkOperation extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:clarifai.api.BulkOperation)
    BulkOperationOrBuilder {
private static final long serialVersionUID = 0L;
  // Use BulkOperation.newBuilder() to construct.
  private BulkOperation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private BulkOperation() {
    id_ = "";
    appId_ = "";
    createdBy_ = "";
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new BulkOperation();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private BulkOperation(
      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: {
            java.lang.String s = input.readStringRequireUtf8();

            id_ = s;
            break;
          }
          case 18: {
            com.clarifai.grpc.api.InputIDs.Builder subBuilder = null;
            if (inputSourceCase_ == 2) {
              subBuilder = ((com.clarifai.grpc.api.InputIDs) inputSource_).toBuilder();
            }
            inputSource_ =
                input.readMessage(com.clarifai.grpc.api.InputIDs.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((com.clarifai.grpc.api.InputIDs) inputSource_);
              inputSource_ = subBuilder.buildPartial();
            }
            inputSourceCase_ = 2;
            break;
          }
          case 26: {
            com.clarifai.grpc.api.Operation.Builder subBuilder = null;
            if (operation_ != null) {
              subBuilder = operation_.toBuilder();
            }
            operation_ = input.readMessage(com.clarifai.grpc.api.Operation.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(operation_);
              operation_ = subBuilder.buildPartial();
            }

            break;
          }
          case 34: {
            java.lang.String s = input.readStringRequireUtf8();

            appId_ = s;
            break;
          }
          case 42: {
            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 50: {
            com.clarifai.grpc.api.Progress.Builder subBuilder = null;
            if (progress_ != null) {
              subBuilder = progress_.toBuilder();
            }
            progress_ = input.readMessage(com.clarifai.grpc.api.Progress.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(progress_);
              progress_ = subBuilder.buildPartial();
            }

            break;
          }
          case 58: {
            java.lang.String s = input.readStringRequireUtf8();

            createdBy_ = s;
            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 (lastModifiedAt_ != null) {
              subBuilder = lastModifiedAt_.toBuilder();
            }
            lastModifiedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(lastModifiedAt_);
              lastModifiedAt_ = subBuilder.buildPartial();
            }

            break;
          }
          case 82: {
            com.clarifai.grpc.api.Search.Builder subBuilder = null;
            if (inputSourceCase_ == 10) {
              subBuilder = ((com.clarifai.grpc.api.Search) inputSource_).toBuilder();
            }
            inputSource_ =
                input.readMessage(com.clarifai.grpc.api.Search.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((com.clarifai.grpc.api.Search) inputSource_);
              inputSource_ = subBuilder.buildPartial();
            }
            inputSourceCase_ = 10;
            break;
          }
          case 90: {
            com.clarifai.grpc.api.Dataset.Builder subBuilder = null;
            if (inputSourceCase_ == 11) {
              subBuilder = ((com.clarifai.grpc.api.Dataset) inputSource_).toBuilder();
            }
            inputSource_ =
                input.readMessage(com.clarifai.grpc.api.Dataset.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((com.clarifai.grpc.api.Dataset) inputSource_);
              inputSource_ = subBuilder.buildPartial();
            }
            inputSourceCase_ = 11;
            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_BulkOperation_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_BulkOperation_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.clarifai.grpc.api.BulkOperation.class, com.clarifai.grpc.api.BulkOperation.Builder.class);
  }

  private int inputSourceCase_ = 0;
  private java.lang.Object inputSource_;
  public enum InputSourceCase
      implements com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    INPUT_IDS(2),
    SEARCH(10),
    DATASET(11),
    INPUTSOURCE_NOT_SET(0);
    private final int value;
    private InputSourceCase(int value) {
      this.value = value;
    }
    /**
     * @param value The number of the enum to look for.
     * @return The enum associated with the given number.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static InputSourceCase valueOf(int value) {
      return forNumber(value);
    }

    public static InputSourceCase forNumber(int value) {
      switch (value) {
        case 2: return INPUT_IDS;
        case 10: return SEARCH;
        case 11: return DATASET;
        case 0: return INPUTSOURCE_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public InputSourceCase
  getInputSourceCase() {
    return InputSourceCase.forNumber(
        inputSourceCase_);
  }

  public static final int ID_FIELD_NUMBER = 1;
  private volatile java.lang.Object id_;
  /**
   * 
   * id of the Bulk Operation task
   * 
* * 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 Bulk Operation task
   * 
* * 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 INPUT_IDS_FIELD_NUMBER = 2; /** * .clarifai.api.InputIDs input_ids = 2; * @return Whether the inputIds field is set. */ @java.lang.Override public boolean hasInputIds() { return inputSourceCase_ == 2; } /** * .clarifai.api.InputIDs input_ids = 2; * @return The inputIds. */ @java.lang.Override public com.clarifai.grpc.api.InputIDs getInputIds() { if (inputSourceCase_ == 2) { return (com.clarifai.grpc.api.InputIDs) inputSource_; } return com.clarifai.grpc.api.InputIDs.getDefaultInstance(); } /** * .clarifai.api.InputIDs input_ids = 2; */ @java.lang.Override public com.clarifai.grpc.api.InputIDsOrBuilder getInputIdsOrBuilder() { if (inputSourceCase_ == 2) { return (com.clarifai.grpc.api.InputIDs) inputSource_; } return com.clarifai.grpc.api.InputIDs.getDefaultInstance(); } public static final int SEARCH_FIELD_NUMBER = 10; /** * .clarifai.api.Search search = 10; * @return Whether the search field is set. */ @java.lang.Override public boolean hasSearch() { return inputSourceCase_ == 10; } /** * .clarifai.api.Search search = 10; * @return The search. */ @java.lang.Override public com.clarifai.grpc.api.Search getSearch() { if (inputSourceCase_ == 10) { return (com.clarifai.grpc.api.Search) inputSource_; } return com.clarifai.grpc.api.Search.getDefaultInstance(); } /** * .clarifai.api.Search search = 10; */ @java.lang.Override public com.clarifai.grpc.api.SearchOrBuilder getSearchOrBuilder() { if (inputSourceCase_ == 10) { return (com.clarifai.grpc.api.Search) inputSource_; } return com.clarifai.grpc.api.Search.getDefaultInstance(); } public static final int DATASET_FIELD_NUMBER = 11; /** * .clarifai.api.Dataset dataset = 11; * @return Whether the dataset field is set. */ @java.lang.Override public boolean hasDataset() { return inputSourceCase_ == 11; } /** * .clarifai.api.Dataset dataset = 11; * @return The dataset. */ @java.lang.Override public com.clarifai.grpc.api.Dataset getDataset() { if (inputSourceCase_ == 11) { return (com.clarifai.grpc.api.Dataset) inputSource_; } return com.clarifai.grpc.api.Dataset.getDefaultInstance(); } /** * .clarifai.api.Dataset dataset = 11; */ @java.lang.Override public com.clarifai.grpc.api.DatasetOrBuilder getDatasetOrBuilder() { if (inputSourceCase_ == 11) { return (com.clarifai.grpc.api.Dataset) inputSource_; } return com.clarifai.grpc.api.Dataset.getDefaultInstance(); } public static final int OPERATION_FIELD_NUMBER = 3; private com.clarifai.grpc.api.Operation operation_; /** *
   * Operation to perform
   * 
* * .clarifai.api.Operation operation = 3; * @return Whether the operation field is set. */ @java.lang.Override public boolean hasOperation() { return operation_ != null; } /** *
   * Operation to perform
   * 
* * .clarifai.api.Operation operation = 3; * @return The operation. */ @java.lang.Override public com.clarifai.grpc.api.Operation getOperation() { return operation_ == null ? com.clarifai.grpc.api.Operation.getDefaultInstance() : operation_; } /** *
   * Operation to perform
   * 
* * .clarifai.api.Operation operation = 3; */ @java.lang.Override public com.clarifai.grpc.api.OperationOrBuilder getOperationOrBuilder() { return getOperation(); } public static final int APP_ID_FIELD_NUMBER = 4; private volatile java.lang.Object appId_; /** *
   * Application ID that this Operation was created from
   * 
* * string app_id = 4; * @return The appId. */ @java.lang.Override public java.lang.String getAppId() { java.lang.Object ref = appId_; 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(); appId_ = s; return s; } } /** *
   * Application ID that this Operation was created from
   * 
* * string app_id = 4; * @return The bytes for appId. */ @java.lang.Override public com.google.protobuf.ByteString getAppIdBytes() { java.lang.Object ref = appId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); appId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STATUS_FIELD_NUMBER = 5; private com.clarifai.grpc.api.status.Status status_; /** *
   * Status (pending, in-progress, completed, failed) of the operation
   * 
* * .clarifai.api.status.Status status = 5; * @return Whether the status field is set. */ @java.lang.Override public boolean hasStatus() { return status_ != null; } /** *
   * Status (pending, in-progress, completed, failed) of the operation
   * 
* * .clarifai.api.status.Status status = 5; * @return The status. */ @java.lang.Override public com.clarifai.grpc.api.status.Status getStatus() { return status_ == null ? com.clarifai.grpc.api.status.Status.getDefaultInstance() : status_; } /** *
   * Status (pending, in-progress, completed, failed) of the operation
   * 
* * .clarifai.api.status.Status status = 5; */ @java.lang.Override public com.clarifai.grpc.api.status.StatusOrBuilder getStatusOrBuilder() { return getStatus(); } public static final int PROGRESS_FIELD_NUMBER = 6; private com.clarifai.grpc.api.Progress progress_; /** *
   * Progress of an on-going Bulk Operation task
   * 
* * .clarifai.api.Progress progress = 6; * @return Whether the progress field is set. */ @java.lang.Override public boolean hasProgress() { return progress_ != null; } /** *
   * Progress of an on-going Bulk Operation task
   * 
* * .clarifai.api.Progress progress = 6; * @return The progress. */ @java.lang.Override public com.clarifai.grpc.api.Progress getProgress() { return progress_ == null ? com.clarifai.grpc.api.Progress.getDefaultInstance() : progress_; } /** *
   * Progress of an on-going Bulk Operation task
   * 
* * .clarifai.api.Progress progress = 6; */ @java.lang.Override public com.clarifai.grpc.api.ProgressOrBuilder getProgressOrBuilder() { return getProgress(); } public static final int CREATED_BY_FIELD_NUMBER = 7; private volatile java.lang.Object createdBy_; /** *
   * User id that created this operation
   * 
* * string created_by = 7; * @return The createdBy. */ @java.lang.Override public java.lang.String getCreatedBy() { java.lang.Object ref = createdBy_; 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(); createdBy_ = s; return s; } } /** *
   * User id that created this operation
   * 
* * string created_by = 7; * @return The bytes for createdBy. */ @java.lang.Override public com.google.protobuf.ByteString getCreatedByBytes() { java.lang.Object ref = createdBy_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); createdBy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CREATED_AT_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp createdAt_; /** *
   * When the operation was created. We follow the XXXX timestamp
   * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
   * "2006-01-02T15:04:05.999999Z" so you can expect results like
   * the following from the API:
   * "2017-04-11T21:50:50.223962Z"
   * 
* * .google.protobuf.Timestamp created_at = 8; * @return Whether the createdAt field is set. */ @java.lang.Override public boolean hasCreatedAt() { return createdAt_ != null; } /** *
   * When the operation was created. We follow the XXXX timestamp
   * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
   * "2006-01-02T15:04:05.999999Z" so you can expect results like
   * the following from the API:
   * "2017-04-11T21:50:50.223962Z"
   * 
* * .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 operation was created. We follow the XXXX timestamp
   * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
   * "2006-01-02T15:04:05.999999Z" so you can expect results like
   * the following from the API:
   * "2017-04-11T21:50:50.223962Z"
   * 
* * .google.protobuf.Timestamp created_at = 8; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { return getCreatedAt(); } public static final int LAST_MODIFIED_AT_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp lastModifiedAt_; /** *
   * Last time the status got updated
   * 
* * .google.protobuf.Timestamp last_modified_at = 9; * @return Whether the lastModifiedAt field is set. */ @java.lang.Override public boolean hasLastModifiedAt() { return lastModifiedAt_ != null; } /** *
   * Last time the status got updated
   * 
* * .google.protobuf.Timestamp last_modified_at = 9; * @return The lastModifiedAt. */ @java.lang.Override public com.google.protobuf.Timestamp getLastModifiedAt() { return lastModifiedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastModifiedAt_; } /** *
   * Last time the status got updated
   * 
* * .google.protobuf.Timestamp last_modified_at = 9; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastModifiedAtOrBuilder() { return getLastModifiedAt(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (inputSourceCase_ == 2) { output.writeMessage(2, (com.clarifai.grpc.api.InputIDs) inputSource_); } if (operation_ != null) { output.writeMessage(3, getOperation()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(appId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, appId_); } if (status_ != null) { output.writeMessage(5, getStatus()); } if (progress_ != null) { output.writeMessage(6, getProgress()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(createdBy_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, createdBy_); } if (createdAt_ != null) { output.writeMessage(8, getCreatedAt()); } if (lastModifiedAt_ != null) { output.writeMessage(9, getLastModifiedAt()); } if (inputSourceCase_ == 10) { output.writeMessage(10, (com.clarifai.grpc.api.Search) inputSource_); } if (inputSourceCase_ == 11) { output.writeMessage(11, (com.clarifai.grpc.api.Dataset) inputSource_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (inputSourceCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (com.clarifai.grpc.api.InputIDs) inputSource_); } if (operation_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getOperation()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(appId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, appId_); } if (status_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getStatus()); } if (progress_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getProgress()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(createdBy_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, createdBy_); } if (createdAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getCreatedAt()); } if (lastModifiedAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getLastModifiedAt()); } if (inputSourceCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, (com.clarifai.grpc.api.Search) inputSource_); } if (inputSourceCase_ == 11) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, (com.clarifai.grpc.api.Dataset) inputSource_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.clarifai.grpc.api.BulkOperation)) { return super.equals(obj); } com.clarifai.grpc.api.BulkOperation other = (com.clarifai.grpc.api.BulkOperation) obj; if (!getId() .equals(other.getId())) return false; if (hasOperation() != other.hasOperation()) return false; if (hasOperation()) { if (!getOperation() .equals(other.getOperation())) return false; } if (!getAppId() .equals(other.getAppId())) return false; if (hasStatus() != other.hasStatus()) return false; if (hasStatus()) { if (!getStatus() .equals(other.getStatus())) return false; } if (hasProgress() != other.hasProgress()) return false; if (hasProgress()) { if (!getProgress() .equals(other.getProgress())) return false; } if (!getCreatedBy() .equals(other.getCreatedBy())) return false; if (hasCreatedAt() != other.hasCreatedAt()) return false; if (hasCreatedAt()) { if (!getCreatedAt() .equals(other.getCreatedAt())) return false; } if (hasLastModifiedAt() != other.hasLastModifiedAt()) return false; if (hasLastModifiedAt()) { if (!getLastModifiedAt() .equals(other.getLastModifiedAt())) return false; } if (!getInputSourceCase().equals(other.getInputSourceCase())) return false; switch (inputSourceCase_) { case 2: if (!getInputIds() .equals(other.getInputIds())) return false; break; case 10: if (!getSearch() .equals(other.getSearch())) return false; break; case 11: if (!getDataset() .equals(other.getDataset())) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); if (hasOperation()) { hash = (37 * hash) + OPERATION_FIELD_NUMBER; hash = (53 * hash) + getOperation().hashCode(); } hash = (37 * hash) + APP_ID_FIELD_NUMBER; hash = (53 * hash) + getAppId().hashCode(); if (hasStatus()) { hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + getStatus().hashCode(); } if (hasProgress()) { hash = (37 * hash) + PROGRESS_FIELD_NUMBER; hash = (53 * hash) + getProgress().hashCode(); } hash = (37 * hash) + CREATED_BY_FIELD_NUMBER; hash = (53 * hash) + getCreatedBy().hashCode(); if (hasCreatedAt()) { hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; hash = (53 * hash) + getCreatedAt().hashCode(); } if (hasLastModifiedAt()) { hash = (37 * hash) + LAST_MODIFIED_AT_FIELD_NUMBER; hash = (53 * hash) + getLastModifiedAt().hashCode(); } switch (inputSourceCase_) { case 2: hash = (37 * hash) + INPUT_IDS_FIELD_NUMBER; hash = (53 * hash) + getInputIds().hashCode(); break; case 10: hash = (37 * hash) + SEARCH_FIELD_NUMBER; hash = (53 * hash) + getSearch().hashCode(); break; case 11: hash = (37 * hash) + DATASET_FIELD_NUMBER; hash = (53 * hash) + getDataset().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.clarifai.grpc.api.BulkOperation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.BulkOperation parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clarifai.grpc.api.BulkOperation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.BulkOperation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clarifai.grpc.api.BulkOperation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.BulkOperation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clarifai.grpc.api.BulkOperation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clarifai.grpc.api.BulkOperation parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.clarifai.grpc.api.BulkOperation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.clarifai.grpc.api.BulkOperation parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.clarifai.grpc.api.BulkOperation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clarifai.grpc.api.BulkOperation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.clarifai.grpc.api.BulkOperation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code clarifai.api.BulkOperation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:clarifai.api.BulkOperation) com.clarifai.grpc.api.BulkOperationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_BulkOperation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_BulkOperation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clarifai.grpc.api.BulkOperation.class, com.clarifai.grpc.api.BulkOperation.Builder.class); } // Construct using com.clarifai.grpc.api.BulkOperation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); id_ = ""; if (operationBuilder_ == null) { operation_ = null; } else { operation_ = null; operationBuilder_ = null; } appId_ = ""; if (statusBuilder_ == null) { status_ = null; } else { status_ = null; statusBuilder_ = null; } if (progressBuilder_ == null) { progress_ = null; } else { progress_ = null; progressBuilder_ = null; } createdBy_ = ""; if (createdAtBuilder_ == null) { createdAt_ = null; } else { createdAt_ = null; createdAtBuilder_ = null; } if (lastModifiedAtBuilder_ == null) { lastModifiedAt_ = null; } else { lastModifiedAt_ = null; lastModifiedAtBuilder_ = null; } inputSourceCase_ = 0; inputSource_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_BulkOperation_descriptor; } @java.lang.Override public com.clarifai.grpc.api.BulkOperation getDefaultInstanceForType() { return com.clarifai.grpc.api.BulkOperation.getDefaultInstance(); } @java.lang.Override public com.clarifai.grpc.api.BulkOperation build() { com.clarifai.grpc.api.BulkOperation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.clarifai.grpc.api.BulkOperation buildPartial() { com.clarifai.grpc.api.BulkOperation result = new com.clarifai.grpc.api.BulkOperation(this); result.id_ = id_; if (inputSourceCase_ == 2) { if (inputIdsBuilder_ == null) { result.inputSource_ = inputSource_; } else { result.inputSource_ = inputIdsBuilder_.build(); } } if (inputSourceCase_ == 10) { if (searchBuilder_ == null) { result.inputSource_ = inputSource_; } else { result.inputSource_ = searchBuilder_.build(); } } if (inputSourceCase_ == 11) { if (datasetBuilder_ == null) { result.inputSource_ = inputSource_; } else { result.inputSource_ = datasetBuilder_.build(); } } if (operationBuilder_ == null) { result.operation_ = operation_; } else { result.operation_ = operationBuilder_.build(); } result.appId_ = appId_; if (statusBuilder_ == null) { result.status_ = status_; } else { result.status_ = statusBuilder_.build(); } if (progressBuilder_ == null) { result.progress_ = progress_; } else { result.progress_ = progressBuilder_.build(); } result.createdBy_ = createdBy_; if (createdAtBuilder_ == null) { result.createdAt_ = createdAt_; } else { result.createdAt_ = createdAtBuilder_.build(); } if (lastModifiedAtBuilder_ == null) { result.lastModifiedAt_ = lastModifiedAt_; } else { result.lastModifiedAt_ = lastModifiedAtBuilder_.build(); } result.inputSourceCase_ = inputSourceCase_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.clarifai.grpc.api.BulkOperation) { return mergeFrom((com.clarifai.grpc.api.BulkOperation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.clarifai.grpc.api.BulkOperation other) { if (other == com.clarifai.grpc.api.BulkOperation.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (other.hasOperation()) { mergeOperation(other.getOperation()); } if (!other.getAppId().isEmpty()) { appId_ = other.appId_; onChanged(); } if (other.hasStatus()) { mergeStatus(other.getStatus()); } if (other.hasProgress()) { mergeProgress(other.getProgress()); } if (!other.getCreatedBy().isEmpty()) { createdBy_ = other.createdBy_; onChanged(); } if (other.hasCreatedAt()) { mergeCreatedAt(other.getCreatedAt()); } if (other.hasLastModifiedAt()) { mergeLastModifiedAt(other.getLastModifiedAt()); } switch (other.getInputSourceCase()) { case INPUT_IDS: { mergeInputIds(other.getInputIds()); break; } case SEARCH: { mergeSearch(other.getSearch()); break; } case DATASET: { mergeDataset(other.getDataset()); break; } case INPUTSOURCE_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.clarifai.grpc.api.BulkOperation parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.clarifai.grpc.api.BulkOperation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int inputSourceCase_ = 0; private java.lang.Object inputSource_; public InputSourceCase getInputSourceCase() { return InputSourceCase.forNumber( inputSourceCase_); } public Builder clearInputSource() { inputSourceCase_ = 0; inputSource_ = null; onChanged(); return this; } private java.lang.Object id_ = ""; /** *
     * id of the Bulk Operation task
     * 
* * string id = 1; * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * id of the Bulk Operation task
     * 
* * string id = 1; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * id of the Bulk Operation task
     * 
* * string id = 1; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** *
     * id of the Bulk Operation task
     * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
     * id of the Bulk Operation task
     * 
* * 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 com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.InputIDs, com.clarifai.grpc.api.InputIDs.Builder, com.clarifai.grpc.api.InputIDsOrBuilder> inputIdsBuilder_; /** * .clarifai.api.InputIDs input_ids = 2; * @return Whether the inputIds field is set. */ @java.lang.Override public boolean hasInputIds() { return inputSourceCase_ == 2; } /** * .clarifai.api.InputIDs input_ids = 2; * @return The inputIds. */ @java.lang.Override public com.clarifai.grpc.api.InputIDs getInputIds() { if (inputIdsBuilder_ == null) { if (inputSourceCase_ == 2) { return (com.clarifai.grpc.api.InputIDs) inputSource_; } return com.clarifai.grpc.api.InputIDs.getDefaultInstance(); } else { if (inputSourceCase_ == 2) { return inputIdsBuilder_.getMessage(); } return com.clarifai.grpc.api.InputIDs.getDefaultInstance(); } } /** * .clarifai.api.InputIDs input_ids = 2; */ public Builder setInputIds(com.clarifai.grpc.api.InputIDs value) { if (inputIdsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } inputSource_ = value; onChanged(); } else { inputIdsBuilder_.setMessage(value); } inputSourceCase_ = 2; return this; } /** * .clarifai.api.InputIDs input_ids = 2; */ public Builder setInputIds( com.clarifai.grpc.api.InputIDs.Builder builderForValue) { if (inputIdsBuilder_ == null) { inputSource_ = builderForValue.build(); onChanged(); } else { inputIdsBuilder_.setMessage(builderForValue.build()); } inputSourceCase_ = 2; return this; } /** * .clarifai.api.InputIDs input_ids = 2; */ public Builder mergeInputIds(com.clarifai.grpc.api.InputIDs value) { if (inputIdsBuilder_ == null) { if (inputSourceCase_ == 2 && inputSource_ != com.clarifai.grpc.api.InputIDs.getDefaultInstance()) { inputSource_ = com.clarifai.grpc.api.InputIDs.newBuilder((com.clarifai.grpc.api.InputIDs) inputSource_) .mergeFrom(value).buildPartial(); } else { inputSource_ = value; } onChanged(); } else { if (inputSourceCase_ == 2) { inputIdsBuilder_.mergeFrom(value); } else { inputIdsBuilder_.setMessage(value); } } inputSourceCase_ = 2; return this; } /** * .clarifai.api.InputIDs input_ids = 2; */ public Builder clearInputIds() { if (inputIdsBuilder_ == null) { if (inputSourceCase_ == 2) { inputSourceCase_ = 0; inputSource_ = null; onChanged(); } } else { if (inputSourceCase_ == 2) { inputSourceCase_ = 0; inputSource_ = null; } inputIdsBuilder_.clear(); } return this; } /** * .clarifai.api.InputIDs input_ids = 2; */ public com.clarifai.grpc.api.InputIDs.Builder getInputIdsBuilder() { return getInputIdsFieldBuilder().getBuilder(); } /** * .clarifai.api.InputIDs input_ids = 2; */ @java.lang.Override public com.clarifai.grpc.api.InputIDsOrBuilder getInputIdsOrBuilder() { if ((inputSourceCase_ == 2) && (inputIdsBuilder_ != null)) { return inputIdsBuilder_.getMessageOrBuilder(); } else { if (inputSourceCase_ == 2) { return (com.clarifai.grpc.api.InputIDs) inputSource_; } return com.clarifai.grpc.api.InputIDs.getDefaultInstance(); } } /** * .clarifai.api.InputIDs input_ids = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.InputIDs, com.clarifai.grpc.api.InputIDs.Builder, com.clarifai.grpc.api.InputIDsOrBuilder> getInputIdsFieldBuilder() { if (inputIdsBuilder_ == null) { if (!(inputSourceCase_ == 2)) { inputSource_ = com.clarifai.grpc.api.InputIDs.getDefaultInstance(); } inputIdsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.InputIDs, com.clarifai.grpc.api.InputIDs.Builder, com.clarifai.grpc.api.InputIDsOrBuilder>( (com.clarifai.grpc.api.InputIDs) inputSource_, getParentForChildren(), isClean()); inputSource_ = null; } inputSourceCase_ = 2; onChanged();; return inputIdsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Search, com.clarifai.grpc.api.Search.Builder, com.clarifai.grpc.api.SearchOrBuilder> searchBuilder_; /** * .clarifai.api.Search search = 10; * @return Whether the search field is set. */ @java.lang.Override public boolean hasSearch() { return inputSourceCase_ == 10; } /** * .clarifai.api.Search search = 10; * @return The search. */ @java.lang.Override public com.clarifai.grpc.api.Search getSearch() { if (searchBuilder_ == null) { if (inputSourceCase_ == 10) { return (com.clarifai.grpc.api.Search) inputSource_; } return com.clarifai.grpc.api.Search.getDefaultInstance(); } else { if (inputSourceCase_ == 10) { return searchBuilder_.getMessage(); } return com.clarifai.grpc.api.Search.getDefaultInstance(); } } /** * .clarifai.api.Search search = 10; */ public Builder setSearch(com.clarifai.grpc.api.Search value) { if (searchBuilder_ == null) { if (value == null) { throw new NullPointerException(); } inputSource_ = value; onChanged(); } else { searchBuilder_.setMessage(value); } inputSourceCase_ = 10; return this; } /** * .clarifai.api.Search search = 10; */ public Builder setSearch( com.clarifai.grpc.api.Search.Builder builderForValue) { if (searchBuilder_ == null) { inputSource_ = builderForValue.build(); onChanged(); } else { searchBuilder_.setMessage(builderForValue.build()); } inputSourceCase_ = 10; return this; } /** * .clarifai.api.Search search = 10; */ public Builder mergeSearch(com.clarifai.grpc.api.Search value) { if (searchBuilder_ == null) { if (inputSourceCase_ == 10 && inputSource_ != com.clarifai.grpc.api.Search.getDefaultInstance()) { inputSource_ = com.clarifai.grpc.api.Search.newBuilder((com.clarifai.grpc.api.Search) inputSource_) .mergeFrom(value).buildPartial(); } else { inputSource_ = value; } onChanged(); } else { if (inputSourceCase_ == 10) { searchBuilder_.mergeFrom(value); } else { searchBuilder_.setMessage(value); } } inputSourceCase_ = 10; return this; } /** * .clarifai.api.Search search = 10; */ public Builder clearSearch() { if (searchBuilder_ == null) { if (inputSourceCase_ == 10) { inputSourceCase_ = 0; inputSource_ = null; onChanged(); } } else { if (inputSourceCase_ == 10) { inputSourceCase_ = 0; inputSource_ = null; } searchBuilder_.clear(); } return this; } /** * .clarifai.api.Search search = 10; */ public com.clarifai.grpc.api.Search.Builder getSearchBuilder() { return getSearchFieldBuilder().getBuilder(); } /** * .clarifai.api.Search search = 10; */ @java.lang.Override public com.clarifai.grpc.api.SearchOrBuilder getSearchOrBuilder() { if ((inputSourceCase_ == 10) && (searchBuilder_ != null)) { return searchBuilder_.getMessageOrBuilder(); } else { if (inputSourceCase_ == 10) { return (com.clarifai.grpc.api.Search) inputSource_; } return com.clarifai.grpc.api.Search.getDefaultInstance(); } } /** * .clarifai.api.Search search = 10; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Search, com.clarifai.grpc.api.Search.Builder, com.clarifai.grpc.api.SearchOrBuilder> getSearchFieldBuilder() { if (searchBuilder_ == null) { if (!(inputSourceCase_ == 10)) { inputSource_ = com.clarifai.grpc.api.Search.getDefaultInstance(); } searchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Search, com.clarifai.grpc.api.Search.Builder, com.clarifai.grpc.api.SearchOrBuilder>( (com.clarifai.grpc.api.Search) inputSource_, getParentForChildren(), isClean()); inputSource_ = null; } inputSourceCase_ = 10; onChanged();; return searchBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Dataset, com.clarifai.grpc.api.Dataset.Builder, com.clarifai.grpc.api.DatasetOrBuilder> datasetBuilder_; /** * .clarifai.api.Dataset dataset = 11; * @return Whether the dataset field is set. */ @java.lang.Override public boolean hasDataset() { return inputSourceCase_ == 11; } /** * .clarifai.api.Dataset dataset = 11; * @return The dataset. */ @java.lang.Override public com.clarifai.grpc.api.Dataset getDataset() { if (datasetBuilder_ == null) { if (inputSourceCase_ == 11) { return (com.clarifai.grpc.api.Dataset) inputSource_; } return com.clarifai.grpc.api.Dataset.getDefaultInstance(); } else { if (inputSourceCase_ == 11) { return datasetBuilder_.getMessage(); } return com.clarifai.grpc.api.Dataset.getDefaultInstance(); } } /** * .clarifai.api.Dataset dataset = 11; */ public Builder setDataset(com.clarifai.grpc.api.Dataset value) { if (datasetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } inputSource_ = value; onChanged(); } else { datasetBuilder_.setMessage(value); } inputSourceCase_ = 11; return this; } /** * .clarifai.api.Dataset dataset = 11; */ public Builder setDataset( com.clarifai.grpc.api.Dataset.Builder builderForValue) { if (datasetBuilder_ == null) { inputSource_ = builderForValue.build(); onChanged(); } else { datasetBuilder_.setMessage(builderForValue.build()); } inputSourceCase_ = 11; return this; } /** * .clarifai.api.Dataset dataset = 11; */ public Builder mergeDataset(com.clarifai.grpc.api.Dataset value) { if (datasetBuilder_ == null) { if (inputSourceCase_ == 11 && inputSource_ != com.clarifai.grpc.api.Dataset.getDefaultInstance()) { inputSource_ = com.clarifai.grpc.api.Dataset.newBuilder((com.clarifai.grpc.api.Dataset) inputSource_) .mergeFrom(value).buildPartial(); } else { inputSource_ = value; } onChanged(); } else { if (inputSourceCase_ == 11) { datasetBuilder_.mergeFrom(value); } else { datasetBuilder_.setMessage(value); } } inputSourceCase_ = 11; return this; } /** * .clarifai.api.Dataset dataset = 11; */ public Builder clearDataset() { if (datasetBuilder_ == null) { if (inputSourceCase_ == 11) { inputSourceCase_ = 0; inputSource_ = null; onChanged(); } } else { if (inputSourceCase_ == 11) { inputSourceCase_ = 0; inputSource_ = null; } datasetBuilder_.clear(); } return this; } /** * .clarifai.api.Dataset dataset = 11; */ public com.clarifai.grpc.api.Dataset.Builder getDatasetBuilder() { return getDatasetFieldBuilder().getBuilder(); } /** * .clarifai.api.Dataset dataset = 11; */ @java.lang.Override public com.clarifai.grpc.api.DatasetOrBuilder getDatasetOrBuilder() { if ((inputSourceCase_ == 11) && (datasetBuilder_ != null)) { return datasetBuilder_.getMessageOrBuilder(); } else { if (inputSourceCase_ == 11) { return (com.clarifai.grpc.api.Dataset) inputSource_; } return com.clarifai.grpc.api.Dataset.getDefaultInstance(); } } /** * .clarifai.api.Dataset dataset = 11; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Dataset, com.clarifai.grpc.api.Dataset.Builder, com.clarifai.grpc.api.DatasetOrBuilder> getDatasetFieldBuilder() { if (datasetBuilder_ == null) { if (!(inputSourceCase_ == 11)) { inputSource_ = com.clarifai.grpc.api.Dataset.getDefaultInstance(); } datasetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Dataset, com.clarifai.grpc.api.Dataset.Builder, com.clarifai.grpc.api.DatasetOrBuilder>( (com.clarifai.grpc.api.Dataset) inputSource_, getParentForChildren(), isClean()); inputSource_ = null; } inputSourceCase_ = 11; onChanged();; return datasetBuilder_; } private com.clarifai.grpc.api.Operation operation_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Operation, com.clarifai.grpc.api.Operation.Builder, com.clarifai.grpc.api.OperationOrBuilder> operationBuilder_; /** *
     * Operation to perform
     * 
* * .clarifai.api.Operation operation = 3; * @return Whether the operation field is set. */ public boolean hasOperation() { return operationBuilder_ != null || operation_ != null; } /** *
     * Operation to perform
     * 
* * .clarifai.api.Operation operation = 3; * @return The operation. */ public com.clarifai.grpc.api.Operation getOperation() { if (operationBuilder_ == null) { return operation_ == null ? com.clarifai.grpc.api.Operation.getDefaultInstance() : operation_; } else { return operationBuilder_.getMessage(); } } /** *
     * Operation to perform
     * 
* * .clarifai.api.Operation operation = 3; */ public Builder setOperation(com.clarifai.grpc.api.Operation value) { if (operationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } operation_ = value; onChanged(); } else { operationBuilder_.setMessage(value); } return this; } /** *
     * Operation to perform
     * 
* * .clarifai.api.Operation operation = 3; */ public Builder setOperation( com.clarifai.grpc.api.Operation.Builder builderForValue) { if (operationBuilder_ == null) { operation_ = builderForValue.build(); onChanged(); } else { operationBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Operation to perform
     * 
* * .clarifai.api.Operation operation = 3; */ public Builder mergeOperation(com.clarifai.grpc.api.Operation value) { if (operationBuilder_ == null) { if (operation_ != null) { operation_ = com.clarifai.grpc.api.Operation.newBuilder(operation_).mergeFrom(value).buildPartial(); } else { operation_ = value; } onChanged(); } else { operationBuilder_.mergeFrom(value); } return this; } /** *
     * Operation to perform
     * 
* * .clarifai.api.Operation operation = 3; */ public Builder clearOperation() { if (operationBuilder_ == null) { operation_ = null; onChanged(); } else { operation_ = null; operationBuilder_ = null; } return this; } /** *
     * Operation to perform
     * 
* * .clarifai.api.Operation operation = 3; */ public com.clarifai.grpc.api.Operation.Builder getOperationBuilder() { onChanged(); return getOperationFieldBuilder().getBuilder(); } /** *
     * Operation to perform
     * 
* * .clarifai.api.Operation operation = 3; */ public com.clarifai.grpc.api.OperationOrBuilder getOperationOrBuilder() { if (operationBuilder_ != null) { return operationBuilder_.getMessageOrBuilder(); } else { return operation_ == null ? com.clarifai.grpc.api.Operation.getDefaultInstance() : operation_; } } /** *
     * Operation to perform
     * 
* * .clarifai.api.Operation operation = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Operation, com.clarifai.grpc.api.Operation.Builder, com.clarifai.grpc.api.OperationOrBuilder> getOperationFieldBuilder() { if (operationBuilder_ == null) { operationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Operation, com.clarifai.grpc.api.Operation.Builder, com.clarifai.grpc.api.OperationOrBuilder>( getOperation(), getParentForChildren(), isClean()); operation_ = null; } return operationBuilder_; } private java.lang.Object appId_ = ""; /** *
     * Application ID that this Operation was created from
     * 
* * string app_id = 4; * @return The appId. */ public java.lang.String getAppId() { java.lang.Object ref = appId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); appId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Application ID that this Operation was created from
     * 
* * string app_id = 4; * @return The bytes for appId. */ public com.google.protobuf.ByteString getAppIdBytes() { java.lang.Object ref = appId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); appId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Application ID that this Operation was created from
     * 
* * string app_id = 4; * @param value The appId to set. * @return This builder for chaining. */ public Builder setAppId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } appId_ = value; onChanged(); return this; } /** *
     * Application ID that this Operation was created from
     * 
* * string app_id = 4; * @return This builder for chaining. */ public Builder clearAppId() { appId_ = getDefaultInstance().getAppId(); onChanged(); return this; } /** *
     * Application ID that this Operation was created from
     * 
* * string app_id = 4; * @param value The bytes for appId to set. * @return This builder for chaining. */ public Builder setAppIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); appId_ = value; onChanged(); return this; } private com.clarifai.grpc.api.status.Status status_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.status.Status, com.clarifai.grpc.api.status.Status.Builder, com.clarifai.grpc.api.status.StatusOrBuilder> statusBuilder_; /** *
     * Status (pending, in-progress, completed, failed) of the operation
     * 
* * .clarifai.api.status.Status status = 5; * @return Whether the status field is set. */ public boolean hasStatus() { return statusBuilder_ != null || status_ != null; } /** *
     * Status (pending, in-progress, completed, failed) of the operation
     * 
* * .clarifai.api.status.Status status = 5; * @return The status. */ public com.clarifai.grpc.api.status.Status getStatus() { if (statusBuilder_ == null) { return status_ == null ? com.clarifai.grpc.api.status.Status.getDefaultInstance() : status_; } else { return statusBuilder_.getMessage(); } } /** *
     * Status (pending, in-progress, completed, failed) of the operation
     * 
* * .clarifai.api.status.Status status = 5; */ public Builder setStatus(com.clarifai.grpc.api.status.Status value) { if (statusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } status_ = value; onChanged(); } else { statusBuilder_.setMessage(value); } return this; } /** *
     * Status (pending, in-progress, completed, failed) of the operation
     * 
* * .clarifai.api.status.Status status = 5; */ 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 (pending, in-progress, completed, failed) of the operation
     * 
* * .clarifai.api.status.Status status = 5; */ 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 (pending, in-progress, completed, failed) of the operation
     * 
* * .clarifai.api.status.Status status = 5; */ public Builder clearStatus() { if (statusBuilder_ == null) { status_ = null; onChanged(); } else { status_ = null; statusBuilder_ = null; } return this; } /** *
     * Status (pending, in-progress, completed, failed) of the operation
     * 
* * .clarifai.api.status.Status status = 5; */ public com.clarifai.grpc.api.status.Status.Builder getStatusBuilder() { onChanged(); return getStatusFieldBuilder().getBuilder(); } /** *
     * Status (pending, in-progress, completed, failed) of the operation
     * 
* * .clarifai.api.status.Status status = 5; */ 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 (pending, in-progress, completed, failed) of the operation
     * 
* * .clarifai.api.status.Status status = 5; */ 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 com.clarifai.grpc.api.Progress progress_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Progress, com.clarifai.grpc.api.Progress.Builder, com.clarifai.grpc.api.ProgressOrBuilder> progressBuilder_; /** *
     * Progress of an on-going Bulk Operation task
     * 
* * .clarifai.api.Progress progress = 6; * @return Whether the progress field is set. */ public boolean hasProgress() { return progressBuilder_ != null || progress_ != null; } /** *
     * Progress of an on-going Bulk Operation task
     * 
* * .clarifai.api.Progress progress = 6; * @return The progress. */ public com.clarifai.grpc.api.Progress getProgress() { if (progressBuilder_ == null) { return progress_ == null ? com.clarifai.grpc.api.Progress.getDefaultInstance() : progress_; } else { return progressBuilder_.getMessage(); } } /** *
     * Progress of an on-going Bulk Operation task
     * 
* * .clarifai.api.Progress progress = 6; */ public Builder setProgress(com.clarifai.grpc.api.Progress value) { if (progressBuilder_ == null) { if (value == null) { throw new NullPointerException(); } progress_ = value; onChanged(); } else { progressBuilder_.setMessage(value); } return this; } /** *
     * Progress of an on-going Bulk Operation task
     * 
* * .clarifai.api.Progress progress = 6; */ public Builder setProgress( com.clarifai.grpc.api.Progress.Builder builderForValue) { if (progressBuilder_ == null) { progress_ = builderForValue.build(); onChanged(); } else { progressBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Progress of an on-going Bulk Operation task
     * 
* * .clarifai.api.Progress progress = 6; */ public Builder mergeProgress(com.clarifai.grpc.api.Progress value) { if (progressBuilder_ == null) { if (progress_ != null) { progress_ = com.clarifai.grpc.api.Progress.newBuilder(progress_).mergeFrom(value).buildPartial(); } else { progress_ = value; } onChanged(); } else { progressBuilder_.mergeFrom(value); } return this; } /** *
     * Progress of an on-going Bulk Operation task
     * 
* * .clarifai.api.Progress progress = 6; */ public Builder clearProgress() { if (progressBuilder_ == null) { progress_ = null; onChanged(); } else { progress_ = null; progressBuilder_ = null; } return this; } /** *
     * Progress of an on-going Bulk Operation task
     * 
* * .clarifai.api.Progress progress = 6; */ public com.clarifai.grpc.api.Progress.Builder getProgressBuilder() { onChanged(); return getProgressFieldBuilder().getBuilder(); } /** *
     * Progress of an on-going Bulk Operation task
     * 
* * .clarifai.api.Progress progress = 6; */ public com.clarifai.grpc.api.ProgressOrBuilder getProgressOrBuilder() { if (progressBuilder_ != null) { return progressBuilder_.getMessageOrBuilder(); } else { return progress_ == null ? com.clarifai.grpc.api.Progress.getDefaultInstance() : progress_; } } /** *
     * Progress of an on-going Bulk Operation task
     * 
* * .clarifai.api.Progress progress = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Progress, com.clarifai.grpc.api.Progress.Builder, com.clarifai.grpc.api.ProgressOrBuilder> getProgressFieldBuilder() { if (progressBuilder_ == null) { progressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Progress, com.clarifai.grpc.api.Progress.Builder, com.clarifai.grpc.api.ProgressOrBuilder>( getProgress(), getParentForChildren(), isClean()); progress_ = null; } return progressBuilder_; } private java.lang.Object createdBy_ = ""; /** *
     * User id that created this operation
     * 
* * string created_by = 7; * @return The createdBy. */ public java.lang.String getCreatedBy() { java.lang.Object ref = createdBy_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); createdBy_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * User id that created this operation
     * 
* * string created_by = 7; * @return The bytes for createdBy. */ public com.google.protobuf.ByteString getCreatedByBytes() { java.lang.Object ref = createdBy_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); createdBy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * User id that created this operation
     * 
* * string created_by = 7; * @param value The createdBy to set. * @return This builder for chaining. */ public Builder setCreatedBy( java.lang.String value) { if (value == null) { throw new NullPointerException(); } createdBy_ = value; onChanged(); return this; } /** *
     * User id that created this operation
     * 
* * string created_by = 7; * @return This builder for chaining. */ public Builder clearCreatedBy() { createdBy_ = getDefaultInstance().getCreatedBy(); onChanged(); return this; } /** *
     * User id that created this operation
     * 
* * string created_by = 7; * @param value The bytes for createdBy to set. * @return This builder for chaining. */ public Builder setCreatedByBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); createdBy_ = value; onChanged(); return this; } private com.google.protobuf.Timestamp createdAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; /** *
     * When the operation was created. We follow the XXXX timestamp
     * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
     * "2006-01-02T15:04:05.999999Z" so you can expect results like
     * the following from the API:
     * "2017-04-11T21:50:50.223962Z"
     * 
* * .google.protobuf.Timestamp created_at = 8; * @return Whether the createdAt field is set. */ public boolean hasCreatedAt() { return createdAtBuilder_ != null || createdAt_ != null; } /** *
     * When the operation was created. We follow the XXXX timestamp
     * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
     * "2006-01-02T15:04:05.999999Z" so you can expect results like
     * the following from the API:
     * "2017-04-11T21:50:50.223962Z"
     * 
* * .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 operation was created. We follow the XXXX timestamp
     * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
     * "2006-01-02T15:04:05.999999Z" so you can expect results like
     * the following from the API:
     * "2017-04-11T21:50:50.223962Z"
     * 
* * .google.protobuf.Timestamp created_at = 8; */ public Builder setCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createdAt_ = value; onChanged(); } else { createdAtBuilder_.setMessage(value); } return this; } /** *
     * When the operation was created. We follow the XXXX timestamp
     * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
     * "2006-01-02T15:04:05.999999Z" so you can expect results like
     * the following from the API:
     * "2017-04-11T21:50:50.223962Z"
     * 
* * .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 operation was created. We follow the XXXX timestamp
     * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
     * "2006-01-02T15:04:05.999999Z" so you can expect results like
     * the following from the API:
     * "2017-04-11T21:50:50.223962Z"
     * 
* * .google.protobuf.Timestamp created_at = 8; */ public Builder 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 operation was created. We follow the XXXX timestamp
     * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
     * "2006-01-02T15:04:05.999999Z" so you can expect results like
     * the following from the API:
     * "2017-04-11T21:50:50.223962Z"
     * 
* * .google.protobuf.Timestamp created_at = 8; */ public Builder clearCreatedAt() { if (createdAtBuilder_ == null) { createdAt_ = null; onChanged(); } else { createdAt_ = null; createdAtBuilder_ = null; } return this; } /** *
     * When the operation was created. We follow the XXXX timestamp
     * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
     * "2006-01-02T15:04:05.999999Z" so you can expect results like
     * the following from the API:
     * "2017-04-11T21:50:50.223962Z"
     * 
* * .google.protobuf.Timestamp created_at = 8; */ public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { onChanged(); return getCreatedAtFieldBuilder().getBuilder(); } /** *
     * When the operation was created. We follow the XXXX timestamp
     * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
     * "2006-01-02T15:04:05.999999Z" so you can expect results like
     * the following from the API:
     * "2017-04-11T21:50:50.223962Z"
     * 
* * .google.protobuf.Timestamp created_at = 8; */ public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { if (createdAtBuilder_ != null) { return createdAtBuilder_.getMessageOrBuilder(); } else { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } } /** *
     * When the operation was created. We follow the XXXX timestamp
     * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
     * "2006-01-02T15:04:05.999999Z" so you can expect results like
     * the following from the API:
     * "2017-04-11T21:50:50.223962Z"
     * 
* * .google.protobuf.Timestamp created_at = 8; */ 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 lastModifiedAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastModifiedAtBuilder_; /** *
     * Last time the status got updated
     * 
* * .google.protobuf.Timestamp last_modified_at = 9; * @return Whether the lastModifiedAt field is set. */ public boolean hasLastModifiedAt() { return lastModifiedAtBuilder_ != null || lastModifiedAt_ != null; } /** *
     * Last time the status got updated
     * 
* * .google.protobuf.Timestamp last_modified_at = 9; * @return The lastModifiedAt. */ public com.google.protobuf.Timestamp getLastModifiedAt() { if (lastModifiedAtBuilder_ == null) { return lastModifiedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastModifiedAt_; } else { return lastModifiedAtBuilder_.getMessage(); } } /** *
     * Last time the status got updated
     * 
* * .google.protobuf.Timestamp last_modified_at = 9; */ public Builder setLastModifiedAt(com.google.protobuf.Timestamp value) { if (lastModifiedAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } lastModifiedAt_ = value; onChanged(); } else { lastModifiedAtBuilder_.setMessage(value); } return this; } /** *
     * Last time the status got updated
     * 
* * .google.protobuf.Timestamp last_modified_at = 9; */ public Builder setLastModifiedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (lastModifiedAtBuilder_ == null) { lastModifiedAt_ = builderForValue.build(); onChanged(); } else { lastModifiedAtBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Last time the status got updated
     * 
* * .google.protobuf.Timestamp last_modified_at = 9; */ public Builder mergeLastModifiedAt(com.google.protobuf.Timestamp value) { if (lastModifiedAtBuilder_ == null) { if (lastModifiedAt_ != null) { lastModifiedAt_ = com.google.protobuf.Timestamp.newBuilder(lastModifiedAt_).mergeFrom(value).buildPartial(); } else { lastModifiedAt_ = value; } onChanged(); } else { lastModifiedAtBuilder_.mergeFrom(value); } return this; } /** *
     * Last time the status got updated
     * 
* * .google.protobuf.Timestamp last_modified_at = 9; */ public Builder clearLastModifiedAt() { if (lastModifiedAtBuilder_ == null) { lastModifiedAt_ = null; onChanged(); } else { lastModifiedAt_ = null; lastModifiedAtBuilder_ = null; } return this; } /** *
     * Last time the status got updated
     * 
* * .google.protobuf.Timestamp last_modified_at = 9; */ public com.google.protobuf.Timestamp.Builder getLastModifiedAtBuilder() { onChanged(); return getLastModifiedAtFieldBuilder().getBuilder(); } /** *
     * Last time the status got updated
     * 
* * .google.protobuf.Timestamp last_modified_at = 9; */ public com.google.protobuf.TimestampOrBuilder getLastModifiedAtOrBuilder() { if (lastModifiedAtBuilder_ != null) { return lastModifiedAtBuilder_.getMessageOrBuilder(); } else { return lastModifiedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastModifiedAt_; } } /** *
     * Last time the status got updated
     * 
* * .google.protobuf.Timestamp last_modified_at = 9; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getLastModifiedAtFieldBuilder() { if (lastModifiedAtBuilder_ == null) { lastModifiedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getLastModifiedAt(), getParentForChildren(), isClean()); lastModifiedAt_ = null; } return lastModifiedAtBuilder_; } @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.BulkOperation) } // @@protoc_insertion_point(class_scope:clarifai.api.BulkOperation) private static final com.clarifai.grpc.api.BulkOperation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.clarifai.grpc.api.BulkOperation(); } public static com.clarifai.grpc.api.BulkOperation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BulkOperation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BulkOperation(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.BulkOperation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy