com.clarifai.grpc.api.ModelVersion 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;
/**
*
* ModelVersion
*
*
* Protobuf type {@code clarifai.api.ModelVersion}
*/
public final class ModelVersion extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:clarifai.api.ModelVersion)
ModelVersionOrBuilder {
private static final long serialVersionUID = 0L;
// Use ModelVersion.newBuilder() to construct.
private ModelVersion(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ModelVersion() {
id_ = "";
description_ = "";
appId_ = "";
userId_ = "";
license_ = "";
trainLog_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ModelVersion();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ModelVersion(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
id_ = s;
break;
}
case 18: {
com.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 26: {
com.clarifai.grpc.api.status.Status.Builder subBuilder = null;
if (status_ != null) {
subBuilder = status_.toBuilder();
}
status_ = input.readMessage(com.clarifai.grpc.api.status.Status.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(status_);
status_ = subBuilder.buildPartial();
}
break;
}
case 32: {
activeConceptCount_ = input.readUInt32();
break;
}
case 42: {
com.clarifai.grpc.api.EvalMetrics.Builder subBuilder = null;
if (metrics_ != null) {
subBuilder = metrics_.toBuilder();
}
metrics_ = input.readMessage(com.clarifai.grpc.api.EvalMetrics.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metrics_);
metrics_ = subBuilder.buildPartial();
}
break;
}
case 48: {
totalInputCount_ = input.readUInt32();
break;
}
case 58: {
com.clarifai.grpc.api.PretrainedModelConfig.Builder subBuilder = null;
if (pretrainedModelConfig_ != null) {
subBuilder = pretrainedModelConfig_.toBuilder();
}
pretrainedModelConfig_ = input.readMessage(com.clarifai.grpc.api.PretrainedModelConfig.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(pretrainedModelConfig_);
pretrainedModelConfig_ = subBuilder.buildPartial();
}
break;
}
case 82: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (completedAt_ != null) {
subBuilder = completedAt_.toBuilder();
}
completedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(completedAt_);
completedAt_ = subBuilder.buildPartial();
}
break;
}
case 90: {
java.lang.String s = input.readStringRequireUtf8();
description_ = s;
break;
}
case 98: {
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 106: {
java.lang.String s = input.readStringRequireUtf8();
appId_ = s;
break;
}
case 114: {
java.lang.String s = input.readStringRequireUtf8();
userId_ = s;
break;
}
case 122: {
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 130: {
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 138: {
java.lang.String s = input.readStringRequireUtf8();
license_ = s;
break;
}
case 154: {
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 162: {
com.clarifai.grpc.api.InputInfo.Builder subBuilder = null;
if (inputInfo_ != null) {
subBuilder = inputInfo_.toBuilder();
}
inputInfo_ = input.readMessage(com.clarifai.grpc.api.InputInfo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(inputInfo_);
inputInfo_ = subBuilder.buildPartial();
}
break;
}
case 170: {
com.clarifai.grpc.api.TrainInfo.Builder subBuilder = null;
if (trainInfo_ != null) {
subBuilder = trainInfo_.toBuilder();
}
trainInfo_ = input.readMessage(com.clarifai.grpc.api.TrainInfo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(trainInfo_);
trainInfo_ = subBuilder.buildPartial();
}
break;
}
case 178: {
com.clarifai.grpc.api.ImportInfo.Builder subBuilder = null;
if (importInfo_ != null) {
subBuilder = importInfo_.toBuilder();
}
importInfo_ = input.readMessage(com.clarifai.grpc.api.ImportInfo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(importInfo_);
importInfo_ = subBuilder.buildPartial();
}
break;
}
case 186: {
java.lang.String s = input.readStringRequireUtf8();
trainLog_ = s;
break;
}
case 194: {
com.clarifai.grpc.api.ComputeInfo.Builder subBuilder = null;
if (inferenceComputeInfo_ != null) {
subBuilder = inferenceComputeInfo_.toBuilder();
}
inferenceComputeInfo_ = input.readMessage(com.clarifai.grpc.api.ComputeInfo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(inferenceComputeInfo_);
inferenceComputeInfo_ = subBuilder.buildPartial();
}
break;
}
case 202: {
com.clarifai.grpc.api.BuildInfo.Builder subBuilder = null;
if (buildInfo_ != null) {
subBuilder = buildInfo_.toBuilder();
}
buildInfo_ = input.readMessage(com.clarifai.grpc.api.BuildInfo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(buildInfo_);
buildInfo_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_ModelVersion_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_ModelVersion_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.clarifai.grpc.api.ModelVersion.class, com.clarifai.grpc.api.ModelVersion.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
* 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;
}
}
/**
* 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 CREATED_AT_FIELD_NUMBER = 2;
private com.google.protobuf.Timestamp createdAt_;
/**
*
* When the version was created.
*
*
* .google.protobuf.Timestamp created_at = 2;
* @return Whether the createdAt field is set.
*/
@java.lang.Override
public boolean hasCreatedAt() {
return createdAt_ != null;
}
/**
*
* When the version was created.
*
*
* .google.protobuf.Timestamp created_at = 2;
* @return The createdAt.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getCreatedAt() {
return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
}
/**
*
* When the version was created.
*
*
* .google.protobuf.Timestamp created_at = 2;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
return getCreatedAt();
}
public static final int STATUS_FIELD_NUMBER = 3;
private com.clarifai.grpc.api.status.Status status_;
/**
*
* The status of the version (whether it's untrained, training, trained, etc.).
*
*
* .clarifai.api.status.Status status = 3;
* @return Whether the status field is set.
*/
@java.lang.Override
public boolean hasStatus() {
return status_ != null;
}
/**
*
* The status of the version (whether it's untrained, training, trained, etc.).
*
*
* .clarifai.api.status.Status status = 3;
* @return The status.
*/
@java.lang.Override
public com.clarifai.grpc.api.status.Status getStatus() {
return status_ == null ? com.clarifai.grpc.api.status.Status.getDefaultInstance() : status_;
}
/**
*
* The status of the version (whether it's untrained, training, trained, etc.).
*
*
* .clarifai.api.status.Status status = 3;
*/
@java.lang.Override
public com.clarifai.grpc.api.status.StatusOrBuilder getStatusOrBuilder() {
return getStatus();
}
public static final int ACTIVE_CONCEPT_COUNT_FIELD_NUMBER = 4;
private int activeConceptCount_;
/**
* uint32 active_concept_count = 4;
* @return The activeConceptCount.
*/
@java.lang.Override
public int getActiveConceptCount() {
return activeConceptCount_;
}
public static final int METRICS_FIELD_NUMBER = 5;
private com.clarifai.grpc.api.EvalMetrics metrics_;
/**
* .clarifai.api.EvalMetrics metrics = 5;
* @return Whether the metrics field is set.
*/
@java.lang.Override
public boolean hasMetrics() {
return metrics_ != null;
}
/**
* .clarifai.api.EvalMetrics metrics = 5;
* @return The metrics.
*/
@java.lang.Override
public com.clarifai.grpc.api.EvalMetrics getMetrics() {
return metrics_ == null ? com.clarifai.grpc.api.EvalMetrics.getDefaultInstance() : metrics_;
}
/**
* .clarifai.api.EvalMetrics metrics = 5;
*/
@java.lang.Override
public com.clarifai.grpc.api.EvalMetricsOrBuilder getMetricsOrBuilder() {
return getMetrics();
}
public static final int TOTAL_INPUT_COUNT_FIELD_NUMBER = 6;
private int totalInputCount_;
/**
*
* number of inputs in the model version
*
*
* uint32 total_input_count = 6;
* @return The totalInputCount.
*/
@java.lang.Override
public int getTotalInputCount() {
return totalInputCount_;
}
public static final int PRETRAINED_MODEL_CONFIG_FIELD_NUMBER = 7;
private com.clarifai.grpc.api.PretrainedModelConfig pretrainedModelConfig_;
/**
* .clarifai.api.PretrainedModelConfig pretrained_model_config = 7;
* @return Whether the pretrainedModelConfig field is set.
*/
@java.lang.Override
public boolean hasPretrainedModelConfig() {
return pretrainedModelConfig_ != null;
}
/**
* .clarifai.api.PretrainedModelConfig pretrained_model_config = 7;
* @return The pretrainedModelConfig.
*/
@java.lang.Override
public com.clarifai.grpc.api.PretrainedModelConfig getPretrainedModelConfig() {
return pretrainedModelConfig_ == null ? com.clarifai.grpc.api.PretrainedModelConfig.getDefaultInstance() : pretrainedModelConfig_;
}
/**
* .clarifai.api.PretrainedModelConfig pretrained_model_config = 7;
*/
@java.lang.Override
public com.clarifai.grpc.api.PretrainedModelConfigOrBuilder getPretrainedModelConfigOrBuilder() {
return getPretrainedModelConfig();
}
public static final int COMPLETED_AT_FIELD_NUMBER = 10;
private com.google.protobuf.Timestamp completedAt_;
/**
*
* When training of this version was completed.
*
*
* .google.protobuf.Timestamp completed_at = 10;
* @return Whether the completedAt field is set.
*/
@java.lang.Override
public boolean hasCompletedAt() {
return completedAt_ != null;
}
/**
*
* When training of this version was completed.
*
*
* .google.protobuf.Timestamp completed_at = 10;
* @return The completedAt.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getCompletedAt() {
return completedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completedAt_;
}
/**
*
* When training of this version was completed.
*
*
* .google.protobuf.Timestamp completed_at = 10;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCompletedAtOrBuilder() {
return getCompletedAt();
}
public static final int DESCRIPTION_FIELD_NUMBER = 11;
private volatile java.lang.Object description_;
/**
*
* Description about this version
*
*
* string description = 11;
* @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;
}
}
/**
*
* Description about this version
*
*
* string description = 11;
* @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 VISIBILITY_FIELD_NUMBER = 12;
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 = 12;
* @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 = 12;
* @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 = 12;
*/
@java.lang.Override
public com.clarifai.grpc.api.VisibilityOrBuilder getVisibilityOrBuilder() {
return getVisibility();
}
public static final int APP_ID_FIELD_NUMBER = 13;
private volatile java.lang.Object appId_;
/**
*
* The app the model version belongs to.
*
*
* string app_id = 13;
* @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 version belongs to.
*
*
* string app_id = 13;
* @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 USER_ID_FIELD_NUMBER = 14;
private volatile java.lang.Object userId_;
/**
*
* The user the model version belongs to.
*
*
* string user_id = 14;
* @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 the model version belongs to.
*
*
* string user_id = 14;
* @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 MODIFIED_AT_FIELD_NUMBER = 15;
private com.google.protobuf.Timestamp modifiedAt_;
/**
*
* When this model version was last modified
*
*
* .google.protobuf.Timestamp modified_at = 15;
* @return Whether the modifiedAt field is set.
*/
@java.lang.Override
public boolean hasModifiedAt() {
return modifiedAt_ != null;
}
/**
*
* When this model version was last modified
*
*
* .google.protobuf.Timestamp modified_at = 15;
* @return The modifiedAt.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getModifiedAt() {
return modifiedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modifiedAt_;
}
/**
*
* When this model version was last modified
*
*
* .google.protobuf.Timestamp modified_at = 15;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getModifiedAtOrBuilder() {
return getModifiedAt();
}
public static final int METADATA_FIELD_NUMBER = 16;
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 = 16;
* @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 = 16;
* @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 = 16;
*/
@java.lang.Override
public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() {
return getMetadata();
}
public static final int LICENSE_FIELD_NUMBER = 17;
private volatile java.lang.Object license_;
/**
* string license = 17;
* @return The license.
*/
@java.lang.Override
public java.lang.String getLicense() {
java.lang.Object ref = license_;
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();
license_ = s;
return s;
}
}
/**
* string license = 17;
* @return The bytes for license.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLicenseBytes() {
java.lang.Object ref = license_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
license_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OUTPUT_INFO_FIELD_NUMBER = 19;
private com.clarifai.grpc.api.OutputInfo outputInfo_;
/**
*
* Info about the model's output. Besides `output_info.data`, these fields should
* be reserved for parameters that affect the models outputs when inferencing.
* `output_info.data` is used to specify the training concepts for this model version.
*
*
* .clarifai.api.OutputInfo output_info = 19;
* @return Whether the outputInfo field is set.
*/
@java.lang.Override
public boolean hasOutputInfo() {
return outputInfo_ != null;
}
/**
*
* Info about the model's output. Besides `output_info.data`, these fields should
* be reserved for parameters that affect the models outputs when inferencing.
* `output_info.data` is used to specify the training concepts for this model version.
*
*
* .clarifai.api.OutputInfo output_info = 19;
* @return The outputInfo.
*/
@java.lang.Override
public com.clarifai.grpc.api.OutputInfo getOutputInfo() {
return outputInfo_ == null ? com.clarifai.grpc.api.OutputInfo.getDefaultInstance() : outputInfo_;
}
/**
*
* Info about the model's output. Besides `output_info.data`, these fields should
* be reserved for parameters that affect the models outputs when inferencing.
* `output_info.data` is used to specify the training concepts for this model version.
*
*
* .clarifai.api.OutputInfo output_info = 19;
*/
@java.lang.Override
public com.clarifai.grpc.api.OutputInfoOrBuilder getOutputInfoOrBuilder() {
return getOutputInfo();
}
public static final int INPUT_INFO_FIELD_NUMBER = 20;
private com.clarifai.grpc.api.InputInfo inputInfo_;
/**
*
* Info about preprocessing the models inputs, before they are sent to this model for training or inferencing.
* E.g.: `input_info.base_embed_model` lets us know inputs should be ran through a base model before being sent to an embedding-classifier.
*
*
* .clarifai.api.InputInfo input_info = 20;
* @return Whether the inputInfo field is set.
*/
@java.lang.Override
public boolean hasInputInfo() {
return inputInfo_ != null;
}
/**
*
* Info about preprocessing the models inputs, before they are sent to this model for training or inferencing.
* E.g.: `input_info.base_embed_model` lets us know inputs should be ran through a base model before being sent to an embedding-classifier.
*
*
* .clarifai.api.InputInfo input_info = 20;
* @return The inputInfo.
*/
@java.lang.Override
public com.clarifai.grpc.api.InputInfo getInputInfo() {
return inputInfo_ == null ? com.clarifai.grpc.api.InputInfo.getDefaultInstance() : inputInfo_;
}
/**
*
* Info about preprocessing the models inputs, before they are sent to this model for training or inferencing.
* E.g.: `input_info.base_embed_model` lets us know inputs should be ran through a base model before being sent to an embedding-classifier.
*
*
* .clarifai.api.InputInfo input_info = 20;
*/
@java.lang.Override
public com.clarifai.grpc.api.InputInfoOrBuilder getInputInfoOrBuilder() {
return getInputInfo();
}
public static final int TRAIN_INFO_FIELD_NUMBER = 21;
private com.clarifai.grpc.api.TrainInfo trainInfo_;
/**
*
* Configuration for the training process of this model version.
*
*
* .clarifai.api.TrainInfo train_info = 21;
* @return Whether the trainInfo field is set.
*/
@java.lang.Override
public boolean hasTrainInfo() {
return trainInfo_ != null;
}
/**
*
* Configuration for the training process of this model version.
*
*
* .clarifai.api.TrainInfo train_info = 21;
* @return The trainInfo.
*/
@java.lang.Override
public com.clarifai.grpc.api.TrainInfo getTrainInfo() {
return trainInfo_ == null ? com.clarifai.grpc.api.TrainInfo.getDefaultInstance() : trainInfo_;
}
/**
*
* Configuration for the training process of this model version.
*
*
* .clarifai.api.TrainInfo train_info = 21;
*/
@java.lang.Override
public com.clarifai.grpc.api.TrainInfoOrBuilder getTrainInfoOrBuilder() {
return getTrainInfo();
}
public static final int IMPORT_INFO_FIELD_NUMBER = 22;
private com.clarifai.grpc.api.ImportInfo importInfo_;
/**
*
* Configuration used to import model from third-party toolkits
*
*
* .clarifai.api.ImportInfo import_info = 22;
* @return Whether the importInfo field is set.
*/
@java.lang.Override
public boolean hasImportInfo() {
return importInfo_ != null;
}
/**
*
* Configuration used to import model from third-party toolkits
*
*
* .clarifai.api.ImportInfo import_info = 22;
* @return The importInfo.
*/
@java.lang.Override
public com.clarifai.grpc.api.ImportInfo getImportInfo() {
return importInfo_ == null ? com.clarifai.grpc.api.ImportInfo.getDefaultInstance() : importInfo_;
}
/**
*
* Configuration used to import model from third-party toolkits
*
*
* .clarifai.api.ImportInfo import_info = 22;
*/
@java.lang.Override
public com.clarifai.grpc.api.ImportInfoOrBuilder getImportInfoOrBuilder() {
return getImportInfo();
}
public static final int TRAIN_LOG_FIELD_NUMBER = 23;
private volatile java.lang.Object trainLog_;
/**
*
* Contains the training logs if available
*
*
* string train_log = 23;
* @return The trainLog.
*/
@java.lang.Override
public java.lang.String getTrainLog() {
java.lang.Object ref = trainLog_;
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();
trainLog_ = s;
return s;
}
}
/**
*
* Contains the training logs if available
*
*
* string train_log = 23;
* @return The bytes for trainLog.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTrainLogBytes() {
java.lang.Object ref = trainLog_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
trainLog_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INFERENCE_COMPUTE_INFO_FIELD_NUMBER = 24;
private com.clarifai.grpc.api.ComputeInfo inferenceComputeInfo_;
/**
*
* The minimum required compute resource for this model for inference.
*
*
* .clarifai.api.ComputeInfo inference_compute_info = 24;
* @return Whether the inferenceComputeInfo field is set.
*/
@java.lang.Override
public boolean hasInferenceComputeInfo() {
return inferenceComputeInfo_ != null;
}
/**
*
* The minimum required compute resource for this model for inference.
*
*
* .clarifai.api.ComputeInfo inference_compute_info = 24;
* @return The inferenceComputeInfo.
*/
@java.lang.Override
public com.clarifai.grpc.api.ComputeInfo getInferenceComputeInfo() {
return inferenceComputeInfo_ == null ? com.clarifai.grpc.api.ComputeInfo.getDefaultInstance() : inferenceComputeInfo_;
}
/**
*
* The minimum required compute resource for this model for inference.
*
*
* .clarifai.api.ComputeInfo inference_compute_info = 24;
*/
@java.lang.Override
public com.clarifai.grpc.api.ComputeInfoOrBuilder getInferenceComputeInfoOrBuilder() {
return getInferenceComputeInfo();
}
public static final int BUILD_INFO_FIELD_NUMBER = 25;
private com.clarifai.grpc.api.BuildInfo buildInfo_;
/**
*
* Build information for the model version
*
*
* .clarifai.api.BuildInfo build_info = 25;
* @return Whether the buildInfo field is set.
*/
@java.lang.Override
public boolean hasBuildInfo() {
return buildInfo_ != null;
}
/**
*
* Build information for the model version
*
*
* .clarifai.api.BuildInfo build_info = 25;
* @return The buildInfo.
*/
@java.lang.Override
public com.clarifai.grpc.api.BuildInfo getBuildInfo() {
return buildInfo_ == null ? com.clarifai.grpc.api.BuildInfo.getDefaultInstance() : buildInfo_;
}
/**
*
* Build information for the model version
*
*
* .clarifai.api.BuildInfo build_info = 25;
*/
@java.lang.Override
public com.clarifai.grpc.api.BuildInfoOrBuilder getBuildInfoOrBuilder() {
return getBuildInfo();
}
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 (createdAt_ != null) {
output.writeMessage(2, getCreatedAt());
}
if (status_ != null) {
output.writeMessage(3, getStatus());
}
if (activeConceptCount_ != 0) {
output.writeUInt32(4, activeConceptCount_);
}
if (metrics_ != null) {
output.writeMessage(5, getMetrics());
}
if (totalInputCount_ != 0) {
output.writeUInt32(6, totalInputCount_);
}
if (pretrainedModelConfig_ != null) {
output.writeMessage(7, getPretrainedModelConfig());
}
if (completedAt_ != null) {
output.writeMessage(10, getCompletedAt());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, description_);
}
if (visibility_ != null) {
output.writeMessage(12, getVisibility());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(appId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 13, appId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 14, userId_);
}
if (modifiedAt_ != null) {
output.writeMessage(15, getModifiedAt());
}
if (metadata_ != null) {
output.writeMessage(16, getMetadata());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(license_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 17, license_);
}
if (outputInfo_ != null) {
output.writeMessage(19, getOutputInfo());
}
if (inputInfo_ != null) {
output.writeMessage(20, getInputInfo());
}
if (trainInfo_ != null) {
output.writeMessage(21, getTrainInfo());
}
if (importInfo_ != null) {
output.writeMessage(22, getImportInfo());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(trainLog_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 23, trainLog_);
}
if (inferenceComputeInfo_ != null) {
output.writeMessage(24, getInferenceComputeInfo());
}
if (buildInfo_ != null) {
output.writeMessage(25, getBuildInfo());
}
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 (createdAt_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getCreatedAt());
}
if (status_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getStatus());
}
if (activeConceptCount_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, activeConceptCount_);
}
if (metrics_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getMetrics());
}
if (totalInputCount_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(6, totalInputCount_);
}
if (pretrainedModelConfig_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getPretrainedModelConfig());
}
if (completedAt_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getCompletedAt());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, description_);
}
if (visibility_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, getVisibility());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(appId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, appId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, userId_);
}
if (modifiedAt_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, getModifiedAt());
}
if (metadata_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(16, getMetadata());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(license_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, license_);
}
if (outputInfo_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(19, getOutputInfo());
}
if (inputInfo_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(20, getInputInfo());
}
if (trainInfo_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(21, getTrainInfo());
}
if (importInfo_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(22, getImportInfo());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(trainLog_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, trainLog_);
}
if (inferenceComputeInfo_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(24, getInferenceComputeInfo());
}
if (buildInfo_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(25, getBuildInfo());
}
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.ModelVersion)) {
return super.equals(obj);
}
com.clarifai.grpc.api.ModelVersion other = (com.clarifai.grpc.api.ModelVersion) obj;
if (!getId()
.equals(other.getId())) return false;
if (hasCreatedAt() != other.hasCreatedAt()) return false;
if (hasCreatedAt()) {
if (!getCreatedAt()
.equals(other.getCreatedAt())) return false;
}
if (hasStatus() != other.hasStatus()) return false;
if (hasStatus()) {
if (!getStatus()
.equals(other.getStatus())) return false;
}
if (getActiveConceptCount()
!= other.getActiveConceptCount()) return false;
if (hasMetrics() != other.hasMetrics()) return false;
if (hasMetrics()) {
if (!getMetrics()
.equals(other.getMetrics())) return false;
}
if (getTotalInputCount()
!= other.getTotalInputCount()) return false;
if (hasPretrainedModelConfig() != other.hasPretrainedModelConfig()) return false;
if (hasPretrainedModelConfig()) {
if (!getPretrainedModelConfig()
.equals(other.getPretrainedModelConfig())) return false;
}
if (hasCompletedAt() != other.hasCompletedAt()) return false;
if (hasCompletedAt()) {
if (!getCompletedAt()
.equals(other.getCompletedAt())) return false;
}
if (!getDescription()
.equals(other.getDescription())) return false;
if (hasVisibility() != other.hasVisibility()) return false;
if (hasVisibility()) {
if (!getVisibility()
.equals(other.getVisibility())) return false;
}
if (!getAppId()
.equals(other.getAppId())) return false;
if (!getUserId()
.equals(other.getUserId())) return false;
if (hasModifiedAt() != other.hasModifiedAt()) return false;
if (hasModifiedAt()) {
if (!getModifiedAt()
.equals(other.getModifiedAt())) return false;
}
if (hasMetadata() != other.hasMetadata()) return false;
if (hasMetadata()) {
if (!getMetadata()
.equals(other.getMetadata())) return false;
}
if (!getLicense()
.equals(other.getLicense())) return false;
if (hasOutputInfo() != other.hasOutputInfo()) return false;
if (hasOutputInfo()) {
if (!getOutputInfo()
.equals(other.getOutputInfo())) return false;
}
if (hasInputInfo() != other.hasInputInfo()) return false;
if (hasInputInfo()) {
if (!getInputInfo()
.equals(other.getInputInfo())) return false;
}
if (hasTrainInfo() != other.hasTrainInfo()) return false;
if (hasTrainInfo()) {
if (!getTrainInfo()
.equals(other.getTrainInfo())) return false;
}
if (hasImportInfo() != other.hasImportInfo()) return false;
if (hasImportInfo()) {
if (!getImportInfo()
.equals(other.getImportInfo())) return false;
}
if (!getTrainLog()
.equals(other.getTrainLog())) return false;
if (hasInferenceComputeInfo() != other.hasInferenceComputeInfo()) return false;
if (hasInferenceComputeInfo()) {
if (!getInferenceComputeInfo()
.equals(other.getInferenceComputeInfo())) return false;
}
if (hasBuildInfo() != other.hasBuildInfo()) return false;
if (hasBuildInfo()) {
if (!getBuildInfo()
.equals(other.getBuildInfo())) 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();
if (hasCreatedAt()) {
hash = (37 * hash) + CREATED_AT_FIELD_NUMBER;
hash = (53 * hash) + getCreatedAt().hashCode();
}
if (hasStatus()) {
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + getStatus().hashCode();
}
hash = (37 * hash) + ACTIVE_CONCEPT_COUNT_FIELD_NUMBER;
hash = (53 * hash) + getActiveConceptCount();
if (hasMetrics()) {
hash = (37 * hash) + METRICS_FIELD_NUMBER;
hash = (53 * hash) + getMetrics().hashCode();
}
hash = (37 * hash) + TOTAL_INPUT_COUNT_FIELD_NUMBER;
hash = (53 * hash) + getTotalInputCount();
if (hasPretrainedModelConfig()) {
hash = (37 * hash) + PRETRAINED_MODEL_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getPretrainedModelConfig().hashCode();
}
if (hasCompletedAt()) {
hash = (37 * hash) + COMPLETED_AT_FIELD_NUMBER;
hash = (53 * hash) + getCompletedAt().hashCode();
}
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
if (hasVisibility()) {
hash = (37 * hash) + VISIBILITY_FIELD_NUMBER;
hash = (53 * hash) + getVisibility().hashCode();
}
hash = (37 * hash) + APP_ID_FIELD_NUMBER;
hash = (53 * hash) + getAppId().hashCode();
hash = (37 * hash) + USER_ID_FIELD_NUMBER;
hash = (53 * hash) + getUserId().hashCode();
if (hasModifiedAt()) {
hash = (37 * hash) + MODIFIED_AT_FIELD_NUMBER;
hash = (53 * hash) + getModifiedAt().hashCode();
}
if (hasMetadata()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMetadata().hashCode();
}
hash = (37 * hash) + LICENSE_FIELD_NUMBER;
hash = (53 * hash) + getLicense().hashCode();
if (hasOutputInfo()) {
hash = (37 * hash) + OUTPUT_INFO_FIELD_NUMBER;
hash = (53 * hash) + getOutputInfo().hashCode();
}
if (hasInputInfo()) {
hash = (37 * hash) + INPUT_INFO_FIELD_NUMBER;
hash = (53 * hash) + getInputInfo().hashCode();
}
if (hasTrainInfo()) {
hash = (37 * hash) + TRAIN_INFO_FIELD_NUMBER;
hash = (53 * hash) + getTrainInfo().hashCode();
}
if (hasImportInfo()) {
hash = (37 * hash) + IMPORT_INFO_FIELD_NUMBER;
hash = (53 * hash) + getImportInfo().hashCode();
}
hash = (37 * hash) + TRAIN_LOG_FIELD_NUMBER;
hash = (53 * hash) + getTrainLog().hashCode();
if (hasInferenceComputeInfo()) {
hash = (37 * hash) + INFERENCE_COMPUTE_INFO_FIELD_NUMBER;
hash = (53 * hash) + getInferenceComputeInfo().hashCode();
}
if (hasBuildInfo()) {
hash = (37 * hash) + BUILD_INFO_FIELD_NUMBER;
hash = (53 * hash) + getBuildInfo().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.clarifai.grpc.api.ModelVersion parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.ModelVersion 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.ModelVersion parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.ModelVersion 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.ModelVersion parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.ModelVersion parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.clarifai.grpc.api.ModelVersion parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.ModelVersion 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.ModelVersion parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.ModelVersion 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.ModelVersion parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.ModelVersion 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.ModelVersion 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;
}
/**
*
* ModelVersion
*
*
* Protobuf type {@code clarifai.api.ModelVersion}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:clarifai.api.ModelVersion)
com.clarifai.grpc.api.ModelVersionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_ModelVersion_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_ModelVersion_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.clarifai.grpc.api.ModelVersion.class, com.clarifai.grpc.api.ModelVersion.Builder.class);
}
// Construct using com.clarifai.grpc.api.ModelVersion.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
id_ = "";
if (createdAtBuilder_ == null) {
createdAt_ = null;
} else {
createdAt_ = null;
createdAtBuilder_ = null;
}
if (statusBuilder_ == null) {
status_ = null;
} else {
status_ = null;
statusBuilder_ = null;
}
activeConceptCount_ = 0;
if (metricsBuilder_ == null) {
metrics_ = null;
} else {
metrics_ = null;
metricsBuilder_ = null;
}
totalInputCount_ = 0;
if (pretrainedModelConfigBuilder_ == null) {
pretrainedModelConfig_ = null;
} else {
pretrainedModelConfig_ = null;
pretrainedModelConfigBuilder_ = null;
}
if (completedAtBuilder_ == null) {
completedAt_ = null;
} else {
completedAt_ = null;
completedAtBuilder_ = null;
}
description_ = "";
if (visibilityBuilder_ == null) {
visibility_ = null;
} else {
visibility_ = null;
visibilityBuilder_ = null;
}
appId_ = "";
userId_ = "";
if (modifiedAtBuilder_ == null) {
modifiedAt_ = null;
} else {
modifiedAt_ = null;
modifiedAtBuilder_ = null;
}
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadata_ = null;
metadataBuilder_ = null;
}
license_ = "";
if (outputInfoBuilder_ == null) {
outputInfo_ = null;
} else {
outputInfo_ = null;
outputInfoBuilder_ = null;
}
if (inputInfoBuilder_ == null) {
inputInfo_ = null;
} else {
inputInfo_ = null;
inputInfoBuilder_ = null;
}
if (trainInfoBuilder_ == null) {
trainInfo_ = null;
} else {
trainInfo_ = null;
trainInfoBuilder_ = null;
}
if (importInfoBuilder_ == null) {
importInfo_ = null;
} else {
importInfo_ = null;
importInfoBuilder_ = null;
}
trainLog_ = "";
if (inferenceComputeInfoBuilder_ == null) {
inferenceComputeInfo_ = null;
} else {
inferenceComputeInfo_ = null;
inferenceComputeInfoBuilder_ = null;
}
if (buildInfoBuilder_ == null) {
buildInfo_ = null;
} else {
buildInfo_ = null;
buildInfoBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_ModelVersion_descriptor;
}
@java.lang.Override
public com.clarifai.grpc.api.ModelVersion getDefaultInstanceForType() {
return com.clarifai.grpc.api.ModelVersion.getDefaultInstance();
}
@java.lang.Override
public com.clarifai.grpc.api.ModelVersion build() {
com.clarifai.grpc.api.ModelVersion result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.clarifai.grpc.api.ModelVersion buildPartial() {
com.clarifai.grpc.api.ModelVersion result = new com.clarifai.grpc.api.ModelVersion(this);
result.id_ = id_;
if (createdAtBuilder_ == null) {
result.createdAt_ = createdAt_;
} else {
result.createdAt_ = createdAtBuilder_.build();
}
if (statusBuilder_ == null) {
result.status_ = status_;
} else {
result.status_ = statusBuilder_.build();
}
result.activeConceptCount_ = activeConceptCount_;
if (metricsBuilder_ == null) {
result.metrics_ = metrics_;
} else {
result.metrics_ = metricsBuilder_.build();
}
result.totalInputCount_ = totalInputCount_;
if (pretrainedModelConfigBuilder_ == null) {
result.pretrainedModelConfig_ = pretrainedModelConfig_;
} else {
result.pretrainedModelConfig_ = pretrainedModelConfigBuilder_.build();
}
if (completedAtBuilder_ == null) {
result.completedAt_ = completedAt_;
} else {
result.completedAt_ = completedAtBuilder_.build();
}
result.description_ = description_;
if (visibilityBuilder_ == null) {
result.visibility_ = visibility_;
} else {
result.visibility_ = visibilityBuilder_.build();
}
result.appId_ = appId_;
result.userId_ = userId_;
if (modifiedAtBuilder_ == null) {
result.modifiedAt_ = modifiedAt_;
} else {
result.modifiedAt_ = modifiedAtBuilder_.build();
}
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.build();
}
result.license_ = license_;
if (outputInfoBuilder_ == null) {
result.outputInfo_ = outputInfo_;
} else {
result.outputInfo_ = outputInfoBuilder_.build();
}
if (inputInfoBuilder_ == null) {
result.inputInfo_ = inputInfo_;
} else {
result.inputInfo_ = inputInfoBuilder_.build();
}
if (trainInfoBuilder_ == null) {
result.trainInfo_ = trainInfo_;
} else {
result.trainInfo_ = trainInfoBuilder_.build();
}
if (importInfoBuilder_ == null) {
result.importInfo_ = importInfo_;
} else {
result.importInfo_ = importInfoBuilder_.build();
}
result.trainLog_ = trainLog_;
if (inferenceComputeInfoBuilder_ == null) {
result.inferenceComputeInfo_ = inferenceComputeInfo_;
} else {
result.inferenceComputeInfo_ = inferenceComputeInfoBuilder_.build();
}
if (buildInfoBuilder_ == null) {
result.buildInfo_ = buildInfo_;
} else {
result.buildInfo_ = buildInfoBuilder_.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.ModelVersion) {
return mergeFrom((com.clarifai.grpc.api.ModelVersion)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.clarifai.grpc.api.ModelVersion other) {
if (other == com.clarifai.grpc.api.ModelVersion.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (other.hasCreatedAt()) {
mergeCreatedAt(other.getCreatedAt());
}
if (other.hasStatus()) {
mergeStatus(other.getStatus());
}
if (other.getActiveConceptCount() != 0) {
setActiveConceptCount(other.getActiveConceptCount());
}
if (other.hasMetrics()) {
mergeMetrics(other.getMetrics());
}
if (other.getTotalInputCount() != 0) {
setTotalInputCount(other.getTotalInputCount());
}
if (other.hasPretrainedModelConfig()) {
mergePretrainedModelConfig(other.getPretrainedModelConfig());
}
if (other.hasCompletedAt()) {
mergeCompletedAt(other.getCompletedAt());
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
if (other.hasVisibility()) {
mergeVisibility(other.getVisibility());
}
if (!other.getAppId().isEmpty()) {
appId_ = other.appId_;
onChanged();
}
if (!other.getUserId().isEmpty()) {
userId_ = other.userId_;
onChanged();
}
if (other.hasModifiedAt()) {
mergeModifiedAt(other.getModifiedAt());
}
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
if (!other.getLicense().isEmpty()) {
license_ = other.license_;
onChanged();
}
if (other.hasOutputInfo()) {
mergeOutputInfo(other.getOutputInfo());
}
if (other.hasInputInfo()) {
mergeInputInfo(other.getInputInfo());
}
if (other.hasTrainInfo()) {
mergeTrainInfo(other.getTrainInfo());
}
if (other.hasImportInfo()) {
mergeImportInfo(other.getImportInfo());
}
if (!other.getTrainLog().isEmpty()) {
trainLog_ = other.trainLog_;
onChanged();
}
if (other.hasInferenceComputeInfo()) {
mergeInferenceComputeInfo(other.getInferenceComputeInfo());
}
if (other.hasBuildInfo()) {
mergeBuildInfo(other.getBuildInfo());
}
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.ModelVersion parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.clarifai.grpc.api.ModelVersion) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object id_ = "";
/**
* 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;
}
}
/**
* 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;
}
}
/**
* 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;
}
/**
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
* string id = 1;
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
id_ = value;
onChanged();
return this;
}
private com.google.protobuf.Timestamp createdAt_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_;
/**
*
* When the version was created.
*
*
* .google.protobuf.Timestamp created_at = 2;
* @return Whether the createdAt field is set.
*/
public boolean hasCreatedAt() {
return createdAtBuilder_ != null || createdAt_ != null;
}
/**
*
* When the version was created.
*
*
* .google.protobuf.Timestamp created_at = 2;
* @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 version was created.
*
*
* .google.protobuf.Timestamp created_at = 2;
*/
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 version was created.
*
*
* .google.protobuf.Timestamp created_at = 2;
*/
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 version was created.
*
*
* .google.protobuf.Timestamp created_at = 2;
*/
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 version was created.
*
*
* .google.protobuf.Timestamp created_at = 2;
*/
public Builder clearCreatedAt() {
if (createdAtBuilder_ == null) {
createdAt_ = null;
onChanged();
} else {
createdAt_ = null;
createdAtBuilder_ = null;
}
return this;
}
/**
*
* When the version was created.
*
*
* .google.protobuf.Timestamp created_at = 2;
*/
public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() {
onChanged();
return getCreatedAtFieldBuilder().getBuilder();
}
/**
*
* When the version was created.
*
*
* .google.protobuf.Timestamp created_at = 2;
*/
public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
if (createdAtBuilder_ != null) {
return createdAtBuilder_.getMessageOrBuilder();
} else {
return createdAt_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
}
}
/**
*
* When the version was created.
*
*
* .google.protobuf.Timestamp created_at = 2;
*/
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.clarifai.grpc.api.status.Status status_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.status.Status, com.clarifai.grpc.api.status.Status.Builder, com.clarifai.grpc.api.status.StatusOrBuilder> statusBuilder_;
/**
*
* The status of the version (whether it's untrained, training, trained, etc.).
*
*
* .clarifai.api.status.Status status = 3;
* @return Whether the status field is set.
*/
public boolean hasStatus() {
return statusBuilder_ != null || status_ != null;
}
/**
*
* The status of the version (whether it's untrained, training, trained, etc.).
*
*
* .clarifai.api.status.Status status = 3;
* @return The status.
*/
public com.clarifai.grpc.api.status.Status getStatus() {
if (statusBuilder_ == null) {
return status_ == null ? com.clarifai.grpc.api.status.Status.getDefaultInstance() : status_;
} else {
return statusBuilder_.getMessage();
}
}
/**
*
* The status of the version (whether it's untrained, training, trained, etc.).
*
*
* .clarifai.api.status.Status status = 3;
*/
public Builder setStatus(com.clarifai.grpc.api.status.Status value) {
if (statusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
status_ = value;
onChanged();
} else {
statusBuilder_.setMessage(value);
}
return this;
}
/**
*
* The status of the version (whether it's untrained, training, trained, etc.).
*
*
* .clarifai.api.status.Status status = 3;
*/
public Builder setStatus(
com.clarifai.grpc.api.status.Status.Builder builderForValue) {
if (statusBuilder_ == null) {
status_ = builderForValue.build();
onChanged();
} else {
statusBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The status of the version (whether it's untrained, training, trained, etc.).
*
*
* .clarifai.api.status.Status status = 3;
*/
public Builder mergeStatus(com.clarifai.grpc.api.status.Status value) {
if (statusBuilder_ == null) {
if (status_ != null) {
status_ =
com.clarifai.grpc.api.status.Status.newBuilder(status_).mergeFrom(value).buildPartial();
} else {
status_ = value;
}
onChanged();
} else {
statusBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The status of the version (whether it's untrained, training, trained, etc.).
*
*
* .clarifai.api.status.Status status = 3;
*/
public Builder clearStatus() {
if (statusBuilder_ == null) {
status_ = null;
onChanged();
} else {
status_ = null;
statusBuilder_ = null;
}
return this;
}
/**
*
* The status of the version (whether it's untrained, training, trained, etc.).
*
*
* .clarifai.api.status.Status status = 3;
*/
public com.clarifai.grpc.api.status.Status.Builder getStatusBuilder() {
onChanged();
return getStatusFieldBuilder().getBuilder();
}
/**
*
* The status of the version (whether it's untrained, training, trained, etc.).
*
*
* .clarifai.api.status.Status status = 3;
*/
public com.clarifai.grpc.api.status.StatusOrBuilder getStatusOrBuilder() {
if (statusBuilder_ != null) {
return statusBuilder_.getMessageOrBuilder();
} else {
return status_ == null ?
com.clarifai.grpc.api.status.Status.getDefaultInstance() : status_;
}
}
/**
*
* The status of the version (whether it's untrained, training, trained, etc.).
*
*
* .clarifai.api.status.Status status = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.status.Status, com.clarifai.grpc.api.status.Status.Builder, com.clarifai.grpc.api.status.StatusOrBuilder>
getStatusFieldBuilder() {
if (statusBuilder_ == null) {
statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.status.Status, com.clarifai.grpc.api.status.Status.Builder, com.clarifai.grpc.api.status.StatusOrBuilder>(
getStatus(),
getParentForChildren(),
isClean());
status_ = null;
}
return statusBuilder_;
}
private int activeConceptCount_ ;
/**
* uint32 active_concept_count = 4;
* @return The activeConceptCount.
*/
@java.lang.Override
public int getActiveConceptCount() {
return activeConceptCount_;
}
/**
* uint32 active_concept_count = 4;
* @param value The activeConceptCount to set.
* @return This builder for chaining.
*/
public Builder setActiveConceptCount(int value) {
activeConceptCount_ = value;
onChanged();
return this;
}
/**
* uint32 active_concept_count = 4;
* @return This builder for chaining.
*/
public Builder clearActiveConceptCount() {
activeConceptCount_ = 0;
onChanged();
return this;
}
private com.clarifai.grpc.api.EvalMetrics metrics_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.EvalMetrics, com.clarifai.grpc.api.EvalMetrics.Builder, com.clarifai.grpc.api.EvalMetricsOrBuilder> metricsBuilder_;
/**
* .clarifai.api.EvalMetrics metrics = 5;
* @return Whether the metrics field is set.
*/
public boolean hasMetrics() {
return metricsBuilder_ != null || metrics_ != null;
}
/**
* .clarifai.api.EvalMetrics metrics = 5;
* @return The metrics.
*/
public com.clarifai.grpc.api.EvalMetrics getMetrics() {
if (metricsBuilder_ == null) {
return metrics_ == null ? com.clarifai.grpc.api.EvalMetrics.getDefaultInstance() : metrics_;
} else {
return metricsBuilder_.getMessage();
}
}
/**
* .clarifai.api.EvalMetrics metrics = 5;
*/
public Builder setMetrics(com.clarifai.grpc.api.EvalMetrics value) {
if (metricsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metrics_ = value;
onChanged();
} else {
metricsBuilder_.setMessage(value);
}
return this;
}
/**
* .clarifai.api.EvalMetrics metrics = 5;
*/
public Builder setMetrics(
com.clarifai.grpc.api.EvalMetrics.Builder builderForValue) {
if (metricsBuilder_ == null) {
metrics_ = builderForValue.build();
onChanged();
} else {
metricsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .clarifai.api.EvalMetrics metrics = 5;
*/
public Builder mergeMetrics(com.clarifai.grpc.api.EvalMetrics value) {
if (metricsBuilder_ == null) {
if (metrics_ != null) {
metrics_ =
com.clarifai.grpc.api.EvalMetrics.newBuilder(metrics_).mergeFrom(value).buildPartial();
} else {
metrics_ = value;
}
onChanged();
} else {
metricsBuilder_.mergeFrom(value);
}
return this;
}
/**
* .clarifai.api.EvalMetrics metrics = 5;
*/
public Builder clearMetrics() {
if (metricsBuilder_ == null) {
metrics_ = null;
onChanged();
} else {
metrics_ = null;
metricsBuilder_ = null;
}
return this;
}
/**
* .clarifai.api.EvalMetrics metrics = 5;
*/
public com.clarifai.grpc.api.EvalMetrics.Builder getMetricsBuilder() {
onChanged();
return getMetricsFieldBuilder().getBuilder();
}
/**
* .clarifai.api.EvalMetrics metrics = 5;
*/
public com.clarifai.grpc.api.EvalMetricsOrBuilder getMetricsOrBuilder() {
if (metricsBuilder_ != null) {
return metricsBuilder_.getMessageOrBuilder();
} else {
return metrics_ == null ?
com.clarifai.grpc.api.EvalMetrics.getDefaultInstance() : metrics_;
}
}
/**
* .clarifai.api.EvalMetrics metrics = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.EvalMetrics, com.clarifai.grpc.api.EvalMetrics.Builder, com.clarifai.grpc.api.EvalMetricsOrBuilder>
getMetricsFieldBuilder() {
if (metricsBuilder_ == null) {
metricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.EvalMetrics, com.clarifai.grpc.api.EvalMetrics.Builder, com.clarifai.grpc.api.EvalMetricsOrBuilder>(
getMetrics(),
getParentForChildren(),
isClean());
metrics_ = null;
}
return metricsBuilder_;
}
private int totalInputCount_ ;
/**
*
* number of inputs in the model version
*
*
* uint32 total_input_count = 6;
* @return The totalInputCount.
*/
@java.lang.Override
public int getTotalInputCount() {
return totalInputCount_;
}
/**
*
* number of inputs in the model version
*
*
* uint32 total_input_count = 6;
* @param value The totalInputCount to set.
* @return This builder for chaining.
*/
public Builder setTotalInputCount(int value) {
totalInputCount_ = value;
onChanged();
return this;
}
/**
*
* number of inputs in the model version
*
*
* uint32 total_input_count = 6;
* @return This builder for chaining.
*/
public Builder clearTotalInputCount() {
totalInputCount_ = 0;
onChanged();
return this;
}
private com.clarifai.grpc.api.PretrainedModelConfig pretrainedModelConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.PretrainedModelConfig, com.clarifai.grpc.api.PretrainedModelConfig.Builder, com.clarifai.grpc.api.PretrainedModelConfigOrBuilder> pretrainedModelConfigBuilder_;
/**
* .clarifai.api.PretrainedModelConfig pretrained_model_config = 7;
* @return Whether the pretrainedModelConfig field is set.
*/
public boolean hasPretrainedModelConfig() {
return pretrainedModelConfigBuilder_ != null || pretrainedModelConfig_ != null;
}
/**
* .clarifai.api.PretrainedModelConfig pretrained_model_config = 7;
* @return The pretrainedModelConfig.
*/
public com.clarifai.grpc.api.PretrainedModelConfig getPretrainedModelConfig() {
if (pretrainedModelConfigBuilder_ == null) {
return pretrainedModelConfig_ == null ? com.clarifai.grpc.api.PretrainedModelConfig.getDefaultInstance() : pretrainedModelConfig_;
} else {
return pretrainedModelConfigBuilder_.getMessage();
}
}
/**
* .clarifai.api.PretrainedModelConfig pretrained_model_config = 7;
*/
public Builder setPretrainedModelConfig(com.clarifai.grpc.api.PretrainedModelConfig value) {
if (pretrainedModelConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
pretrainedModelConfig_ = value;
onChanged();
} else {
pretrainedModelConfigBuilder_.setMessage(value);
}
return this;
}
/**
* .clarifai.api.PretrainedModelConfig pretrained_model_config = 7;
*/
public Builder setPretrainedModelConfig(
com.clarifai.grpc.api.PretrainedModelConfig.Builder builderForValue) {
if (pretrainedModelConfigBuilder_ == null) {
pretrainedModelConfig_ = builderForValue.build();
onChanged();
} else {
pretrainedModelConfigBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .clarifai.api.PretrainedModelConfig pretrained_model_config = 7;
*/
public Builder mergePretrainedModelConfig(com.clarifai.grpc.api.PretrainedModelConfig value) {
if (pretrainedModelConfigBuilder_ == null) {
if (pretrainedModelConfig_ != null) {
pretrainedModelConfig_ =
com.clarifai.grpc.api.PretrainedModelConfig.newBuilder(pretrainedModelConfig_).mergeFrom(value).buildPartial();
} else {
pretrainedModelConfig_ = value;
}
onChanged();
} else {
pretrainedModelConfigBuilder_.mergeFrom(value);
}
return this;
}
/**
* .clarifai.api.PretrainedModelConfig pretrained_model_config = 7;
*/
public Builder clearPretrainedModelConfig() {
if (pretrainedModelConfigBuilder_ == null) {
pretrainedModelConfig_ = null;
onChanged();
} else {
pretrainedModelConfig_ = null;
pretrainedModelConfigBuilder_ = null;
}
return this;
}
/**
* .clarifai.api.PretrainedModelConfig pretrained_model_config = 7;
*/
public com.clarifai.grpc.api.PretrainedModelConfig.Builder getPretrainedModelConfigBuilder() {
onChanged();
return getPretrainedModelConfigFieldBuilder().getBuilder();
}
/**
* .clarifai.api.PretrainedModelConfig pretrained_model_config = 7;
*/
public com.clarifai.grpc.api.PretrainedModelConfigOrBuilder getPretrainedModelConfigOrBuilder() {
if (pretrainedModelConfigBuilder_ != null) {
return pretrainedModelConfigBuilder_.getMessageOrBuilder();
} else {
return pretrainedModelConfig_ == null ?
com.clarifai.grpc.api.PretrainedModelConfig.getDefaultInstance() : pretrainedModelConfig_;
}
}
/**
* .clarifai.api.PretrainedModelConfig pretrained_model_config = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.PretrainedModelConfig, com.clarifai.grpc.api.PretrainedModelConfig.Builder, com.clarifai.grpc.api.PretrainedModelConfigOrBuilder>
getPretrainedModelConfigFieldBuilder() {
if (pretrainedModelConfigBuilder_ == null) {
pretrainedModelConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.PretrainedModelConfig, com.clarifai.grpc.api.PretrainedModelConfig.Builder, com.clarifai.grpc.api.PretrainedModelConfigOrBuilder>(
getPretrainedModelConfig(),
getParentForChildren(),
isClean());
pretrainedModelConfig_ = null;
}
return pretrainedModelConfigBuilder_;
}
private com.google.protobuf.Timestamp completedAt_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> completedAtBuilder_;
/**
*
* When training of this version was completed.
*
*
* .google.protobuf.Timestamp completed_at = 10;
* @return Whether the completedAt field is set.
*/
public boolean hasCompletedAt() {
return completedAtBuilder_ != null || completedAt_ != null;
}
/**
*
* When training of this version was completed.
*
*
* .google.protobuf.Timestamp completed_at = 10;
* @return The completedAt.
*/
public com.google.protobuf.Timestamp getCompletedAt() {
if (completedAtBuilder_ == null) {
return completedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completedAt_;
} else {
return completedAtBuilder_.getMessage();
}
}
/**
*
* When training of this version was completed.
*
*
* .google.protobuf.Timestamp completed_at = 10;
*/
public Builder setCompletedAt(com.google.protobuf.Timestamp value) {
if (completedAtBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
completedAt_ = value;
onChanged();
} else {
completedAtBuilder_.setMessage(value);
}
return this;
}
/**
*
* When training of this version was completed.
*
*
* .google.protobuf.Timestamp completed_at = 10;
*/
public Builder setCompletedAt(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (completedAtBuilder_ == null) {
completedAt_ = builderForValue.build();
onChanged();
} else {
completedAtBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* When training of this version was completed.
*
*
* .google.protobuf.Timestamp completed_at = 10;
*/
public Builder mergeCompletedAt(com.google.protobuf.Timestamp value) {
if (completedAtBuilder_ == null) {
if (completedAt_ != null) {
completedAt_ =
com.google.protobuf.Timestamp.newBuilder(completedAt_).mergeFrom(value).buildPartial();
} else {
completedAt_ = value;
}
onChanged();
} else {
completedAtBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* When training of this version was completed.
*
*
* .google.protobuf.Timestamp completed_at = 10;
*/
public Builder clearCompletedAt() {
if (completedAtBuilder_ == null) {
completedAt_ = null;
onChanged();
} else {
completedAt_ = null;
completedAtBuilder_ = null;
}
return this;
}
/**
*
* When training of this version was completed.
*
*
* .google.protobuf.Timestamp completed_at = 10;
*/
public com.google.protobuf.Timestamp.Builder getCompletedAtBuilder() {
onChanged();
return getCompletedAtFieldBuilder().getBuilder();
}
/**
*
* When training of this version was completed.
*
*
* .google.protobuf.Timestamp completed_at = 10;
*/
public com.google.protobuf.TimestampOrBuilder getCompletedAtOrBuilder() {
if (completedAtBuilder_ != null) {
return completedAtBuilder_.getMessageOrBuilder();
} else {
return completedAt_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : completedAt_;
}
}
/**
*
* When training of this version was completed.
*
*
* .google.protobuf.Timestamp completed_at = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getCompletedAtFieldBuilder() {
if (completedAtBuilder_ == null) {
completedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getCompletedAt(),
getParentForChildren(),
isClean());
completedAt_ = null;
}
return completedAtBuilder_;
}
private java.lang.Object description_ = "";
/**
*
* Description about this version
*
*
* string description = 11;
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Description about this version
*
*
* string description = 11;
* @return The bytes for description.
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Description about this version
*
*
* string description = 11;
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
onChanged();
return this;
}
/**
*
* Description about this version
*
*
* string description = 11;
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* Description about this version
*
*
* string description = 11;
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
onChanged();
return this;
}
private com.clarifai.grpc.api.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 = 12;
* @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 = 12;
* @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 = 12;
*/
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 = 12;
*/
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 = 12;
*/
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 = 12;
*/
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 = 12;
*/
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 = 12;
*/
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 = 12;
*/
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 appId_ = "";
/**
*
* The app the model version belongs to.
*
*
* string app_id = 13;
* @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 version belongs to.
*
*
* string app_id = 13;
* @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 version belongs to.
*
*
* string app_id = 13;
* @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 version belongs to.
*
*
* string app_id = 13;
* @return This builder for chaining.
*/
public Builder clearAppId() {
appId_ = getDefaultInstance().getAppId();
onChanged();
return this;
}
/**
*
* The app the model version belongs to.
*
*
* string app_id = 13;
* @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 java.lang.Object userId_ = "";
/**
*
* The user the model version belongs to.
*
*
* string user_id = 14;
* @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 the model version belongs to.
*
*
* string user_id = 14;
* @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 the model version belongs to.
*
*
* string user_id = 14;
* @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 the model version belongs to.
*
*
* string user_id = 14;
* @return This builder for chaining.
*/
public Builder clearUserId() {
userId_ = getDefaultInstance().getUserId();
onChanged();
return this;
}
/**
*
* The user the model version belongs to.
*
*
* string user_id = 14;
* @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.google.protobuf.Timestamp modifiedAt_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> modifiedAtBuilder_;
/**
*
* When this model version was last modified
*
*
* .google.protobuf.Timestamp modified_at = 15;
* @return Whether the modifiedAt field is set.
*/
public boolean hasModifiedAt() {
return modifiedAtBuilder_ != null || modifiedAt_ != null;
}
/**
*
* When this model version was last modified
*
*
* .google.protobuf.Timestamp modified_at = 15;
* @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 this model version was last modified
*
*
* .google.protobuf.Timestamp modified_at = 15;
*/
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 this model version was last modified
*
*
* .google.protobuf.Timestamp modified_at = 15;
*/
public Builder setModifiedAt(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (modifiedAtBuilder_ == null) {
modifiedAt_ = builderForValue.build();
onChanged();
} else {
modifiedAtBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* When this model version was last modified
*
*
* .google.protobuf.Timestamp modified_at = 15;
*/
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 this model version was last modified
*
*
* .google.protobuf.Timestamp modified_at = 15;
*/
public Builder clearModifiedAt() {
if (modifiedAtBuilder_ == null) {
modifiedAt_ = null;
onChanged();
} else {
modifiedAt_ = null;
modifiedAtBuilder_ = null;
}
return this;
}
/**
*
* When this model version was last modified
*
*
* .google.protobuf.Timestamp modified_at = 15;
*/
public com.google.protobuf.Timestamp.Builder getModifiedAtBuilder() {
onChanged();
return getModifiedAtFieldBuilder().getBuilder();
}
/**
*
* When this model version was last modified
*
*
* .google.protobuf.Timestamp modified_at = 15;
*/
public com.google.protobuf.TimestampOrBuilder getModifiedAtOrBuilder() {
if (modifiedAtBuilder_ != null) {
return modifiedAtBuilder_.getMessageOrBuilder();
} else {
return modifiedAt_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : modifiedAt_;
}
}
/**
*
* When this model version was last modified
*
*
* .google.protobuf.Timestamp modified_at = 15;
*/
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 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 = 16;
* @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 = 16;
* @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 = 16;
*/
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 = 16;
*/
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 = 16;
*/
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 = 16;
*/
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 = 16;
*/
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 = 16;
*/
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 = 16;
*/
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 java.lang.Object license_ = "";
/**
* string license = 17;
* @return The license.
*/
public java.lang.String getLicense() {
java.lang.Object ref = license_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
license_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string license = 17;
* @return The bytes for license.
*/
public com.google.protobuf.ByteString
getLicenseBytes() {
java.lang.Object ref = license_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
license_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string license = 17;
* @param value The license to set.
* @return This builder for chaining.
*/
public Builder setLicense(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
license_ = value;
onChanged();
return this;
}
/**
* string license = 17;
* @return This builder for chaining.
*/
public Builder clearLicense() {
license_ = getDefaultInstance().getLicense();
onChanged();
return this;
}
/**
* string license = 17;
* @param value The bytes for license to set.
* @return This builder for chaining.
*/
public Builder setLicenseBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
license_ = 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. Besides `output_info.data`, these fields should
* be reserved for parameters that affect the models outputs when inferencing.
* `output_info.data` is used to specify the training concepts for this model version.
*
*
* .clarifai.api.OutputInfo output_info = 19;
* @return Whether the outputInfo field is set.
*/
public boolean hasOutputInfo() {
return outputInfoBuilder_ != null || outputInfo_ != null;
}
/**
*
* Info about the model's output. Besides `output_info.data`, these fields should
* be reserved for parameters that affect the models outputs when inferencing.
* `output_info.data` is used to specify the training concepts for this model version.
*
*
* .clarifai.api.OutputInfo output_info = 19;
* @return The outputInfo.
*/
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. Besides `output_info.data`, these fields should
* be reserved for parameters that affect the models outputs when inferencing.
* `output_info.data` is used to specify the training concepts for this model version.
*
*
* .clarifai.api.OutputInfo output_info = 19;
*/
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. Besides `output_info.data`, these fields should
* be reserved for parameters that affect the models outputs when inferencing.
* `output_info.data` is used to specify the training concepts for this model version.
*
*
* .clarifai.api.OutputInfo output_info = 19;
*/
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. Besides `output_info.data`, these fields should
* be reserved for parameters that affect the models outputs when inferencing.
* `output_info.data` is used to specify the training concepts for this model version.
*
*
* .clarifai.api.OutputInfo output_info = 19;
*/
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. Besides `output_info.data`, these fields should
* be reserved for parameters that affect the models outputs when inferencing.
* `output_info.data` is used to specify the training concepts for this model version.
*
*
* .clarifai.api.OutputInfo output_info = 19;
*/
public Builder clearOutputInfo() {
if (outputInfoBuilder_ == null) {
outputInfo_ = null;
onChanged();
} else {
outputInfo_ = null;
outputInfoBuilder_ = null;
}
return this;
}
/**
*
* Info about the model's output. Besides `output_info.data`, these fields should
* be reserved for parameters that affect the models outputs when inferencing.
* `output_info.data` is used to specify the training concepts for this model version.
*
*
* .clarifai.api.OutputInfo output_info = 19;
*/
public com.clarifai.grpc.api.OutputInfo.Builder getOutputInfoBuilder() {
onChanged();
return getOutputInfoFieldBuilder().getBuilder();
}
/**
*
* Info about the model's output. Besides `output_info.data`, these fields should
* be reserved for parameters that affect the models outputs when inferencing.
* `output_info.data` is used to specify the training concepts for this model version.
*
*
* .clarifai.api.OutputInfo output_info = 19;
*/
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. Besides `output_info.data`, these fields should
* be reserved for parameters that affect the models outputs when inferencing.
* `output_info.data` is used to specify the training concepts for this model version.
*
*
* .clarifai.api.OutputInfo output_info = 19;
*/
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.InputInfo inputInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.InputInfo, com.clarifai.grpc.api.InputInfo.Builder, com.clarifai.grpc.api.InputInfoOrBuilder> inputInfoBuilder_;
/**
*
* Info about preprocessing the models inputs, before they are sent to this model for training or inferencing.
* E.g.: `input_info.base_embed_model` lets us know inputs should be ran through a base model before being sent to an embedding-classifier.
*
*
* .clarifai.api.InputInfo input_info = 20;
* @return Whether the inputInfo field is set.
*/
public boolean hasInputInfo() {
return inputInfoBuilder_ != null || inputInfo_ != null;
}
/**
*
* Info about preprocessing the models inputs, before they are sent to this model for training or inferencing.
* E.g.: `input_info.base_embed_model` lets us know inputs should be ran through a base model before being sent to an embedding-classifier.
*
*
* .clarifai.api.InputInfo input_info = 20;
* @return The inputInfo.
*/
public com.clarifai.grpc.api.InputInfo getInputInfo() {
if (inputInfoBuilder_ == null) {
return inputInfo_ == null ? com.clarifai.grpc.api.InputInfo.getDefaultInstance() : inputInfo_;
} else {
return inputInfoBuilder_.getMessage();
}
}
/**
*
* Info about preprocessing the models inputs, before they are sent to this model for training or inferencing.
* E.g.: `input_info.base_embed_model` lets us know inputs should be ran through a base model before being sent to an embedding-classifier.
*
*
* .clarifai.api.InputInfo input_info = 20;
*/
public Builder setInputInfo(com.clarifai.grpc.api.InputInfo value) {
if (inputInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
inputInfo_ = value;
onChanged();
} else {
inputInfoBuilder_.setMessage(value);
}
return this;
}
/**
*
* Info about preprocessing the models inputs, before they are sent to this model for training or inferencing.
* E.g.: `input_info.base_embed_model` lets us know inputs should be ran through a base model before being sent to an embedding-classifier.
*
*
* .clarifai.api.InputInfo input_info = 20;
*/
public Builder setInputInfo(
com.clarifai.grpc.api.InputInfo.Builder builderForValue) {
if (inputInfoBuilder_ == null) {
inputInfo_ = builderForValue.build();
onChanged();
} else {
inputInfoBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Info about preprocessing the models inputs, before they are sent to this model for training or inferencing.
* E.g.: `input_info.base_embed_model` lets us know inputs should be ran through a base model before being sent to an embedding-classifier.
*
*
* .clarifai.api.InputInfo input_info = 20;
*/
public Builder mergeInputInfo(com.clarifai.grpc.api.InputInfo value) {
if (inputInfoBuilder_ == null) {
if (inputInfo_ != null) {
inputInfo_ =
com.clarifai.grpc.api.InputInfo.newBuilder(inputInfo_).mergeFrom(value).buildPartial();
} else {
inputInfo_ = value;
}
onChanged();
} else {
inputInfoBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Info about preprocessing the models inputs, before they are sent to this model for training or inferencing.
* E.g.: `input_info.base_embed_model` lets us know inputs should be ran through a base model before being sent to an embedding-classifier.
*
*
* .clarifai.api.InputInfo input_info = 20;
*/
public Builder clearInputInfo() {
if (inputInfoBuilder_ == null) {
inputInfo_ = null;
onChanged();
} else {
inputInfo_ = null;
inputInfoBuilder_ = null;
}
return this;
}
/**
*
* Info about preprocessing the models inputs, before they are sent to this model for training or inferencing.
* E.g.: `input_info.base_embed_model` lets us know inputs should be ran through a base model before being sent to an embedding-classifier.
*
*
* .clarifai.api.InputInfo input_info = 20;
*/
public com.clarifai.grpc.api.InputInfo.Builder getInputInfoBuilder() {
onChanged();
return getInputInfoFieldBuilder().getBuilder();
}
/**
*
* Info about preprocessing the models inputs, before they are sent to this model for training or inferencing.
* E.g.: `input_info.base_embed_model` lets us know inputs should be ran through a base model before being sent to an embedding-classifier.
*
*
* .clarifai.api.InputInfo input_info = 20;
*/
public com.clarifai.grpc.api.InputInfoOrBuilder getInputInfoOrBuilder() {
if (inputInfoBuilder_ != null) {
return inputInfoBuilder_.getMessageOrBuilder();
} else {
return inputInfo_ == null ?
com.clarifai.grpc.api.InputInfo.getDefaultInstance() : inputInfo_;
}
}
/**
*
* Info about preprocessing the models inputs, before they are sent to this model for training or inferencing.
* E.g.: `input_info.base_embed_model` lets us know inputs should be ran through a base model before being sent to an embedding-classifier.
*
*
* .clarifai.api.InputInfo input_info = 20;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.InputInfo, com.clarifai.grpc.api.InputInfo.Builder, com.clarifai.grpc.api.InputInfoOrBuilder>
getInputInfoFieldBuilder() {
if (inputInfoBuilder_ == null) {
inputInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.InputInfo, com.clarifai.grpc.api.InputInfo.Builder, com.clarifai.grpc.api.InputInfoOrBuilder>(
getInputInfo(),
getParentForChildren(),
isClean());
inputInfo_ = null;
}
return inputInfoBuilder_;
}
private com.clarifai.grpc.api.TrainInfo trainInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.TrainInfo, com.clarifai.grpc.api.TrainInfo.Builder, com.clarifai.grpc.api.TrainInfoOrBuilder> trainInfoBuilder_;
/**
*
* Configuration for the training process of this model version.
*
*
* .clarifai.api.TrainInfo train_info = 21;
* @return Whether the trainInfo field is set.
*/
public boolean hasTrainInfo() {
return trainInfoBuilder_ != null || trainInfo_ != null;
}
/**
*
* Configuration for the training process of this model version.
*
*
* .clarifai.api.TrainInfo train_info = 21;
* @return The trainInfo.
*/
public com.clarifai.grpc.api.TrainInfo getTrainInfo() {
if (trainInfoBuilder_ == null) {
return trainInfo_ == null ? com.clarifai.grpc.api.TrainInfo.getDefaultInstance() : trainInfo_;
} else {
return trainInfoBuilder_.getMessage();
}
}
/**
*
* Configuration for the training process of this model version.
*
*
* .clarifai.api.TrainInfo train_info = 21;
*/
public Builder setTrainInfo(com.clarifai.grpc.api.TrainInfo value) {
if (trainInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
trainInfo_ = value;
onChanged();
} else {
trainInfoBuilder_.setMessage(value);
}
return this;
}
/**
*
* Configuration for the training process of this model version.
*
*
* .clarifai.api.TrainInfo train_info = 21;
*/
public Builder setTrainInfo(
com.clarifai.grpc.api.TrainInfo.Builder builderForValue) {
if (trainInfoBuilder_ == null) {
trainInfo_ = builderForValue.build();
onChanged();
} else {
trainInfoBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Configuration for the training process of this model version.
*
*
* .clarifai.api.TrainInfo train_info = 21;
*/
public Builder mergeTrainInfo(com.clarifai.grpc.api.TrainInfo value) {
if (trainInfoBuilder_ == null) {
if (trainInfo_ != null) {
trainInfo_ =
com.clarifai.grpc.api.TrainInfo.newBuilder(trainInfo_).mergeFrom(value).buildPartial();
} else {
trainInfo_ = value;
}
onChanged();
} else {
trainInfoBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Configuration for the training process of this model version.
*
*
* .clarifai.api.TrainInfo train_info = 21;
*/
public Builder clearTrainInfo() {
if (trainInfoBuilder_ == null) {
trainInfo_ = null;
onChanged();
} else {
trainInfo_ = null;
trainInfoBuilder_ = null;
}
return this;
}
/**
*
* Configuration for the training process of this model version.
*
*
* .clarifai.api.TrainInfo train_info = 21;
*/
public com.clarifai.grpc.api.TrainInfo.Builder getTrainInfoBuilder() {
onChanged();
return getTrainInfoFieldBuilder().getBuilder();
}
/**
*
* Configuration for the training process of this model version.
*
*
* .clarifai.api.TrainInfo train_info = 21;
*/
public com.clarifai.grpc.api.TrainInfoOrBuilder getTrainInfoOrBuilder() {
if (trainInfoBuilder_ != null) {
return trainInfoBuilder_.getMessageOrBuilder();
} else {
return trainInfo_ == null ?
com.clarifai.grpc.api.TrainInfo.getDefaultInstance() : trainInfo_;
}
}
/**
*
* Configuration for the training process of this model version.
*
*
* .clarifai.api.TrainInfo train_info = 21;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.TrainInfo, com.clarifai.grpc.api.TrainInfo.Builder, com.clarifai.grpc.api.TrainInfoOrBuilder>
getTrainInfoFieldBuilder() {
if (trainInfoBuilder_ == null) {
trainInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.TrainInfo, com.clarifai.grpc.api.TrainInfo.Builder, com.clarifai.grpc.api.TrainInfoOrBuilder>(
getTrainInfo(),
getParentForChildren(),
isClean());
trainInfo_ = null;
}
return trainInfoBuilder_;
}
private com.clarifai.grpc.api.ImportInfo importInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.ImportInfo, com.clarifai.grpc.api.ImportInfo.Builder, com.clarifai.grpc.api.ImportInfoOrBuilder> importInfoBuilder_;
/**
*
* Configuration used to import model from third-party toolkits
*
*
* .clarifai.api.ImportInfo import_info = 22;
* @return Whether the importInfo field is set.
*/
public boolean hasImportInfo() {
return importInfoBuilder_ != null || importInfo_ != null;
}
/**
*
* Configuration used to import model from third-party toolkits
*
*
* .clarifai.api.ImportInfo import_info = 22;
* @return The importInfo.
*/
public com.clarifai.grpc.api.ImportInfo getImportInfo() {
if (importInfoBuilder_ == null) {
return importInfo_ == null ? com.clarifai.grpc.api.ImportInfo.getDefaultInstance() : importInfo_;
} else {
return importInfoBuilder_.getMessage();
}
}
/**
*
* Configuration used to import model from third-party toolkits
*
*
* .clarifai.api.ImportInfo import_info = 22;
*/
public Builder setImportInfo(com.clarifai.grpc.api.ImportInfo value) {
if (importInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
importInfo_ = value;
onChanged();
} else {
importInfoBuilder_.setMessage(value);
}
return this;
}
/**
*
* Configuration used to import model from third-party toolkits
*
*
* .clarifai.api.ImportInfo import_info = 22;
*/
public Builder setImportInfo(
com.clarifai.grpc.api.ImportInfo.Builder builderForValue) {
if (importInfoBuilder_ == null) {
importInfo_ = builderForValue.build();
onChanged();
} else {
importInfoBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Configuration used to import model from third-party toolkits
*
*
* .clarifai.api.ImportInfo import_info = 22;
*/
public Builder mergeImportInfo(com.clarifai.grpc.api.ImportInfo value) {
if (importInfoBuilder_ == null) {
if (importInfo_ != null) {
importInfo_ =
com.clarifai.grpc.api.ImportInfo.newBuilder(importInfo_).mergeFrom(value).buildPartial();
} else {
importInfo_ = value;
}
onChanged();
} else {
importInfoBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Configuration used to import model from third-party toolkits
*
*
* .clarifai.api.ImportInfo import_info = 22;
*/
public Builder clearImportInfo() {
if (importInfoBuilder_ == null) {
importInfo_ = null;
onChanged();
} else {
importInfo_ = null;
importInfoBuilder_ = null;
}
return this;
}
/**
*
* Configuration used to import model from third-party toolkits
*
*
* .clarifai.api.ImportInfo import_info = 22;
*/
public com.clarifai.grpc.api.ImportInfo.Builder getImportInfoBuilder() {
onChanged();
return getImportInfoFieldBuilder().getBuilder();
}
/**
*
* Configuration used to import model from third-party toolkits
*
*
* .clarifai.api.ImportInfo import_info = 22;
*/
public com.clarifai.grpc.api.ImportInfoOrBuilder getImportInfoOrBuilder() {
if (importInfoBuilder_ != null) {
return importInfoBuilder_.getMessageOrBuilder();
} else {
return importInfo_ == null ?
com.clarifai.grpc.api.ImportInfo.getDefaultInstance() : importInfo_;
}
}
/**
*
* Configuration used to import model from third-party toolkits
*
*
* .clarifai.api.ImportInfo import_info = 22;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.ImportInfo, com.clarifai.grpc.api.ImportInfo.Builder, com.clarifai.grpc.api.ImportInfoOrBuilder>
getImportInfoFieldBuilder() {
if (importInfoBuilder_ == null) {
importInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.ImportInfo, com.clarifai.grpc.api.ImportInfo.Builder, com.clarifai.grpc.api.ImportInfoOrBuilder>(
getImportInfo(),
getParentForChildren(),
isClean());
importInfo_ = null;
}
return importInfoBuilder_;
}
private java.lang.Object trainLog_ = "";
/**
*
* Contains the training logs if available
*
*
* string train_log = 23;
* @return The trainLog.
*/
public java.lang.String getTrainLog() {
java.lang.Object ref = trainLog_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
trainLog_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Contains the training logs if available
*
*
* string train_log = 23;
* @return The bytes for trainLog.
*/
public com.google.protobuf.ByteString
getTrainLogBytes() {
java.lang.Object ref = trainLog_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
trainLog_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Contains the training logs if available
*
*
* string train_log = 23;
* @param value The trainLog to set.
* @return This builder for chaining.
*/
public Builder setTrainLog(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
trainLog_ = value;
onChanged();
return this;
}
/**
*
* Contains the training logs if available
*
*
* string train_log = 23;
* @return This builder for chaining.
*/
public Builder clearTrainLog() {
trainLog_ = getDefaultInstance().getTrainLog();
onChanged();
return this;
}
/**
*
* Contains the training logs if available
*
*
* string train_log = 23;
* @param value The bytes for trainLog to set.
* @return This builder for chaining.
*/
public Builder setTrainLogBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
trainLog_ = value;
onChanged();
return this;
}
private com.clarifai.grpc.api.ComputeInfo inferenceComputeInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.ComputeInfo, com.clarifai.grpc.api.ComputeInfo.Builder, com.clarifai.grpc.api.ComputeInfoOrBuilder> inferenceComputeInfoBuilder_;
/**
*
* The minimum required compute resource for this model for inference.
*
*
* .clarifai.api.ComputeInfo inference_compute_info = 24;
* @return Whether the inferenceComputeInfo field is set.
*/
public boolean hasInferenceComputeInfo() {
return inferenceComputeInfoBuilder_ != null || inferenceComputeInfo_ != null;
}
/**
*
* The minimum required compute resource for this model for inference.
*
*
* .clarifai.api.ComputeInfo inference_compute_info = 24;
* @return The inferenceComputeInfo.
*/
public com.clarifai.grpc.api.ComputeInfo getInferenceComputeInfo() {
if (inferenceComputeInfoBuilder_ == null) {
return inferenceComputeInfo_ == null ? com.clarifai.grpc.api.ComputeInfo.getDefaultInstance() : inferenceComputeInfo_;
} else {
return inferenceComputeInfoBuilder_.getMessage();
}
}
/**
*
* The minimum required compute resource for this model for inference.
*
*
* .clarifai.api.ComputeInfo inference_compute_info = 24;
*/
public Builder setInferenceComputeInfo(com.clarifai.grpc.api.ComputeInfo value) {
if (inferenceComputeInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
inferenceComputeInfo_ = value;
onChanged();
} else {
inferenceComputeInfoBuilder_.setMessage(value);
}
return this;
}
/**
*
* The minimum required compute resource for this model for inference.
*
*
* .clarifai.api.ComputeInfo inference_compute_info = 24;
*/
public Builder setInferenceComputeInfo(
com.clarifai.grpc.api.ComputeInfo.Builder builderForValue) {
if (inferenceComputeInfoBuilder_ == null) {
inferenceComputeInfo_ = builderForValue.build();
onChanged();
} else {
inferenceComputeInfoBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The minimum required compute resource for this model for inference.
*
*
* .clarifai.api.ComputeInfo inference_compute_info = 24;
*/
public Builder mergeInferenceComputeInfo(com.clarifai.grpc.api.ComputeInfo value) {
if (inferenceComputeInfoBuilder_ == null) {
if (inferenceComputeInfo_ != null) {
inferenceComputeInfo_ =
com.clarifai.grpc.api.ComputeInfo.newBuilder(inferenceComputeInfo_).mergeFrom(value).buildPartial();
} else {
inferenceComputeInfo_ = value;
}
onChanged();
} else {
inferenceComputeInfoBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The minimum required compute resource for this model for inference.
*
*
* .clarifai.api.ComputeInfo inference_compute_info = 24;
*/
public Builder clearInferenceComputeInfo() {
if (inferenceComputeInfoBuilder_ == null) {
inferenceComputeInfo_ = null;
onChanged();
} else {
inferenceComputeInfo_ = null;
inferenceComputeInfoBuilder_ = null;
}
return this;
}
/**
*
* The minimum required compute resource for this model for inference.
*
*
* .clarifai.api.ComputeInfo inference_compute_info = 24;
*/
public com.clarifai.grpc.api.ComputeInfo.Builder getInferenceComputeInfoBuilder() {
onChanged();
return getInferenceComputeInfoFieldBuilder().getBuilder();
}
/**
*
* The minimum required compute resource for this model for inference.
*
*
* .clarifai.api.ComputeInfo inference_compute_info = 24;
*/
public com.clarifai.grpc.api.ComputeInfoOrBuilder getInferenceComputeInfoOrBuilder() {
if (inferenceComputeInfoBuilder_ != null) {
return inferenceComputeInfoBuilder_.getMessageOrBuilder();
} else {
return inferenceComputeInfo_ == null ?
com.clarifai.grpc.api.ComputeInfo.getDefaultInstance() : inferenceComputeInfo_;
}
}
/**
*
* The minimum required compute resource for this model for inference.
*
*
* .clarifai.api.ComputeInfo inference_compute_info = 24;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.ComputeInfo, com.clarifai.grpc.api.ComputeInfo.Builder, com.clarifai.grpc.api.ComputeInfoOrBuilder>
getInferenceComputeInfoFieldBuilder() {
if (inferenceComputeInfoBuilder_ == null) {
inferenceComputeInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.ComputeInfo, com.clarifai.grpc.api.ComputeInfo.Builder, com.clarifai.grpc.api.ComputeInfoOrBuilder>(
getInferenceComputeInfo(),
getParentForChildren(),
isClean());
inferenceComputeInfo_ = null;
}
return inferenceComputeInfoBuilder_;
}
private com.clarifai.grpc.api.BuildInfo buildInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.BuildInfo, com.clarifai.grpc.api.BuildInfo.Builder, com.clarifai.grpc.api.BuildInfoOrBuilder> buildInfoBuilder_;
/**
*
* Build information for the model version
*
*
* .clarifai.api.BuildInfo build_info = 25;
* @return Whether the buildInfo field is set.
*/
public boolean hasBuildInfo() {
return buildInfoBuilder_ != null || buildInfo_ != null;
}
/**
*
* Build information for the model version
*
*
* .clarifai.api.BuildInfo build_info = 25;
* @return The buildInfo.
*/
public com.clarifai.grpc.api.BuildInfo getBuildInfo() {
if (buildInfoBuilder_ == null) {
return buildInfo_ == null ? com.clarifai.grpc.api.BuildInfo.getDefaultInstance() : buildInfo_;
} else {
return buildInfoBuilder_.getMessage();
}
}
/**
*
* Build information for the model version
*
*
* .clarifai.api.BuildInfo build_info = 25;
*/
public Builder setBuildInfo(com.clarifai.grpc.api.BuildInfo value) {
if (buildInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
buildInfo_ = value;
onChanged();
} else {
buildInfoBuilder_.setMessage(value);
}
return this;
}
/**
*
* Build information for the model version
*
*
* .clarifai.api.BuildInfo build_info = 25;
*/
public Builder setBuildInfo(
com.clarifai.grpc.api.BuildInfo.Builder builderForValue) {
if (buildInfoBuilder_ == null) {
buildInfo_ = builderForValue.build();
onChanged();
} else {
buildInfoBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Build information for the model version
*
*
* .clarifai.api.BuildInfo build_info = 25;
*/
public Builder mergeBuildInfo(com.clarifai.grpc.api.BuildInfo value) {
if (buildInfoBuilder_ == null) {
if (buildInfo_ != null) {
buildInfo_ =
com.clarifai.grpc.api.BuildInfo.newBuilder(buildInfo_).mergeFrom(value).buildPartial();
} else {
buildInfo_ = value;
}
onChanged();
} else {
buildInfoBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Build information for the model version
*
*
* .clarifai.api.BuildInfo build_info = 25;
*/
public Builder clearBuildInfo() {
if (buildInfoBuilder_ == null) {
buildInfo_ = null;
onChanged();
} else {
buildInfo_ = null;
buildInfoBuilder_ = null;
}
return this;
}
/**
*
* Build information for the model version
*
*
* .clarifai.api.BuildInfo build_info = 25;
*/
public com.clarifai.grpc.api.BuildInfo.Builder getBuildInfoBuilder() {
onChanged();
return getBuildInfoFieldBuilder().getBuilder();
}
/**
*
* Build information for the model version
*
*
* .clarifai.api.BuildInfo build_info = 25;
*/
public com.clarifai.grpc.api.BuildInfoOrBuilder getBuildInfoOrBuilder() {
if (buildInfoBuilder_ != null) {
return buildInfoBuilder_.getMessageOrBuilder();
} else {
return buildInfo_ == null ?
com.clarifai.grpc.api.BuildInfo.getDefaultInstance() : buildInfo_;
}
}
/**
*
* Build information for the model version
*
*
* .clarifai.api.BuildInfo build_info = 25;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.BuildInfo, com.clarifai.grpc.api.BuildInfo.Builder, com.clarifai.grpc.api.BuildInfoOrBuilder>
getBuildInfoFieldBuilder() {
if (buildInfoBuilder_ == null) {
buildInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.BuildInfo, com.clarifai.grpc.api.BuildInfo.Builder, com.clarifai.grpc.api.BuildInfoOrBuilder>(
getBuildInfo(),
getParentForChildren(),
isClean());
buildInfo_ = null;
}
return buildInfoBuilder_;
}
@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.ModelVersion)
}
// @@protoc_insertion_point(class_scope:clarifai.api.ModelVersion)
private static final com.clarifai.grpc.api.ModelVersion DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.clarifai.grpc.api.ModelVersion();
}
public static com.clarifai.grpc.api.ModelVersion getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ModelVersion parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ModelVersion(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.ModelVersion getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}