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

com.clarifai.grpc.api.PostModelVersionsRequest Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: proto/clarifai/api/service.proto

package com.clarifai.grpc.api;

/**
 * 
 * Create (train) a new model version.
 * 
* * Protobuf type {@code clarifai.api.PostModelVersionsRequest} */ public final class PostModelVersionsRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:clarifai.api.PostModelVersionsRequest) PostModelVersionsRequestOrBuilder { private static final long serialVersionUID = 0L; // Use PostModelVersionsRequest.newBuilder() to construct. private PostModelVersionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PostModelVersionsRequest() { modelId_ = ""; modelVersions_ = java.util.Collections.emptyList(); description_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PostModelVersionsRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PostModelVersionsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.clarifai.grpc.api.UserAppIDSet.Builder subBuilder = null; if (userAppId_ != null) { subBuilder = userAppId_.toBuilder(); } userAppId_ = input.readMessage(com.clarifai.grpc.api.UserAppIDSet.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(userAppId_); userAppId_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); modelId_ = s; break; } case 26: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { modelVersions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } modelVersions_.add( input.readMessage(com.clarifai.grpc.api.ModelVersion.parser(), extensionRegistry)); break; } case 34: { com.clarifai.grpc.api.Search.Builder subBuilder = null; if (search_ != null) { subBuilder = search_.toBuilder(); } search_ = input.readMessage(com.clarifai.grpc.api.Search.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(search_); search_ = subBuilder.buildPartial(); } break; } case 42: { com.clarifai.grpc.api.Search.Builder subBuilder = null; if (trainSearch_ != null) { subBuilder = trainSearch_.toBuilder(); } trainSearch_ = input.readMessage(com.clarifai.grpc.api.Search.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(trainSearch_); trainSearch_ = subBuilder.buildPartial(); } break; } case 50: { com.clarifai.grpc.api.Search.Builder subBuilder = null; if (testSearch_ != null) { subBuilder = testSearch_.toBuilder(); } testSearch_ = input.readMessage(com.clarifai.grpc.api.Search.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(testSearch_); testSearch_ = subBuilder.buildPartial(); } break; } case 56: { evaluateAfterTraining_ = input.readBool(); break; } case 66: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 74: { com.clarifai.grpc.api.DatasetVersion.Builder subBuilder = null; if (datasetVersion_ != null) { subBuilder = datasetVersion_.toBuilder(); } datasetVersion_ = input.readMessage(com.clarifai.grpc.api.DatasetVersion.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(datasetVersion_); datasetVersion_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { modelVersions_ = java.util.Collections.unmodifiableList(modelVersions_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clarifai.grpc.api.Service.internal_static_clarifai_api_PostModelVersionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clarifai.grpc.api.Service.internal_static_clarifai_api_PostModelVersionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clarifai.grpc.api.PostModelVersionsRequest.class, com.clarifai.grpc.api.PostModelVersionsRequest.Builder.class); } public static final int USER_APP_ID_FIELD_NUMBER = 1; private com.clarifai.grpc.api.UserAppIDSet userAppId_; /** * .clarifai.api.UserAppIDSet user_app_id = 1; * @return Whether the userAppId field is set. */ public boolean hasUserAppId() { return userAppId_ != null; } /** * .clarifai.api.UserAppIDSet user_app_id = 1; * @return The userAppId. */ public com.clarifai.grpc.api.UserAppIDSet getUserAppId() { return userAppId_ == null ? com.clarifai.grpc.api.UserAppIDSet.getDefaultInstance() : userAppId_; } /** * .clarifai.api.UserAppIDSet user_app_id = 1; */ public com.clarifai.grpc.api.UserAppIDSetOrBuilder getUserAppIdOrBuilder() { return getUserAppId(); } public static final int MODEL_ID_FIELD_NUMBER = 2; private volatile java.lang.Object modelId_; /** * string model_id = 2; * @return The modelId. */ public java.lang.String getModelId() { java.lang.Object ref = modelId_; 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(); modelId_ = s; return s; } } /** * string model_id = 2; * @return The bytes for modelId. */ public com.google.protobuf.ByteString getModelIdBytes() { java.lang.Object ref = modelId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); modelId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MODEL_VERSIONS_FIELD_NUMBER = 3; private java.util.List modelVersions_; /** *
   * This lets you post an existing model version rather than training a new one.
   * For internal Clarifai use only to start.
   * 
* * repeated .clarifai.api.ModelVersion model_versions = 3; */ public java.util.List getModelVersionsList() { return modelVersions_; } /** *
   * This lets you post an existing model version rather than training a new one.
   * For internal Clarifai use only to start.
   * 
* * repeated .clarifai.api.ModelVersion model_versions = 3; */ public java.util.List getModelVersionsOrBuilderList() { return modelVersions_; } /** *
   * This lets you post an existing model version rather than training a new one.
   * For internal Clarifai use only to start.
   * 
* * repeated .clarifai.api.ModelVersion model_versions = 3; */ public int getModelVersionsCount() { return modelVersions_.size(); } /** *
   * This lets you post an existing model version rather than training a new one.
   * For internal Clarifai use only to start.
   * 
* * repeated .clarifai.api.ModelVersion model_versions = 3; */ public com.clarifai.grpc.api.ModelVersion getModelVersions(int index) { return modelVersions_.get(index); } /** *
   * This lets you post an existing model version rather than training a new one.
   * For internal Clarifai use only to start.
   * 
* * repeated .clarifai.api.ModelVersion model_versions = 3; */ public com.clarifai.grpc.api.ModelVersionOrBuilder getModelVersionsOrBuilder( int index) { return modelVersions_.get(index); } public static final int SEARCH_FIELD_NUMBER = 4; private com.clarifai.grpc.api.Search search_; /** *
   * Use this to filter inputs that are used in training
   * Alternatively, use train_search & test_search fields OR dataset_version field.
   * 
* * .clarifai.api.Search search = 4 [deprecated = true]; * @return Whether the search field is set. */ @java.lang.Deprecated public boolean hasSearch() { return search_ != null; } /** *
   * Use this to filter inputs that are used in training
   * Alternatively, use train_search & test_search fields OR dataset_version field.
   * 
* * .clarifai.api.Search search = 4 [deprecated = true]; * @return The search. */ @java.lang.Deprecated public com.clarifai.grpc.api.Search getSearch() { return search_ == null ? com.clarifai.grpc.api.Search.getDefaultInstance() : search_; } /** *
   * Use this to filter inputs that are used in training
   * Alternatively, use train_search & test_search fields OR dataset_version field.
   * 
* * .clarifai.api.Search search = 4 [deprecated = true]; */ @java.lang.Deprecated public com.clarifai.grpc.api.SearchOrBuilder getSearchOrBuilder() { return getSearch(); } public static final int TRAIN_SEARCH_FIELD_NUMBER = 5; private com.clarifai.grpc.api.Search trainSearch_; /** *
   *train_search is used to specify what data to train on.
   * Alternatively, use dataset_version field.
   * 
* * .clarifai.api.Search train_search = 5; * @return Whether the trainSearch field is set. */ public boolean hasTrainSearch() { return trainSearch_ != null; } /** *
   *train_search is used to specify what data to train on.
   * Alternatively, use dataset_version field.
   * 
* * .clarifai.api.Search train_search = 5; * @return The trainSearch. */ public com.clarifai.grpc.api.Search getTrainSearch() { return trainSearch_ == null ? com.clarifai.grpc.api.Search.getDefaultInstance() : trainSearch_; } /** *
   *train_search is used to specify what data to train on.
   * Alternatively, use dataset_version field.
   * 
* * .clarifai.api.Search train_search = 5; */ public com.clarifai.grpc.api.SearchOrBuilder getTrainSearchOrBuilder() { return getTrainSearch(); } public static final int TEST_SEARCH_FIELD_NUMBER = 6; private com.clarifai.grpc.api.Search testSearch_; /** *
   *test_search is used to specify what data to test on.
   * Alternatively, use dataset_version field.
   * 
* * .clarifai.api.Search test_search = 6; * @return Whether the testSearch field is set. */ public boolean hasTestSearch() { return testSearch_ != null; } /** *
   *test_search is used to specify what data to test on.
   * Alternatively, use dataset_version field.
   * 
* * .clarifai.api.Search test_search = 6; * @return The testSearch. */ public com.clarifai.grpc.api.Search getTestSearch() { return testSearch_ == null ? com.clarifai.grpc.api.Search.getDefaultInstance() : testSearch_; } /** *
   *test_search is used to specify what data to test on.
   * Alternatively, use dataset_version field.
   * 
* * .clarifai.api.Search test_search = 6; */ public com.clarifai.grpc.api.SearchOrBuilder getTestSearchOrBuilder() { return getTestSearch(); } public static final int EVALUATE_AFTER_TRAINING_FIELD_NUMBER = 7; private boolean evaluateAfterTraining_; /** *
   * whether to evaluate the transfer trained model after training
   * 
* * bool evaluate_after_training = 7; * @return The evaluateAfterTraining. */ public boolean getEvaluateAfterTraining() { return evaluateAfterTraining_; } public static final int DESCRIPTION_FIELD_NUMBER = 8; private volatile java.lang.Object description_; /** *
   * Description about this training run
   * 
* * string description = 8; * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; 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(); description_ = s; return s; } } /** *
   * Description about this training run
   * 
* * string description = 8; * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DATASET_VERSION_FIELD_NUMBER = 9; private com.clarifai.grpc.api.DatasetVersion datasetVersion_; /** *
   * Use the data from this dataset version for training.
   * Set dataset_version.dataset_id to identify the dataset that you would like to use.
   * When dataset_version.id field is set,
   * the system will reuse the data from provided dataset version.
   * When dataset_version.id is not set,
   * a new dataset version will be created in the dataset using provided dataset_version fields.
   * 
* * .clarifai.api.DatasetVersion dataset_version = 9; * @return Whether the datasetVersion field is set. */ public boolean hasDatasetVersion() { return datasetVersion_ != null; } /** *
   * Use the data from this dataset version for training.
   * Set dataset_version.dataset_id to identify the dataset that you would like to use.
   * When dataset_version.id field is set,
   * the system will reuse the data from provided dataset version.
   * When dataset_version.id is not set,
   * a new dataset version will be created in the dataset using provided dataset_version fields.
   * 
* * .clarifai.api.DatasetVersion dataset_version = 9; * @return The datasetVersion. */ public com.clarifai.grpc.api.DatasetVersion getDatasetVersion() { return datasetVersion_ == null ? com.clarifai.grpc.api.DatasetVersion.getDefaultInstance() : datasetVersion_; } /** *
   * Use the data from this dataset version for training.
   * Set dataset_version.dataset_id to identify the dataset that you would like to use.
   * When dataset_version.id field is set,
   * the system will reuse the data from provided dataset version.
   * When dataset_version.id is not set,
   * a new dataset version will be created in the dataset using provided dataset_version fields.
   * 
* * .clarifai.api.DatasetVersion dataset_version = 9; */ public com.clarifai.grpc.api.DatasetVersionOrBuilder getDatasetVersionOrBuilder() { return getDatasetVersion(); } 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 (userAppId_ != null) { output.writeMessage(1, getUserAppId()); } if (!getModelIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, modelId_); } for (int i = 0; i < modelVersions_.size(); i++) { output.writeMessage(3, modelVersions_.get(i)); } if (search_ != null) { output.writeMessage(4, getSearch()); } if (trainSearch_ != null) { output.writeMessage(5, getTrainSearch()); } if (testSearch_ != null) { output.writeMessage(6, getTestSearch()); } if (evaluateAfterTraining_ != false) { output.writeBool(7, evaluateAfterTraining_); } if (!getDescriptionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, description_); } if (datasetVersion_ != null) { output.writeMessage(9, getDatasetVersion()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (userAppId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getUserAppId()); } if (!getModelIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, modelId_); } for (int i = 0; i < modelVersions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, modelVersions_.get(i)); } if (search_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getSearch()); } if (trainSearch_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getTrainSearch()); } if (testSearch_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getTestSearch()); } if (evaluateAfterTraining_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, evaluateAfterTraining_); } if (!getDescriptionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, description_); } if (datasetVersion_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getDatasetVersion()); } 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.PostModelVersionsRequest)) { return super.equals(obj); } com.clarifai.grpc.api.PostModelVersionsRequest other = (com.clarifai.grpc.api.PostModelVersionsRequest) obj; if (hasUserAppId() != other.hasUserAppId()) return false; if (hasUserAppId()) { if (!getUserAppId() .equals(other.getUserAppId())) return false; } if (!getModelId() .equals(other.getModelId())) return false; if (!getModelVersionsList() .equals(other.getModelVersionsList())) return false; if (hasSearch() != other.hasSearch()) return false; if (hasSearch()) { if (!getSearch() .equals(other.getSearch())) return false; } if (hasTrainSearch() != other.hasTrainSearch()) return false; if (hasTrainSearch()) { if (!getTrainSearch() .equals(other.getTrainSearch())) return false; } if (hasTestSearch() != other.hasTestSearch()) return false; if (hasTestSearch()) { if (!getTestSearch() .equals(other.getTestSearch())) return false; } if (getEvaluateAfterTraining() != other.getEvaluateAfterTraining()) return false; if (!getDescription() .equals(other.getDescription())) return false; if (hasDatasetVersion() != other.hasDatasetVersion()) return false; if (hasDatasetVersion()) { if (!getDatasetVersion() .equals(other.getDatasetVersion())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasUserAppId()) { hash = (37 * hash) + USER_APP_ID_FIELD_NUMBER; hash = (53 * hash) + getUserAppId().hashCode(); } hash = (37 * hash) + MODEL_ID_FIELD_NUMBER; hash = (53 * hash) + getModelId().hashCode(); if (getModelVersionsCount() > 0) { hash = (37 * hash) + MODEL_VERSIONS_FIELD_NUMBER; hash = (53 * hash) + getModelVersionsList().hashCode(); } if (hasSearch()) { hash = (37 * hash) + SEARCH_FIELD_NUMBER; hash = (53 * hash) + getSearch().hashCode(); } if (hasTrainSearch()) { hash = (37 * hash) + TRAIN_SEARCH_FIELD_NUMBER; hash = (53 * hash) + getTrainSearch().hashCode(); } if (hasTestSearch()) { hash = (37 * hash) + TEST_SEARCH_FIELD_NUMBER; hash = (53 * hash) + getTestSearch().hashCode(); } hash = (37 * hash) + EVALUATE_AFTER_TRAINING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getEvaluateAfterTraining()); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); if (hasDatasetVersion()) { hash = (37 * hash) + DATASET_VERSION_FIELD_NUMBER; hash = (53 * hash) + getDatasetVersion().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.clarifai.grpc.api.PostModelVersionsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.PostModelVersionsRequest 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.PostModelVersionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.PostModelVersionsRequest 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.PostModelVersionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.PostModelVersionsRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clarifai.grpc.api.PostModelVersionsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clarifai.grpc.api.PostModelVersionsRequest 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.PostModelVersionsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.clarifai.grpc.api.PostModelVersionsRequest 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.PostModelVersionsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clarifai.grpc.api.PostModelVersionsRequest 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.PostModelVersionsRequest 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; } /** *
   * Create (train) a new model version.
   * 
* * Protobuf type {@code clarifai.api.PostModelVersionsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:clarifai.api.PostModelVersionsRequest) com.clarifai.grpc.api.PostModelVersionsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clarifai.grpc.api.Service.internal_static_clarifai_api_PostModelVersionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clarifai.grpc.api.Service.internal_static_clarifai_api_PostModelVersionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clarifai.grpc.api.PostModelVersionsRequest.class, com.clarifai.grpc.api.PostModelVersionsRequest.Builder.class); } // Construct using com.clarifai.grpc.api.PostModelVersionsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getModelVersionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (userAppIdBuilder_ == null) { userAppId_ = null; } else { userAppId_ = null; userAppIdBuilder_ = null; } modelId_ = ""; if (modelVersionsBuilder_ == null) { modelVersions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { modelVersionsBuilder_.clear(); } if (searchBuilder_ == null) { search_ = null; } else { search_ = null; searchBuilder_ = null; } if (trainSearchBuilder_ == null) { trainSearch_ = null; } else { trainSearch_ = null; trainSearchBuilder_ = null; } if (testSearchBuilder_ == null) { testSearch_ = null; } else { testSearch_ = null; testSearchBuilder_ = null; } evaluateAfterTraining_ = false; description_ = ""; if (datasetVersionBuilder_ == null) { datasetVersion_ = null; } else { datasetVersion_ = null; datasetVersionBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.clarifai.grpc.api.Service.internal_static_clarifai_api_PostModelVersionsRequest_descriptor; } @java.lang.Override public com.clarifai.grpc.api.PostModelVersionsRequest getDefaultInstanceForType() { return com.clarifai.grpc.api.PostModelVersionsRequest.getDefaultInstance(); } @java.lang.Override public com.clarifai.grpc.api.PostModelVersionsRequest build() { com.clarifai.grpc.api.PostModelVersionsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.clarifai.grpc.api.PostModelVersionsRequest buildPartial() { com.clarifai.grpc.api.PostModelVersionsRequest result = new com.clarifai.grpc.api.PostModelVersionsRequest(this); int from_bitField0_ = bitField0_; if (userAppIdBuilder_ == null) { result.userAppId_ = userAppId_; } else { result.userAppId_ = userAppIdBuilder_.build(); } result.modelId_ = modelId_; if (modelVersionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { modelVersions_ = java.util.Collections.unmodifiableList(modelVersions_); bitField0_ = (bitField0_ & ~0x00000001); } result.modelVersions_ = modelVersions_; } else { result.modelVersions_ = modelVersionsBuilder_.build(); } if (searchBuilder_ == null) { result.search_ = search_; } else { result.search_ = searchBuilder_.build(); } if (trainSearchBuilder_ == null) { result.trainSearch_ = trainSearch_; } else { result.trainSearch_ = trainSearchBuilder_.build(); } if (testSearchBuilder_ == null) { result.testSearch_ = testSearch_; } else { result.testSearch_ = testSearchBuilder_.build(); } result.evaluateAfterTraining_ = evaluateAfterTraining_; result.description_ = description_; if (datasetVersionBuilder_ == null) { result.datasetVersion_ = datasetVersion_; } else { result.datasetVersion_ = datasetVersionBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.clarifai.grpc.api.PostModelVersionsRequest) { return mergeFrom((com.clarifai.grpc.api.PostModelVersionsRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.clarifai.grpc.api.PostModelVersionsRequest other) { if (other == com.clarifai.grpc.api.PostModelVersionsRequest.getDefaultInstance()) return this; if (other.hasUserAppId()) { mergeUserAppId(other.getUserAppId()); } if (!other.getModelId().isEmpty()) { modelId_ = other.modelId_; onChanged(); } if (modelVersionsBuilder_ == null) { if (!other.modelVersions_.isEmpty()) { if (modelVersions_.isEmpty()) { modelVersions_ = other.modelVersions_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureModelVersionsIsMutable(); modelVersions_.addAll(other.modelVersions_); } onChanged(); } } else { if (!other.modelVersions_.isEmpty()) { if (modelVersionsBuilder_.isEmpty()) { modelVersionsBuilder_.dispose(); modelVersionsBuilder_ = null; modelVersions_ = other.modelVersions_; bitField0_ = (bitField0_ & ~0x00000001); modelVersionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getModelVersionsFieldBuilder() : null; } else { modelVersionsBuilder_.addAllMessages(other.modelVersions_); } } } if (other.hasSearch()) { mergeSearch(other.getSearch()); } if (other.hasTrainSearch()) { mergeTrainSearch(other.getTrainSearch()); } if (other.hasTestSearch()) { mergeTestSearch(other.getTestSearch()); } if (other.getEvaluateAfterTraining() != false) { setEvaluateAfterTraining(other.getEvaluateAfterTraining()); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } if (other.hasDatasetVersion()) { mergeDatasetVersion(other.getDatasetVersion()); } 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.PostModelVersionsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.clarifai.grpc.api.PostModelVersionsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.clarifai.grpc.api.UserAppIDSet userAppId_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.UserAppIDSet, com.clarifai.grpc.api.UserAppIDSet.Builder, com.clarifai.grpc.api.UserAppIDSetOrBuilder> userAppIdBuilder_; /** * .clarifai.api.UserAppIDSet user_app_id = 1; * @return Whether the userAppId field is set. */ public boolean hasUserAppId() { return userAppIdBuilder_ != null || userAppId_ != null; } /** * .clarifai.api.UserAppIDSet user_app_id = 1; * @return The userAppId. */ public com.clarifai.grpc.api.UserAppIDSet getUserAppId() { if (userAppIdBuilder_ == null) { return userAppId_ == null ? com.clarifai.grpc.api.UserAppIDSet.getDefaultInstance() : userAppId_; } else { return userAppIdBuilder_.getMessage(); } } /** * .clarifai.api.UserAppIDSet user_app_id = 1; */ public Builder setUserAppId(com.clarifai.grpc.api.UserAppIDSet value) { if (userAppIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } userAppId_ = value; onChanged(); } else { userAppIdBuilder_.setMessage(value); } return this; } /** * .clarifai.api.UserAppIDSet user_app_id = 1; */ public Builder setUserAppId( com.clarifai.grpc.api.UserAppIDSet.Builder builderForValue) { if (userAppIdBuilder_ == null) { userAppId_ = builderForValue.build(); onChanged(); } else { userAppIdBuilder_.setMessage(builderForValue.build()); } return this; } /** * .clarifai.api.UserAppIDSet user_app_id = 1; */ public Builder mergeUserAppId(com.clarifai.grpc.api.UserAppIDSet value) { if (userAppIdBuilder_ == null) { if (userAppId_ != null) { userAppId_ = com.clarifai.grpc.api.UserAppIDSet.newBuilder(userAppId_).mergeFrom(value).buildPartial(); } else { userAppId_ = value; } onChanged(); } else { userAppIdBuilder_.mergeFrom(value); } return this; } /** * .clarifai.api.UserAppIDSet user_app_id = 1; */ public Builder clearUserAppId() { if (userAppIdBuilder_ == null) { userAppId_ = null; onChanged(); } else { userAppId_ = null; userAppIdBuilder_ = null; } return this; } /** * .clarifai.api.UserAppIDSet user_app_id = 1; */ public com.clarifai.grpc.api.UserAppIDSet.Builder getUserAppIdBuilder() { onChanged(); return getUserAppIdFieldBuilder().getBuilder(); } /** * .clarifai.api.UserAppIDSet user_app_id = 1; */ public com.clarifai.grpc.api.UserAppIDSetOrBuilder getUserAppIdOrBuilder() { if (userAppIdBuilder_ != null) { return userAppIdBuilder_.getMessageOrBuilder(); } else { return userAppId_ == null ? com.clarifai.grpc.api.UserAppIDSet.getDefaultInstance() : userAppId_; } } /** * .clarifai.api.UserAppIDSet user_app_id = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.UserAppIDSet, com.clarifai.grpc.api.UserAppIDSet.Builder, com.clarifai.grpc.api.UserAppIDSetOrBuilder> getUserAppIdFieldBuilder() { if (userAppIdBuilder_ == null) { userAppIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.UserAppIDSet, com.clarifai.grpc.api.UserAppIDSet.Builder, com.clarifai.grpc.api.UserAppIDSetOrBuilder>( getUserAppId(), getParentForChildren(), isClean()); userAppId_ = null; } return userAppIdBuilder_; } private java.lang.Object modelId_ = ""; /** * string model_id = 2; * @return The modelId. */ public java.lang.String getModelId() { java.lang.Object ref = modelId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); modelId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string model_id = 2; * @return The bytes for modelId. */ public com.google.protobuf.ByteString getModelIdBytes() { java.lang.Object ref = modelId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); modelId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string model_id = 2; * @param value The modelId to set. * @return This builder for chaining. */ public Builder setModelId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } modelId_ = value; onChanged(); return this; } /** * string model_id = 2; * @return This builder for chaining. */ public Builder clearModelId() { modelId_ = getDefaultInstance().getModelId(); onChanged(); return this; } /** * string model_id = 2; * @param value The bytes for modelId to set. * @return This builder for chaining. */ public Builder setModelIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); modelId_ = value; onChanged(); return this; } private java.util.List modelVersions_ = java.util.Collections.emptyList(); private void ensureModelVersionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { modelVersions_ = new java.util.ArrayList(modelVersions_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.ModelVersion, com.clarifai.grpc.api.ModelVersion.Builder, com.clarifai.grpc.api.ModelVersionOrBuilder> modelVersionsBuilder_; /** *
     * This lets you post an existing model version rather than training a new one.
     * For internal Clarifai use only to start.
     * 
* * repeated .clarifai.api.ModelVersion model_versions = 3; */ public java.util.List getModelVersionsList() { if (modelVersionsBuilder_ == null) { return java.util.Collections.unmodifiableList(modelVersions_); } else { return modelVersionsBuilder_.getMessageList(); } } /** *
     * This lets you post an existing model version rather than training a new one.
     * For internal Clarifai use only to start.
     * 
* * repeated .clarifai.api.ModelVersion model_versions = 3; */ public int getModelVersionsCount() { if (modelVersionsBuilder_ == null) { return modelVersions_.size(); } else { return modelVersionsBuilder_.getCount(); } } /** *
     * This lets you post an existing model version rather than training a new one.
     * For internal Clarifai use only to start.
     * 
* * repeated .clarifai.api.ModelVersion model_versions = 3; */ public com.clarifai.grpc.api.ModelVersion getModelVersions(int index) { if (modelVersionsBuilder_ == null) { return modelVersions_.get(index); } else { return modelVersionsBuilder_.getMessage(index); } } /** *
     * This lets you post an existing model version rather than training a new one.
     * For internal Clarifai use only to start.
     * 
* * repeated .clarifai.api.ModelVersion model_versions = 3; */ public Builder setModelVersions( int index, com.clarifai.grpc.api.ModelVersion value) { if (modelVersionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureModelVersionsIsMutable(); modelVersions_.set(index, value); onChanged(); } else { modelVersionsBuilder_.setMessage(index, value); } return this; } /** *
     * This lets you post an existing model version rather than training a new one.
     * For internal Clarifai use only to start.
     * 
* * repeated .clarifai.api.ModelVersion model_versions = 3; */ public Builder setModelVersions( int index, com.clarifai.grpc.api.ModelVersion.Builder builderForValue) { if (modelVersionsBuilder_ == null) { ensureModelVersionsIsMutable(); modelVersions_.set(index, builderForValue.build()); onChanged(); } else { modelVersionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * This lets you post an existing model version rather than training a new one.
     * For internal Clarifai use only to start.
     * 
* * repeated .clarifai.api.ModelVersion model_versions = 3; */ public Builder addModelVersions(com.clarifai.grpc.api.ModelVersion value) { if (modelVersionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureModelVersionsIsMutable(); modelVersions_.add(value); onChanged(); } else { modelVersionsBuilder_.addMessage(value); } return this; } /** *
     * This lets you post an existing model version rather than training a new one.
     * For internal Clarifai use only to start.
     * 
* * repeated .clarifai.api.ModelVersion model_versions = 3; */ public Builder addModelVersions( int index, com.clarifai.grpc.api.ModelVersion value) { if (modelVersionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureModelVersionsIsMutable(); modelVersions_.add(index, value); onChanged(); } else { modelVersionsBuilder_.addMessage(index, value); } return this; } /** *
     * This lets you post an existing model version rather than training a new one.
     * For internal Clarifai use only to start.
     * 
* * repeated .clarifai.api.ModelVersion model_versions = 3; */ public Builder addModelVersions( com.clarifai.grpc.api.ModelVersion.Builder builderForValue) { if (modelVersionsBuilder_ == null) { ensureModelVersionsIsMutable(); modelVersions_.add(builderForValue.build()); onChanged(); } else { modelVersionsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * This lets you post an existing model version rather than training a new one.
     * For internal Clarifai use only to start.
     * 
* * repeated .clarifai.api.ModelVersion model_versions = 3; */ public Builder addModelVersions( int index, com.clarifai.grpc.api.ModelVersion.Builder builderForValue) { if (modelVersionsBuilder_ == null) { ensureModelVersionsIsMutable(); modelVersions_.add(index, builderForValue.build()); onChanged(); } else { modelVersionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * This lets you post an existing model version rather than training a new one.
     * For internal Clarifai use only to start.
     * 
* * repeated .clarifai.api.ModelVersion model_versions = 3; */ public Builder addAllModelVersions( java.lang.Iterable values) { if (modelVersionsBuilder_ == null) { ensureModelVersionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, modelVersions_); onChanged(); } else { modelVersionsBuilder_.addAllMessages(values); } return this; } /** *
     * This lets you post an existing model version rather than training a new one.
     * For internal Clarifai use only to start.
     * 
* * repeated .clarifai.api.ModelVersion model_versions = 3; */ public Builder clearModelVersions() { if (modelVersionsBuilder_ == null) { modelVersions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { modelVersionsBuilder_.clear(); } return this; } /** *
     * This lets you post an existing model version rather than training a new one.
     * For internal Clarifai use only to start.
     * 
* * repeated .clarifai.api.ModelVersion model_versions = 3; */ public Builder removeModelVersions(int index) { if (modelVersionsBuilder_ == null) { ensureModelVersionsIsMutable(); modelVersions_.remove(index); onChanged(); } else { modelVersionsBuilder_.remove(index); } return this; } /** *
     * This lets you post an existing model version rather than training a new one.
     * For internal Clarifai use only to start.
     * 
* * repeated .clarifai.api.ModelVersion model_versions = 3; */ public com.clarifai.grpc.api.ModelVersion.Builder getModelVersionsBuilder( int index) { return getModelVersionsFieldBuilder().getBuilder(index); } /** *
     * This lets you post an existing model version rather than training a new one.
     * For internal Clarifai use only to start.
     * 
* * repeated .clarifai.api.ModelVersion model_versions = 3; */ public com.clarifai.grpc.api.ModelVersionOrBuilder getModelVersionsOrBuilder( int index) { if (modelVersionsBuilder_ == null) { return modelVersions_.get(index); } else { return modelVersionsBuilder_.getMessageOrBuilder(index); } } /** *
     * This lets you post an existing model version rather than training a new one.
     * For internal Clarifai use only to start.
     * 
* * repeated .clarifai.api.ModelVersion model_versions = 3; */ public java.util.List getModelVersionsOrBuilderList() { if (modelVersionsBuilder_ != null) { return modelVersionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(modelVersions_); } } /** *
     * This lets you post an existing model version rather than training a new one.
     * For internal Clarifai use only to start.
     * 
* * repeated .clarifai.api.ModelVersion model_versions = 3; */ public com.clarifai.grpc.api.ModelVersion.Builder addModelVersionsBuilder() { return getModelVersionsFieldBuilder().addBuilder( com.clarifai.grpc.api.ModelVersion.getDefaultInstance()); } /** *
     * This lets you post an existing model version rather than training a new one.
     * For internal Clarifai use only to start.
     * 
* * repeated .clarifai.api.ModelVersion model_versions = 3; */ public com.clarifai.grpc.api.ModelVersion.Builder addModelVersionsBuilder( int index) { return getModelVersionsFieldBuilder().addBuilder( index, com.clarifai.grpc.api.ModelVersion.getDefaultInstance()); } /** *
     * This lets you post an existing model version rather than training a new one.
     * For internal Clarifai use only to start.
     * 
* * repeated .clarifai.api.ModelVersion model_versions = 3; */ public java.util.List getModelVersionsBuilderList() { return getModelVersionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.ModelVersion, com.clarifai.grpc.api.ModelVersion.Builder, com.clarifai.grpc.api.ModelVersionOrBuilder> getModelVersionsFieldBuilder() { if (modelVersionsBuilder_ == null) { modelVersionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.ModelVersion, com.clarifai.grpc.api.ModelVersion.Builder, com.clarifai.grpc.api.ModelVersionOrBuilder>( modelVersions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); modelVersions_ = null; } return modelVersionsBuilder_; } private com.clarifai.grpc.api.Search search_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Search, com.clarifai.grpc.api.Search.Builder, com.clarifai.grpc.api.SearchOrBuilder> searchBuilder_; /** *
     * Use this to filter inputs that are used in training
     * Alternatively, use train_search & test_search fields OR dataset_version field.
     * 
* * .clarifai.api.Search search = 4 [deprecated = true]; * @return Whether the search field is set. */ @java.lang.Deprecated public boolean hasSearch() { return searchBuilder_ != null || search_ != null; } /** *
     * Use this to filter inputs that are used in training
     * Alternatively, use train_search & test_search fields OR dataset_version field.
     * 
* * .clarifai.api.Search search = 4 [deprecated = true]; * @return The search. */ @java.lang.Deprecated public com.clarifai.grpc.api.Search getSearch() { if (searchBuilder_ == null) { return search_ == null ? com.clarifai.grpc.api.Search.getDefaultInstance() : search_; } else { return searchBuilder_.getMessage(); } } /** *
     * Use this to filter inputs that are used in training
     * Alternatively, use train_search & test_search fields OR dataset_version field.
     * 
* * .clarifai.api.Search search = 4 [deprecated = true]; */ @java.lang.Deprecated public Builder setSearch(com.clarifai.grpc.api.Search value) { if (searchBuilder_ == null) { if (value == null) { throw new NullPointerException(); } search_ = value; onChanged(); } else { searchBuilder_.setMessage(value); } return this; } /** *
     * Use this to filter inputs that are used in training
     * Alternatively, use train_search & test_search fields OR dataset_version field.
     * 
* * .clarifai.api.Search search = 4 [deprecated = true]; */ @java.lang.Deprecated public Builder setSearch( com.clarifai.grpc.api.Search.Builder builderForValue) { if (searchBuilder_ == null) { search_ = builderForValue.build(); onChanged(); } else { searchBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Use this to filter inputs that are used in training
     * Alternatively, use train_search & test_search fields OR dataset_version field.
     * 
* * .clarifai.api.Search search = 4 [deprecated = true]; */ @java.lang.Deprecated public Builder mergeSearch(com.clarifai.grpc.api.Search value) { if (searchBuilder_ == null) { if (search_ != null) { search_ = com.clarifai.grpc.api.Search.newBuilder(search_).mergeFrom(value).buildPartial(); } else { search_ = value; } onChanged(); } else { searchBuilder_.mergeFrom(value); } return this; } /** *
     * Use this to filter inputs that are used in training
     * Alternatively, use train_search & test_search fields OR dataset_version field.
     * 
* * .clarifai.api.Search search = 4 [deprecated = true]; */ @java.lang.Deprecated public Builder clearSearch() { if (searchBuilder_ == null) { search_ = null; onChanged(); } else { search_ = null; searchBuilder_ = null; } return this; } /** *
     * Use this to filter inputs that are used in training
     * Alternatively, use train_search & test_search fields OR dataset_version field.
     * 
* * .clarifai.api.Search search = 4 [deprecated = true]; */ @java.lang.Deprecated public com.clarifai.grpc.api.Search.Builder getSearchBuilder() { onChanged(); return getSearchFieldBuilder().getBuilder(); } /** *
     * Use this to filter inputs that are used in training
     * Alternatively, use train_search & test_search fields OR dataset_version field.
     * 
* * .clarifai.api.Search search = 4 [deprecated = true]; */ @java.lang.Deprecated public com.clarifai.grpc.api.SearchOrBuilder getSearchOrBuilder() { if (searchBuilder_ != null) { return searchBuilder_.getMessageOrBuilder(); } else { return search_ == null ? com.clarifai.grpc.api.Search.getDefaultInstance() : search_; } } /** *
     * Use this to filter inputs that are used in training
     * Alternatively, use train_search & test_search fields OR dataset_version field.
     * 
* * .clarifai.api.Search search = 4 [deprecated = true]; */ 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) { searchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Search, com.clarifai.grpc.api.Search.Builder, com.clarifai.grpc.api.SearchOrBuilder>( getSearch(), getParentForChildren(), isClean()); search_ = null; } return searchBuilder_; } private com.clarifai.grpc.api.Search trainSearch_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Search, com.clarifai.grpc.api.Search.Builder, com.clarifai.grpc.api.SearchOrBuilder> trainSearchBuilder_; /** *
     *train_search is used to specify what data to train on.
     * Alternatively, use dataset_version field.
     * 
* * .clarifai.api.Search train_search = 5; * @return Whether the trainSearch field is set. */ public boolean hasTrainSearch() { return trainSearchBuilder_ != null || trainSearch_ != null; } /** *
     *train_search is used to specify what data to train on.
     * Alternatively, use dataset_version field.
     * 
* * .clarifai.api.Search train_search = 5; * @return The trainSearch. */ public com.clarifai.grpc.api.Search getTrainSearch() { if (trainSearchBuilder_ == null) { return trainSearch_ == null ? com.clarifai.grpc.api.Search.getDefaultInstance() : trainSearch_; } else { return trainSearchBuilder_.getMessage(); } } /** *
     *train_search is used to specify what data to train on.
     * Alternatively, use dataset_version field.
     * 
* * .clarifai.api.Search train_search = 5; */ public Builder setTrainSearch(com.clarifai.grpc.api.Search value) { if (trainSearchBuilder_ == null) { if (value == null) { throw new NullPointerException(); } trainSearch_ = value; onChanged(); } else { trainSearchBuilder_.setMessage(value); } return this; } /** *
     *train_search is used to specify what data to train on.
     * Alternatively, use dataset_version field.
     * 
* * .clarifai.api.Search train_search = 5; */ public Builder setTrainSearch( com.clarifai.grpc.api.Search.Builder builderForValue) { if (trainSearchBuilder_ == null) { trainSearch_ = builderForValue.build(); onChanged(); } else { trainSearchBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     *train_search is used to specify what data to train on.
     * Alternatively, use dataset_version field.
     * 
* * .clarifai.api.Search train_search = 5; */ public Builder mergeTrainSearch(com.clarifai.grpc.api.Search value) { if (trainSearchBuilder_ == null) { if (trainSearch_ != null) { trainSearch_ = com.clarifai.grpc.api.Search.newBuilder(trainSearch_).mergeFrom(value).buildPartial(); } else { trainSearch_ = value; } onChanged(); } else { trainSearchBuilder_.mergeFrom(value); } return this; } /** *
     *train_search is used to specify what data to train on.
     * Alternatively, use dataset_version field.
     * 
* * .clarifai.api.Search train_search = 5; */ public Builder clearTrainSearch() { if (trainSearchBuilder_ == null) { trainSearch_ = null; onChanged(); } else { trainSearch_ = null; trainSearchBuilder_ = null; } return this; } /** *
     *train_search is used to specify what data to train on.
     * Alternatively, use dataset_version field.
     * 
* * .clarifai.api.Search train_search = 5; */ public com.clarifai.grpc.api.Search.Builder getTrainSearchBuilder() { onChanged(); return getTrainSearchFieldBuilder().getBuilder(); } /** *
     *train_search is used to specify what data to train on.
     * Alternatively, use dataset_version field.
     * 
* * .clarifai.api.Search train_search = 5; */ public com.clarifai.grpc.api.SearchOrBuilder getTrainSearchOrBuilder() { if (trainSearchBuilder_ != null) { return trainSearchBuilder_.getMessageOrBuilder(); } else { return trainSearch_ == null ? com.clarifai.grpc.api.Search.getDefaultInstance() : trainSearch_; } } /** *
     *train_search is used to specify what data to train on.
     * Alternatively, use dataset_version field.
     * 
* * .clarifai.api.Search train_search = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Search, com.clarifai.grpc.api.Search.Builder, com.clarifai.grpc.api.SearchOrBuilder> getTrainSearchFieldBuilder() { if (trainSearchBuilder_ == null) { trainSearchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Search, com.clarifai.grpc.api.Search.Builder, com.clarifai.grpc.api.SearchOrBuilder>( getTrainSearch(), getParentForChildren(), isClean()); trainSearch_ = null; } return trainSearchBuilder_; } private com.clarifai.grpc.api.Search testSearch_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Search, com.clarifai.grpc.api.Search.Builder, com.clarifai.grpc.api.SearchOrBuilder> testSearchBuilder_; /** *
     *test_search is used to specify what data to test on.
     * Alternatively, use dataset_version field.
     * 
* * .clarifai.api.Search test_search = 6; * @return Whether the testSearch field is set. */ public boolean hasTestSearch() { return testSearchBuilder_ != null || testSearch_ != null; } /** *
     *test_search is used to specify what data to test on.
     * Alternatively, use dataset_version field.
     * 
* * .clarifai.api.Search test_search = 6; * @return The testSearch. */ public com.clarifai.grpc.api.Search getTestSearch() { if (testSearchBuilder_ == null) { return testSearch_ == null ? com.clarifai.grpc.api.Search.getDefaultInstance() : testSearch_; } else { return testSearchBuilder_.getMessage(); } } /** *
     *test_search is used to specify what data to test on.
     * Alternatively, use dataset_version field.
     * 
* * .clarifai.api.Search test_search = 6; */ public Builder setTestSearch(com.clarifai.grpc.api.Search value) { if (testSearchBuilder_ == null) { if (value == null) { throw new NullPointerException(); } testSearch_ = value; onChanged(); } else { testSearchBuilder_.setMessage(value); } return this; } /** *
     *test_search is used to specify what data to test on.
     * Alternatively, use dataset_version field.
     * 
* * .clarifai.api.Search test_search = 6; */ public Builder setTestSearch( com.clarifai.grpc.api.Search.Builder builderForValue) { if (testSearchBuilder_ == null) { testSearch_ = builderForValue.build(); onChanged(); } else { testSearchBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     *test_search is used to specify what data to test on.
     * Alternatively, use dataset_version field.
     * 
* * .clarifai.api.Search test_search = 6; */ public Builder mergeTestSearch(com.clarifai.grpc.api.Search value) { if (testSearchBuilder_ == null) { if (testSearch_ != null) { testSearch_ = com.clarifai.grpc.api.Search.newBuilder(testSearch_).mergeFrom(value).buildPartial(); } else { testSearch_ = value; } onChanged(); } else { testSearchBuilder_.mergeFrom(value); } return this; } /** *
     *test_search is used to specify what data to test on.
     * Alternatively, use dataset_version field.
     * 
* * .clarifai.api.Search test_search = 6; */ public Builder clearTestSearch() { if (testSearchBuilder_ == null) { testSearch_ = null; onChanged(); } else { testSearch_ = null; testSearchBuilder_ = null; } return this; } /** *
     *test_search is used to specify what data to test on.
     * Alternatively, use dataset_version field.
     * 
* * .clarifai.api.Search test_search = 6; */ public com.clarifai.grpc.api.Search.Builder getTestSearchBuilder() { onChanged(); return getTestSearchFieldBuilder().getBuilder(); } /** *
     *test_search is used to specify what data to test on.
     * Alternatively, use dataset_version field.
     * 
* * .clarifai.api.Search test_search = 6; */ public com.clarifai.grpc.api.SearchOrBuilder getTestSearchOrBuilder() { if (testSearchBuilder_ != null) { return testSearchBuilder_.getMessageOrBuilder(); } else { return testSearch_ == null ? com.clarifai.grpc.api.Search.getDefaultInstance() : testSearch_; } } /** *
     *test_search is used to specify what data to test on.
     * Alternatively, use dataset_version field.
     * 
* * .clarifai.api.Search test_search = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Search, com.clarifai.grpc.api.Search.Builder, com.clarifai.grpc.api.SearchOrBuilder> getTestSearchFieldBuilder() { if (testSearchBuilder_ == null) { testSearchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Search, com.clarifai.grpc.api.Search.Builder, com.clarifai.grpc.api.SearchOrBuilder>( getTestSearch(), getParentForChildren(), isClean()); testSearch_ = null; } return testSearchBuilder_; } private boolean evaluateAfterTraining_ ; /** *
     * whether to evaluate the transfer trained model after training
     * 
* * bool evaluate_after_training = 7; * @return The evaluateAfterTraining. */ public boolean getEvaluateAfterTraining() { return evaluateAfterTraining_; } /** *
     * whether to evaluate the transfer trained model after training
     * 
* * bool evaluate_after_training = 7; * @param value The evaluateAfterTraining to set. * @return This builder for chaining. */ public Builder setEvaluateAfterTraining(boolean value) { evaluateAfterTraining_ = value; onChanged(); return this; } /** *
     * whether to evaluate the transfer trained model after training
     * 
* * bool evaluate_after_training = 7; * @return This builder for chaining. */ public Builder clearEvaluateAfterTraining() { evaluateAfterTraining_ = false; onChanged(); return this; } private java.lang.Object description_ = ""; /** *
     * Description about this training run
     * 
* * string description = 8; * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Description about this training run
     * 
* * string description = 8; * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Description about this training run
     * 
* * string description = 8; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); return this; } /** *
     * Description about this training run
     * 
* * string description = 8; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
     * Description about this training run
     * 
* * string description = 8; * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; onChanged(); return this; } private com.clarifai.grpc.api.DatasetVersion datasetVersion_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.DatasetVersion, com.clarifai.grpc.api.DatasetVersion.Builder, com.clarifai.grpc.api.DatasetVersionOrBuilder> datasetVersionBuilder_; /** *
     * Use the data from this dataset version for training.
     * Set dataset_version.dataset_id to identify the dataset that you would like to use.
     * When dataset_version.id field is set,
     * the system will reuse the data from provided dataset version.
     * When dataset_version.id is not set,
     * a new dataset version will be created in the dataset using provided dataset_version fields.
     * 
* * .clarifai.api.DatasetVersion dataset_version = 9; * @return Whether the datasetVersion field is set. */ public boolean hasDatasetVersion() { return datasetVersionBuilder_ != null || datasetVersion_ != null; } /** *
     * Use the data from this dataset version for training.
     * Set dataset_version.dataset_id to identify the dataset that you would like to use.
     * When dataset_version.id field is set,
     * the system will reuse the data from provided dataset version.
     * When dataset_version.id is not set,
     * a new dataset version will be created in the dataset using provided dataset_version fields.
     * 
* * .clarifai.api.DatasetVersion dataset_version = 9; * @return The datasetVersion. */ public com.clarifai.grpc.api.DatasetVersion getDatasetVersion() { if (datasetVersionBuilder_ == null) { return datasetVersion_ == null ? com.clarifai.grpc.api.DatasetVersion.getDefaultInstance() : datasetVersion_; } else { return datasetVersionBuilder_.getMessage(); } } /** *
     * Use the data from this dataset version for training.
     * Set dataset_version.dataset_id to identify the dataset that you would like to use.
     * When dataset_version.id field is set,
     * the system will reuse the data from provided dataset version.
     * When dataset_version.id is not set,
     * a new dataset version will be created in the dataset using provided dataset_version fields.
     * 
* * .clarifai.api.DatasetVersion dataset_version = 9; */ public Builder setDatasetVersion(com.clarifai.grpc.api.DatasetVersion value) { if (datasetVersionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } datasetVersion_ = value; onChanged(); } else { datasetVersionBuilder_.setMessage(value); } return this; } /** *
     * Use the data from this dataset version for training.
     * Set dataset_version.dataset_id to identify the dataset that you would like to use.
     * When dataset_version.id field is set,
     * the system will reuse the data from provided dataset version.
     * When dataset_version.id is not set,
     * a new dataset version will be created in the dataset using provided dataset_version fields.
     * 
* * .clarifai.api.DatasetVersion dataset_version = 9; */ public Builder setDatasetVersion( com.clarifai.grpc.api.DatasetVersion.Builder builderForValue) { if (datasetVersionBuilder_ == null) { datasetVersion_ = builderForValue.build(); onChanged(); } else { datasetVersionBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Use the data from this dataset version for training.
     * Set dataset_version.dataset_id to identify the dataset that you would like to use.
     * When dataset_version.id field is set,
     * the system will reuse the data from provided dataset version.
     * When dataset_version.id is not set,
     * a new dataset version will be created in the dataset using provided dataset_version fields.
     * 
* * .clarifai.api.DatasetVersion dataset_version = 9; */ public Builder mergeDatasetVersion(com.clarifai.grpc.api.DatasetVersion value) { if (datasetVersionBuilder_ == null) { if (datasetVersion_ != null) { datasetVersion_ = com.clarifai.grpc.api.DatasetVersion.newBuilder(datasetVersion_).mergeFrom(value).buildPartial(); } else { datasetVersion_ = value; } onChanged(); } else { datasetVersionBuilder_.mergeFrom(value); } return this; } /** *
     * Use the data from this dataset version for training.
     * Set dataset_version.dataset_id to identify the dataset that you would like to use.
     * When dataset_version.id field is set,
     * the system will reuse the data from provided dataset version.
     * When dataset_version.id is not set,
     * a new dataset version will be created in the dataset using provided dataset_version fields.
     * 
* * .clarifai.api.DatasetVersion dataset_version = 9; */ public Builder clearDatasetVersion() { if (datasetVersionBuilder_ == null) { datasetVersion_ = null; onChanged(); } else { datasetVersion_ = null; datasetVersionBuilder_ = null; } return this; } /** *
     * Use the data from this dataset version for training.
     * Set dataset_version.dataset_id to identify the dataset that you would like to use.
     * When dataset_version.id field is set,
     * the system will reuse the data from provided dataset version.
     * When dataset_version.id is not set,
     * a new dataset version will be created in the dataset using provided dataset_version fields.
     * 
* * .clarifai.api.DatasetVersion dataset_version = 9; */ public com.clarifai.grpc.api.DatasetVersion.Builder getDatasetVersionBuilder() { onChanged(); return getDatasetVersionFieldBuilder().getBuilder(); } /** *
     * Use the data from this dataset version for training.
     * Set dataset_version.dataset_id to identify the dataset that you would like to use.
     * When dataset_version.id field is set,
     * the system will reuse the data from provided dataset version.
     * When dataset_version.id is not set,
     * a new dataset version will be created in the dataset using provided dataset_version fields.
     * 
* * .clarifai.api.DatasetVersion dataset_version = 9; */ public com.clarifai.grpc.api.DatasetVersionOrBuilder getDatasetVersionOrBuilder() { if (datasetVersionBuilder_ != null) { return datasetVersionBuilder_.getMessageOrBuilder(); } else { return datasetVersion_ == null ? com.clarifai.grpc.api.DatasetVersion.getDefaultInstance() : datasetVersion_; } } /** *
     * Use the data from this dataset version for training.
     * Set dataset_version.dataset_id to identify the dataset that you would like to use.
     * When dataset_version.id field is set,
     * the system will reuse the data from provided dataset version.
     * When dataset_version.id is not set,
     * a new dataset version will be created in the dataset using provided dataset_version fields.
     * 
* * .clarifai.api.DatasetVersion dataset_version = 9; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.DatasetVersion, com.clarifai.grpc.api.DatasetVersion.Builder, com.clarifai.grpc.api.DatasetVersionOrBuilder> getDatasetVersionFieldBuilder() { if (datasetVersionBuilder_ == null) { datasetVersionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.DatasetVersion, com.clarifai.grpc.api.DatasetVersion.Builder, com.clarifai.grpc.api.DatasetVersionOrBuilder>( getDatasetVersion(), getParentForChildren(), isClean()); datasetVersion_ = null; } return datasetVersionBuilder_; } @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.PostModelVersionsRequest) } // @@protoc_insertion_point(class_scope:clarifai.api.PostModelVersionsRequest) private static final com.clarifai.grpc.api.PostModelVersionsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.clarifai.grpc.api.PostModelVersionsRequest(); } public static com.clarifai.grpc.api.PostModelVersionsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PostModelVersionsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PostModelVersionsRequest(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.PostModelVersionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy