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

com.clarifai.grpc.api.Model 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;

/**
 * 
 * This is the Model object which represents a created model in the platform.
 * Each model has a particular type denoted by the model_type_id.
 * When creating a Model with PostModels the following happens:
 *  - if the ModelType is trainable, then a new ModelVersion is created that is
 *    - UNTRAINED status by default
 *    - TRAINED status if a ModelVersion was included with PretrainedModelConfig in PostModels
 *  - if the ModelType is not trainable, then a new ModelVersion is created with TRAINED status.
 * To modify config settings like OutputInfo for the Model you an use PatchModels. This will
 * also create a new ModelVersion, potentially UNTRAINED following the same rules as above.
 * The fields that are patchable include Model.name, Model.display_name and Model.output_info
 * (except the Model.output_info.type and Model.output_info.type_ext).
 * 
* * Protobuf type {@code clarifai.api.Model} */ public final class Model extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:clarifai.api.Model) ModelOrBuilder { private static final long serialVersionUID = 0L; // Use Model.newBuilder() to construct. private Model(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Model() { id_ = ""; name_ = ""; appId_ = ""; displayName_ = ""; userId_ = ""; modelTypeId_ = ""; task_ = ""; description_ = ""; notes_ = ""; toolkits_ = com.google.protobuf.LazyStringArrayList.EMPTY; useCases_ = com.google.protobuf.LazyStringArrayList.EMPTY; languages_ = com.google.protobuf.LazyStringArrayList.EMPTY; languagesFull_ = java.util.Collections.emptyList(); checkConsents_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Model(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Model( 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: { java.lang.String s = input.readStringRequireUtf8(); id_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 26: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (createdAt_ != null) { subBuilder = createdAt_.toBuilder(); } createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(createdAt_); createdAt_ = subBuilder.buildPartial(); } break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); appId_ = s; break; } case 42: { com.clarifai.grpc.api.OutputInfo.Builder subBuilder = null; if (outputInfo_ != null) { subBuilder = outputInfo_.toBuilder(); } outputInfo_ = input.readMessage(com.clarifai.grpc.api.OutputInfo.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(outputInfo_); outputInfo_ = subBuilder.buildPartial(); } break; } case 50: { com.clarifai.grpc.api.ModelVersion.Builder subBuilder = null; if (modelVersion_ != null) { subBuilder = modelVersion_.toBuilder(); } modelVersion_ = input.readMessage(com.clarifai.grpc.api.ModelVersion.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(modelVersion_); modelVersion_ = subBuilder.buildPartial(); } break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); displayName_ = s; break; } case 74: { java.lang.String s = input.readStringRequireUtf8(); userId_ = s; break; } case 114: { java.lang.String s = input.readStringRequireUtf8(); modelTypeId_ = s; break; } case 122: { com.clarifai.grpc.api.Visibility.Builder subBuilder = null; if (visibility_ != null) { subBuilder = visibility_.toBuilder(); } visibility_ = input.readMessage(com.clarifai.grpc.api.Visibility.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(visibility_); visibility_ = subBuilder.buildPartial(); } break; } case 130: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 138: { com.google.protobuf.Struct.Builder subBuilder = null; if (metadata_ != null) { subBuilder = metadata_.toBuilder(); } metadata_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(metadata_); metadata_ = subBuilder.buildPartial(); } break; } case 146: { java.lang.String s = input.readStringRequireUtf8(); notes_ = s; break; } case 154: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (modifiedAt_ != null) { subBuilder = modifiedAt_.toBuilder(); } modifiedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(modifiedAt_); modifiedAt_ = subBuilder.buildPartial(); } break; } case 162: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { toolkits_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } toolkits_.add(s); break; } case 170: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000002) != 0)) { useCases_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } useCases_.add(s); break; } case 176: { isStarred_ = input.readBool(); break; } case 184: { starCount_ = input.readInt32(); break; } case 202: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000004) != 0)) { languages_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000004; } languages_.add(s); break; } case 210: { java.lang.String s = input.readStringRequireUtf8(); task_ = s; break; } case 218: { com.google.protobuf.Struct.Builder subBuilder = null; if (presets_ != null) { subBuilder = presets_.toBuilder(); } presets_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(presets_); presets_ = subBuilder.buildPartial(); } break; } case 234: { com.google.protobuf.BoolValue.Builder subBuilder = null; if (workflowRecommended_ != null) { subBuilder = workflowRecommended_.toBuilder(); } workflowRecommended_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(workflowRecommended_); workflowRecommended_ = subBuilder.buildPartial(); } break; } case 242: { com.clarifai.grpc.api.EvalInfo.Builder subBuilder = null; if (defaultEvalInfo_ != null) { subBuilder = defaultEvalInfo_.toBuilder(); } defaultEvalInfo_ = input.readMessage(com.clarifai.grpc.api.EvalInfo.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(defaultEvalInfo_); defaultEvalInfo_ = subBuilder.buildPartial(); } break; } case 250: { if (!((mutable_bitField0_ & 0x00000008) != 0)) { languagesFull_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } languagesFull_.add( input.readMessage(com.clarifai.grpc.api.FullTag.parser(), extensionRegistry)); break; } case 258: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000010) != 0)) { checkConsents_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000010; } checkConsents_.add(s); break; } case 266: { com.clarifai.grpc.api.BookmarkOrigin.Builder subBuilder = null; if (bookmarkOrigin_ != null) { subBuilder = bookmarkOrigin_.toBuilder(); } bookmarkOrigin_ = input.readMessage(com.clarifai.grpc.api.BookmarkOrigin.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(bookmarkOrigin_); bookmarkOrigin_ = subBuilder.buildPartial(); } break; } case 274: { com.clarifai.grpc.api.Image.Builder subBuilder = null; if (image_ != null) { subBuilder = image_.toBuilder(); } image_ = input.readMessage(com.clarifai.grpc.api.Image.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(image_); image_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { toolkits_ = toolkits_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000002) != 0)) { useCases_ = useCases_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000004) != 0)) { languages_ = languages_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000008) != 0)) { languagesFull_ = java.util.Collections.unmodifiableList(languagesFull_); } if (((mutable_bitField0_ & 0x00000010) != 0)) { checkConsents_ = checkConsents_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Model_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Model_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clarifai.grpc.api.Model.class, com.clarifai.grpc.api.Model.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
   * The model's ID. Must be unique within a particular app and URL-friendly.
   * 
* * string id = 1; * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** *
   * The model's ID. Must be unique within a particular app and URL-friendly.
   * 
* * string id = 1; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** *
   * DEPRECATED: Please use the model id to name the model.
   * 
* * string name = 2 [deprecated = true]; * @deprecated clarifai.api.Model.name is deprecated. * See proto/clarifai/api/resources.proto;l=1328 * @return The name. */ @java.lang.Override @java.lang.Deprecated public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** *
   * DEPRECATED: Please use the model id to name the model.
   * 
* * string name = 2 [deprecated = true]; * @deprecated clarifai.api.Model.name is deprecated. * See proto/clarifai/api/resources.proto;l=1328 * @return The bytes for name. */ @java.lang.Override @java.lang.Deprecated public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CREATED_AT_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createdAt_; /** *
   * When the model was created. We follow the XXXX timestamp
   * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
   * "2006-01-02T15:04:05.999999Z" so you can expect results like
   *  the following from the API:
   *  "2017-04-11T21:50:50.223962Z"
   * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ @java.lang.Override public boolean hasCreatedAt() { return createdAt_ != null; } /** *
   * When the model was created. We follow the XXXX timestamp
   * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
   * "2006-01-02T15:04:05.999999Z" so you can expect results like
   *  the following from the API:
   *  "2017-04-11T21:50:50.223962Z"
   * 
* * .google.protobuf.Timestamp created_at = 3; * @return The createdAt. */ @java.lang.Override public com.google.protobuf.Timestamp getCreatedAt() { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } /** *
   * When the model was created. We follow the XXXX timestamp
   * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
   * "2006-01-02T15:04:05.999999Z" so you can expect results like
   *  the following from the API:
   *  "2017-04-11T21:50:50.223962Z"
   * 
* * .google.protobuf.Timestamp created_at = 3; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { return getCreatedAt(); } public static final int MODIFIED_AT_FIELD_NUMBER = 19; private com.google.protobuf.Timestamp modifiedAt_; /** *
   * When was the most recent model version created at
   * 
* * .google.protobuf.Timestamp modified_at = 19; * @return Whether the modifiedAt field is set. */ @java.lang.Override public boolean hasModifiedAt() { return modifiedAt_ != null; } /** *
   * When was the most recent model version created at
   * 
* * .google.protobuf.Timestamp modified_at = 19; * @return The modifiedAt. */ @java.lang.Override public com.google.protobuf.Timestamp getModifiedAt() { return modifiedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modifiedAt_; } /** *
   * When was the most recent model version created at
   * 
* * .google.protobuf.Timestamp modified_at = 19; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getModifiedAtOrBuilder() { return getModifiedAt(); } public static final int APP_ID_FIELD_NUMBER = 4; private volatile java.lang.Object appId_; /** *
   * The app the model belongs to.
   * 
* * string app_id = 4 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @return The appId. */ @java.lang.Override public java.lang.String getAppId() { java.lang.Object ref = appId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); appId_ = s; return s; } } /** *
   * The app the model belongs to.
   * 
* * string app_id = 4 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @return The bytes for appId. */ @java.lang.Override public com.google.protobuf.ByteString getAppIdBytes() { java.lang.Object ref = appId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); appId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OUTPUT_INFO_FIELD_NUMBER = 5; private com.clarifai.grpc.api.OutputInfo outputInfo_; /** *
   * Info about the model's output and configuration.
   * DEPRECATED: Will be moved to model version
   * 
* * .clarifai.api.OutputInfo output_info = 5 [deprecated = true]; * @deprecated clarifai.api.Model.output_info is deprecated. * See proto/clarifai/api/resources.proto;l=1341 * @return Whether the outputInfo field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasOutputInfo() { return outputInfo_ != null; } /** *
   * Info about the model's output and configuration.
   * DEPRECATED: Will be moved to model version
   * 
* * .clarifai.api.OutputInfo output_info = 5 [deprecated = true]; * @deprecated clarifai.api.Model.output_info is deprecated. * See proto/clarifai/api/resources.proto;l=1341 * @return The outputInfo. */ @java.lang.Override @java.lang.Deprecated public com.clarifai.grpc.api.OutputInfo getOutputInfo() { return outputInfo_ == null ? com.clarifai.grpc.api.OutputInfo.getDefaultInstance() : outputInfo_; } /** *
   * Info about the model's output and configuration.
   * DEPRECATED: Will be moved to model version
   * 
* * .clarifai.api.OutputInfo output_info = 5 [deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public com.clarifai.grpc.api.OutputInfoOrBuilder getOutputInfoOrBuilder() { return getOutputInfo(); } public static final int MODEL_VERSION_FIELD_NUMBER = 6; private com.clarifai.grpc.api.ModelVersion modelVersion_; /** *
   * A particular version of the model, e.g., to specify the version when creating a workflow or
   * when listing Models to include the latest ModelVersion of the model in the response.
   * 
* * .clarifai.api.ModelVersion model_version = 6; * @return Whether the modelVersion field is set. */ @java.lang.Override public boolean hasModelVersion() { return modelVersion_ != null; } /** *
   * A particular version of the model, e.g., to specify the version when creating a workflow or
   * when listing Models to include the latest ModelVersion of the model in the response.
   * 
* * .clarifai.api.ModelVersion model_version = 6; * @return The modelVersion. */ @java.lang.Override public com.clarifai.grpc.api.ModelVersion getModelVersion() { return modelVersion_ == null ? com.clarifai.grpc.api.ModelVersion.getDefaultInstance() : modelVersion_; } /** *
   * A particular version of the model, e.g., to specify the version when creating a workflow or
   * when listing Models to include the latest ModelVersion of the model in the response.
   * 
* * .clarifai.api.ModelVersion model_version = 6; */ @java.lang.Override public com.clarifai.grpc.api.ModelVersionOrBuilder getModelVersionOrBuilder() { return getModelVersion(); } public static final int DISPLAY_NAME_FIELD_NUMBER = 7; private volatile java.lang.Object displayName_; /** *
   * DEPRECATED: Please use the model id to name the model.
   * 
* * string display_name = 7 [deprecated = true]; * @deprecated clarifai.api.Model.display_name is deprecated. * See proto/clarifai/api/resources.proto;l=1346 * @return The displayName. */ @java.lang.Override @java.lang.Deprecated public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; 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(); displayName_ = s; return s; } } /** *
   * DEPRECATED: Please use the model id to name the model.
   * 
* * string display_name = 7 [deprecated = true]; * @deprecated clarifai.api.Model.display_name is deprecated. * See proto/clarifai/api/resources.proto;l=1346 * @return The bytes for displayName. */ @java.lang.Override @java.lang.Deprecated public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); displayName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int USER_ID_FIELD_NUMBER = 9; private volatile java.lang.Object userId_; /** *
   * The user id that the model belongs to.
   * 
* * string user_id = 9; * @return The userId. */ @java.lang.Override public java.lang.String getUserId() { java.lang.Object ref = userId_; 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(); userId_ = s; return s; } } /** *
   * The user id that the model belongs to.
   * 
* * string user_id = 9; * @return The bytes for userId. */ @java.lang.Override public com.google.protobuf.ByteString getUserIdBytes() { java.lang.Object ref = userId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); userId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DEFAULT_EVAL_INFO_FIELD_NUMBER = 30; private com.clarifai.grpc.api.EvalInfo defaultEvalInfo_; /** *
   * The default evaluation info. Can be overwritten by eval request.
   * 
* * .clarifai.api.EvalInfo default_eval_info = 30; * @return Whether the defaultEvalInfo field is set. */ @java.lang.Override public boolean hasDefaultEvalInfo() { return defaultEvalInfo_ != null; } /** *
   * The default evaluation info. Can be overwritten by eval request.
   * 
* * .clarifai.api.EvalInfo default_eval_info = 30; * @return The defaultEvalInfo. */ @java.lang.Override public com.clarifai.grpc.api.EvalInfo getDefaultEvalInfo() { return defaultEvalInfo_ == null ? com.clarifai.grpc.api.EvalInfo.getDefaultInstance() : defaultEvalInfo_; } /** *
   * The default evaluation info. Can be overwritten by eval request.
   * 
* * .clarifai.api.EvalInfo default_eval_info = 30; */ @java.lang.Override public com.clarifai.grpc.api.EvalInfoOrBuilder getDefaultEvalInfoOrBuilder() { return getDefaultEvalInfo(); } public static final int MODEL_TYPE_ID_FIELD_NUMBER = 14; private volatile java.lang.Object modelTypeId_; /** *
   * The ModelType.Id that is used for this model. This is used for all versions and you cannot
   * change model_type_id between versions of the same model.
   * 
* * string model_type_id = 14; * @return The modelTypeId. */ @java.lang.Override public java.lang.String getModelTypeId() { java.lang.Object ref = modelTypeId_; 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(); modelTypeId_ = s; return s; } } /** *
   * The ModelType.Id that is used for this model. This is used for all versions and you cannot
   * change model_type_id between versions of the same model.
   * 
* * string model_type_id = 14; * @return The bytes for modelTypeId. */ @java.lang.Override public com.google.protobuf.ByteString getModelTypeIdBytes() { java.lang.Object ref = modelTypeId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); modelTypeId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TASK_FIELD_NUMBER = 26; private volatile java.lang.Object task_; /** *
   * The task the model was trained to do
   * 
* * string task = 26; * @return The task. */ @java.lang.Override public java.lang.String getTask() { java.lang.Object ref = task_; 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(); task_ = s; return s; } } /** *
   * The task the model was trained to do
   * 
* * string task = 26; * @return The bytes for task. */ @java.lang.Override public com.google.protobuf.ByteString getTaskBytes() { java.lang.Object ref = task_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); task_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VISIBILITY_FIELD_NUMBER = 15; private com.clarifai.grpc.api.Visibility visibility_; /** *
   * The visibility field represents whether this message is privately/publicly visible.
   * To be visible to the public the App that contains it AND the User that contains the App must
   * also be publicly visible.
   * 
* * .clarifai.api.Visibility visibility = 15; * @return Whether the visibility field is set. */ @java.lang.Override public boolean hasVisibility() { return visibility_ != null; } /** *
   * The visibility field represents whether this message is privately/publicly visible.
   * To be visible to the public the App that contains it AND the User that contains the App must
   * also be publicly visible.
   * 
* * .clarifai.api.Visibility visibility = 15; * @return The visibility. */ @java.lang.Override public com.clarifai.grpc.api.Visibility getVisibility() { return visibility_ == null ? com.clarifai.grpc.api.Visibility.getDefaultInstance() : visibility_; } /** *
   * The visibility field represents whether this message is privately/publicly visible.
   * To be visible to the public the App that contains it AND the User that contains the App must
   * also be publicly visible.
   * 
* * .clarifai.api.Visibility visibility = 15; */ @java.lang.Override public com.clarifai.grpc.api.VisibilityOrBuilder getVisibilityOrBuilder() { return getVisibility(); } public static final int DESCRIPTION_FIELD_NUMBER = 16; private volatile java.lang.Object description_; /** *
   * Short description about this model
   * 
* * string description = 16; * @return The description. */ @java.lang.Override 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; } } /** *
   * Short description about this model
   * 
* * string description = 16; * @return The bytes for description. */ @java.lang.Override 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 METADATA_FIELD_NUMBER = 17; private com.google.protobuf.Struct metadata_; /** *
   * To handle arbitrary json metadata you can use a struct field:
   * https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
   * 
* * .google.protobuf.Struct metadata = 17; * @return Whether the metadata field is set. */ @java.lang.Override public boolean hasMetadata() { return metadata_ != null; } /** *
   * To handle arbitrary json metadata you can use a struct field:
   * https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
   * 
* * .google.protobuf.Struct metadata = 17; * @return The metadata. */ @java.lang.Override public com.google.protobuf.Struct getMetadata() { return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; } /** *
   * To handle arbitrary json metadata you can use a struct field:
   * https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
   * 
* * .google.protobuf.Struct metadata = 17; */ @java.lang.Override public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { return getMetadata(); } public static final int PRESETS_FIELD_NUMBER = 27; private com.google.protobuf.Struct presets_; /** * .google.protobuf.Struct presets = 27; * @return Whether the presets field is set. */ @java.lang.Override public boolean hasPresets() { return presets_ != null; } /** * .google.protobuf.Struct presets = 27; * @return The presets. */ @java.lang.Override public com.google.protobuf.Struct getPresets() { return presets_ == null ? com.google.protobuf.Struct.getDefaultInstance() : presets_; } /** * .google.protobuf.Struct presets = 27; */ @java.lang.Override public com.google.protobuf.StructOrBuilder getPresetsOrBuilder() { return getPresets(); } public static final int NOTES_FIELD_NUMBER = 18; private volatile java.lang.Object notes_; /** *
   * Notes for the model
   * This field should be used for in-depth notes and supports up to 64Kbs.
   * 
* * string notes = 18; * @return The notes. */ @java.lang.Override public java.lang.String getNotes() { java.lang.Object ref = notes_; 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(); notes_ = s; return s; } } /** *
   * Notes for the model
   * This field should be used for in-depth notes and supports up to 64Kbs.
   * 
* * string notes = 18; * @return The bytes for notes. */ @java.lang.Override public com.google.protobuf.ByteString getNotesBytes() { java.lang.Object ref = notes_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); notes_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TOOLKITS_FIELD_NUMBER = 20; private com.google.protobuf.LazyStringList toolkits_; /** *
   * Tags from toolkits category
   * 
* * repeated string toolkits = 20 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @return A list containing the toolkits. */ public com.google.protobuf.ProtocolStringList getToolkitsList() { return toolkits_; } /** *
   * Tags from toolkits category
   * 
* * repeated string toolkits = 20 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @return The count of toolkits. */ public int getToolkitsCount() { return toolkits_.size(); } /** *
   * Tags from toolkits category
   * 
* * repeated string toolkits = 20 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param index The index of the element to return. * @return The toolkits at the given index. */ public java.lang.String getToolkits(int index) { return toolkits_.get(index); } /** *
   * Tags from toolkits category
   * 
* * repeated string toolkits = 20 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param index The index of the value to return. * @return The bytes of the toolkits at the given index. */ public com.google.protobuf.ByteString getToolkitsBytes(int index) { return toolkits_.getByteString(index); } public static final int USE_CASES_FIELD_NUMBER = 21; private com.google.protobuf.LazyStringList useCases_; /** *
   * Tags from use_cases category
   * 
* * repeated string use_cases = 21 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @return A list containing the useCases. */ public com.google.protobuf.ProtocolStringList getUseCasesList() { return useCases_; } /** *
   * Tags from use_cases category
   * 
* * repeated string use_cases = 21 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @return The count of useCases. */ public int getUseCasesCount() { return useCases_.size(); } /** *
   * Tags from use_cases category
   * 
* * repeated string use_cases = 21 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param index The index of the element to return. * @return The useCases at the given index. */ public java.lang.String getUseCases(int index) { return useCases_.get(index); } /** *
   * Tags from use_cases category
   * 
* * repeated string use_cases = 21 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param index The index of the value to return. * @return The bytes of the useCases at the given index. */ public com.google.protobuf.ByteString getUseCasesBytes(int index) { return useCases_.getByteString(index); } public static final int LANGUAGES_FIELD_NUMBER = 25; private com.google.protobuf.LazyStringList languages_; /** *
   * Tags from languages category.
   * 
* * repeated string languages = 25 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @return A list containing the languages. */ public com.google.protobuf.ProtocolStringList getLanguagesList() { return languages_; } /** *
   * Tags from languages category.
   * 
* * repeated string languages = 25 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @return The count of languages. */ public int getLanguagesCount() { return languages_.size(); } /** *
   * Tags from languages category.
   * 
* * repeated string languages = 25 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param index The index of the element to return. * @return The languages at the given index. */ public java.lang.String getLanguages(int index) { return languages_.get(index); } /** *
   * Tags from languages category.
   * 
* * repeated string languages = 25 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param index The index of the value to return. * @return The bytes of the languages at the given index. */ public com.google.protobuf.ByteString getLanguagesBytes(int index) { return languages_.getByteString(index); } public static final int LANGUAGES_FULL_FIELD_NUMBER = 31; private java.util.List languagesFull_; /** *
   * Tags from languages category with names, only used in responses.
   * 
* * repeated .clarifai.api.FullTag languages_full = 31 [(.clarifai.api.utils.cl_show_if_empty) = true]; */ @java.lang.Override public java.util.List getLanguagesFullList() { return languagesFull_; } /** *
   * Tags from languages category with names, only used in responses.
   * 
* * repeated .clarifai.api.FullTag languages_full = 31 [(.clarifai.api.utils.cl_show_if_empty) = true]; */ @java.lang.Override public java.util.List getLanguagesFullOrBuilderList() { return languagesFull_; } /** *
   * Tags from languages category with names, only used in responses.
   * 
* * repeated .clarifai.api.FullTag languages_full = 31 [(.clarifai.api.utils.cl_show_if_empty) = true]; */ @java.lang.Override public int getLanguagesFullCount() { return languagesFull_.size(); } /** *
   * Tags from languages category with names, only used in responses.
   * 
* * repeated .clarifai.api.FullTag languages_full = 31 [(.clarifai.api.utils.cl_show_if_empty) = true]; */ @java.lang.Override public com.clarifai.grpc.api.FullTag getLanguagesFull(int index) { return languagesFull_.get(index); } /** *
   * Tags from languages category with names, only used in responses.
   * 
* * repeated .clarifai.api.FullTag languages_full = 31 [(.clarifai.api.utils.cl_show_if_empty) = true]; */ @java.lang.Override public com.clarifai.grpc.api.FullTagOrBuilder getLanguagesFullOrBuilder( int index) { return languagesFull_.get(index); } public static final int CHECK_CONSENTS_FIELD_NUMBER = 32; private com.google.protobuf.LazyStringList checkConsents_; /** * repeated string check_consents = 32 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @return A list containing the checkConsents. */ public com.google.protobuf.ProtocolStringList getCheckConsentsList() { return checkConsents_; } /** * repeated string check_consents = 32 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @return The count of checkConsents. */ public int getCheckConsentsCount() { return checkConsents_.size(); } /** * repeated string check_consents = 32 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param index The index of the element to return. * @return The checkConsents at the given index. */ public java.lang.String getCheckConsents(int index) { return checkConsents_.get(index); } /** * repeated string check_consents = 32 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param index The index of the value to return. * @return The bytes of the checkConsents at the given index. */ public com.google.protobuf.ByteString getCheckConsentsBytes(int index) { return checkConsents_.getByteString(index); } public static final int IS_STARRED_FIELD_NUMBER = 22; private boolean isStarred_; /** *
   * Is starred by the requesting user (only showed on get/list requests)
   * Please use PostModelStars/DeleteModelStars endpoints to star/unstar a model
   * 
* * bool is_starred = 22; * @return The isStarred. */ @java.lang.Override public boolean getIsStarred() { return isStarred_; } public static final int STAR_COUNT_FIELD_NUMBER = 23; private int starCount_; /** *
   * How many users have starred the model (only showed on get/list requests)
   * Computed value, not editable
   * 
* * int32 star_count = 23; * @return The starCount. */ @java.lang.Override public int getStarCount() { return starCount_; } public static final int WORKFLOW_RECOMMENDED_FIELD_NUMBER = 29; private com.google.protobuf.BoolValue workflowRecommended_; /** *
   * Whether it's recommended that this model is used within a workflow
   * 
* * .google.protobuf.BoolValue workflow_recommended = 29; * @return Whether the workflowRecommended field is set. */ @java.lang.Override public boolean hasWorkflowRecommended() { return workflowRecommended_ != null; } /** *
   * Whether it's recommended that this model is used within a workflow
   * 
* * .google.protobuf.BoolValue workflow_recommended = 29; * @return The workflowRecommended. */ @java.lang.Override public com.google.protobuf.BoolValue getWorkflowRecommended() { return workflowRecommended_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : workflowRecommended_; } /** *
   * Whether it's recommended that this model is used within a workflow
   * 
* * .google.protobuf.BoolValue workflow_recommended = 29; */ @java.lang.Override public com.google.protobuf.BoolValueOrBuilder getWorkflowRecommendedOrBuilder() { return getWorkflowRecommended(); } public static final int BOOKMARK_ORIGIN_FIELD_NUMBER = 33; private com.clarifai.grpc.api.BookmarkOrigin bookmarkOrigin_; /** *
   * bookmark info. When set, this model is a bookmarked model of this app.
   * Info in this field will allow you to find/access original model.
   * 
* * .clarifai.api.BookmarkOrigin bookmark_origin = 33; * @return Whether the bookmarkOrigin field is set. */ @java.lang.Override public boolean hasBookmarkOrigin() { return bookmarkOrigin_ != null; } /** *
   * bookmark info. When set, this model is a bookmarked model of this app.
   * Info in this field will allow you to find/access original model.
   * 
* * .clarifai.api.BookmarkOrigin bookmark_origin = 33; * @return The bookmarkOrigin. */ @java.lang.Override public com.clarifai.grpc.api.BookmarkOrigin getBookmarkOrigin() { return bookmarkOrigin_ == null ? com.clarifai.grpc.api.BookmarkOrigin.getDefaultInstance() : bookmarkOrigin_; } /** *
   * bookmark info. When set, this model is a bookmarked model of this app.
   * Info in this field will allow you to find/access original model.
   * 
* * .clarifai.api.BookmarkOrigin bookmark_origin = 33; */ @java.lang.Override public com.clarifai.grpc.api.BookmarkOriginOrBuilder getBookmarkOriginOrBuilder() { return getBookmarkOrigin(); } public static final int IMAGE_FIELD_NUMBER = 34; private com.clarifai.grpc.api.Image image_; /** *
   * Representative image for this model
   * 
* * .clarifai.api.Image image = 34; * @return Whether the image field is set. */ @java.lang.Override public boolean hasImage() { return image_ != null; } /** *
   * Representative image for this model
   * 
* * .clarifai.api.Image image = 34; * @return The image. */ @java.lang.Override public com.clarifai.grpc.api.Image getImage() { return image_ == null ? com.clarifai.grpc.api.Image.getDefaultInstance() : image_; } /** *
   * Representative image for this model
   * 
* * .clarifai.api.Image image = 34; */ @java.lang.Override public com.clarifai.grpc.api.ImageOrBuilder getImageOrBuilder() { return getImage(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } if (createdAt_ != null) { output.writeMessage(3, getCreatedAt()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(appId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, appId_); } if (outputInfo_ != null) { output.writeMessage(5, getOutputInfo()); } if (modelVersion_ != null) { output.writeMessage(6, getModelVersion()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, displayName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, userId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelTypeId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, modelTypeId_); } if (visibility_ != null) { output.writeMessage(15, getVisibility()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 16, description_); } if (metadata_ != null) { output.writeMessage(17, getMetadata()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(notes_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 18, notes_); } if (modifiedAt_ != null) { output.writeMessage(19, getModifiedAt()); } for (int i = 0; i < toolkits_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 20, toolkits_.getRaw(i)); } for (int i = 0; i < useCases_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 21, useCases_.getRaw(i)); } if (isStarred_ != false) { output.writeBool(22, isStarred_); } if (starCount_ != 0) { output.writeInt32(23, starCount_); } for (int i = 0; i < languages_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 25, languages_.getRaw(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(task_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 26, task_); } if (presets_ != null) { output.writeMessage(27, getPresets()); } if (workflowRecommended_ != null) { output.writeMessage(29, getWorkflowRecommended()); } if (defaultEvalInfo_ != null) { output.writeMessage(30, getDefaultEvalInfo()); } for (int i = 0; i < languagesFull_.size(); i++) { output.writeMessage(31, languagesFull_.get(i)); } for (int i = 0; i < checkConsents_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 32, checkConsents_.getRaw(i)); } if (bookmarkOrigin_ != null) { output.writeMessage(33, getBookmarkOrigin()); } if (image_ != null) { output.writeMessage(34, getImage()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } if (createdAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getCreatedAt()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(appId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, appId_); } if (outputInfo_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getOutputInfo()); } if (modelVersion_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getModelVersion()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, displayName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, userId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelTypeId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, modelTypeId_); } if (visibility_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, getVisibility()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, description_); } if (metadata_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(17, getMetadata()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(notes_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, notes_); } if (modifiedAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(19, getModifiedAt()); } { int dataSize = 0; for (int i = 0; i < toolkits_.size(); i++) { dataSize += computeStringSizeNoTag(toolkits_.getRaw(i)); } size += dataSize; size += 2 * getToolkitsList().size(); } { int dataSize = 0; for (int i = 0; i < useCases_.size(); i++) { dataSize += computeStringSizeNoTag(useCases_.getRaw(i)); } size += dataSize; size += 2 * getUseCasesList().size(); } if (isStarred_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(22, isStarred_); } if (starCount_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(23, starCount_); } { int dataSize = 0; for (int i = 0; i < languages_.size(); i++) { dataSize += computeStringSizeNoTag(languages_.getRaw(i)); } size += dataSize; size += 2 * getLanguagesList().size(); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(task_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(26, task_); } if (presets_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(27, getPresets()); } if (workflowRecommended_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(29, getWorkflowRecommended()); } if (defaultEvalInfo_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(30, getDefaultEvalInfo()); } for (int i = 0; i < languagesFull_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(31, languagesFull_.get(i)); } { int dataSize = 0; for (int i = 0; i < checkConsents_.size(); i++) { dataSize += computeStringSizeNoTag(checkConsents_.getRaw(i)); } size += dataSize; size += 2 * getCheckConsentsList().size(); } if (bookmarkOrigin_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(33, getBookmarkOrigin()); } if (image_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(34, getImage()); } 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.Model)) { return super.equals(obj); } com.clarifai.grpc.api.Model other = (com.clarifai.grpc.api.Model) obj; if (!getId() .equals(other.getId())) return false; if (!getName() .equals(other.getName())) return false; if (hasCreatedAt() != other.hasCreatedAt()) return false; if (hasCreatedAt()) { if (!getCreatedAt() .equals(other.getCreatedAt())) return false; } if (hasModifiedAt() != other.hasModifiedAt()) return false; if (hasModifiedAt()) { if (!getModifiedAt() .equals(other.getModifiedAt())) return false; } if (!getAppId() .equals(other.getAppId())) return false; if (hasOutputInfo() != other.hasOutputInfo()) return false; if (hasOutputInfo()) { if (!getOutputInfo() .equals(other.getOutputInfo())) return false; } if (hasModelVersion() != other.hasModelVersion()) return false; if (hasModelVersion()) { if (!getModelVersion() .equals(other.getModelVersion())) return false; } if (!getDisplayName() .equals(other.getDisplayName())) return false; if (!getUserId() .equals(other.getUserId())) return false; if (hasDefaultEvalInfo() != other.hasDefaultEvalInfo()) return false; if (hasDefaultEvalInfo()) { if (!getDefaultEvalInfo() .equals(other.getDefaultEvalInfo())) return false; } if (!getModelTypeId() .equals(other.getModelTypeId())) return false; if (!getTask() .equals(other.getTask())) return false; if (hasVisibility() != other.hasVisibility()) return false; if (hasVisibility()) { if (!getVisibility() .equals(other.getVisibility())) return false; } if (!getDescription() .equals(other.getDescription())) return false; if (hasMetadata() != other.hasMetadata()) return false; if (hasMetadata()) { if (!getMetadata() .equals(other.getMetadata())) return false; } if (hasPresets() != other.hasPresets()) return false; if (hasPresets()) { if (!getPresets() .equals(other.getPresets())) return false; } if (!getNotes() .equals(other.getNotes())) return false; if (!getToolkitsList() .equals(other.getToolkitsList())) return false; if (!getUseCasesList() .equals(other.getUseCasesList())) return false; if (!getLanguagesList() .equals(other.getLanguagesList())) return false; if (!getLanguagesFullList() .equals(other.getLanguagesFullList())) return false; if (!getCheckConsentsList() .equals(other.getCheckConsentsList())) return false; if (getIsStarred() != other.getIsStarred()) return false; if (getStarCount() != other.getStarCount()) return false; if (hasWorkflowRecommended() != other.hasWorkflowRecommended()) return false; if (hasWorkflowRecommended()) { if (!getWorkflowRecommended() .equals(other.getWorkflowRecommended())) return false; } if (hasBookmarkOrigin() != other.hasBookmarkOrigin()) return false; if (hasBookmarkOrigin()) { if (!getBookmarkOrigin() .equals(other.getBookmarkOrigin())) return false; } if (hasImage() != other.hasImage()) return false; if (hasImage()) { if (!getImage() .equals(other.getImage())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (hasCreatedAt()) { hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; hash = (53 * hash) + getCreatedAt().hashCode(); } if (hasModifiedAt()) { hash = (37 * hash) + MODIFIED_AT_FIELD_NUMBER; hash = (53 * hash) + getModifiedAt().hashCode(); } hash = (37 * hash) + APP_ID_FIELD_NUMBER; hash = (53 * hash) + getAppId().hashCode(); if (hasOutputInfo()) { hash = (37 * hash) + OUTPUT_INFO_FIELD_NUMBER; hash = (53 * hash) + getOutputInfo().hashCode(); } if (hasModelVersion()) { hash = (37 * hash) + MODEL_VERSION_FIELD_NUMBER; hash = (53 * hash) + getModelVersion().hashCode(); } hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getDisplayName().hashCode(); hash = (37 * hash) + USER_ID_FIELD_NUMBER; hash = (53 * hash) + getUserId().hashCode(); if (hasDefaultEvalInfo()) { hash = (37 * hash) + DEFAULT_EVAL_INFO_FIELD_NUMBER; hash = (53 * hash) + getDefaultEvalInfo().hashCode(); } hash = (37 * hash) + MODEL_TYPE_ID_FIELD_NUMBER; hash = (53 * hash) + getModelTypeId().hashCode(); hash = (37 * hash) + TASK_FIELD_NUMBER; hash = (53 * hash) + getTask().hashCode(); if (hasVisibility()) { hash = (37 * hash) + VISIBILITY_FIELD_NUMBER; hash = (53 * hash) + getVisibility().hashCode(); } hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); if (hasMetadata()) { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + getMetadata().hashCode(); } if (hasPresets()) { hash = (37 * hash) + PRESETS_FIELD_NUMBER; hash = (53 * hash) + getPresets().hashCode(); } hash = (37 * hash) + NOTES_FIELD_NUMBER; hash = (53 * hash) + getNotes().hashCode(); if (getToolkitsCount() > 0) { hash = (37 * hash) + TOOLKITS_FIELD_NUMBER; hash = (53 * hash) + getToolkitsList().hashCode(); } if (getUseCasesCount() > 0) { hash = (37 * hash) + USE_CASES_FIELD_NUMBER; hash = (53 * hash) + getUseCasesList().hashCode(); } if (getLanguagesCount() > 0) { hash = (37 * hash) + LANGUAGES_FIELD_NUMBER; hash = (53 * hash) + getLanguagesList().hashCode(); } if (getLanguagesFullCount() > 0) { hash = (37 * hash) + LANGUAGES_FULL_FIELD_NUMBER; hash = (53 * hash) + getLanguagesFullList().hashCode(); } if (getCheckConsentsCount() > 0) { hash = (37 * hash) + CHECK_CONSENTS_FIELD_NUMBER; hash = (53 * hash) + getCheckConsentsList().hashCode(); } hash = (37 * hash) + IS_STARRED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsStarred()); hash = (37 * hash) + STAR_COUNT_FIELD_NUMBER; hash = (53 * hash) + getStarCount(); if (hasWorkflowRecommended()) { hash = (37 * hash) + WORKFLOW_RECOMMENDED_FIELD_NUMBER; hash = (53 * hash) + getWorkflowRecommended().hashCode(); } if (hasBookmarkOrigin()) { hash = (37 * hash) + BOOKMARK_ORIGIN_FIELD_NUMBER; hash = (53 * hash) + getBookmarkOrigin().hashCode(); } if (hasImage()) { hash = (37 * hash) + IMAGE_FIELD_NUMBER; hash = (53 * hash) + getImage().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.clarifai.grpc.api.Model parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.Model 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.Model parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.Model 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.Model parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.Model parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clarifai.grpc.api.Model parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clarifai.grpc.api.Model 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.Model parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.clarifai.grpc.api.Model 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.Model parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clarifai.grpc.api.Model 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.Model 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; } /** *
   * This is the Model object which represents a created model in the platform.
   * Each model has a particular type denoted by the model_type_id.
   * When creating a Model with PostModels the following happens:
   *  - if the ModelType is trainable, then a new ModelVersion is created that is
   *    - UNTRAINED status by default
   *    - TRAINED status if a ModelVersion was included with PretrainedModelConfig in PostModels
   *  - if the ModelType is not trainable, then a new ModelVersion is created with TRAINED status.
   * To modify config settings like OutputInfo for the Model you an use PatchModels. This will
   * also create a new ModelVersion, potentially UNTRAINED following the same rules as above.
   * The fields that are patchable include Model.name, Model.display_name and Model.output_info
   * (except the Model.output_info.type and Model.output_info.type_ext).
   * 
* * Protobuf type {@code clarifai.api.Model} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:clarifai.api.Model) com.clarifai.grpc.api.ModelOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Model_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Model_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clarifai.grpc.api.Model.class, com.clarifai.grpc.api.Model.Builder.class); } // Construct using com.clarifai.grpc.api.Model.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getLanguagesFullFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); id_ = ""; name_ = ""; if (createdAtBuilder_ == null) { createdAt_ = null; } else { createdAt_ = null; createdAtBuilder_ = null; } if (modifiedAtBuilder_ == null) { modifiedAt_ = null; } else { modifiedAt_ = null; modifiedAtBuilder_ = null; } appId_ = ""; if (outputInfoBuilder_ == null) { outputInfo_ = null; } else { outputInfo_ = null; outputInfoBuilder_ = null; } if (modelVersionBuilder_ == null) { modelVersion_ = null; } else { modelVersion_ = null; modelVersionBuilder_ = null; } displayName_ = ""; userId_ = ""; if (defaultEvalInfoBuilder_ == null) { defaultEvalInfo_ = null; } else { defaultEvalInfo_ = null; defaultEvalInfoBuilder_ = null; } modelTypeId_ = ""; task_ = ""; if (visibilityBuilder_ == null) { visibility_ = null; } else { visibility_ = null; visibilityBuilder_ = null; } description_ = ""; if (metadataBuilder_ == null) { metadata_ = null; } else { metadata_ = null; metadataBuilder_ = null; } if (presetsBuilder_ == null) { presets_ = null; } else { presets_ = null; presetsBuilder_ = null; } notes_ = ""; toolkits_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); useCases_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); languages_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); if (languagesFullBuilder_ == null) { languagesFull_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { languagesFullBuilder_.clear(); } checkConsents_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); isStarred_ = false; starCount_ = 0; if (workflowRecommendedBuilder_ == null) { workflowRecommended_ = null; } else { workflowRecommended_ = null; workflowRecommendedBuilder_ = null; } if (bookmarkOriginBuilder_ == null) { bookmarkOrigin_ = null; } else { bookmarkOrigin_ = null; bookmarkOriginBuilder_ = null; } if (imageBuilder_ == null) { image_ = null; } else { image_ = null; imageBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Model_descriptor; } @java.lang.Override public com.clarifai.grpc.api.Model getDefaultInstanceForType() { return com.clarifai.grpc.api.Model.getDefaultInstance(); } @java.lang.Override public com.clarifai.grpc.api.Model build() { com.clarifai.grpc.api.Model result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.clarifai.grpc.api.Model buildPartial() { com.clarifai.grpc.api.Model result = new com.clarifai.grpc.api.Model(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.name_ = name_; if (createdAtBuilder_ == null) { result.createdAt_ = createdAt_; } else { result.createdAt_ = createdAtBuilder_.build(); } if (modifiedAtBuilder_ == null) { result.modifiedAt_ = modifiedAt_; } else { result.modifiedAt_ = modifiedAtBuilder_.build(); } result.appId_ = appId_; if (outputInfoBuilder_ == null) { result.outputInfo_ = outputInfo_; } else { result.outputInfo_ = outputInfoBuilder_.build(); } if (modelVersionBuilder_ == null) { result.modelVersion_ = modelVersion_; } else { result.modelVersion_ = modelVersionBuilder_.build(); } result.displayName_ = displayName_; result.userId_ = userId_; if (defaultEvalInfoBuilder_ == null) { result.defaultEvalInfo_ = defaultEvalInfo_; } else { result.defaultEvalInfo_ = defaultEvalInfoBuilder_.build(); } result.modelTypeId_ = modelTypeId_; result.task_ = task_; if (visibilityBuilder_ == null) { result.visibility_ = visibility_; } else { result.visibility_ = visibilityBuilder_.build(); } result.description_ = description_; if (metadataBuilder_ == null) { result.metadata_ = metadata_; } else { result.metadata_ = metadataBuilder_.build(); } if (presetsBuilder_ == null) { result.presets_ = presets_; } else { result.presets_ = presetsBuilder_.build(); } result.notes_ = notes_; if (((bitField0_ & 0x00000001) != 0)) { toolkits_ = toolkits_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.toolkits_ = toolkits_; if (((bitField0_ & 0x00000002) != 0)) { useCases_ = useCases_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.useCases_ = useCases_; if (((bitField0_ & 0x00000004) != 0)) { languages_ = languages_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000004); } result.languages_ = languages_; if (languagesFullBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { languagesFull_ = java.util.Collections.unmodifiableList(languagesFull_); bitField0_ = (bitField0_ & ~0x00000008); } result.languagesFull_ = languagesFull_; } else { result.languagesFull_ = languagesFullBuilder_.build(); } if (((bitField0_ & 0x00000010) != 0)) { checkConsents_ = checkConsents_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000010); } result.checkConsents_ = checkConsents_; result.isStarred_ = isStarred_; result.starCount_ = starCount_; if (workflowRecommendedBuilder_ == null) { result.workflowRecommended_ = workflowRecommended_; } else { result.workflowRecommended_ = workflowRecommendedBuilder_.build(); } if (bookmarkOriginBuilder_ == null) { result.bookmarkOrigin_ = bookmarkOrigin_; } else { result.bookmarkOrigin_ = bookmarkOriginBuilder_.build(); } if (imageBuilder_ == null) { result.image_ = image_; } else { result.image_ = imageBuilder_.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.Model) { return mergeFrom((com.clarifai.grpc.api.Model)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.clarifai.grpc.api.Model other) { if (other == com.clarifai.grpc.api.Model.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.hasCreatedAt()) { mergeCreatedAt(other.getCreatedAt()); } if (other.hasModifiedAt()) { mergeModifiedAt(other.getModifiedAt()); } if (!other.getAppId().isEmpty()) { appId_ = other.appId_; onChanged(); } if (other.hasOutputInfo()) { mergeOutputInfo(other.getOutputInfo()); } if (other.hasModelVersion()) { mergeModelVersion(other.getModelVersion()); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; onChanged(); } if (!other.getUserId().isEmpty()) { userId_ = other.userId_; onChanged(); } if (other.hasDefaultEvalInfo()) { mergeDefaultEvalInfo(other.getDefaultEvalInfo()); } if (!other.getModelTypeId().isEmpty()) { modelTypeId_ = other.modelTypeId_; onChanged(); } if (!other.getTask().isEmpty()) { task_ = other.task_; onChanged(); } if (other.hasVisibility()) { mergeVisibility(other.getVisibility()); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } if (other.hasPresets()) { mergePresets(other.getPresets()); } if (!other.getNotes().isEmpty()) { notes_ = other.notes_; onChanged(); } if (!other.toolkits_.isEmpty()) { if (toolkits_.isEmpty()) { toolkits_ = other.toolkits_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureToolkitsIsMutable(); toolkits_.addAll(other.toolkits_); } onChanged(); } if (!other.useCases_.isEmpty()) { if (useCases_.isEmpty()) { useCases_ = other.useCases_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureUseCasesIsMutable(); useCases_.addAll(other.useCases_); } onChanged(); } if (!other.languages_.isEmpty()) { if (languages_.isEmpty()) { languages_ = other.languages_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureLanguagesIsMutable(); languages_.addAll(other.languages_); } onChanged(); } if (languagesFullBuilder_ == null) { if (!other.languagesFull_.isEmpty()) { if (languagesFull_.isEmpty()) { languagesFull_ = other.languagesFull_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureLanguagesFullIsMutable(); languagesFull_.addAll(other.languagesFull_); } onChanged(); } } else { if (!other.languagesFull_.isEmpty()) { if (languagesFullBuilder_.isEmpty()) { languagesFullBuilder_.dispose(); languagesFullBuilder_ = null; languagesFull_ = other.languagesFull_; bitField0_ = (bitField0_ & ~0x00000008); languagesFullBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLanguagesFullFieldBuilder() : null; } else { languagesFullBuilder_.addAllMessages(other.languagesFull_); } } } if (!other.checkConsents_.isEmpty()) { if (checkConsents_.isEmpty()) { checkConsents_ = other.checkConsents_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureCheckConsentsIsMutable(); checkConsents_.addAll(other.checkConsents_); } onChanged(); } if (other.getIsStarred() != false) { setIsStarred(other.getIsStarred()); } if (other.getStarCount() != 0) { setStarCount(other.getStarCount()); } if (other.hasWorkflowRecommended()) { mergeWorkflowRecommended(other.getWorkflowRecommended()); } if (other.hasBookmarkOrigin()) { mergeBookmarkOrigin(other.getBookmarkOrigin()); } if (other.hasImage()) { mergeImage(other.getImage()); } 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.Model parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.clarifai.grpc.api.Model) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object id_ = ""; /** *
     * The model's ID. Must be unique within a particular app and URL-friendly.
     * 
* * string id = 1; * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The model's ID. Must be unique within a particular app and URL-friendly.
     * 
* * string id = 1; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The model's ID. Must be unique within a particular app and URL-friendly.
     * 
* * string id = 1; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** *
     * The model's ID. Must be unique within a particular app and URL-friendly.
     * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
     * The model's ID. Must be unique within a particular app and URL-friendly.
     * 
* * string id = 1; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; onChanged(); return this; } private java.lang.Object name_ = ""; /** *
     * DEPRECATED: Please use the model id to name the model.
     * 
* * string name = 2 [deprecated = true]; * @deprecated clarifai.api.Model.name is deprecated. * See proto/clarifai/api/resources.proto;l=1328 * @return The name. */ @java.lang.Deprecated public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * DEPRECATED: Please use the model id to name the model.
     * 
* * string name = 2 [deprecated = true]; * @deprecated clarifai.api.Model.name is deprecated. * See proto/clarifai/api/resources.proto;l=1328 * @return The bytes for name. */ @java.lang.Deprecated public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * DEPRECATED: Please use the model id to name the model.
     * 
* * string name = 2 [deprecated = true]; * @deprecated clarifai.api.Model.name is deprecated. * See proto/clarifai/api/resources.proto;l=1328 * @param value The name to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
     * DEPRECATED: Please use the model id to name the model.
     * 
* * string name = 2 [deprecated = true]; * @deprecated clarifai.api.Model.name is deprecated. * See proto/clarifai/api/resources.proto;l=1328 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
     * DEPRECATED: Please use the model id to name the model.
     * 
* * string name = 2 [deprecated = true]; * @deprecated clarifai.api.Model.name is deprecated. * See proto/clarifai/api/resources.proto;l=1328 * @param value The bytes for name to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private com.google.protobuf.Timestamp createdAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; /** *
     * When the model was created. We follow the XXXX timestamp
     * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
     * "2006-01-02T15:04:05.999999Z" so you can expect results like
     *  the following from the API:
     *  "2017-04-11T21:50:50.223962Z"
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ public boolean hasCreatedAt() { return createdAtBuilder_ != null || createdAt_ != null; } /** *
     * When the model was created. We follow the XXXX timestamp
     * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
     * "2006-01-02T15:04:05.999999Z" so you can expect results like
     *  the following from the API:
     *  "2017-04-11T21:50:50.223962Z"
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return The createdAt. */ public com.google.protobuf.Timestamp getCreatedAt() { if (createdAtBuilder_ == null) { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } else { return createdAtBuilder_.getMessage(); } } /** *
     * When the model was created. We follow the XXXX timestamp
     * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
     * "2006-01-02T15:04:05.999999Z" so you can expect results like
     *  the following from the API:
     *  "2017-04-11T21:50:50.223962Z"
     * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder setCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createdAt_ = value; onChanged(); } else { createdAtBuilder_.setMessage(value); } return this; } /** *
     * When the model was created. We follow the XXXX timestamp
     * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
     * "2006-01-02T15:04:05.999999Z" so you can expect results like
     *  the following from the API:
     *  "2017-04-11T21:50:50.223962Z"
     * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder setCreatedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (createdAtBuilder_ == null) { createdAt_ = builderForValue.build(); onChanged(); } else { createdAtBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * When the model was created. We follow the XXXX timestamp
     * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
     * "2006-01-02T15:04:05.999999Z" so you can expect results like
     *  the following from the API:
     *  "2017-04-11T21:50:50.223962Z"
     * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (createdAt_ != null) { createdAt_ = com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial(); } else { createdAt_ = value; } onChanged(); } else { createdAtBuilder_.mergeFrom(value); } return this; } /** *
     * When the model was created. We follow the XXXX timestamp
     * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
     * "2006-01-02T15:04:05.999999Z" so you can expect results like
     *  the following from the API:
     *  "2017-04-11T21:50:50.223962Z"
     * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder clearCreatedAt() { if (createdAtBuilder_ == null) { createdAt_ = null; onChanged(); } else { createdAt_ = null; createdAtBuilder_ = null; } return this; } /** *
     * When the model was created. We follow the XXXX timestamp
     * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
     * "2006-01-02T15:04:05.999999Z" so you can expect results like
     *  the following from the API:
     *  "2017-04-11T21:50:50.223962Z"
     * 
* * .google.protobuf.Timestamp created_at = 3; */ public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { onChanged(); return getCreatedAtFieldBuilder().getBuilder(); } /** *
     * When the model was created. We follow the XXXX timestamp
     * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
     * "2006-01-02T15:04:05.999999Z" so you can expect results like
     *  the following from the API:
     *  "2017-04-11T21:50:50.223962Z"
     * 
* * .google.protobuf.Timestamp created_at = 3; */ public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { if (createdAtBuilder_ != null) { return createdAtBuilder_.getMessageOrBuilder(); } else { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } } /** *
     * When the model was created. We follow the XXXX timestamp
     * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
     * "2006-01-02T15:04:05.999999Z" so you can expect results like
     *  the following from the API:
     *  "2017-04-11T21:50:50.223962Z"
     * 
* * .google.protobuf.Timestamp created_at = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreatedAtFieldBuilder() { if (createdAtBuilder_ == null) { createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCreatedAt(), getParentForChildren(), isClean()); createdAt_ = null; } return createdAtBuilder_; } private com.google.protobuf.Timestamp modifiedAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> modifiedAtBuilder_; /** *
     * When was the most recent model version created at
     * 
* * .google.protobuf.Timestamp modified_at = 19; * @return Whether the modifiedAt field is set. */ public boolean hasModifiedAt() { return modifiedAtBuilder_ != null || modifiedAt_ != null; } /** *
     * When was the most recent model version created at
     * 
* * .google.protobuf.Timestamp modified_at = 19; * @return The modifiedAt. */ public com.google.protobuf.Timestamp getModifiedAt() { if (modifiedAtBuilder_ == null) { return modifiedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modifiedAt_; } else { return modifiedAtBuilder_.getMessage(); } } /** *
     * When was the most recent model version created at
     * 
* * .google.protobuf.Timestamp modified_at = 19; */ public Builder setModifiedAt(com.google.protobuf.Timestamp value) { if (modifiedAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } modifiedAt_ = value; onChanged(); } else { modifiedAtBuilder_.setMessage(value); } return this; } /** *
     * When was the most recent model version created at
     * 
* * .google.protobuf.Timestamp modified_at = 19; */ public Builder setModifiedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (modifiedAtBuilder_ == null) { modifiedAt_ = builderForValue.build(); onChanged(); } else { modifiedAtBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * When was the most recent model version created at
     * 
* * .google.protobuf.Timestamp modified_at = 19; */ public Builder mergeModifiedAt(com.google.protobuf.Timestamp value) { if (modifiedAtBuilder_ == null) { if (modifiedAt_ != null) { modifiedAt_ = com.google.protobuf.Timestamp.newBuilder(modifiedAt_).mergeFrom(value).buildPartial(); } else { modifiedAt_ = value; } onChanged(); } else { modifiedAtBuilder_.mergeFrom(value); } return this; } /** *
     * When was the most recent model version created at
     * 
* * .google.protobuf.Timestamp modified_at = 19; */ public Builder clearModifiedAt() { if (modifiedAtBuilder_ == null) { modifiedAt_ = null; onChanged(); } else { modifiedAt_ = null; modifiedAtBuilder_ = null; } return this; } /** *
     * When was the most recent model version created at
     * 
* * .google.protobuf.Timestamp modified_at = 19; */ public com.google.protobuf.Timestamp.Builder getModifiedAtBuilder() { onChanged(); return getModifiedAtFieldBuilder().getBuilder(); } /** *
     * When was the most recent model version created at
     * 
* * .google.protobuf.Timestamp modified_at = 19; */ public com.google.protobuf.TimestampOrBuilder getModifiedAtOrBuilder() { if (modifiedAtBuilder_ != null) { return modifiedAtBuilder_.getMessageOrBuilder(); } else { return modifiedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modifiedAt_; } } /** *
     * When was the most recent model version created at
     * 
* * .google.protobuf.Timestamp modified_at = 19; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getModifiedAtFieldBuilder() { if (modifiedAtBuilder_ == null) { modifiedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getModifiedAt(), getParentForChildren(), isClean()); modifiedAt_ = null; } return modifiedAtBuilder_; } private java.lang.Object appId_ = ""; /** *
     * The app the model belongs to.
     * 
* * string app_id = 4 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @return The appId. */ public java.lang.String getAppId() { java.lang.Object ref = appId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); appId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The app the model belongs to.
     * 
* * string app_id = 4 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @return The bytes for appId. */ public com.google.protobuf.ByteString getAppIdBytes() { java.lang.Object ref = appId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); appId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The app the model belongs to.
     * 
* * string app_id = 4 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param value The appId to set. * @return This builder for chaining. */ public Builder setAppId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } appId_ = value; onChanged(); return this; } /** *
     * The app the model belongs to.
     * 
* * string app_id = 4 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @return This builder for chaining. */ public Builder clearAppId() { appId_ = getDefaultInstance().getAppId(); onChanged(); return this; } /** *
     * The app the model belongs to.
     * 
* * string app_id = 4 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param value The bytes for appId to set. * @return This builder for chaining. */ public Builder setAppIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); appId_ = value; onChanged(); return this; } private com.clarifai.grpc.api.OutputInfo outputInfo_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.OutputInfo, com.clarifai.grpc.api.OutputInfo.Builder, com.clarifai.grpc.api.OutputInfoOrBuilder> outputInfoBuilder_; /** *
     * Info about the model's output and configuration.
     * DEPRECATED: Will be moved to model version
     * 
* * .clarifai.api.OutputInfo output_info = 5 [deprecated = true]; * @deprecated clarifai.api.Model.output_info is deprecated. * See proto/clarifai/api/resources.proto;l=1341 * @return Whether the outputInfo field is set. */ @java.lang.Deprecated public boolean hasOutputInfo() { return outputInfoBuilder_ != null || outputInfo_ != null; } /** *
     * Info about the model's output and configuration.
     * DEPRECATED: Will be moved to model version
     * 
* * .clarifai.api.OutputInfo output_info = 5 [deprecated = true]; * @deprecated clarifai.api.Model.output_info is deprecated. * See proto/clarifai/api/resources.proto;l=1341 * @return The outputInfo. */ @java.lang.Deprecated public com.clarifai.grpc.api.OutputInfo getOutputInfo() { if (outputInfoBuilder_ == null) { return outputInfo_ == null ? com.clarifai.grpc.api.OutputInfo.getDefaultInstance() : outputInfo_; } else { return outputInfoBuilder_.getMessage(); } } /** *
     * Info about the model's output and configuration.
     * DEPRECATED: Will be moved to model version
     * 
* * .clarifai.api.OutputInfo output_info = 5 [deprecated = true]; */ @java.lang.Deprecated public Builder setOutputInfo(com.clarifai.grpc.api.OutputInfo value) { if (outputInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } outputInfo_ = value; onChanged(); } else { outputInfoBuilder_.setMessage(value); } return this; } /** *
     * Info about the model's output and configuration.
     * DEPRECATED: Will be moved to model version
     * 
* * .clarifai.api.OutputInfo output_info = 5 [deprecated = true]; */ @java.lang.Deprecated public Builder setOutputInfo( com.clarifai.grpc.api.OutputInfo.Builder builderForValue) { if (outputInfoBuilder_ == null) { outputInfo_ = builderForValue.build(); onChanged(); } else { outputInfoBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Info about the model's output and configuration.
     * DEPRECATED: Will be moved to model version
     * 
* * .clarifai.api.OutputInfo output_info = 5 [deprecated = true]; */ @java.lang.Deprecated public Builder mergeOutputInfo(com.clarifai.grpc.api.OutputInfo value) { if (outputInfoBuilder_ == null) { if (outputInfo_ != null) { outputInfo_ = com.clarifai.grpc.api.OutputInfo.newBuilder(outputInfo_).mergeFrom(value).buildPartial(); } else { outputInfo_ = value; } onChanged(); } else { outputInfoBuilder_.mergeFrom(value); } return this; } /** *
     * Info about the model's output and configuration.
     * DEPRECATED: Will be moved to model version
     * 
* * .clarifai.api.OutputInfo output_info = 5 [deprecated = true]; */ @java.lang.Deprecated public Builder clearOutputInfo() { if (outputInfoBuilder_ == null) { outputInfo_ = null; onChanged(); } else { outputInfo_ = null; outputInfoBuilder_ = null; } return this; } /** *
     * Info about the model's output and configuration.
     * DEPRECATED: Will be moved to model version
     * 
* * .clarifai.api.OutputInfo output_info = 5 [deprecated = true]; */ @java.lang.Deprecated public com.clarifai.grpc.api.OutputInfo.Builder getOutputInfoBuilder() { onChanged(); return getOutputInfoFieldBuilder().getBuilder(); } /** *
     * Info about the model's output and configuration.
     * DEPRECATED: Will be moved to model version
     * 
* * .clarifai.api.OutputInfo output_info = 5 [deprecated = true]; */ @java.lang.Deprecated public com.clarifai.grpc.api.OutputInfoOrBuilder getOutputInfoOrBuilder() { if (outputInfoBuilder_ != null) { return outputInfoBuilder_.getMessageOrBuilder(); } else { return outputInfo_ == null ? com.clarifai.grpc.api.OutputInfo.getDefaultInstance() : outputInfo_; } } /** *
     * Info about the model's output and configuration.
     * DEPRECATED: Will be moved to model version
     * 
* * .clarifai.api.OutputInfo output_info = 5 [deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.OutputInfo, com.clarifai.grpc.api.OutputInfo.Builder, com.clarifai.grpc.api.OutputInfoOrBuilder> getOutputInfoFieldBuilder() { if (outputInfoBuilder_ == null) { outputInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.OutputInfo, com.clarifai.grpc.api.OutputInfo.Builder, com.clarifai.grpc.api.OutputInfoOrBuilder>( getOutputInfo(), getParentForChildren(), isClean()); outputInfo_ = null; } return outputInfoBuilder_; } private com.clarifai.grpc.api.ModelVersion modelVersion_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.ModelVersion, com.clarifai.grpc.api.ModelVersion.Builder, com.clarifai.grpc.api.ModelVersionOrBuilder> modelVersionBuilder_; /** *
     * A particular version of the model, e.g., to specify the version when creating a workflow or
     * when listing Models to include the latest ModelVersion of the model in the response.
     * 
* * .clarifai.api.ModelVersion model_version = 6; * @return Whether the modelVersion field is set. */ public boolean hasModelVersion() { return modelVersionBuilder_ != null || modelVersion_ != null; } /** *
     * A particular version of the model, e.g., to specify the version when creating a workflow or
     * when listing Models to include the latest ModelVersion of the model in the response.
     * 
* * .clarifai.api.ModelVersion model_version = 6; * @return The modelVersion. */ public com.clarifai.grpc.api.ModelVersion getModelVersion() { if (modelVersionBuilder_ == null) { return modelVersion_ == null ? com.clarifai.grpc.api.ModelVersion.getDefaultInstance() : modelVersion_; } else { return modelVersionBuilder_.getMessage(); } } /** *
     * A particular version of the model, e.g., to specify the version when creating a workflow or
     * when listing Models to include the latest ModelVersion of the model in the response.
     * 
* * .clarifai.api.ModelVersion model_version = 6; */ public Builder setModelVersion(com.clarifai.grpc.api.ModelVersion value) { if (modelVersionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } modelVersion_ = value; onChanged(); } else { modelVersionBuilder_.setMessage(value); } return this; } /** *
     * A particular version of the model, e.g., to specify the version when creating a workflow or
     * when listing Models to include the latest ModelVersion of the model in the response.
     * 
* * .clarifai.api.ModelVersion model_version = 6; */ public Builder setModelVersion( com.clarifai.grpc.api.ModelVersion.Builder builderForValue) { if (modelVersionBuilder_ == null) { modelVersion_ = builderForValue.build(); onChanged(); } else { modelVersionBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * A particular version of the model, e.g., to specify the version when creating a workflow or
     * when listing Models to include the latest ModelVersion of the model in the response.
     * 
* * .clarifai.api.ModelVersion model_version = 6; */ public Builder mergeModelVersion(com.clarifai.grpc.api.ModelVersion value) { if (modelVersionBuilder_ == null) { if (modelVersion_ != null) { modelVersion_ = com.clarifai.grpc.api.ModelVersion.newBuilder(modelVersion_).mergeFrom(value).buildPartial(); } else { modelVersion_ = value; } onChanged(); } else { modelVersionBuilder_.mergeFrom(value); } return this; } /** *
     * A particular version of the model, e.g., to specify the version when creating a workflow or
     * when listing Models to include the latest ModelVersion of the model in the response.
     * 
* * .clarifai.api.ModelVersion model_version = 6; */ public Builder clearModelVersion() { if (modelVersionBuilder_ == null) { modelVersion_ = null; onChanged(); } else { modelVersion_ = null; modelVersionBuilder_ = null; } return this; } /** *
     * A particular version of the model, e.g., to specify the version when creating a workflow or
     * when listing Models to include the latest ModelVersion of the model in the response.
     * 
* * .clarifai.api.ModelVersion model_version = 6; */ public com.clarifai.grpc.api.ModelVersion.Builder getModelVersionBuilder() { onChanged(); return getModelVersionFieldBuilder().getBuilder(); } /** *
     * A particular version of the model, e.g., to specify the version when creating a workflow or
     * when listing Models to include the latest ModelVersion of the model in the response.
     * 
* * .clarifai.api.ModelVersion model_version = 6; */ public com.clarifai.grpc.api.ModelVersionOrBuilder getModelVersionOrBuilder() { if (modelVersionBuilder_ != null) { return modelVersionBuilder_.getMessageOrBuilder(); } else { return modelVersion_ == null ? com.clarifai.grpc.api.ModelVersion.getDefaultInstance() : modelVersion_; } } /** *
     * A particular version of the model, e.g., to specify the version when creating a workflow or
     * when listing Models to include the latest ModelVersion of the model in the response.
     * 
* * .clarifai.api.ModelVersion model_version = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.ModelVersion, com.clarifai.grpc.api.ModelVersion.Builder, com.clarifai.grpc.api.ModelVersionOrBuilder> getModelVersionFieldBuilder() { if (modelVersionBuilder_ == null) { modelVersionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.ModelVersion, com.clarifai.grpc.api.ModelVersion.Builder, com.clarifai.grpc.api.ModelVersionOrBuilder>( getModelVersion(), getParentForChildren(), isClean()); modelVersion_ = null; } return modelVersionBuilder_; } private java.lang.Object displayName_ = ""; /** *
     * DEPRECATED: Please use the model id to name the model.
     * 
* * string display_name = 7 [deprecated = true]; * @deprecated clarifai.api.Model.display_name is deprecated. * See proto/clarifai/api/resources.proto;l=1346 * @return The displayName. */ @java.lang.Deprecated public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * DEPRECATED: Please use the model id to name the model.
     * 
* * string display_name = 7 [deprecated = true]; * @deprecated clarifai.api.Model.display_name is deprecated. * See proto/clarifai/api/resources.proto;l=1346 * @return The bytes for displayName. */ @java.lang.Deprecated public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); displayName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * DEPRECATED: Please use the model id to name the model.
     * 
* * string display_name = 7 [deprecated = true]; * @deprecated clarifai.api.Model.display_name is deprecated. * See proto/clarifai/api/resources.proto;l=1346 * @param value The displayName to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setDisplayName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } displayName_ = value; onChanged(); return this; } /** *
     * DEPRECATED: Please use the model id to name the model.
     * 
* * string display_name = 7 [deprecated = true]; * @deprecated clarifai.api.Model.display_name is deprecated. * See proto/clarifai/api/resources.proto;l=1346 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearDisplayName() { displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** *
     * DEPRECATED: Please use the model id to name the model.
     * 
* * string display_name = 7 [deprecated = true]; * @deprecated clarifai.api.Model.display_name is deprecated. * See proto/clarifai/api/resources.proto;l=1346 * @param value The bytes for displayName to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setDisplayNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; onChanged(); return this; } private java.lang.Object userId_ = ""; /** *
     * The user id that the model belongs to.
     * 
* * string user_id = 9; * @return The userId. */ public java.lang.String getUserId() { java.lang.Object ref = userId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The user id that the model belongs to.
     * 
* * string user_id = 9; * @return The bytes for userId. */ public com.google.protobuf.ByteString getUserIdBytes() { java.lang.Object ref = userId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); userId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The user id that the model belongs to.
     * 
* * string user_id = 9; * @param value The userId to set. * @return This builder for chaining. */ public Builder setUserId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } userId_ = value; onChanged(); return this; } /** *
     * The user id that the model belongs to.
     * 
* * string user_id = 9; * @return This builder for chaining. */ public Builder clearUserId() { userId_ = getDefaultInstance().getUserId(); onChanged(); return this; } /** *
     * The user id that the model belongs to.
     * 
* * string user_id = 9; * @param value The bytes for userId to set. * @return This builder for chaining. */ public Builder setUserIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); userId_ = value; onChanged(); return this; } private com.clarifai.grpc.api.EvalInfo defaultEvalInfo_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.EvalInfo, com.clarifai.grpc.api.EvalInfo.Builder, com.clarifai.grpc.api.EvalInfoOrBuilder> defaultEvalInfoBuilder_; /** *
     * The default evaluation info. Can be overwritten by eval request.
     * 
* * .clarifai.api.EvalInfo default_eval_info = 30; * @return Whether the defaultEvalInfo field is set. */ public boolean hasDefaultEvalInfo() { return defaultEvalInfoBuilder_ != null || defaultEvalInfo_ != null; } /** *
     * The default evaluation info. Can be overwritten by eval request.
     * 
* * .clarifai.api.EvalInfo default_eval_info = 30; * @return The defaultEvalInfo. */ public com.clarifai.grpc.api.EvalInfo getDefaultEvalInfo() { if (defaultEvalInfoBuilder_ == null) { return defaultEvalInfo_ == null ? com.clarifai.grpc.api.EvalInfo.getDefaultInstance() : defaultEvalInfo_; } else { return defaultEvalInfoBuilder_.getMessage(); } } /** *
     * The default evaluation info. Can be overwritten by eval request.
     * 
* * .clarifai.api.EvalInfo default_eval_info = 30; */ public Builder setDefaultEvalInfo(com.clarifai.grpc.api.EvalInfo value) { if (defaultEvalInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } defaultEvalInfo_ = value; onChanged(); } else { defaultEvalInfoBuilder_.setMessage(value); } return this; } /** *
     * The default evaluation info. Can be overwritten by eval request.
     * 
* * .clarifai.api.EvalInfo default_eval_info = 30; */ public Builder setDefaultEvalInfo( com.clarifai.grpc.api.EvalInfo.Builder builderForValue) { if (defaultEvalInfoBuilder_ == null) { defaultEvalInfo_ = builderForValue.build(); onChanged(); } else { defaultEvalInfoBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The default evaluation info. Can be overwritten by eval request.
     * 
* * .clarifai.api.EvalInfo default_eval_info = 30; */ public Builder mergeDefaultEvalInfo(com.clarifai.grpc.api.EvalInfo value) { if (defaultEvalInfoBuilder_ == null) { if (defaultEvalInfo_ != null) { defaultEvalInfo_ = com.clarifai.grpc.api.EvalInfo.newBuilder(defaultEvalInfo_).mergeFrom(value).buildPartial(); } else { defaultEvalInfo_ = value; } onChanged(); } else { defaultEvalInfoBuilder_.mergeFrom(value); } return this; } /** *
     * The default evaluation info. Can be overwritten by eval request.
     * 
* * .clarifai.api.EvalInfo default_eval_info = 30; */ public Builder clearDefaultEvalInfo() { if (defaultEvalInfoBuilder_ == null) { defaultEvalInfo_ = null; onChanged(); } else { defaultEvalInfo_ = null; defaultEvalInfoBuilder_ = null; } return this; } /** *
     * The default evaluation info. Can be overwritten by eval request.
     * 
* * .clarifai.api.EvalInfo default_eval_info = 30; */ public com.clarifai.grpc.api.EvalInfo.Builder getDefaultEvalInfoBuilder() { onChanged(); return getDefaultEvalInfoFieldBuilder().getBuilder(); } /** *
     * The default evaluation info. Can be overwritten by eval request.
     * 
* * .clarifai.api.EvalInfo default_eval_info = 30; */ public com.clarifai.grpc.api.EvalInfoOrBuilder getDefaultEvalInfoOrBuilder() { if (defaultEvalInfoBuilder_ != null) { return defaultEvalInfoBuilder_.getMessageOrBuilder(); } else { return defaultEvalInfo_ == null ? com.clarifai.grpc.api.EvalInfo.getDefaultInstance() : defaultEvalInfo_; } } /** *
     * The default evaluation info. Can be overwritten by eval request.
     * 
* * .clarifai.api.EvalInfo default_eval_info = 30; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.EvalInfo, com.clarifai.grpc.api.EvalInfo.Builder, com.clarifai.grpc.api.EvalInfoOrBuilder> getDefaultEvalInfoFieldBuilder() { if (defaultEvalInfoBuilder_ == null) { defaultEvalInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.EvalInfo, com.clarifai.grpc.api.EvalInfo.Builder, com.clarifai.grpc.api.EvalInfoOrBuilder>( getDefaultEvalInfo(), getParentForChildren(), isClean()); defaultEvalInfo_ = null; } return defaultEvalInfoBuilder_; } private java.lang.Object modelTypeId_ = ""; /** *
     * The ModelType.Id that is used for this model. This is used for all versions and you cannot
     * change model_type_id between versions of the same model.
     * 
* * string model_type_id = 14; * @return The modelTypeId. */ public java.lang.String getModelTypeId() { java.lang.Object ref = modelTypeId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); modelTypeId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The ModelType.Id that is used for this model. This is used for all versions and you cannot
     * change model_type_id between versions of the same model.
     * 
* * string model_type_id = 14; * @return The bytes for modelTypeId. */ public com.google.protobuf.ByteString getModelTypeIdBytes() { java.lang.Object ref = modelTypeId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); modelTypeId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The ModelType.Id that is used for this model. This is used for all versions and you cannot
     * change model_type_id between versions of the same model.
     * 
* * string model_type_id = 14; * @param value The modelTypeId to set. * @return This builder for chaining. */ public Builder setModelTypeId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } modelTypeId_ = value; onChanged(); return this; } /** *
     * The ModelType.Id that is used for this model. This is used for all versions and you cannot
     * change model_type_id between versions of the same model.
     * 
* * string model_type_id = 14; * @return This builder for chaining. */ public Builder clearModelTypeId() { modelTypeId_ = getDefaultInstance().getModelTypeId(); onChanged(); return this; } /** *
     * The ModelType.Id that is used for this model. This is used for all versions and you cannot
     * change model_type_id between versions of the same model.
     * 
* * string model_type_id = 14; * @param value The bytes for modelTypeId to set. * @return This builder for chaining. */ public Builder setModelTypeIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); modelTypeId_ = value; onChanged(); return this; } private java.lang.Object task_ = ""; /** *
     * The task the model was trained to do
     * 
* * string task = 26; * @return The task. */ public java.lang.String getTask() { java.lang.Object ref = task_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); task_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The task the model was trained to do
     * 
* * string task = 26; * @return The bytes for task. */ public com.google.protobuf.ByteString getTaskBytes() { java.lang.Object ref = task_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); task_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The task the model was trained to do
     * 
* * string task = 26; * @param value The task to set. * @return This builder for chaining. */ public Builder setTask( java.lang.String value) { if (value == null) { throw new NullPointerException(); } task_ = value; onChanged(); return this; } /** *
     * The task the model was trained to do
     * 
* * string task = 26; * @return This builder for chaining. */ public Builder clearTask() { task_ = getDefaultInstance().getTask(); onChanged(); return this; } /** *
     * The task the model was trained to do
     * 
* * string task = 26; * @param value The bytes for task to set. * @return This builder for chaining. */ public Builder setTaskBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); task_ = value; onChanged(); return this; } private com.clarifai.grpc.api.Visibility visibility_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Visibility, com.clarifai.grpc.api.Visibility.Builder, com.clarifai.grpc.api.VisibilityOrBuilder> visibilityBuilder_; /** *
     * The visibility field represents whether this message is privately/publicly visible.
     * To be visible to the public the App that contains it AND the User that contains the App must
     * also be publicly visible.
     * 
* * .clarifai.api.Visibility visibility = 15; * @return Whether the visibility field is set. */ public boolean hasVisibility() { return visibilityBuilder_ != null || visibility_ != null; } /** *
     * The visibility field represents whether this message is privately/publicly visible.
     * To be visible to the public the App that contains it AND the User that contains the App must
     * also be publicly visible.
     * 
* * .clarifai.api.Visibility visibility = 15; * @return The visibility. */ public com.clarifai.grpc.api.Visibility getVisibility() { if (visibilityBuilder_ == null) { return visibility_ == null ? com.clarifai.grpc.api.Visibility.getDefaultInstance() : visibility_; } else { return visibilityBuilder_.getMessage(); } } /** *
     * The visibility field represents whether this message is privately/publicly visible.
     * To be visible to the public the App that contains it AND the User that contains the App must
     * also be publicly visible.
     * 
* * .clarifai.api.Visibility visibility = 15; */ public Builder setVisibility(com.clarifai.grpc.api.Visibility value) { if (visibilityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } visibility_ = value; onChanged(); } else { visibilityBuilder_.setMessage(value); } return this; } /** *
     * The visibility field represents whether this message is privately/publicly visible.
     * To be visible to the public the App that contains it AND the User that contains the App must
     * also be publicly visible.
     * 
* * .clarifai.api.Visibility visibility = 15; */ public Builder setVisibility( com.clarifai.grpc.api.Visibility.Builder builderForValue) { if (visibilityBuilder_ == null) { visibility_ = builderForValue.build(); onChanged(); } else { visibilityBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The visibility field represents whether this message is privately/publicly visible.
     * To be visible to the public the App that contains it AND the User that contains the App must
     * also be publicly visible.
     * 
* * .clarifai.api.Visibility visibility = 15; */ public Builder mergeVisibility(com.clarifai.grpc.api.Visibility value) { if (visibilityBuilder_ == null) { if (visibility_ != null) { visibility_ = com.clarifai.grpc.api.Visibility.newBuilder(visibility_).mergeFrom(value).buildPartial(); } else { visibility_ = value; } onChanged(); } else { visibilityBuilder_.mergeFrom(value); } return this; } /** *
     * The visibility field represents whether this message is privately/publicly visible.
     * To be visible to the public the App that contains it AND the User that contains the App must
     * also be publicly visible.
     * 
* * .clarifai.api.Visibility visibility = 15; */ public Builder clearVisibility() { if (visibilityBuilder_ == null) { visibility_ = null; onChanged(); } else { visibility_ = null; visibilityBuilder_ = null; } return this; } /** *
     * The visibility field represents whether this message is privately/publicly visible.
     * To be visible to the public the App that contains it AND the User that contains the App must
     * also be publicly visible.
     * 
* * .clarifai.api.Visibility visibility = 15; */ public com.clarifai.grpc.api.Visibility.Builder getVisibilityBuilder() { onChanged(); return getVisibilityFieldBuilder().getBuilder(); } /** *
     * The visibility field represents whether this message is privately/publicly visible.
     * To be visible to the public the App that contains it AND the User that contains the App must
     * also be publicly visible.
     * 
* * .clarifai.api.Visibility visibility = 15; */ public com.clarifai.grpc.api.VisibilityOrBuilder getVisibilityOrBuilder() { if (visibilityBuilder_ != null) { return visibilityBuilder_.getMessageOrBuilder(); } else { return visibility_ == null ? com.clarifai.grpc.api.Visibility.getDefaultInstance() : visibility_; } } /** *
     * The visibility field represents whether this message is privately/publicly visible.
     * To be visible to the public the App that contains it AND the User that contains the App must
     * also be publicly visible.
     * 
* * .clarifai.api.Visibility visibility = 15; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Visibility, com.clarifai.grpc.api.Visibility.Builder, com.clarifai.grpc.api.VisibilityOrBuilder> getVisibilityFieldBuilder() { if (visibilityBuilder_ == null) { visibilityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Visibility, com.clarifai.grpc.api.Visibility.Builder, com.clarifai.grpc.api.VisibilityOrBuilder>( getVisibility(), getParentForChildren(), isClean()); visibility_ = null; } return visibilityBuilder_; } private java.lang.Object description_ = ""; /** *
     * Short description about this model
     * 
* * string description = 16; * @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; } } /** *
     * Short description about this model
     * 
* * string description = 16; * @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; } } /** *
     * Short description about this model
     * 
* * string description = 16; * @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; } /** *
     * Short description about this model
     * 
* * string description = 16; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
     * Short description about this model
     * 
* * string description = 16; * @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.google.protobuf.Struct metadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> metadataBuilder_; /** *
     * To handle arbitrary json metadata you can use a struct field:
     * https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
     * 
* * .google.protobuf.Struct metadata = 17; * @return Whether the metadata field is set. */ public boolean hasMetadata() { return metadataBuilder_ != null || metadata_ != null; } /** *
     * To handle arbitrary json metadata you can use a struct field:
     * https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
     * 
* * .google.protobuf.Struct metadata = 17; * @return The metadata. */ public com.google.protobuf.Struct getMetadata() { if (metadataBuilder_ == null) { return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** *
     * To handle arbitrary json metadata you can use a struct field:
     * https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
     * 
* * .google.protobuf.Struct metadata = 17; */ public Builder setMetadata(com.google.protobuf.Struct value) { if (metadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metadata_ = value; onChanged(); } else { metadataBuilder_.setMessage(value); } return this; } /** *
     * To handle arbitrary json metadata you can use a struct field:
     * https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
     * 
* * .google.protobuf.Struct metadata = 17; */ public Builder setMetadata( com.google.protobuf.Struct.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * To handle arbitrary json metadata you can use a struct field:
     * https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
     * 
* * .google.protobuf.Struct metadata = 17; */ public Builder mergeMetadata(com.google.protobuf.Struct value) { if (metadataBuilder_ == null) { if (metadata_ != null) { metadata_ = com.google.protobuf.Struct.newBuilder(metadata_).mergeFrom(value).buildPartial(); } else { metadata_ = value; } onChanged(); } else { metadataBuilder_.mergeFrom(value); } return this; } /** *
     * To handle arbitrary json metadata you can use a struct field:
     * https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
     * 
* * .google.protobuf.Struct metadata = 17; */ public Builder clearMetadata() { if (metadataBuilder_ == null) { metadata_ = null; onChanged(); } else { metadata_ = null; metadataBuilder_ = null; } return this; } /** *
     * To handle arbitrary json metadata you can use a struct field:
     * https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
     * 
* * .google.protobuf.Struct metadata = 17; */ public com.google.protobuf.Struct.Builder getMetadataBuilder() { onChanged(); return getMetadataFieldBuilder().getBuilder(); } /** *
     * To handle arbitrary json metadata you can use a struct field:
     * https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
     * 
* * .google.protobuf.Struct metadata = 17; */ public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; } } /** *
     * To handle arbitrary json metadata you can use a struct field:
     * https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
     * 
* * .google.protobuf.Struct metadata = 17; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( getMetadata(), getParentForChildren(), isClean()); metadata_ = null; } return metadataBuilder_; } private com.google.protobuf.Struct presets_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> presetsBuilder_; /** * .google.protobuf.Struct presets = 27; * @return Whether the presets field is set. */ public boolean hasPresets() { return presetsBuilder_ != null || presets_ != null; } /** * .google.protobuf.Struct presets = 27; * @return The presets. */ public com.google.protobuf.Struct getPresets() { if (presetsBuilder_ == null) { return presets_ == null ? com.google.protobuf.Struct.getDefaultInstance() : presets_; } else { return presetsBuilder_.getMessage(); } } /** * .google.protobuf.Struct presets = 27; */ public Builder setPresets(com.google.protobuf.Struct value) { if (presetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } presets_ = value; onChanged(); } else { presetsBuilder_.setMessage(value); } return this; } /** * .google.protobuf.Struct presets = 27; */ public Builder setPresets( com.google.protobuf.Struct.Builder builderForValue) { if (presetsBuilder_ == null) { presets_ = builderForValue.build(); onChanged(); } else { presetsBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.Struct presets = 27; */ public Builder mergePresets(com.google.protobuf.Struct value) { if (presetsBuilder_ == null) { if (presets_ != null) { presets_ = com.google.protobuf.Struct.newBuilder(presets_).mergeFrom(value).buildPartial(); } else { presets_ = value; } onChanged(); } else { presetsBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.Struct presets = 27; */ public Builder clearPresets() { if (presetsBuilder_ == null) { presets_ = null; onChanged(); } else { presets_ = null; presetsBuilder_ = null; } return this; } /** * .google.protobuf.Struct presets = 27; */ public com.google.protobuf.Struct.Builder getPresetsBuilder() { onChanged(); return getPresetsFieldBuilder().getBuilder(); } /** * .google.protobuf.Struct presets = 27; */ public com.google.protobuf.StructOrBuilder getPresetsOrBuilder() { if (presetsBuilder_ != null) { return presetsBuilder_.getMessageOrBuilder(); } else { return presets_ == null ? com.google.protobuf.Struct.getDefaultInstance() : presets_; } } /** * .google.protobuf.Struct presets = 27; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> getPresetsFieldBuilder() { if (presetsBuilder_ == null) { presetsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( getPresets(), getParentForChildren(), isClean()); presets_ = null; } return presetsBuilder_; } private java.lang.Object notes_ = ""; /** *
     * Notes for the model
     * This field should be used for in-depth notes and supports up to 64Kbs.
     * 
* * string notes = 18; * @return The notes. */ public java.lang.String getNotes() { java.lang.Object ref = notes_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); notes_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Notes for the model
     * This field should be used for in-depth notes and supports up to 64Kbs.
     * 
* * string notes = 18; * @return The bytes for notes. */ public com.google.protobuf.ByteString getNotesBytes() { java.lang.Object ref = notes_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); notes_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Notes for the model
     * This field should be used for in-depth notes and supports up to 64Kbs.
     * 
* * string notes = 18; * @param value The notes to set. * @return This builder for chaining. */ public Builder setNotes( java.lang.String value) { if (value == null) { throw new NullPointerException(); } notes_ = value; onChanged(); return this; } /** *
     * Notes for the model
     * This field should be used for in-depth notes and supports up to 64Kbs.
     * 
* * string notes = 18; * @return This builder for chaining. */ public Builder clearNotes() { notes_ = getDefaultInstance().getNotes(); onChanged(); return this; } /** *
     * Notes for the model
     * This field should be used for in-depth notes and supports up to 64Kbs.
     * 
* * string notes = 18; * @param value The bytes for notes to set. * @return This builder for chaining. */ public Builder setNotesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); notes_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList toolkits_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureToolkitsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { toolkits_ = new com.google.protobuf.LazyStringArrayList(toolkits_); bitField0_ |= 0x00000001; } } /** *
     * Tags from toolkits category
     * 
* * repeated string toolkits = 20 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @return A list containing the toolkits. */ public com.google.protobuf.ProtocolStringList getToolkitsList() { return toolkits_.getUnmodifiableView(); } /** *
     * Tags from toolkits category
     * 
* * repeated string toolkits = 20 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @return The count of toolkits. */ public int getToolkitsCount() { return toolkits_.size(); } /** *
     * Tags from toolkits category
     * 
* * repeated string toolkits = 20 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param index The index of the element to return. * @return The toolkits at the given index. */ public java.lang.String getToolkits(int index) { return toolkits_.get(index); } /** *
     * Tags from toolkits category
     * 
* * repeated string toolkits = 20 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param index The index of the value to return. * @return The bytes of the toolkits at the given index. */ public com.google.protobuf.ByteString getToolkitsBytes(int index) { return toolkits_.getByteString(index); } /** *
     * Tags from toolkits category
     * 
* * repeated string toolkits = 20 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param index The index to set the value at. * @param value The toolkits to set. * @return This builder for chaining. */ public Builder setToolkits( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureToolkitsIsMutable(); toolkits_.set(index, value); onChanged(); return this; } /** *
     * Tags from toolkits category
     * 
* * repeated string toolkits = 20 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param value The toolkits to add. * @return This builder for chaining. */ public Builder addToolkits( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureToolkitsIsMutable(); toolkits_.add(value); onChanged(); return this; } /** *
     * Tags from toolkits category
     * 
* * repeated string toolkits = 20 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param values The toolkits to add. * @return This builder for chaining. */ public Builder addAllToolkits( java.lang.Iterable values) { ensureToolkitsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, toolkits_); onChanged(); return this; } /** *
     * Tags from toolkits category
     * 
* * repeated string toolkits = 20 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @return This builder for chaining. */ public Builder clearToolkits() { toolkits_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * Tags from toolkits category
     * 
* * repeated string toolkits = 20 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param value The bytes of the toolkits to add. * @return This builder for chaining. */ public Builder addToolkitsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureToolkitsIsMutable(); toolkits_.add(value); onChanged(); return this; } private com.google.protobuf.LazyStringList useCases_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUseCasesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { useCases_ = new com.google.protobuf.LazyStringArrayList(useCases_); bitField0_ |= 0x00000002; } } /** *
     * Tags from use_cases category
     * 
* * repeated string use_cases = 21 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @return A list containing the useCases. */ public com.google.protobuf.ProtocolStringList getUseCasesList() { return useCases_.getUnmodifiableView(); } /** *
     * Tags from use_cases category
     * 
* * repeated string use_cases = 21 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @return The count of useCases. */ public int getUseCasesCount() { return useCases_.size(); } /** *
     * Tags from use_cases category
     * 
* * repeated string use_cases = 21 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param index The index of the element to return. * @return The useCases at the given index. */ public java.lang.String getUseCases(int index) { return useCases_.get(index); } /** *
     * Tags from use_cases category
     * 
* * repeated string use_cases = 21 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param index The index of the value to return. * @return The bytes of the useCases at the given index. */ public com.google.protobuf.ByteString getUseCasesBytes(int index) { return useCases_.getByteString(index); } /** *
     * Tags from use_cases category
     * 
* * repeated string use_cases = 21 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param index The index to set the value at. * @param value The useCases to set. * @return This builder for chaining. */ public Builder setUseCases( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureUseCasesIsMutable(); useCases_.set(index, value); onChanged(); return this; } /** *
     * Tags from use_cases category
     * 
* * repeated string use_cases = 21 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param value The useCases to add. * @return This builder for chaining. */ public Builder addUseCases( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureUseCasesIsMutable(); useCases_.add(value); onChanged(); return this; } /** *
     * Tags from use_cases category
     * 
* * repeated string use_cases = 21 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param values The useCases to add. * @return This builder for chaining. */ public Builder addAllUseCases( java.lang.Iterable values) { ensureUseCasesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, useCases_); onChanged(); return this; } /** *
     * Tags from use_cases category
     * 
* * repeated string use_cases = 21 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @return This builder for chaining. */ public Builder clearUseCases() { useCases_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     * Tags from use_cases category
     * 
* * repeated string use_cases = 21 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param value The bytes of the useCases to add. * @return This builder for chaining. */ public Builder addUseCasesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureUseCasesIsMutable(); useCases_.add(value); onChanged(); return this; } private com.google.protobuf.LazyStringList languages_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureLanguagesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { languages_ = new com.google.protobuf.LazyStringArrayList(languages_); bitField0_ |= 0x00000004; } } /** *
     * Tags from languages category.
     * 
* * repeated string languages = 25 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @return A list containing the languages. */ public com.google.protobuf.ProtocolStringList getLanguagesList() { return languages_.getUnmodifiableView(); } /** *
     * Tags from languages category.
     * 
* * repeated string languages = 25 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @return The count of languages. */ public int getLanguagesCount() { return languages_.size(); } /** *
     * Tags from languages category.
     * 
* * repeated string languages = 25 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param index The index of the element to return. * @return The languages at the given index. */ public java.lang.String getLanguages(int index) { return languages_.get(index); } /** *
     * Tags from languages category.
     * 
* * repeated string languages = 25 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param index The index of the value to return. * @return The bytes of the languages at the given index. */ public com.google.protobuf.ByteString getLanguagesBytes(int index) { return languages_.getByteString(index); } /** *
     * Tags from languages category.
     * 
* * repeated string languages = 25 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param index The index to set the value at. * @param value The languages to set. * @return This builder for chaining. */ public Builder setLanguages( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureLanguagesIsMutable(); languages_.set(index, value); onChanged(); return this; } /** *
     * Tags from languages category.
     * 
* * repeated string languages = 25 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param value The languages to add. * @return This builder for chaining. */ public Builder addLanguages( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureLanguagesIsMutable(); languages_.add(value); onChanged(); return this; } /** *
     * Tags from languages category.
     * 
* * repeated string languages = 25 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param values The languages to add. * @return This builder for chaining. */ public Builder addAllLanguages( java.lang.Iterable values) { ensureLanguagesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, languages_); onChanged(); return this; } /** *
     * Tags from languages category.
     * 
* * repeated string languages = 25 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @return This builder for chaining. */ public Builder clearLanguages() { languages_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
     * Tags from languages category.
     * 
* * repeated string languages = 25 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param value The bytes of the languages to add. * @return This builder for chaining. */ public Builder addLanguagesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureLanguagesIsMutable(); languages_.add(value); onChanged(); return this; } private java.util.List languagesFull_ = java.util.Collections.emptyList(); private void ensureLanguagesFullIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { languagesFull_ = new java.util.ArrayList(languagesFull_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.FullTag, com.clarifai.grpc.api.FullTag.Builder, com.clarifai.grpc.api.FullTagOrBuilder> languagesFullBuilder_; /** *
     * Tags from languages category with names, only used in responses.
     * 
* * repeated .clarifai.api.FullTag languages_full = 31 [(.clarifai.api.utils.cl_show_if_empty) = true]; */ public java.util.List getLanguagesFullList() { if (languagesFullBuilder_ == null) { return java.util.Collections.unmodifiableList(languagesFull_); } else { return languagesFullBuilder_.getMessageList(); } } /** *
     * Tags from languages category with names, only used in responses.
     * 
* * repeated .clarifai.api.FullTag languages_full = 31 [(.clarifai.api.utils.cl_show_if_empty) = true]; */ public int getLanguagesFullCount() { if (languagesFullBuilder_ == null) { return languagesFull_.size(); } else { return languagesFullBuilder_.getCount(); } } /** *
     * Tags from languages category with names, only used in responses.
     * 
* * repeated .clarifai.api.FullTag languages_full = 31 [(.clarifai.api.utils.cl_show_if_empty) = true]; */ public com.clarifai.grpc.api.FullTag getLanguagesFull(int index) { if (languagesFullBuilder_ == null) { return languagesFull_.get(index); } else { return languagesFullBuilder_.getMessage(index); } } /** *
     * Tags from languages category with names, only used in responses.
     * 
* * repeated .clarifai.api.FullTag languages_full = 31 [(.clarifai.api.utils.cl_show_if_empty) = true]; */ public Builder setLanguagesFull( int index, com.clarifai.grpc.api.FullTag value) { if (languagesFullBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLanguagesFullIsMutable(); languagesFull_.set(index, value); onChanged(); } else { languagesFullBuilder_.setMessage(index, value); } return this; } /** *
     * Tags from languages category with names, only used in responses.
     * 
* * repeated .clarifai.api.FullTag languages_full = 31 [(.clarifai.api.utils.cl_show_if_empty) = true]; */ public Builder setLanguagesFull( int index, com.clarifai.grpc.api.FullTag.Builder builderForValue) { if (languagesFullBuilder_ == null) { ensureLanguagesFullIsMutable(); languagesFull_.set(index, builderForValue.build()); onChanged(); } else { languagesFullBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Tags from languages category with names, only used in responses.
     * 
* * repeated .clarifai.api.FullTag languages_full = 31 [(.clarifai.api.utils.cl_show_if_empty) = true]; */ public Builder addLanguagesFull(com.clarifai.grpc.api.FullTag value) { if (languagesFullBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLanguagesFullIsMutable(); languagesFull_.add(value); onChanged(); } else { languagesFullBuilder_.addMessage(value); } return this; } /** *
     * Tags from languages category with names, only used in responses.
     * 
* * repeated .clarifai.api.FullTag languages_full = 31 [(.clarifai.api.utils.cl_show_if_empty) = true]; */ public Builder addLanguagesFull( int index, com.clarifai.grpc.api.FullTag value) { if (languagesFullBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLanguagesFullIsMutable(); languagesFull_.add(index, value); onChanged(); } else { languagesFullBuilder_.addMessage(index, value); } return this; } /** *
     * Tags from languages category with names, only used in responses.
     * 
* * repeated .clarifai.api.FullTag languages_full = 31 [(.clarifai.api.utils.cl_show_if_empty) = true]; */ public Builder addLanguagesFull( com.clarifai.grpc.api.FullTag.Builder builderForValue) { if (languagesFullBuilder_ == null) { ensureLanguagesFullIsMutable(); languagesFull_.add(builderForValue.build()); onChanged(); } else { languagesFullBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Tags from languages category with names, only used in responses.
     * 
* * repeated .clarifai.api.FullTag languages_full = 31 [(.clarifai.api.utils.cl_show_if_empty) = true]; */ public Builder addLanguagesFull( int index, com.clarifai.grpc.api.FullTag.Builder builderForValue) { if (languagesFullBuilder_ == null) { ensureLanguagesFullIsMutable(); languagesFull_.add(index, builderForValue.build()); onChanged(); } else { languagesFullBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Tags from languages category with names, only used in responses.
     * 
* * repeated .clarifai.api.FullTag languages_full = 31 [(.clarifai.api.utils.cl_show_if_empty) = true]; */ public Builder addAllLanguagesFull( java.lang.Iterable values) { if (languagesFullBuilder_ == null) { ensureLanguagesFullIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, languagesFull_); onChanged(); } else { languagesFullBuilder_.addAllMessages(values); } return this; } /** *
     * Tags from languages category with names, only used in responses.
     * 
* * repeated .clarifai.api.FullTag languages_full = 31 [(.clarifai.api.utils.cl_show_if_empty) = true]; */ public Builder clearLanguagesFull() { if (languagesFullBuilder_ == null) { languagesFull_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { languagesFullBuilder_.clear(); } return this; } /** *
     * Tags from languages category with names, only used in responses.
     * 
* * repeated .clarifai.api.FullTag languages_full = 31 [(.clarifai.api.utils.cl_show_if_empty) = true]; */ public Builder removeLanguagesFull(int index) { if (languagesFullBuilder_ == null) { ensureLanguagesFullIsMutable(); languagesFull_.remove(index); onChanged(); } else { languagesFullBuilder_.remove(index); } return this; } /** *
     * Tags from languages category with names, only used in responses.
     * 
* * repeated .clarifai.api.FullTag languages_full = 31 [(.clarifai.api.utils.cl_show_if_empty) = true]; */ public com.clarifai.grpc.api.FullTag.Builder getLanguagesFullBuilder( int index) { return getLanguagesFullFieldBuilder().getBuilder(index); } /** *
     * Tags from languages category with names, only used in responses.
     * 
* * repeated .clarifai.api.FullTag languages_full = 31 [(.clarifai.api.utils.cl_show_if_empty) = true]; */ public com.clarifai.grpc.api.FullTagOrBuilder getLanguagesFullOrBuilder( int index) { if (languagesFullBuilder_ == null) { return languagesFull_.get(index); } else { return languagesFullBuilder_.getMessageOrBuilder(index); } } /** *
     * Tags from languages category with names, only used in responses.
     * 
* * repeated .clarifai.api.FullTag languages_full = 31 [(.clarifai.api.utils.cl_show_if_empty) = true]; */ public java.util.List getLanguagesFullOrBuilderList() { if (languagesFullBuilder_ != null) { return languagesFullBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(languagesFull_); } } /** *
     * Tags from languages category with names, only used in responses.
     * 
* * repeated .clarifai.api.FullTag languages_full = 31 [(.clarifai.api.utils.cl_show_if_empty) = true]; */ public com.clarifai.grpc.api.FullTag.Builder addLanguagesFullBuilder() { return getLanguagesFullFieldBuilder().addBuilder( com.clarifai.grpc.api.FullTag.getDefaultInstance()); } /** *
     * Tags from languages category with names, only used in responses.
     * 
* * repeated .clarifai.api.FullTag languages_full = 31 [(.clarifai.api.utils.cl_show_if_empty) = true]; */ public com.clarifai.grpc.api.FullTag.Builder addLanguagesFullBuilder( int index) { return getLanguagesFullFieldBuilder().addBuilder( index, com.clarifai.grpc.api.FullTag.getDefaultInstance()); } /** *
     * Tags from languages category with names, only used in responses.
     * 
* * repeated .clarifai.api.FullTag languages_full = 31 [(.clarifai.api.utils.cl_show_if_empty) = true]; */ public java.util.List getLanguagesFullBuilderList() { return getLanguagesFullFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.FullTag, com.clarifai.grpc.api.FullTag.Builder, com.clarifai.grpc.api.FullTagOrBuilder> getLanguagesFullFieldBuilder() { if (languagesFullBuilder_ == null) { languagesFullBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.FullTag, com.clarifai.grpc.api.FullTag.Builder, com.clarifai.grpc.api.FullTagOrBuilder>( languagesFull_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); languagesFull_ = null; } return languagesFullBuilder_; } private com.google.protobuf.LazyStringList checkConsents_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureCheckConsentsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { checkConsents_ = new com.google.protobuf.LazyStringArrayList(checkConsents_); bitField0_ |= 0x00000010; } } /** * repeated string check_consents = 32 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @return A list containing the checkConsents. */ public com.google.protobuf.ProtocolStringList getCheckConsentsList() { return checkConsents_.getUnmodifiableView(); } /** * repeated string check_consents = 32 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @return The count of checkConsents. */ public int getCheckConsentsCount() { return checkConsents_.size(); } /** * repeated string check_consents = 32 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param index The index of the element to return. * @return The checkConsents at the given index. */ public java.lang.String getCheckConsents(int index) { return checkConsents_.get(index); } /** * repeated string check_consents = 32 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param index The index of the value to return. * @return The bytes of the checkConsents at the given index. */ public com.google.protobuf.ByteString getCheckConsentsBytes(int index) { return checkConsents_.getByteString(index); } /** * repeated string check_consents = 32 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param index The index to set the value at. * @param value The checkConsents to set. * @return This builder for chaining. */ public Builder setCheckConsents( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureCheckConsentsIsMutable(); checkConsents_.set(index, value); onChanged(); return this; } /** * repeated string check_consents = 32 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param value The checkConsents to add. * @return This builder for chaining. */ public Builder addCheckConsents( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureCheckConsentsIsMutable(); checkConsents_.add(value); onChanged(); return this; } /** * repeated string check_consents = 32 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param values The checkConsents to add. * @return This builder for chaining. */ public Builder addAllCheckConsents( java.lang.Iterable values) { ensureCheckConsentsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, checkConsents_); onChanged(); return this; } /** * repeated string check_consents = 32 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @return This builder for chaining. */ public Builder clearCheckConsents() { checkConsents_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * repeated string check_consents = 32 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param value The bytes of the checkConsents to add. * @return This builder for chaining. */ public Builder addCheckConsentsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureCheckConsentsIsMutable(); checkConsents_.add(value); onChanged(); return this; } private boolean isStarred_ ; /** *
     * Is starred by the requesting user (only showed on get/list requests)
     * Please use PostModelStars/DeleteModelStars endpoints to star/unstar a model
     * 
* * bool is_starred = 22; * @return The isStarred. */ @java.lang.Override public boolean getIsStarred() { return isStarred_; } /** *
     * Is starred by the requesting user (only showed on get/list requests)
     * Please use PostModelStars/DeleteModelStars endpoints to star/unstar a model
     * 
* * bool is_starred = 22; * @param value The isStarred to set. * @return This builder for chaining. */ public Builder setIsStarred(boolean value) { isStarred_ = value; onChanged(); return this; } /** *
     * Is starred by the requesting user (only showed on get/list requests)
     * Please use PostModelStars/DeleteModelStars endpoints to star/unstar a model
     * 
* * bool is_starred = 22; * @return This builder for chaining. */ public Builder clearIsStarred() { isStarred_ = false; onChanged(); return this; } private int starCount_ ; /** *
     * How many users have starred the model (only showed on get/list requests)
     * Computed value, not editable
     * 
* * int32 star_count = 23; * @return The starCount. */ @java.lang.Override public int getStarCount() { return starCount_; } /** *
     * How many users have starred the model (only showed on get/list requests)
     * Computed value, not editable
     * 
* * int32 star_count = 23; * @param value The starCount to set. * @return This builder for chaining. */ public Builder setStarCount(int value) { starCount_ = value; onChanged(); return this; } /** *
     * How many users have starred the model (only showed on get/list requests)
     * Computed value, not editable
     * 
* * int32 star_count = 23; * @return This builder for chaining. */ public Builder clearStarCount() { starCount_ = 0; onChanged(); return this; } private com.google.protobuf.BoolValue workflowRecommended_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> workflowRecommendedBuilder_; /** *
     * Whether it's recommended that this model is used within a workflow
     * 
* * .google.protobuf.BoolValue workflow_recommended = 29; * @return Whether the workflowRecommended field is set. */ public boolean hasWorkflowRecommended() { return workflowRecommendedBuilder_ != null || workflowRecommended_ != null; } /** *
     * Whether it's recommended that this model is used within a workflow
     * 
* * .google.protobuf.BoolValue workflow_recommended = 29; * @return The workflowRecommended. */ public com.google.protobuf.BoolValue getWorkflowRecommended() { if (workflowRecommendedBuilder_ == null) { return workflowRecommended_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : workflowRecommended_; } else { return workflowRecommendedBuilder_.getMessage(); } } /** *
     * Whether it's recommended that this model is used within a workflow
     * 
* * .google.protobuf.BoolValue workflow_recommended = 29; */ public Builder setWorkflowRecommended(com.google.protobuf.BoolValue value) { if (workflowRecommendedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } workflowRecommended_ = value; onChanged(); } else { workflowRecommendedBuilder_.setMessage(value); } return this; } /** *
     * Whether it's recommended that this model is used within a workflow
     * 
* * .google.protobuf.BoolValue workflow_recommended = 29; */ public Builder setWorkflowRecommended( com.google.protobuf.BoolValue.Builder builderForValue) { if (workflowRecommendedBuilder_ == null) { workflowRecommended_ = builderForValue.build(); onChanged(); } else { workflowRecommendedBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Whether it's recommended that this model is used within a workflow
     * 
* * .google.protobuf.BoolValue workflow_recommended = 29; */ public Builder mergeWorkflowRecommended(com.google.protobuf.BoolValue value) { if (workflowRecommendedBuilder_ == null) { if (workflowRecommended_ != null) { workflowRecommended_ = com.google.protobuf.BoolValue.newBuilder(workflowRecommended_).mergeFrom(value).buildPartial(); } else { workflowRecommended_ = value; } onChanged(); } else { workflowRecommendedBuilder_.mergeFrom(value); } return this; } /** *
     * Whether it's recommended that this model is used within a workflow
     * 
* * .google.protobuf.BoolValue workflow_recommended = 29; */ public Builder clearWorkflowRecommended() { if (workflowRecommendedBuilder_ == null) { workflowRecommended_ = null; onChanged(); } else { workflowRecommended_ = null; workflowRecommendedBuilder_ = null; } return this; } /** *
     * Whether it's recommended that this model is used within a workflow
     * 
* * .google.protobuf.BoolValue workflow_recommended = 29; */ public com.google.protobuf.BoolValue.Builder getWorkflowRecommendedBuilder() { onChanged(); return getWorkflowRecommendedFieldBuilder().getBuilder(); } /** *
     * Whether it's recommended that this model is used within a workflow
     * 
* * .google.protobuf.BoolValue workflow_recommended = 29; */ public com.google.protobuf.BoolValueOrBuilder getWorkflowRecommendedOrBuilder() { if (workflowRecommendedBuilder_ != null) { return workflowRecommendedBuilder_.getMessageOrBuilder(); } else { return workflowRecommended_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : workflowRecommended_; } } /** *
     * Whether it's recommended that this model is used within a workflow
     * 
* * .google.protobuf.BoolValue workflow_recommended = 29; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> getWorkflowRecommendedFieldBuilder() { if (workflowRecommendedBuilder_ == null) { workflowRecommendedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( getWorkflowRecommended(), getParentForChildren(), isClean()); workflowRecommended_ = null; } return workflowRecommendedBuilder_; } private com.clarifai.grpc.api.BookmarkOrigin bookmarkOrigin_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.BookmarkOrigin, com.clarifai.grpc.api.BookmarkOrigin.Builder, com.clarifai.grpc.api.BookmarkOriginOrBuilder> bookmarkOriginBuilder_; /** *
     * bookmark info. When set, this model is a bookmarked model of this app.
     * Info in this field will allow you to find/access original model.
     * 
* * .clarifai.api.BookmarkOrigin bookmark_origin = 33; * @return Whether the bookmarkOrigin field is set. */ public boolean hasBookmarkOrigin() { return bookmarkOriginBuilder_ != null || bookmarkOrigin_ != null; } /** *
     * bookmark info. When set, this model is a bookmarked model of this app.
     * Info in this field will allow you to find/access original model.
     * 
* * .clarifai.api.BookmarkOrigin bookmark_origin = 33; * @return The bookmarkOrigin. */ public com.clarifai.grpc.api.BookmarkOrigin getBookmarkOrigin() { if (bookmarkOriginBuilder_ == null) { return bookmarkOrigin_ == null ? com.clarifai.grpc.api.BookmarkOrigin.getDefaultInstance() : bookmarkOrigin_; } else { return bookmarkOriginBuilder_.getMessage(); } } /** *
     * bookmark info. When set, this model is a bookmarked model of this app.
     * Info in this field will allow you to find/access original model.
     * 
* * .clarifai.api.BookmarkOrigin bookmark_origin = 33; */ public Builder setBookmarkOrigin(com.clarifai.grpc.api.BookmarkOrigin value) { if (bookmarkOriginBuilder_ == null) { if (value == null) { throw new NullPointerException(); } bookmarkOrigin_ = value; onChanged(); } else { bookmarkOriginBuilder_.setMessage(value); } return this; } /** *
     * bookmark info. When set, this model is a bookmarked model of this app.
     * Info in this field will allow you to find/access original model.
     * 
* * .clarifai.api.BookmarkOrigin bookmark_origin = 33; */ public Builder setBookmarkOrigin( com.clarifai.grpc.api.BookmarkOrigin.Builder builderForValue) { if (bookmarkOriginBuilder_ == null) { bookmarkOrigin_ = builderForValue.build(); onChanged(); } else { bookmarkOriginBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * bookmark info. When set, this model is a bookmarked model of this app.
     * Info in this field will allow you to find/access original model.
     * 
* * .clarifai.api.BookmarkOrigin bookmark_origin = 33; */ public Builder mergeBookmarkOrigin(com.clarifai.grpc.api.BookmarkOrigin value) { if (bookmarkOriginBuilder_ == null) { if (bookmarkOrigin_ != null) { bookmarkOrigin_ = com.clarifai.grpc.api.BookmarkOrigin.newBuilder(bookmarkOrigin_).mergeFrom(value).buildPartial(); } else { bookmarkOrigin_ = value; } onChanged(); } else { bookmarkOriginBuilder_.mergeFrom(value); } return this; } /** *
     * bookmark info. When set, this model is a bookmarked model of this app.
     * Info in this field will allow you to find/access original model.
     * 
* * .clarifai.api.BookmarkOrigin bookmark_origin = 33; */ public Builder clearBookmarkOrigin() { if (bookmarkOriginBuilder_ == null) { bookmarkOrigin_ = null; onChanged(); } else { bookmarkOrigin_ = null; bookmarkOriginBuilder_ = null; } return this; } /** *
     * bookmark info. When set, this model is a bookmarked model of this app.
     * Info in this field will allow you to find/access original model.
     * 
* * .clarifai.api.BookmarkOrigin bookmark_origin = 33; */ public com.clarifai.grpc.api.BookmarkOrigin.Builder getBookmarkOriginBuilder() { onChanged(); return getBookmarkOriginFieldBuilder().getBuilder(); } /** *
     * bookmark info. When set, this model is a bookmarked model of this app.
     * Info in this field will allow you to find/access original model.
     * 
* * .clarifai.api.BookmarkOrigin bookmark_origin = 33; */ public com.clarifai.grpc.api.BookmarkOriginOrBuilder getBookmarkOriginOrBuilder() { if (bookmarkOriginBuilder_ != null) { return bookmarkOriginBuilder_.getMessageOrBuilder(); } else { return bookmarkOrigin_ == null ? com.clarifai.grpc.api.BookmarkOrigin.getDefaultInstance() : bookmarkOrigin_; } } /** *
     * bookmark info. When set, this model is a bookmarked model of this app.
     * Info in this field will allow you to find/access original model.
     * 
* * .clarifai.api.BookmarkOrigin bookmark_origin = 33; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.BookmarkOrigin, com.clarifai.grpc.api.BookmarkOrigin.Builder, com.clarifai.grpc.api.BookmarkOriginOrBuilder> getBookmarkOriginFieldBuilder() { if (bookmarkOriginBuilder_ == null) { bookmarkOriginBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.BookmarkOrigin, com.clarifai.grpc.api.BookmarkOrigin.Builder, com.clarifai.grpc.api.BookmarkOriginOrBuilder>( getBookmarkOrigin(), getParentForChildren(), isClean()); bookmarkOrigin_ = null; } return bookmarkOriginBuilder_; } private com.clarifai.grpc.api.Image image_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Image, com.clarifai.grpc.api.Image.Builder, com.clarifai.grpc.api.ImageOrBuilder> imageBuilder_; /** *
     * Representative image for this model
     * 
* * .clarifai.api.Image image = 34; * @return Whether the image field is set. */ public boolean hasImage() { return imageBuilder_ != null || image_ != null; } /** *
     * Representative image for this model
     * 
* * .clarifai.api.Image image = 34; * @return The image. */ public com.clarifai.grpc.api.Image getImage() { if (imageBuilder_ == null) { return image_ == null ? com.clarifai.grpc.api.Image.getDefaultInstance() : image_; } else { return imageBuilder_.getMessage(); } } /** *
     * Representative image for this model
     * 
* * .clarifai.api.Image image = 34; */ public Builder setImage(com.clarifai.grpc.api.Image value) { if (imageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } image_ = value; onChanged(); } else { imageBuilder_.setMessage(value); } return this; } /** *
     * Representative image for this model
     * 
* * .clarifai.api.Image image = 34; */ public Builder setImage( com.clarifai.grpc.api.Image.Builder builderForValue) { if (imageBuilder_ == null) { image_ = builderForValue.build(); onChanged(); } else { imageBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Representative image for this model
     * 
* * .clarifai.api.Image image = 34; */ public Builder mergeImage(com.clarifai.grpc.api.Image value) { if (imageBuilder_ == null) { if (image_ != null) { image_ = com.clarifai.grpc.api.Image.newBuilder(image_).mergeFrom(value).buildPartial(); } else { image_ = value; } onChanged(); } else { imageBuilder_.mergeFrom(value); } return this; } /** *
     * Representative image for this model
     * 
* * .clarifai.api.Image image = 34; */ public Builder clearImage() { if (imageBuilder_ == null) { image_ = null; onChanged(); } else { image_ = null; imageBuilder_ = null; } return this; } /** *
     * Representative image for this model
     * 
* * .clarifai.api.Image image = 34; */ public com.clarifai.grpc.api.Image.Builder getImageBuilder() { onChanged(); return getImageFieldBuilder().getBuilder(); } /** *
     * Representative image for this model
     * 
* * .clarifai.api.Image image = 34; */ public com.clarifai.grpc.api.ImageOrBuilder getImageOrBuilder() { if (imageBuilder_ != null) { return imageBuilder_.getMessageOrBuilder(); } else { return image_ == null ? com.clarifai.grpc.api.Image.getDefaultInstance() : image_; } } /** *
     * Representative image for this model
     * 
* * .clarifai.api.Image image = 34; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Image, com.clarifai.grpc.api.Image.Builder, com.clarifai.grpc.api.ImageOrBuilder> getImageFieldBuilder() { if (imageBuilder_ == null) { imageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Image, com.clarifai.grpc.api.Image.Builder, com.clarifai.grpc.api.ImageOrBuilder>( getImage(), getParentForChildren(), isClean()); image_ = null; } return imageBuilder_; } @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.Model) } // @@protoc_insertion_point(class_scope:clarifai.api.Model) private static final com.clarifai.grpc.api.Model DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.clarifai.grpc.api.Model(); } public static com.clarifai.grpc.api.Model getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Model parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Model(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.Model getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy