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

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

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private Operation(
      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.AddConcepts.Builder subBuilder = null;
            if (operationCase_ == 1) {
              subBuilder = ((com.clarifai.grpc.api.AddConcepts) operation_).toBuilder();
            }
            operation_ =
                input.readMessage(com.clarifai.grpc.api.AddConcepts.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((com.clarifai.grpc.api.AddConcepts) operation_);
              operation_ = subBuilder.buildPartial();
            }
            operationCase_ = 1;
            break;
          }
          case 18: {
            com.clarifai.grpc.api.DeleteConcepts.Builder subBuilder = null;
            if (operationCase_ == 2) {
              subBuilder = ((com.clarifai.grpc.api.DeleteConcepts) operation_).toBuilder();
            }
            operation_ =
                input.readMessage(com.clarifai.grpc.api.DeleteConcepts.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((com.clarifai.grpc.api.DeleteConcepts) operation_);
              operation_ = subBuilder.buildPartial();
            }
            operationCase_ = 2;
            break;
          }
          case 26: {
            com.clarifai.grpc.api.AddMetadata.Builder subBuilder = null;
            if (operationCase_ == 3) {
              subBuilder = ((com.clarifai.grpc.api.AddMetadata) operation_).toBuilder();
            }
            operation_ =
                input.readMessage(com.clarifai.grpc.api.AddMetadata.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((com.clarifai.grpc.api.AddMetadata) operation_);
              operation_ = subBuilder.buildPartial();
            }
            operationCase_ = 3;
            break;
          }
          case 34: {
            com.clarifai.grpc.api.DeleteMetadata.Builder subBuilder = null;
            if (operationCase_ == 4) {
              subBuilder = ((com.clarifai.grpc.api.DeleteMetadata) operation_).toBuilder();
            }
            operation_ =
                input.readMessage(com.clarifai.grpc.api.DeleteMetadata.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((com.clarifai.grpc.api.DeleteMetadata) operation_);
              operation_ = subBuilder.buildPartial();
            }
            operationCase_ = 4;
            break;
          }
          case 42: {
            com.clarifai.grpc.api.OverwriteGeo.Builder subBuilder = null;
            if (operationCase_ == 5) {
              subBuilder = ((com.clarifai.grpc.api.OverwriteGeo) operation_).toBuilder();
            }
            operation_ =
                input.readMessage(com.clarifai.grpc.api.OverwriteGeo.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((com.clarifai.grpc.api.OverwriteGeo) operation_);
              operation_ = subBuilder.buildPartial();
            }
            operationCase_ = 5;
            break;
          }
          case 50: {
            com.clarifai.grpc.api.DeleteGeo.Builder subBuilder = null;
            if (operationCase_ == 6) {
              subBuilder = ((com.clarifai.grpc.api.DeleteGeo) operation_).toBuilder();
            }
            operation_ =
                input.readMessage(com.clarifai.grpc.api.DeleteGeo.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((com.clarifai.grpc.api.DeleteGeo) operation_);
              operation_ = subBuilder.buildPartial();
            }
            operationCase_ = 6;
            break;
          }
          case 58: {
            com.clarifai.grpc.api.DeleteFromDataset.Builder subBuilder = null;
            if (operationCase_ == 7) {
              subBuilder = ((com.clarifai.grpc.api.DeleteFromDataset) operation_).toBuilder();
            }
            operation_ =
                input.readMessage(com.clarifai.grpc.api.DeleteFromDataset.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((com.clarifai.grpc.api.DeleteFromDataset) operation_);
              operation_ = subBuilder.buildPartial();
            }
            operationCase_ = 7;
            break;
          }
          case 66: {
            com.clarifai.grpc.api.AddToDataset.Builder subBuilder = null;
            if (operationCase_ == 8) {
              subBuilder = ((com.clarifai.grpc.api.AddToDataset) operation_).toBuilder();
            }
            operation_ =
                input.readMessage(com.clarifai.grpc.api.AddToDataset.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((com.clarifai.grpc.api.AddToDataset) operation_);
              operation_ = subBuilder.buildPartial();
            }
            operationCase_ = 8;
            break;
          }
          case 74: {
            com.clarifai.grpc.api.SplitIntoDatasets.Builder subBuilder = null;
            if (operationCase_ == 9) {
              subBuilder = ((com.clarifai.grpc.api.SplitIntoDatasets) operation_).toBuilder();
            }
            operation_ =
                input.readMessage(com.clarifai.grpc.api.SplitIntoDatasets.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((com.clarifai.grpc.api.SplitIntoDatasets) operation_);
              operation_ = subBuilder.buildPartial();
            }
            operationCase_ = 9;
            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_Operation_descriptor;
  }

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

  private int operationCase_ = 0;
  private java.lang.Object operation_;
  public enum OperationCase
      implements com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    ADD_CONCEPTS(1),
    DELETE_CONCEPTS(2),
    ADD_METADATA(3),
    DELETE_METADATA(4),
    OVERWRITE_GEO(5),
    DELETE_GEO(6),
    DELETE_FROM_DATASET(7),
    ADD_TO_DATASET(8),
    SPLIT_INTO_DATASETS(9),
    OPERATION_NOT_SET(0);
    private final int value;
    private OperationCase(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 OperationCase valueOf(int value) {
      return forNumber(value);
    }

    public static OperationCase forNumber(int value) {
      switch (value) {
        case 1: return ADD_CONCEPTS;
        case 2: return DELETE_CONCEPTS;
        case 3: return ADD_METADATA;
        case 4: return DELETE_METADATA;
        case 5: return OVERWRITE_GEO;
        case 6: return DELETE_GEO;
        case 7: return DELETE_FROM_DATASET;
        case 8: return ADD_TO_DATASET;
        case 9: return SPLIT_INTO_DATASETS;
        case 0: return OPERATION_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public OperationCase
  getOperationCase() {
    return OperationCase.forNumber(
        operationCase_);
  }

  public static final int ADD_CONCEPTS_FIELD_NUMBER = 1;
  /**
   * .clarifai.api.AddConcepts add_concepts = 1;
   * @return Whether the addConcepts field is set.
   */
  @java.lang.Override
  public boolean hasAddConcepts() {
    return operationCase_ == 1;
  }
  /**
   * .clarifai.api.AddConcepts add_concepts = 1;
   * @return The addConcepts.
   */
  @java.lang.Override
  public com.clarifai.grpc.api.AddConcepts getAddConcepts() {
    if (operationCase_ == 1) {
       return (com.clarifai.grpc.api.AddConcepts) operation_;
    }
    return com.clarifai.grpc.api.AddConcepts.getDefaultInstance();
  }
  /**
   * .clarifai.api.AddConcepts add_concepts = 1;
   */
  @java.lang.Override
  public com.clarifai.grpc.api.AddConceptsOrBuilder getAddConceptsOrBuilder() {
    if (operationCase_ == 1) {
       return (com.clarifai.grpc.api.AddConcepts) operation_;
    }
    return com.clarifai.grpc.api.AddConcepts.getDefaultInstance();
  }

  public static final int DELETE_CONCEPTS_FIELD_NUMBER = 2;
  /**
   * .clarifai.api.DeleteConcepts delete_concepts = 2;
   * @return Whether the deleteConcepts field is set.
   */
  @java.lang.Override
  public boolean hasDeleteConcepts() {
    return operationCase_ == 2;
  }
  /**
   * .clarifai.api.DeleteConcepts delete_concepts = 2;
   * @return The deleteConcepts.
   */
  @java.lang.Override
  public com.clarifai.grpc.api.DeleteConcepts getDeleteConcepts() {
    if (operationCase_ == 2) {
       return (com.clarifai.grpc.api.DeleteConcepts) operation_;
    }
    return com.clarifai.grpc.api.DeleteConcepts.getDefaultInstance();
  }
  /**
   * .clarifai.api.DeleteConcepts delete_concepts = 2;
   */
  @java.lang.Override
  public com.clarifai.grpc.api.DeleteConceptsOrBuilder getDeleteConceptsOrBuilder() {
    if (operationCase_ == 2) {
       return (com.clarifai.grpc.api.DeleteConcepts) operation_;
    }
    return com.clarifai.grpc.api.DeleteConcepts.getDefaultInstance();
  }

  public static final int ADD_METADATA_FIELD_NUMBER = 3;
  /**
   * .clarifai.api.AddMetadata add_metadata = 3;
   * @return Whether the addMetadata field is set.
   */
  @java.lang.Override
  public boolean hasAddMetadata() {
    return operationCase_ == 3;
  }
  /**
   * .clarifai.api.AddMetadata add_metadata = 3;
   * @return The addMetadata.
   */
  @java.lang.Override
  public com.clarifai.grpc.api.AddMetadata getAddMetadata() {
    if (operationCase_ == 3) {
       return (com.clarifai.grpc.api.AddMetadata) operation_;
    }
    return com.clarifai.grpc.api.AddMetadata.getDefaultInstance();
  }
  /**
   * .clarifai.api.AddMetadata add_metadata = 3;
   */
  @java.lang.Override
  public com.clarifai.grpc.api.AddMetadataOrBuilder getAddMetadataOrBuilder() {
    if (operationCase_ == 3) {
       return (com.clarifai.grpc.api.AddMetadata) operation_;
    }
    return com.clarifai.grpc.api.AddMetadata.getDefaultInstance();
  }

  public static final int DELETE_METADATA_FIELD_NUMBER = 4;
  /**
   * .clarifai.api.DeleteMetadata delete_metadata = 4;
   * @return Whether the deleteMetadata field is set.
   */
  @java.lang.Override
  public boolean hasDeleteMetadata() {
    return operationCase_ == 4;
  }
  /**
   * .clarifai.api.DeleteMetadata delete_metadata = 4;
   * @return The deleteMetadata.
   */
  @java.lang.Override
  public com.clarifai.grpc.api.DeleteMetadata getDeleteMetadata() {
    if (operationCase_ == 4) {
       return (com.clarifai.grpc.api.DeleteMetadata) operation_;
    }
    return com.clarifai.grpc.api.DeleteMetadata.getDefaultInstance();
  }
  /**
   * .clarifai.api.DeleteMetadata delete_metadata = 4;
   */
  @java.lang.Override
  public com.clarifai.grpc.api.DeleteMetadataOrBuilder getDeleteMetadataOrBuilder() {
    if (operationCase_ == 4) {
       return (com.clarifai.grpc.api.DeleteMetadata) operation_;
    }
    return com.clarifai.grpc.api.DeleteMetadata.getDefaultInstance();
  }

  public static final int OVERWRITE_GEO_FIELD_NUMBER = 5;
  /**
   * .clarifai.api.OverwriteGeo overwrite_geo = 5;
   * @return Whether the overwriteGeo field is set.
   */
  @java.lang.Override
  public boolean hasOverwriteGeo() {
    return operationCase_ == 5;
  }
  /**
   * .clarifai.api.OverwriteGeo overwrite_geo = 5;
   * @return The overwriteGeo.
   */
  @java.lang.Override
  public com.clarifai.grpc.api.OverwriteGeo getOverwriteGeo() {
    if (operationCase_ == 5) {
       return (com.clarifai.grpc.api.OverwriteGeo) operation_;
    }
    return com.clarifai.grpc.api.OverwriteGeo.getDefaultInstance();
  }
  /**
   * .clarifai.api.OverwriteGeo overwrite_geo = 5;
   */
  @java.lang.Override
  public com.clarifai.grpc.api.OverwriteGeoOrBuilder getOverwriteGeoOrBuilder() {
    if (operationCase_ == 5) {
       return (com.clarifai.grpc.api.OverwriteGeo) operation_;
    }
    return com.clarifai.grpc.api.OverwriteGeo.getDefaultInstance();
  }

  public static final int DELETE_GEO_FIELD_NUMBER = 6;
  /**
   * .clarifai.api.DeleteGeo delete_geo = 6;
   * @return Whether the deleteGeo field is set.
   */
  @java.lang.Override
  public boolean hasDeleteGeo() {
    return operationCase_ == 6;
  }
  /**
   * .clarifai.api.DeleteGeo delete_geo = 6;
   * @return The deleteGeo.
   */
  @java.lang.Override
  public com.clarifai.grpc.api.DeleteGeo getDeleteGeo() {
    if (operationCase_ == 6) {
       return (com.clarifai.grpc.api.DeleteGeo) operation_;
    }
    return com.clarifai.grpc.api.DeleteGeo.getDefaultInstance();
  }
  /**
   * .clarifai.api.DeleteGeo delete_geo = 6;
   */
  @java.lang.Override
  public com.clarifai.grpc.api.DeleteGeoOrBuilder getDeleteGeoOrBuilder() {
    if (operationCase_ == 6) {
       return (com.clarifai.grpc.api.DeleteGeo) operation_;
    }
    return com.clarifai.grpc.api.DeleteGeo.getDefaultInstance();
  }

  public static final int DELETE_FROM_DATASET_FIELD_NUMBER = 7;
  /**
   * .clarifai.api.DeleteFromDataset delete_from_dataset = 7;
   * @return Whether the deleteFromDataset field is set.
   */
  @java.lang.Override
  public boolean hasDeleteFromDataset() {
    return operationCase_ == 7;
  }
  /**
   * .clarifai.api.DeleteFromDataset delete_from_dataset = 7;
   * @return The deleteFromDataset.
   */
  @java.lang.Override
  public com.clarifai.grpc.api.DeleteFromDataset getDeleteFromDataset() {
    if (operationCase_ == 7) {
       return (com.clarifai.grpc.api.DeleteFromDataset) operation_;
    }
    return com.clarifai.grpc.api.DeleteFromDataset.getDefaultInstance();
  }
  /**
   * .clarifai.api.DeleteFromDataset delete_from_dataset = 7;
   */
  @java.lang.Override
  public com.clarifai.grpc.api.DeleteFromDatasetOrBuilder getDeleteFromDatasetOrBuilder() {
    if (operationCase_ == 7) {
       return (com.clarifai.grpc.api.DeleteFromDataset) operation_;
    }
    return com.clarifai.grpc.api.DeleteFromDataset.getDefaultInstance();
  }

  public static final int ADD_TO_DATASET_FIELD_NUMBER = 8;
  /**
   * .clarifai.api.AddToDataset add_to_dataset = 8;
   * @return Whether the addToDataset field is set.
   */
  @java.lang.Override
  public boolean hasAddToDataset() {
    return operationCase_ == 8;
  }
  /**
   * .clarifai.api.AddToDataset add_to_dataset = 8;
   * @return The addToDataset.
   */
  @java.lang.Override
  public com.clarifai.grpc.api.AddToDataset getAddToDataset() {
    if (operationCase_ == 8) {
       return (com.clarifai.grpc.api.AddToDataset) operation_;
    }
    return com.clarifai.grpc.api.AddToDataset.getDefaultInstance();
  }
  /**
   * .clarifai.api.AddToDataset add_to_dataset = 8;
   */
  @java.lang.Override
  public com.clarifai.grpc.api.AddToDatasetOrBuilder getAddToDatasetOrBuilder() {
    if (operationCase_ == 8) {
       return (com.clarifai.grpc.api.AddToDataset) operation_;
    }
    return com.clarifai.grpc.api.AddToDataset.getDefaultInstance();
  }

  public static final int SPLIT_INTO_DATASETS_FIELD_NUMBER = 9;
  /**
   * .clarifai.api.SplitIntoDatasets split_into_datasets = 9;
   * @return Whether the splitIntoDatasets field is set.
   */
  @java.lang.Override
  public boolean hasSplitIntoDatasets() {
    return operationCase_ == 9;
  }
  /**
   * .clarifai.api.SplitIntoDatasets split_into_datasets = 9;
   * @return The splitIntoDatasets.
   */
  @java.lang.Override
  public com.clarifai.grpc.api.SplitIntoDatasets getSplitIntoDatasets() {
    if (operationCase_ == 9) {
       return (com.clarifai.grpc.api.SplitIntoDatasets) operation_;
    }
    return com.clarifai.grpc.api.SplitIntoDatasets.getDefaultInstance();
  }
  /**
   * .clarifai.api.SplitIntoDatasets split_into_datasets = 9;
   */
  @java.lang.Override
  public com.clarifai.grpc.api.SplitIntoDatasetsOrBuilder getSplitIntoDatasetsOrBuilder() {
    if (operationCase_ == 9) {
       return (com.clarifai.grpc.api.SplitIntoDatasets) operation_;
    }
    return com.clarifai.grpc.api.SplitIntoDatasets.getDefaultInstance();
  }

  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 (operationCase_ == 1) {
      output.writeMessage(1, (com.clarifai.grpc.api.AddConcepts) operation_);
    }
    if (operationCase_ == 2) {
      output.writeMessage(2, (com.clarifai.grpc.api.DeleteConcepts) operation_);
    }
    if (operationCase_ == 3) {
      output.writeMessage(3, (com.clarifai.grpc.api.AddMetadata) operation_);
    }
    if (operationCase_ == 4) {
      output.writeMessage(4, (com.clarifai.grpc.api.DeleteMetadata) operation_);
    }
    if (operationCase_ == 5) {
      output.writeMessage(5, (com.clarifai.grpc.api.OverwriteGeo) operation_);
    }
    if (operationCase_ == 6) {
      output.writeMessage(6, (com.clarifai.grpc.api.DeleteGeo) operation_);
    }
    if (operationCase_ == 7) {
      output.writeMessage(7, (com.clarifai.grpc.api.DeleteFromDataset) operation_);
    }
    if (operationCase_ == 8) {
      output.writeMessage(8, (com.clarifai.grpc.api.AddToDataset) operation_);
    }
    if (operationCase_ == 9) {
      output.writeMessage(9, (com.clarifai.grpc.api.SplitIntoDatasets) operation_);
    }
    unknownFields.writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (operationCase_ == 1) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, (com.clarifai.grpc.api.AddConcepts) operation_);
    }
    if (operationCase_ == 2) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, (com.clarifai.grpc.api.DeleteConcepts) operation_);
    }
    if (operationCase_ == 3) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, (com.clarifai.grpc.api.AddMetadata) operation_);
    }
    if (operationCase_ == 4) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(4, (com.clarifai.grpc.api.DeleteMetadata) operation_);
    }
    if (operationCase_ == 5) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(5, (com.clarifai.grpc.api.OverwriteGeo) operation_);
    }
    if (operationCase_ == 6) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(6, (com.clarifai.grpc.api.DeleteGeo) operation_);
    }
    if (operationCase_ == 7) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(7, (com.clarifai.grpc.api.DeleteFromDataset) operation_);
    }
    if (operationCase_ == 8) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(8, (com.clarifai.grpc.api.AddToDataset) operation_);
    }
    if (operationCase_ == 9) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(9, (com.clarifai.grpc.api.SplitIntoDatasets) operation_);
    }
    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.Operation)) {
      return super.equals(obj);
    }
    com.clarifai.grpc.api.Operation other = (com.clarifai.grpc.api.Operation) obj;

    if (!getOperationCase().equals(other.getOperationCase())) return false;
    switch (operationCase_) {
      case 1:
        if (!getAddConcepts()
            .equals(other.getAddConcepts())) return false;
        break;
      case 2:
        if (!getDeleteConcepts()
            .equals(other.getDeleteConcepts())) return false;
        break;
      case 3:
        if (!getAddMetadata()
            .equals(other.getAddMetadata())) return false;
        break;
      case 4:
        if (!getDeleteMetadata()
            .equals(other.getDeleteMetadata())) return false;
        break;
      case 5:
        if (!getOverwriteGeo()
            .equals(other.getOverwriteGeo())) return false;
        break;
      case 6:
        if (!getDeleteGeo()
            .equals(other.getDeleteGeo())) return false;
        break;
      case 7:
        if (!getDeleteFromDataset()
            .equals(other.getDeleteFromDataset())) return false;
        break;
      case 8:
        if (!getAddToDataset()
            .equals(other.getAddToDataset())) return false;
        break;
      case 9:
        if (!getSplitIntoDatasets()
            .equals(other.getSplitIntoDatasets())) 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();
    switch (operationCase_) {
      case 1:
        hash = (37 * hash) + ADD_CONCEPTS_FIELD_NUMBER;
        hash = (53 * hash) + getAddConcepts().hashCode();
        break;
      case 2:
        hash = (37 * hash) + DELETE_CONCEPTS_FIELD_NUMBER;
        hash = (53 * hash) + getDeleteConcepts().hashCode();
        break;
      case 3:
        hash = (37 * hash) + ADD_METADATA_FIELD_NUMBER;
        hash = (53 * hash) + getAddMetadata().hashCode();
        break;
      case 4:
        hash = (37 * hash) + DELETE_METADATA_FIELD_NUMBER;
        hash = (53 * hash) + getDeleteMetadata().hashCode();
        break;
      case 5:
        hash = (37 * hash) + OVERWRITE_GEO_FIELD_NUMBER;
        hash = (53 * hash) + getOverwriteGeo().hashCode();
        break;
      case 6:
        hash = (37 * hash) + DELETE_GEO_FIELD_NUMBER;
        hash = (53 * hash) + getDeleteGeo().hashCode();
        break;
      case 7:
        hash = (37 * hash) + DELETE_FROM_DATASET_FIELD_NUMBER;
        hash = (53 * hash) + getDeleteFromDataset().hashCode();
        break;
      case 8:
        hash = (37 * hash) + ADD_TO_DATASET_FIELD_NUMBER;
        hash = (53 * hash) + getAddToDataset().hashCode();
        break;
      case 9:
        hash = (37 * hash) + SPLIT_INTO_DATASETS_FIELD_NUMBER;
        hash = (53 * hash) + getSplitIntoDatasets().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.clarifai.grpc.api.Operation parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.clarifai.grpc.api.Operation 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.Operation parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.clarifai.grpc.api.Operation 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.Operation parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.clarifai.grpc.api.Operation parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.clarifai.grpc.api.Operation parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.clarifai.grpc.api.Operation 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.Operation parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.clarifai.grpc.api.Operation 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.Operation parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.clarifai.grpc.api.Operation 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.Operation 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.Operation}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:clarifai.api.Operation)
      com.clarifai.grpc.api.OperationOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Operation_descriptor;
    }

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

    // Construct using com.clarifai.grpc.api.Operation.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();
      operationCase_ = 0;
      operation_ = null;
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Operation_descriptor;
    }

    @java.lang.Override
    public com.clarifai.grpc.api.Operation getDefaultInstanceForType() {
      return com.clarifai.grpc.api.Operation.getDefaultInstance();
    }

    @java.lang.Override
    public com.clarifai.grpc.api.Operation build() {
      com.clarifai.grpc.api.Operation result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.clarifai.grpc.api.Operation buildPartial() {
      com.clarifai.grpc.api.Operation result = new com.clarifai.grpc.api.Operation(this);
      if (operationCase_ == 1) {
        if (addConceptsBuilder_ == null) {
          result.operation_ = operation_;
        } else {
          result.operation_ = addConceptsBuilder_.build();
        }
      }
      if (operationCase_ == 2) {
        if (deleteConceptsBuilder_ == null) {
          result.operation_ = operation_;
        } else {
          result.operation_ = deleteConceptsBuilder_.build();
        }
      }
      if (operationCase_ == 3) {
        if (addMetadataBuilder_ == null) {
          result.operation_ = operation_;
        } else {
          result.operation_ = addMetadataBuilder_.build();
        }
      }
      if (operationCase_ == 4) {
        if (deleteMetadataBuilder_ == null) {
          result.operation_ = operation_;
        } else {
          result.operation_ = deleteMetadataBuilder_.build();
        }
      }
      if (operationCase_ == 5) {
        if (overwriteGeoBuilder_ == null) {
          result.operation_ = operation_;
        } else {
          result.operation_ = overwriteGeoBuilder_.build();
        }
      }
      if (operationCase_ == 6) {
        if (deleteGeoBuilder_ == null) {
          result.operation_ = operation_;
        } else {
          result.operation_ = deleteGeoBuilder_.build();
        }
      }
      if (operationCase_ == 7) {
        if (deleteFromDatasetBuilder_ == null) {
          result.operation_ = operation_;
        } else {
          result.operation_ = deleteFromDatasetBuilder_.build();
        }
      }
      if (operationCase_ == 8) {
        if (addToDatasetBuilder_ == null) {
          result.operation_ = operation_;
        } else {
          result.operation_ = addToDatasetBuilder_.build();
        }
      }
      if (operationCase_ == 9) {
        if (splitIntoDatasetsBuilder_ == null) {
          result.operation_ = operation_;
        } else {
          result.operation_ = splitIntoDatasetsBuilder_.build();
        }
      }
      result.operationCase_ = operationCase_;
      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.Operation) {
        return mergeFrom((com.clarifai.grpc.api.Operation)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.clarifai.grpc.api.Operation other) {
      if (other == com.clarifai.grpc.api.Operation.getDefaultInstance()) return this;
      switch (other.getOperationCase()) {
        case ADD_CONCEPTS: {
          mergeAddConcepts(other.getAddConcepts());
          break;
        }
        case DELETE_CONCEPTS: {
          mergeDeleteConcepts(other.getDeleteConcepts());
          break;
        }
        case ADD_METADATA: {
          mergeAddMetadata(other.getAddMetadata());
          break;
        }
        case DELETE_METADATA: {
          mergeDeleteMetadata(other.getDeleteMetadata());
          break;
        }
        case OVERWRITE_GEO: {
          mergeOverwriteGeo(other.getOverwriteGeo());
          break;
        }
        case DELETE_GEO: {
          mergeDeleteGeo(other.getDeleteGeo());
          break;
        }
        case DELETE_FROM_DATASET: {
          mergeDeleteFromDataset(other.getDeleteFromDataset());
          break;
        }
        case ADD_TO_DATASET: {
          mergeAddToDataset(other.getAddToDataset());
          break;
        }
        case SPLIT_INTO_DATASETS: {
          mergeSplitIntoDatasets(other.getSplitIntoDatasets());
          break;
        }
        case OPERATION_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.Operation parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.clarifai.grpc.api.Operation) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int operationCase_ = 0;
    private java.lang.Object operation_;
    public OperationCase
        getOperationCase() {
      return OperationCase.forNumber(
          operationCase_);
    }

    public Builder clearOperation() {
      operationCase_ = 0;
      operation_ = null;
      onChanged();
      return this;
    }


    private com.google.protobuf.SingleFieldBuilderV3<
        com.clarifai.grpc.api.AddConcepts, com.clarifai.grpc.api.AddConcepts.Builder, com.clarifai.grpc.api.AddConceptsOrBuilder> addConceptsBuilder_;
    /**
     * .clarifai.api.AddConcepts add_concepts = 1;
     * @return Whether the addConcepts field is set.
     */
    @java.lang.Override
    public boolean hasAddConcepts() {
      return operationCase_ == 1;
    }
    /**
     * .clarifai.api.AddConcepts add_concepts = 1;
     * @return The addConcepts.
     */
    @java.lang.Override
    public com.clarifai.grpc.api.AddConcepts getAddConcepts() {
      if (addConceptsBuilder_ == null) {
        if (operationCase_ == 1) {
          return (com.clarifai.grpc.api.AddConcepts) operation_;
        }
        return com.clarifai.grpc.api.AddConcepts.getDefaultInstance();
      } else {
        if (operationCase_ == 1) {
          return addConceptsBuilder_.getMessage();
        }
        return com.clarifai.grpc.api.AddConcepts.getDefaultInstance();
      }
    }
    /**
     * .clarifai.api.AddConcepts add_concepts = 1;
     */
    public Builder setAddConcepts(com.clarifai.grpc.api.AddConcepts value) {
      if (addConceptsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        operation_ = value;
        onChanged();
      } else {
        addConceptsBuilder_.setMessage(value);
      }
      operationCase_ = 1;
      return this;
    }
    /**
     * .clarifai.api.AddConcepts add_concepts = 1;
     */
    public Builder setAddConcepts(
        com.clarifai.grpc.api.AddConcepts.Builder builderForValue) {
      if (addConceptsBuilder_ == null) {
        operation_ = builderForValue.build();
        onChanged();
      } else {
        addConceptsBuilder_.setMessage(builderForValue.build());
      }
      operationCase_ = 1;
      return this;
    }
    /**
     * .clarifai.api.AddConcepts add_concepts = 1;
     */
    public Builder mergeAddConcepts(com.clarifai.grpc.api.AddConcepts value) {
      if (addConceptsBuilder_ == null) {
        if (operationCase_ == 1 &&
            operation_ != com.clarifai.grpc.api.AddConcepts.getDefaultInstance()) {
          operation_ = com.clarifai.grpc.api.AddConcepts.newBuilder((com.clarifai.grpc.api.AddConcepts) operation_)
              .mergeFrom(value).buildPartial();
        } else {
          operation_ = value;
        }
        onChanged();
      } else {
        if (operationCase_ == 1) {
          addConceptsBuilder_.mergeFrom(value);
        } else {
          addConceptsBuilder_.setMessage(value);
        }
      }
      operationCase_ = 1;
      return this;
    }
    /**
     * .clarifai.api.AddConcepts add_concepts = 1;
     */
    public Builder clearAddConcepts() {
      if (addConceptsBuilder_ == null) {
        if (operationCase_ == 1) {
          operationCase_ = 0;
          operation_ = null;
          onChanged();
        }
      } else {
        if (operationCase_ == 1) {
          operationCase_ = 0;
          operation_ = null;
        }
        addConceptsBuilder_.clear();
      }
      return this;
    }
    /**
     * .clarifai.api.AddConcepts add_concepts = 1;
     */
    public com.clarifai.grpc.api.AddConcepts.Builder getAddConceptsBuilder() {
      return getAddConceptsFieldBuilder().getBuilder();
    }
    /**
     * .clarifai.api.AddConcepts add_concepts = 1;
     */
    @java.lang.Override
    public com.clarifai.grpc.api.AddConceptsOrBuilder getAddConceptsOrBuilder() {
      if ((operationCase_ == 1) && (addConceptsBuilder_ != null)) {
        return addConceptsBuilder_.getMessageOrBuilder();
      } else {
        if (operationCase_ == 1) {
          return (com.clarifai.grpc.api.AddConcepts) operation_;
        }
        return com.clarifai.grpc.api.AddConcepts.getDefaultInstance();
      }
    }
    /**
     * .clarifai.api.AddConcepts add_concepts = 1;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.clarifai.grpc.api.AddConcepts, com.clarifai.grpc.api.AddConcepts.Builder, com.clarifai.grpc.api.AddConceptsOrBuilder> 
        getAddConceptsFieldBuilder() {
      if (addConceptsBuilder_ == null) {
        if (!(operationCase_ == 1)) {
          operation_ = com.clarifai.grpc.api.AddConcepts.getDefaultInstance();
        }
        addConceptsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.clarifai.grpc.api.AddConcepts, com.clarifai.grpc.api.AddConcepts.Builder, com.clarifai.grpc.api.AddConceptsOrBuilder>(
                (com.clarifai.grpc.api.AddConcepts) operation_,
                getParentForChildren(),
                isClean());
        operation_ = null;
      }
      operationCase_ = 1;
      onChanged();;
      return addConceptsBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.clarifai.grpc.api.DeleteConcepts, com.clarifai.grpc.api.DeleteConcepts.Builder, com.clarifai.grpc.api.DeleteConceptsOrBuilder> deleteConceptsBuilder_;
    /**
     * .clarifai.api.DeleteConcepts delete_concepts = 2;
     * @return Whether the deleteConcepts field is set.
     */
    @java.lang.Override
    public boolean hasDeleteConcepts() {
      return operationCase_ == 2;
    }
    /**
     * .clarifai.api.DeleteConcepts delete_concepts = 2;
     * @return The deleteConcepts.
     */
    @java.lang.Override
    public com.clarifai.grpc.api.DeleteConcepts getDeleteConcepts() {
      if (deleteConceptsBuilder_ == null) {
        if (operationCase_ == 2) {
          return (com.clarifai.grpc.api.DeleteConcepts) operation_;
        }
        return com.clarifai.grpc.api.DeleteConcepts.getDefaultInstance();
      } else {
        if (operationCase_ == 2) {
          return deleteConceptsBuilder_.getMessage();
        }
        return com.clarifai.grpc.api.DeleteConcepts.getDefaultInstance();
      }
    }
    /**
     * .clarifai.api.DeleteConcepts delete_concepts = 2;
     */
    public Builder setDeleteConcepts(com.clarifai.grpc.api.DeleteConcepts value) {
      if (deleteConceptsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        operation_ = value;
        onChanged();
      } else {
        deleteConceptsBuilder_.setMessage(value);
      }
      operationCase_ = 2;
      return this;
    }
    /**
     * .clarifai.api.DeleteConcepts delete_concepts = 2;
     */
    public Builder setDeleteConcepts(
        com.clarifai.grpc.api.DeleteConcepts.Builder builderForValue) {
      if (deleteConceptsBuilder_ == null) {
        operation_ = builderForValue.build();
        onChanged();
      } else {
        deleteConceptsBuilder_.setMessage(builderForValue.build());
      }
      operationCase_ = 2;
      return this;
    }
    /**
     * .clarifai.api.DeleteConcepts delete_concepts = 2;
     */
    public Builder mergeDeleteConcepts(com.clarifai.grpc.api.DeleteConcepts value) {
      if (deleteConceptsBuilder_ == null) {
        if (operationCase_ == 2 &&
            operation_ != com.clarifai.grpc.api.DeleteConcepts.getDefaultInstance()) {
          operation_ = com.clarifai.grpc.api.DeleteConcepts.newBuilder((com.clarifai.grpc.api.DeleteConcepts) operation_)
              .mergeFrom(value).buildPartial();
        } else {
          operation_ = value;
        }
        onChanged();
      } else {
        if (operationCase_ == 2) {
          deleteConceptsBuilder_.mergeFrom(value);
        } else {
          deleteConceptsBuilder_.setMessage(value);
        }
      }
      operationCase_ = 2;
      return this;
    }
    /**
     * .clarifai.api.DeleteConcepts delete_concepts = 2;
     */
    public Builder clearDeleteConcepts() {
      if (deleteConceptsBuilder_ == null) {
        if (operationCase_ == 2) {
          operationCase_ = 0;
          operation_ = null;
          onChanged();
        }
      } else {
        if (operationCase_ == 2) {
          operationCase_ = 0;
          operation_ = null;
        }
        deleteConceptsBuilder_.clear();
      }
      return this;
    }
    /**
     * .clarifai.api.DeleteConcepts delete_concepts = 2;
     */
    public com.clarifai.grpc.api.DeleteConcepts.Builder getDeleteConceptsBuilder() {
      return getDeleteConceptsFieldBuilder().getBuilder();
    }
    /**
     * .clarifai.api.DeleteConcepts delete_concepts = 2;
     */
    @java.lang.Override
    public com.clarifai.grpc.api.DeleteConceptsOrBuilder getDeleteConceptsOrBuilder() {
      if ((operationCase_ == 2) && (deleteConceptsBuilder_ != null)) {
        return deleteConceptsBuilder_.getMessageOrBuilder();
      } else {
        if (operationCase_ == 2) {
          return (com.clarifai.grpc.api.DeleteConcepts) operation_;
        }
        return com.clarifai.grpc.api.DeleteConcepts.getDefaultInstance();
      }
    }
    /**
     * .clarifai.api.DeleteConcepts delete_concepts = 2;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.clarifai.grpc.api.DeleteConcepts, com.clarifai.grpc.api.DeleteConcepts.Builder, com.clarifai.grpc.api.DeleteConceptsOrBuilder> 
        getDeleteConceptsFieldBuilder() {
      if (deleteConceptsBuilder_ == null) {
        if (!(operationCase_ == 2)) {
          operation_ = com.clarifai.grpc.api.DeleteConcepts.getDefaultInstance();
        }
        deleteConceptsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.clarifai.grpc.api.DeleteConcepts, com.clarifai.grpc.api.DeleteConcepts.Builder, com.clarifai.grpc.api.DeleteConceptsOrBuilder>(
                (com.clarifai.grpc.api.DeleteConcepts) operation_,
                getParentForChildren(),
                isClean());
        operation_ = null;
      }
      operationCase_ = 2;
      onChanged();;
      return deleteConceptsBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.clarifai.grpc.api.AddMetadata, com.clarifai.grpc.api.AddMetadata.Builder, com.clarifai.grpc.api.AddMetadataOrBuilder> addMetadataBuilder_;
    /**
     * .clarifai.api.AddMetadata add_metadata = 3;
     * @return Whether the addMetadata field is set.
     */
    @java.lang.Override
    public boolean hasAddMetadata() {
      return operationCase_ == 3;
    }
    /**
     * .clarifai.api.AddMetadata add_metadata = 3;
     * @return The addMetadata.
     */
    @java.lang.Override
    public com.clarifai.grpc.api.AddMetadata getAddMetadata() {
      if (addMetadataBuilder_ == null) {
        if (operationCase_ == 3) {
          return (com.clarifai.grpc.api.AddMetadata) operation_;
        }
        return com.clarifai.grpc.api.AddMetadata.getDefaultInstance();
      } else {
        if (operationCase_ == 3) {
          return addMetadataBuilder_.getMessage();
        }
        return com.clarifai.grpc.api.AddMetadata.getDefaultInstance();
      }
    }
    /**
     * .clarifai.api.AddMetadata add_metadata = 3;
     */
    public Builder setAddMetadata(com.clarifai.grpc.api.AddMetadata value) {
      if (addMetadataBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        operation_ = value;
        onChanged();
      } else {
        addMetadataBuilder_.setMessage(value);
      }
      operationCase_ = 3;
      return this;
    }
    /**
     * .clarifai.api.AddMetadata add_metadata = 3;
     */
    public Builder setAddMetadata(
        com.clarifai.grpc.api.AddMetadata.Builder builderForValue) {
      if (addMetadataBuilder_ == null) {
        operation_ = builderForValue.build();
        onChanged();
      } else {
        addMetadataBuilder_.setMessage(builderForValue.build());
      }
      operationCase_ = 3;
      return this;
    }
    /**
     * .clarifai.api.AddMetadata add_metadata = 3;
     */
    public Builder mergeAddMetadata(com.clarifai.grpc.api.AddMetadata value) {
      if (addMetadataBuilder_ == null) {
        if (operationCase_ == 3 &&
            operation_ != com.clarifai.grpc.api.AddMetadata.getDefaultInstance()) {
          operation_ = com.clarifai.grpc.api.AddMetadata.newBuilder((com.clarifai.grpc.api.AddMetadata) operation_)
              .mergeFrom(value).buildPartial();
        } else {
          operation_ = value;
        }
        onChanged();
      } else {
        if (operationCase_ == 3) {
          addMetadataBuilder_.mergeFrom(value);
        } else {
          addMetadataBuilder_.setMessage(value);
        }
      }
      operationCase_ = 3;
      return this;
    }
    /**
     * .clarifai.api.AddMetadata add_metadata = 3;
     */
    public Builder clearAddMetadata() {
      if (addMetadataBuilder_ == null) {
        if (operationCase_ == 3) {
          operationCase_ = 0;
          operation_ = null;
          onChanged();
        }
      } else {
        if (operationCase_ == 3) {
          operationCase_ = 0;
          operation_ = null;
        }
        addMetadataBuilder_.clear();
      }
      return this;
    }
    /**
     * .clarifai.api.AddMetadata add_metadata = 3;
     */
    public com.clarifai.grpc.api.AddMetadata.Builder getAddMetadataBuilder() {
      return getAddMetadataFieldBuilder().getBuilder();
    }
    /**
     * .clarifai.api.AddMetadata add_metadata = 3;
     */
    @java.lang.Override
    public com.clarifai.grpc.api.AddMetadataOrBuilder getAddMetadataOrBuilder() {
      if ((operationCase_ == 3) && (addMetadataBuilder_ != null)) {
        return addMetadataBuilder_.getMessageOrBuilder();
      } else {
        if (operationCase_ == 3) {
          return (com.clarifai.grpc.api.AddMetadata) operation_;
        }
        return com.clarifai.grpc.api.AddMetadata.getDefaultInstance();
      }
    }
    /**
     * .clarifai.api.AddMetadata add_metadata = 3;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.clarifai.grpc.api.AddMetadata, com.clarifai.grpc.api.AddMetadata.Builder, com.clarifai.grpc.api.AddMetadataOrBuilder> 
        getAddMetadataFieldBuilder() {
      if (addMetadataBuilder_ == null) {
        if (!(operationCase_ == 3)) {
          operation_ = com.clarifai.grpc.api.AddMetadata.getDefaultInstance();
        }
        addMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.clarifai.grpc.api.AddMetadata, com.clarifai.grpc.api.AddMetadata.Builder, com.clarifai.grpc.api.AddMetadataOrBuilder>(
                (com.clarifai.grpc.api.AddMetadata) operation_,
                getParentForChildren(),
                isClean());
        operation_ = null;
      }
      operationCase_ = 3;
      onChanged();;
      return addMetadataBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.clarifai.grpc.api.DeleteMetadata, com.clarifai.grpc.api.DeleteMetadata.Builder, com.clarifai.grpc.api.DeleteMetadataOrBuilder> deleteMetadataBuilder_;
    /**
     * .clarifai.api.DeleteMetadata delete_metadata = 4;
     * @return Whether the deleteMetadata field is set.
     */
    @java.lang.Override
    public boolean hasDeleteMetadata() {
      return operationCase_ == 4;
    }
    /**
     * .clarifai.api.DeleteMetadata delete_metadata = 4;
     * @return The deleteMetadata.
     */
    @java.lang.Override
    public com.clarifai.grpc.api.DeleteMetadata getDeleteMetadata() {
      if (deleteMetadataBuilder_ == null) {
        if (operationCase_ == 4) {
          return (com.clarifai.grpc.api.DeleteMetadata) operation_;
        }
        return com.clarifai.grpc.api.DeleteMetadata.getDefaultInstance();
      } else {
        if (operationCase_ == 4) {
          return deleteMetadataBuilder_.getMessage();
        }
        return com.clarifai.grpc.api.DeleteMetadata.getDefaultInstance();
      }
    }
    /**
     * .clarifai.api.DeleteMetadata delete_metadata = 4;
     */
    public Builder setDeleteMetadata(com.clarifai.grpc.api.DeleteMetadata value) {
      if (deleteMetadataBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        operation_ = value;
        onChanged();
      } else {
        deleteMetadataBuilder_.setMessage(value);
      }
      operationCase_ = 4;
      return this;
    }
    /**
     * .clarifai.api.DeleteMetadata delete_metadata = 4;
     */
    public Builder setDeleteMetadata(
        com.clarifai.grpc.api.DeleteMetadata.Builder builderForValue) {
      if (deleteMetadataBuilder_ == null) {
        operation_ = builderForValue.build();
        onChanged();
      } else {
        deleteMetadataBuilder_.setMessage(builderForValue.build());
      }
      operationCase_ = 4;
      return this;
    }
    /**
     * .clarifai.api.DeleteMetadata delete_metadata = 4;
     */
    public Builder mergeDeleteMetadata(com.clarifai.grpc.api.DeleteMetadata value) {
      if (deleteMetadataBuilder_ == null) {
        if (operationCase_ == 4 &&
            operation_ != com.clarifai.grpc.api.DeleteMetadata.getDefaultInstance()) {
          operation_ = com.clarifai.grpc.api.DeleteMetadata.newBuilder((com.clarifai.grpc.api.DeleteMetadata) operation_)
              .mergeFrom(value).buildPartial();
        } else {
          operation_ = value;
        }
        onChanged();
      } else {
        if (operationCase_ == 4) {
          deleteMetadataBuilder_.mergeFrom(value);
        } else {
          deleteMetadataBuilder_.setMessage(value);
        }
      }
      operationCase_ = 4;
      return this;
    }
    /**
     * .clarifai.api.DeleteMetadata delete_metadata = 4;
     */
    public Builder clearDeleteMetadata() {
      if (deleteMetadataBuilder_ == null) {
        if (operationCase_ == 4) {
          operationCase_ = 0;
          operation_ = null;
          onChanged();
        }
      } else {
        if (operationCase_ == 4) {
          operationCase_ = 0;
          operation_ = null;
        }
        deleteMetadataBuilder_.clear();
      }
      return this;
    }
    /**
     * .clarifai.api.DeleteMetadata delete_metadata = 4;
     */
    public com.clarifai.grpc.api.DeleteMetadata.Builder getDeleteMetadataBuilder() {
      return getDeleteMetadataFieldBuilder().getBuilder();
    }
    /**
     * .clarifai.api.DeleteMetadata delete_metadata = 4;
     */
    @java.lang.Override
    public com.clarifai.grpc.api.DeleteMetadataOrBuilder getDeleteMetadataOrBuilder() {
      if ((operationCase_ == 4) && (deleteMetadataBuilder_ != null)) {
        return deleteMetadataBuilder_.getMessageOrBuilder();
      } else {
        if (operationCase_ == 4) {
          return (com.clarifai.grpc.api.DeleteMetadata) operation_;
        }
        return com.clarifai.grpc.api.DeleteMetadata.getDefaultInstance();
      }
    }
    /**
     * .clarifai.api.DeleteMetadata delete_metadata = 4;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.clarifai.grpc.api.DeleteMetadata, com.clarifai.grpc.api.DeleteMetadata.Builder, com.clarifai.grpc.api.DeleteMetadataOrBuilder> 
        getDeleteMetadataFieldBuilder() {
      if (deleteMetadataBuilder_ == null) {
        if (!(operationCase_ == 4)) {
          operation_ = com.clarifai.grpc.api.DeleteMetadata.getDefaultInstance();
        }
        deleteMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.clarifai.grpc.api.DeleteMetadata, com.clarifai.grpc.api.DeleteMetadata.Builder, com.clarifai.grpc.api.DeleteMetadataOrBuilder>(
                (com.clarifai.grpc.api.DeleteMetadata) operation_,
                getParentForChildren(),
                isClean());
        operation_ = null;
      }
      operationCase_ = 4;
      onChanged();;
      return deleteMetadataBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.clarifai.grpc.api.OverwriteGeo, com.clarifai.grpc.api.OverwriteGeo.Builder, com.clarifai.grpc.api.OverwriteGeoOrBuilder> overwriteGeoBuilder_;
    /**
     * .clarifai.api.OverwriteGeo overwrite_geo = 5;
     * @return Whether the overwriteGeo field is set.
     */
    @java.lang.Override
    public boolean hasOverwriteGeo() {
      return operationCase_ == 5;
    }
    /**
     * .clarifai.api.OverwriteGeo overwrite_geo = 5;
     * @return The overwriteGeo.
     */
    @java.lang.Override
    public com.clarifai.grpc.api.OverwriteGeo getOverwriteGeo() {
      if (overwriteGeoBuilder_ == null) {
        if (operationCase_ == 5) {
          return (com.clarifai.grpc.api.OverwriteGeo) operation_;
        }
        return com.clarifai.grpc.api.OverwriteGeo.getDefaultInstance();
      } else {
        if (operationCase_ == 5) {
          return overwriteGeoBuilder_.getMessage();
        }
        return com.clarifai.grpc.api.OverwriteGeo.getDefaultInstance();
      }
    }
    /**
     * .clarifai.api.OverwriteGeo overwrite_geo = 5;
     */
    public Builder setOverwriteGeo(com.clarifai.grpc.api.OverwriteGeo value) {
      if (overwriteGeoBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        operation_ = value;
        onChanged();
      } else {
        overwriteGeoBuilder_.setMessage(value);
      }
      operationCase_ = 5;
      return this;
    }
    /**
     * .clarifai.api.OverwriteGeo overwrite_geo = 5;
     */
    public Builder setOverwriteGeo(
        com.clarifai.grpc.api.OverwriteGeo.Builder builderForValue) {
      if (overwriteGeoBuilder_ == null) {
        operation_ = builderForValue.build();
        onChanged();
      } else {
        overwriteGeoBuilder_.setMessage(builderForValue.build());
      }
      operationCase_ = 5;
      return this;
    }
    /**
     * .clarifai.api.OverwriteGeo overwrite_geo = 5;
     */
    public Builder mergeOverwriteGeo(com.clarifai.grpc.api.OverwriteGeo value) {
      if (overwriteGeoBuilder_ == null) {
        if (operationCase_ == 5 &&
            operation_ != com.clarifai.grpc.api.OverwriteGeo.getDefaultInstance()) {
          operation_ = com.clarifai.grpc.api.OverwriteGeo.newBuilder((com.clarifai.grpc.api.OverwriteGeo) operation_)
              .mergeFrom(value).buildPartial();
        } else {
          operation_ = value;
        }
        onChanged();
      } else {
        if (operationCase_ == 5) {
          overwriteGeoBuilder_.mergeFrom(value);
        } else {
          overwriteGeoBuilder_.setMessage(value);
        }
      }
      operationCase_ = 5;
      return this;
    }
    /**
     * .clarifai.api.OverwriteGeo overwrite_geo = 5;
     */
    public Builder clearOverwriteGeo() {
      if (overwriteGeoBuilder_ == null) {
        if (operationCase_ == 5) {
          operationCase_ = 0;
          operation_ = null;
          onChanged();
        }
      } else {
        if (operationCase_ == 5) {
          operationCase_ = 0;
          operation_ = null;
        }
        overwriteGeoBuilder_.clear();
      }
      return this;
    }
    /**
     * .clarifai.api.OverwriteGeo overwrite_geo = 5;
     */
    public com.clarifai.grpc.api.OverwriteGeo.Builder getOverwriteGeoBuilder() {
      return getOverwriteGeoFieldBuilder().getBuilder();
    }
    /**
     * .clarifai.api.OverwriteGeo overwrite_geo = 5;
     */
    @java.lang.Override
    public com.clarifai.grpc.api.OverwriteGeoOrBuilder getOverwriteGeoOrBuilder() {
      if ((operationCase_ == 5) && (overwriteGeoBuilder_ != null)) {
        return overwriteGeoBuilder_.getMessageOrBuilder();
      } else {
        if (operationCase_ == 5) {
          return (com.clarifai.grpc.api.OverwriteGeo) operation_;
        }
        return com.clarifai.grpc.api.OverwriteGeo.getDefaultInstance();
      }
    }
    /**
     * .clarifai.api.OverwriteGeo overwrite_geo = 5;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.clarifai.grpc.api.OverwriteGeo, com.clarifai.grpc.api.OverwriteGeo.Builder, com.clarifai.grpc.api.OverwriteGeoOrBuilder> 
        getOverwriteGeoFieldBuilder() {
      if (overwriteGeoBuilder_ == null) {
        if (!(operationCase_ == 5)) {
          operation_ = com.clarifai.grpc.api.OverwriteGeo.getDefaultInstance();
        }
        overwriteGeoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.clarifai.grpc.api.OverwriteGeo, com.clarifai.grpc.api.OverwriteGeo.Builder, com.clarifai.grpc.api.OverwriteGeoOrBuilder>(
                (com.clarifai.grpc.api.OverwriteGeo) operation_,
                getParentForChildren(),
                isClean());
        operation_ = null;
      }
      operationCase_ = 5;
      onChanged();;
      return overwriteGeoBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.clarifai.grpc.api.DeleteGeo, com.clarifai.grpc.api.DeleteGeo.Builder, com.clarifai.grpc.api.DeleteGeoOrBuilder> deleteGeoBuilder_;
    /**
     * .clarifai.api.DeleteGeo delete_geo = 6;
     * @return Whether the deleteGeo field is set.
     */
    @java.lang.Override
    public boolean hasDeleteGeo() {
      return operationCase_ == 6;
    }
    /**
     * .clarifai.api.DeleteGeo delete_geo = 6;
     * @return The deleteGeo.
     */
    @java.lang.Override
    public com.clarifai.grpc.api.DeleteGeo getDeleteGeo() {
      if (deleteGeoBuilder_ == null) {
        if (operationCase_ == 6) {
          return (com.clarifai.grpc.api.DeleteGeo) operation_;
        }
        return com.clarifai.grpc.api.DeleteGeo.getDefaultInstance();
      } else {
        if (operationCase_ == 6) {
          return deleteGeoBuilder_.getMessage();
        }
        return com.clarifai.grpc.api.DeleteGeo.getDefaultInstance();
      }
    }
    /**
     * .clarifai.api.DeleteGeo delete_geo = 6;
     */
    public Builder setDeleteGeo(com.clarifai.grpc.api.DeleteGeo value) {
      if (deleteGeoBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        operation_ = value;
        onChanged();
      } else {
        deleteGeoBuilder_.setMessage(value);
      }
      operationCase_ = 6;
      return this;
    }
    /**
     * .clarifai.api.DeleteGeo delete_geo = 6;
     */
    public Builder setDeleteGeo(
        com.clarifai.grpc.api.DeleteGeo.Builder builderForValue) {
      if (deleteGeoBuilder_ == null) {
        operation_ = builderForValue.build();
        onChanged();
      } else {
        deleteGeoBuilder_.setMessage(builderForValue.build());
      }
      operationCase_ = 6;
      return this;
    }
    /**
     * .clarifai.api.DeleteGeo delete_geo = 6;
     */
    public Builder mergeDeleteGeo(com.clarifai.grpc.api.DeleteGeo value) {
      if (deleteGeoBuilder_ == null) {
        if (operationCase_ == 6 &&
            operation_ != com.clarifai.grpc.api.DeleteGeo.getDefaultInstance()) {
          operation_ = com.clarifai.grpc.api.DeleteGeo.newBuilder((com.clarifai.grpc.api.DeleteGeo) operation_)
              .mergeFrom(value).buildPartial();
        } else {
          operation_ = value;
        }
        onChanged();
      } else {
        if (operationCase_ == 6) {
          deleteGeoBuilder_.mergeFrom(value);
        } else {
          deleteGeoBuilder_.setMessage(value);
        }
      }
      operationCase_ = 6;
      return this;
    }
    /**
     * .clarifai.api.DeleteGeo delete_geo = 6;
     */
    public Builder clearDeleteGeo() {
      if (deleteGeoBuilder_ == null) {
        if (operationCase_ == 6) {
          operationCase_ = 0;
          operation_ = null;
          onChanged();
        }
      } else {
        if (operationCase_ == 6) {
          operationCase_ = 0;
          operation_ = null;
        }
        deleteGeoBuilder_.clear();
      }
      return this;
    }
    /**
     * .clarifai.api.DeleteGeo delete_geo = 6;
     */
    public com.clarifai.grpc.api.DeleteGeo.Builder getDeleteGeoBuilder() {
      return getDeleteGeoFieldBuilder().getBuilder();
    }
    /**
     * .clarifai.api.DeleteGeo delete_geo = 6;
     */
    @java.lang.Override
    public com.clarifai.grpc.api.DeleteGeoOrBuilder getDeleteGeoOrBuilder() {
      if ((operationCase_ == 6) && (deleteGeoBuilder_ != null)) {
        return deleteGeoBuilder_.getMessageOrBuilder();
      } else {
        if (operationCase_ == 6) {
          return (com.clarifai.grpc.api.DeleteGeo) operation_;
        }
        return com.clarifai.grpc.api.DeleteGeo.getDefaultInstance();
      }
    }
    /**
     * .clarifai.api.DeleteGeo delete_geo = 6;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.clarifai.grpc.api.DeleteGeo, com.clarifai.grpc.api.DeleteGeo.Builder, com.clarifai.grpc.api.DeleteGeoOrBuilder> 
        getDeleteGeoFieldBuilder() {
      if (deleteGeoBuilder_ == null) {
        if (!(operationCase_ == 6)) {
          operation_ = com.clarifai.grpc.api.DeleteGeo.getDefaultInstance();
        }
        deleteGeoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.clarifai.grpc.api.DeleteGeo, com.clarifai.grpc.api.DeleteGeo.Builder, com.clarifai.grpc.api.DeleteGeoOrBuilder>(
                (com.clarifai.grpc.api.DeleteGeo) operation_,
                getParentForChildren(),
                isClean());
        operation_ = null;
      }
      operationCase_ = 6;
      onChanged();;
      return deleteGeoBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.clarifai.grpc.api.DeleteFromDataset, com.clarifai.grpc.api.DeleteFromDataset.Builder, com.clarifai.grpc.api.DeleteFromDatasetOrBuilder> deleteFromDatasetBuilder_;
    /**
     * .clarifai.api.DeleteFromDataset delete_from_dataset = 7;
     * @return Whether the deleteFromDataset field is set.
     */
    @java.lang.Override
    public boolean hasDeleteFromDataset() {
      return operationCase_ == 7;
    }
    /**
     * .clarifai.api.DeleteFromDataset delete_from_dataset = 7;
     * @return The deleteFromDataset.
     */
    @java.lang.Override
    public com.clarifai.grpc.api.DeleteFromDataset getDeleteFromDataset() {
      if (deleteFromDatasetBuilder_ == null) {
        if (operationCase_ == 7) {
          return (com.clarifai.grpc.api.DeleteFromDataset) operation_;
        }
        return com.clarifai.grpc.api.DeleteFromDataset.getDefaultInstance();
      } else {
        if (operationCase_ == 7) {
          return deleteFromDatasetBuilder_.getMessage();
        }
        return com.clarifai.grpc.api.DeleteFromDataset.getDefaultInstance();
      }
    }
    /**
     * .clarifai.api.DeleteFromDataset delete_from_dataset = 7;
     */
    public Builder setDeleteFromDataset(com.clarifai.grpc.api.DeleteFromDataset value) {
      if (deleteFromDatasetBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        operation_ = value;
        onChanged();
      } else {
        deleteFromDatasetBuilder_.setMessage(value);
      }
      operationCase_ = 7;
      return this;
    }
    /**
     * .clarifai.api.DeleteFromDataset delete_from_dataset = 7;
     */
    public Builder setDeleteFromDataset(
        com.clarifai.grpc.api.DeleteFromDataset.Builder builderForValue) {
      if (deleteFromDatasetBuilder_ == null) {
        operation_ = builderForValue.build();
        onChanged();
      } else {
        deleteFromDatasetBuilder_.setMessage(builderForValue.build());
      }
      operationCase_ = 7;
      return this;
    }
    /**
     * .clarifai.api.DeleteFromDataset delete_from_dataset = 7;
     */
    public Builder mergeDeleteFromDataset(com.clarifai.grpc.api.DeleteFromDataset value) {
      if (deleteFromDatasetBuilder_ == null) {
        if (operationCase_ == 7 &&
            operation_ != com.clarifai.grpc.api.DeleteFromDataset.getDefaultInstance()) {
          operation_ = com.clarifai.grpc.api.DeleteFromDataset.newBuilder((com.clarifai.grpc.api.DeleteFromDataset) operation_)
              .mergeFrom(value).buildPartial();
        } else {
          operation_ = value;
        }
        onChanged();
      } else {
        if (operationCase_ == 7) {
          deleteFromDatasetBuilder_.mergeFrom(value);
        } else {
          deleteFromDatasetBuilder_.setMessage(value);
        }
      }
      operationCase_ = 7;
      return this;
    }
    /**
     * .clarifai.api.DeleteFromDataset delete_from_dataset = 7;
     */
    public Builder clearDeleteFromDataset() {
      if (deleteFromDatasetBuilder_ == null) {
        if (operationCase_ == 7) {
          operationCase_ = 0;
          operation_ = null;
          onChanged();
        }
      } else {
        if (operationCase_ == 7) {
          operationCase_ = 0;
          operation_ = null;
        }
        deleteFromDatasetBuilder_.clear();
      }
      return this;
    }
    /**
     * .clarifai.api.DeleteFromDataset delete_from_dataset = 7;
     */
    public com.clarifai.grpc.api.DeleteFromDataset.Builder getDeleteFromDatasetBuilder() {
      return getDeleteFromDatasetFieldBuilder().getBuilder();
    }
    /**
     * .clarifai.api.DeleteFromDataset delete_from_dataset = 7;
     */
    @java.lang.Override
    public com.clarifai.grpc.api.DeleteFromDatasetOrBuilder getDeleteFromDatasetOrBuilder() {
      if ((operationCase_ == 7) && (deleteFromDatasetBuilder_ != null)) {
        return deleteFromDatasetBuilder_.getMessageOrBuilder();
      } else {
        if (operationCase_ == 7) {
          return (com.clarifai.grpc.api.DeleteFromDataset) operation_;
        }
        return com.clarifai.grpc.api.DeleteFromDataset.getDefaultInstance();
      }
    }
    /**
     * .clarifai.api.DeleteFromDataset delete_from_dataset = 7;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.clarifai.grpc.api.DeleteFromDataset, com.clarifai.grpc.api.DeleteFromDataset.Builder, com.clarifai.grpc.api.DeleteFromDatasetOrBuilder> 
        getDeleteFromDatasetFieldBuilder() {
      if (deleteFromDatasetBuilder_ == null) {
        if (!(operationCase_ == 7)) {
          operation_ = com.clarifai.grpc.api.DeleteFromDataset.getDefaultInstance();
        }
        deleteFromDatasetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.clarifai.grpc.api.DeleteFromDataset, com.clarifai.grpc.api.DeleteFromDataset.Builder, com.clarifai.grpc.api.DeleteFromDatasetOrBuilder>(
                (com.clarifai.grpc.api.DeleteFromDataset) operation_,
                getParentForChildren(),
                isClean());
        operation_ = null;
      }
      operationCase_ = 7;
      onChanged();;
      return deleteFromDatasetBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.clarifai.grpc.api.AddToDataset, com.clarifai.grpc.api.AddToDataset.Builder, com.clarifai.grpc.api.AddToDatasetOrBuilder> addToDatasetBuilder_;
    /**
     * .clarifai.api.AddToDataset add_to_dataset = 8;
     * @return Whether the addToDataset field is set.
     */
    @java.lang.Override
    public boolean hasAddToDataset() {
      return operationCase_ == 8;
    }
    /**
     * .clarifai.api.AddToDataset add_to_dataset = 8;
     * @return The addToDataset.
     */
    @java.lang.Override
    public com.clarifai.grpc.api.AddToDataset getAddToDataset() {
      if (addToDatasetBuilder_ == null) {
        if (operationCase_ == 8) {
          return (com.clarifai.grpc.api.AddToDataset) operation_;
        }
        return com.clarifai.grpc.api.AddToDataset.getDefaultInstance();
      } else {
        if (operationCase_ == 8) {
          return addToDatasetBuilder_.getMessage();
        }
        return com.clarifai.grpc.api.AddToDataset.getDefaultInstance();
      }
    }
    /**
     * .clarifai.api.AddToDataset add_to_dataset = 8;
     */
    public Builder setAddToDataset(com.clarifai.grpc.api.AddToDataset value) {
      if (addToDatasetBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        operation_ = value;
        onChanged();
      } else {
        addToDatasetBuilder_.setMessage(value);
      }
      operationCase_ = 8;
      return this;
    }
    /**
     * .clarifai.api.AddToDataset add_to_dataset = 8;
     */
    public Builder setAddToDataset(
        com.clarifai.grpc.api.AddToDataset.Builder builderForValue) {
      if (addToDatasetBuilder_ == null) {
        operation_ = builderForValue.build();
        onChanged();
      } else {
        addToDatasetBuilder_.setMessage(builderForValue.build());
      }
      operationCase_ = 8;
      return this;
    }
    /**
     * .clarifai.api.AddToDataset add_to_dataset = 8;
     */
    public Builder mergeAddToDataset(com.clarifai.grpc.api.AddToDataset value) {
      if (addToDatasetBuilder_ == null) {
        if (operationCase_ == 8 &&
            operation_ != com.clarifai.grpc.api.AddToDataset.getDefaultInstance()) {
          operation_ = com.clarifai.grpc.api.AddToDataset.newBuilder((com.clarifai.grpc.api.AddToDataset) operation_)
              .mergeFrom(value).buildPartial();
        } else {
          operation_ = value;
        }
        onChanged();
      } else {
        if (operationCase_ == 8) {
          addToDatasetBuilder_.mergeFrom(value);
        } else {
          addToDatasetBuilder_.setMessage(value);
        }
      }
      operationCase_ = 8;
      return this;
    }
    /**
     * .clarifai.api.AddToDataset add_to_dataset = 8;
     */
    public Builder clearAddToDataset() {
      if (addToDatasetBuilder_ == null) {
        if (operationCase_ == 8) {
          operationCase_ = 0;
          operation_ = null;
          onChanged();
        }
      } else {
        if (operationCase_ == 8) {
          operationCase_ = 0;
          operation_ = null;
        }
        addToDatasetBuilder_.clear();
      }
      return this;
    }
    /**
     * .clarifai.api.AddToDataset add_to_dataset = 8;
     */
    public com.clarifai.grpc.api.AddToDataset.Builder getAddToDatasetBuilder() {
      return getAddToDatasetFieldBuilder().getBuilder();
    }
    /**
     * .clarifai.api.AddToDataset add_to_dataset = 8;
     */
    @java.lang.Override
    public com.clarifai.grpc.api.AddToDatasetOrBuilder getAddToDatasetOrBuilder() {
      if ((operationCase_ == 8) && (addToDatasetBuilder_ != null)) {
        return addToDatasetBuilder_.getMessageOrBuilder();
      } else {
        if (operationCase_ == 8) {
          return (com.clarifai.grpc.api.AddToDataset) operation_;
        }
        return com.clarifai.grpc.api.AddToDataset.getDefaultInstance();
      }
    }
    /**
     * .clarifai.api.AddToDataset add_to_dataset = 8;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.clarifai.grpc.api.AddToDataset, com.clarifai.grpc.api.AddToDataset.Builder, com.clarifai.grpc.api.AddToDatasetOrBuilder> 
        getAddToDatasetFieldBuilder() {
      if (addToDatasetBuilder_ == null) {
        if (!(operationCase_ == 8)) {
          operation_ = com.clarifai.grpc.api.AddToDataset.getDefaultInstance();
        }
        addToDatasetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.clarifai.grpc.api.AddToDataset, com.clarifai.grpc.api.AddToDataset.Builder, com.clarifai.grpc.api.AddToDatasetOrBuilder>(
                (com.clarifai.grpc.api.AddToDataset) operation_,
                getParentForChildren(),
                isClean());
        operation_ = null;
      }
      operationCase_ = 8;
      onChanged();;
      return addToDatasetBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.clarifai.grpc.api.SplitIntoDatasets, com.clarifai.grpc.api.SplitIntoDatasets.Builder, com.clarifai.grpc.api.SplitIntoDatasetsOrBuilder> splitIntoDatasetsBuilder_;
    /**
     * .clarifai.api.SplitIntoDatasets split_into_datasets = 9;
     * @return Whether the splitIntoDatasets field is set.
     */
    @java.lang.Override
    public boolean hasSplitIntoDatasets() {
      return operationCase_ == 9;
    }
    /**
     * .clarifai.api.SplitIntoDatasets split_into_datasets = 9;
     * @return The splitIntoDatasets.
     */
    @java.lang.Override
    public com.clarifai.grpc.api.SplitIntoDatasets getSplitIntoDatasets() {
      if (splitIntoDatasetsBuilder_ == null) {
        if (operationCase_ == 9) {
          return (com.clarifai.grpc.api.SplitIntoDatasets) operation_;
        }
        return com.clarifai.grpc.api.SplitIntoDatasets.getDefaultInstance();
      } else {
        if (operationCase_ == 9) {
          return splitIntoDatasetsBuilder_.getMessage();
        }
        return com.clarifai.grpc.api.SplitIntoDatasets.getDefaultInstance();
      }
    }
    /**
     * .clarifai.api.SplitIntoDatasets split_into_datasets = 9;
     */
    public Builder setSplitIntoDatasets(com.clarifai.grpc.api.SplitIntoDatasets value) {
      if (splitIntoDatasetsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        operation_ = value;
        onChanged();
      } else {
        splitIntoDatasetsBuilder_.setMessage(value);
      }
      operationCase_ = 9;
      return this;
    }
    /**
     * .clarifai.api.SplitIntoDatasets split_into_datasets = 9;
     */
    public Builder setSplitIntoDatasets(
        com.clarifai.grpc.api.SplitIntoDatasets.Builder builderForValue) {
      if (splitIntoDatasetsBuilder_ == null) {
        operation_ = builderForValue.build();
        onChanged();
      } else {
        splitIntoDatasetsBuilder_.setMessage(builderForValue.build());
      }
      operationCase_ = 9;
      return this;
    }
    /**
     * .clarifai.api.SplitIntoDatasets split_into_datasets = 9;
     */
    public Builder mergeSplitIntoDatasets(com.clarifai.grpc.api.SplitIntoDatasets value) {
      if (splitIntoDatasetsBuilder_ == null) {
        if (operationCase_ == 9 &&
            operation_ != com.clarifai.grpc.api.SplitIntoDatasets.getDefaultInstance()) {
          operation_ = com.clarifai.grpc.api.SplitIntoDatasets.newBuilder((com.clarifai.grpc.api.SplitIntoDatasets) operation_)
              .mergeFrom(value).buildPartial();
        } else {
          operation_ = value;
        }
        onChanged();
      } else {
        if (operationCase_ == 9) {
          splitIntoDatasetsBuilder_.mergeFrom(value);
        } else {
          splitIntoDatasetsBuilder_.setMessage(value);
        }
      }
      operationCase_ = 9;
      return this;
    }
    /**
     * .clarifai.api.SplitIntoDatasets split_into_datasets = 9;
     */
    public Builder clearSplitIntoDatasets() {
      if (splitIntoDatasetsBuilder_ == null) {
        if (operationCase_ == 9) {
          operationCase_ = 0;
          operation_ = null;
          onChanged();
        }
      } else {
        if (operationCase_ == 9) {
          operationCase_ = 0;
          operation_ = null;
        }
        splitIntoDatasetsBuilder_.clear();
      }
      return this;
    }
    /**
     * .clarifai.api.SplitIntoDatasets split_into_datasets = 9;
     */
    public com.clarifai.grpc.api.SplitIntoDatasets.Builder getSplitIntoDatasetsBuilder() {
      return getSplitIntoDatasetsFieldBuilder().getBuilder();
    }
    /**
     * .clarifai.api.SplitIntoDatasets split_into_datasets = 9;
     */
    @java.lang.Override
    public com.clarifai.grpc.api.SplitIntoDatasetsOrBuilder getSplitIntoDatasetsOrBuilder() {
      if ((operationCase_ == 9) && (splitIntoDatasetsBuilder_ != null)) {
        return splitIntoDatasetsBuilder_.getMessageOrBuilder();
      } else {
        if (operationCase_ == 9) {
          return (com.clarifai.grpc.api.SplitIntoDatasets) operation_;
        }
        return com.clarifai.grpc.api.SplitIntoDatasets.getDefaultInstance();
      }
    }
    /**
     * .clarifai.api.SplitIntoDatasets split_into_datasets = 9;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.clarifai.grpc.api.SplitIntoDatasets, com.clarifai.grpc.api.SplitIntoDatasets.Builder, com.clarifai.grpc.api.SplitIntoDatasetsOrBuilder> 
        getSplitIntoDatasetsFieldBuilder() {
      if (splitIntoDatasetsBuilder_ == null) {
        if (!(operationCase_ == 9)) {
          operation_ = com.clarifai.grpc.api.SplitIntoDatasets.getDefaultInstance();
        }
        splitIntoDatasetsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.clarifai.grpc.api.SplitIntoDatasets, com.clarifai.grpc.api.SplitIntoDatasets.Builder, com.clarifai.grpc.api.SplitIntoDatasetsOrBuilder>(
                (com.clarifai.grpc.api.SplitIntoDatasets) operation_,
                getParentForChildren(),
                isClean());
        operation_ = null;
      }
      operationCase_ = 9;
      onChanged();;
      return splitIntoDatasetsBuilder_;
    }
    @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.Operation)
  }

  // @@protoc_insertion_point(class_scope:clarifai.api.Operation)
  private static final com.clarifai.grpc.api.Operation DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.clarifai.grpc.api.Operation();
  }

  public static com.clarifai.grpc.api.Operation getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public Operation parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new Operation(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.Operation getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy