com.clarifai.grpc.api.DatasetVersion 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;
/**
*
* DatasetVersion
*
*
* Protobuf type {@code clarifai.api.DatasetVersion}
*/
public final class DatasetVersion extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:clarifai.api.DatasetVersion)
DatasetVersionOrBuilder {
private static final long serialVersionUID = 0L;
// Use DatasetVersion.newBuilder() to construct.
private DatasetVersion(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DatasetVersion() {
id_ = "";
appId_ = "";
userId_ = "";
datasetId_ = "";
description_ = "";
embedModelVersionIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
requestOrigin_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DatasetVersion();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DatasetVersion(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
id_ = s;
break;
}
case 18: {
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.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 34: {
java.lang.String s = input.readStringRequireUtf8();
appId_ = s;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
userId_ = s;
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
datasetId_ = s;
break;
}
case 66: {
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 82: {
java.lang.String s = input.readStringRequireUtf8();
description_ = s;
break;
}
case 98: {
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 106: {
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 114: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
embedModelVersionIds_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
embedModelVersionIds_.add(s);
break;
}
case 122: {
com.clarifai.grpc.api.AnnotationFilterConfig.Builder subBuilder = null;
if (dataConfigCase_ == 15) {
subBuilder = ((com.clarifai.grpc.api.AnnotationFilterConfig) dataConfig_).toBuilder();
}
dataConfig_ =
input.readMessage(com.clarifai.grpc.api.AnnotationFilterConfig.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.clarifai.grpc.api.AnnotationFilterConfig) dataConfig_);
dataConfig_ = subBuilder.buildPartial();
}
dataConfigCase_ = 15;
break;
}
case 130: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
metrics_ = com.google.protobuf.MapField.newMapField(
MetricsDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
metrics__ = input.readMessage(
MetricsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
metrics_.getMutableMap().put(
metrics__.getKey(), metrics__.getValue());
break;
}
case 138: {
com.clarifai.grpc.api.DatasetVersionExportInfo.Builder subBuilder = null;
if (exportInfo_ != null) {
subBuilder = exportInfo_.toBuilder();
}
exportInfo_ = input.readMessage(com.clarifai.grpc.api.DatasetVersionExportInfo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(exportInfo_);
exportInfo_ = subBuilder.buildPartial();
}
break;
}
case 146: {
com.clarifai.grpc.api.ModelPredictConfig.Builder subBuilder = null;
if (dataConfigCase_ == 18) {
subBuilder = ((com.clarifai.grpc.api.ModelPredictConfig) dataConfig_).toBuilder();
}
dataConfig_ =
input.readMessage(com.clarifai.grpc.api.ModelPredictConfig.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.clarifai.grpc.api.ModelPredictConfig) dataConfig_);
dataConfig_ = subBuilder.buildPartial();
}
dataConfigCase_ = 18;
break;
}
case 154: {
com.clarifai.grpc.api.DatasetVersionProcessingInfo.Builder subBuilder = null;
if (processingInfo_ != null) {
subBuilder = processingInfo_.toBuilder();
}
processingInfo_ = input.readMessage(com.clarifai.grpc.api.DatasetVersionProcessingInfo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(processingInfo_);
processingInfo_ = subBuilder.buildPartial();
}
break;
}
case 160: {
int rawValue = input.readEnum();
requestOrigin_ = rawValue;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) != 0)) {
embedModelVersionIds_ = embedModelVersionIds_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_DatasetVersion_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 16:
return internalGetMetrics();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_DatasetVersion_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.clarifai.grpc.api.DatasetVersion.class, com.clarifai.grpc.api.DatasetVersion.Builder.class);
}
private int dataConfigCase_ = 0;
private java.lang.Object dataConfig_;
public enum DataConfigCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
ANNOTATION_FILTER_CONFIG(15),
MODEL_PREDICT_CONFIG(18),
DATACONFIG_NOT_SET(0);
private final int value;
private DataConfigCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static DataConfigCase valueOf(int value) {
return forNumber(value);
}
public static DataConfigCase forNumber(int value) {
switch (value) {
case 15: return ANNOTATION_FILTER_CONFIG;
case 18: return MODEL_PREDICT_CONFIG;
case 0: return DATACONFIG_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public DataConfigCase
getDataConfigCase() {
return DataConfigCase.forNumber(
dataConfigCase_);
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
*
* The ID for the dataset version
*
*
* string id = 1;
* @return The id.
*/
@java.lang.Override
public java.lang.String getId() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
}
}
/**
*
* The ID for the dataset version
*
*
* 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 dataset version was created.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp created_at = 2;
* @return Whether the createdAt field is set.
*/
@java.lang.Override
public boolean hasCreatedAt() {
return createdAt_ != null;
}
/**
*
* When the dataset version was created.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .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 dataset version was created.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp created_at = 2;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
return getCreatedAt();
}
public static final int MODIFIED_AT_FIELD_NUMBER = 3;
private com.google.protobuf.Timestamp modifiedAt_;
/**
*
* When the dataset version was modified.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp modified_at = 3;
* @return Whether the modifiedAt field is set.
*/
@java.lang.Override
public boolean hasModifiedAt() {
return modifiedAt_ != null;
}
/**
*
* When the dataset version was modified.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp modified_at = 3;
* @return The modifiedAt.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getModifiedAt() {
return modifiedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modifiedAt_;
}
/**
*
* When the dataset version was modified.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp modified_at = 3;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getModifiedAtOrBuilder() {
return getModifiedAt();
}
public static final int APP_ID_FIELD_NUMBER = 4;
private volatile java.lang.Object appId_;
/**
*
* The app the dataset version belongs to.
*
*
* string app_id = 4;
* @return The appId.
*/
@java.lang.Override
public java.lang.String getAppId() {
java.lang.Object ref = appId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
appId_ = s;
return s;
}
}
/**
*
* The app the dataset version belongs to.
*
*
* string app_id = 4;
* @return The bytes for appId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAppIdBytes() {
java.lang.Object ref = appId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
appId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int USER_ID_FIELD_NUMBER = 5;
private volatile java.lang.Object userId_;
/**
*
* The user the dataset version belongs to.
*
*
* string user_id = 5;
* @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 dataset version belongs to.
*
*
* string user_id = 5;
* @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 DATASET_ID_FIELD_NUMBER = 6;
private volatile java.lang.Object datasetId_;
/**
*
* The dataset the dataset version belongs to.
*
*
* string dataset_id = 6;
* @return The datasetId.
*/
@java.lang.Override
public java.lang.String getDatasetId() {
java.lang.Object ref = datasetId_;
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();
datasetId_ = s;
return s;
}
}
/**
*
* The dataset the dataset version belongs to.
*
*
* string dataset_id = 6;
* @return The bytes for datasetId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDatasetIdBytes() {
java.lang.Object ref = datasetId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
datasetId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ANNOTATION_FILTER_CONFIG_FIELD_NUMBER = 15;
/**
*
* The dataset version will be generated based on a single annotation filter.
*
*
* .clarifai.api.AnnotationFilterConfig annotation_filter_config = 15;
* @return Whether the annotationFilterConfig field is set.
*/
@java.lang.Override
public boolean hasAnnotationFilterConfig() {
return dataConfigCase_ == 15;
}
/**
*
* The dataset version will be generated based on a single annotation filter.
*
*
* .clarifai.api.AnnotationFilterConfig annotation_filter_config = 15;
* @return The annotationFilterConfig.
*/
@java.lang.Override
public com.clarifai.grpc.api.AnnotationFilterConfig getAnnotationFilterConfig() {
if (dataConfigCase_ == 15) {
return (com.clarifai.grpc.api.AnnotationFilterConfig) dataConfig_;
}
return com.clarifai.grpc.api.AnnotationFilterConfig.getDefaultInstance();
}
/**
*
* The dataset version will be generated based on a single annotation filter.
*
*
* .clarifai.api.AnnotationFilterConfig annotation_filter_config = 15;
*/
@java.lang.Override
public com.clarifai.grpc.api.AnnotationFilterConfigOrBuilder getAnnotationFilterConfigOrBuilder() {
if (dataConfigCase_ == 15) {
return (com.clarifai.grpc.api.AnnotationFilterConfig) dataConfig_;
}
return com.clarifai.grpc.api.AnnotationFilterConfig.getDefaultInstance();
}
public static final int MODEL_PREDICT_CONFIG_FIELD_NUMBER = 18;
/**
*
* The dataset version will be generated based on model version inferences.
*
*
* .clarifai.api.ModelPredictConfig model_predict_config = 18;
* @return Whether the modelPredictConfig field is set.
*/
@java.lang.Override
public boolean hasModelPredictConfig() {
return dataConfigCase_ == 18;
}
/**
*
* The dataset version will be generated based on model version inferences.
*
*
* .clarifai.api.ModelPredictConfig model_predict_config = 18;
* @return The modelPredictConfig.
*/
@java.lang.Override
public com.clarifai.grpc.api.ModelPredictConfig getModelPredictConfig() {
if (dataConfigCase_ == 18) {
return (com.clarifai.grpc.api.ModelPredictConfig) dataConfig_;
}
return com.clarifai.grpc.api.ModelPredictConfig.getDefaultInstance();
}
/**
*
* The dataset version will be generated based on model version inferences.
*
*
* .clarifai.api.ModelPredictConfig model_predict_config = 18;
*/
@java.lang.Override
public com.clarifai.grpc.api.ModelPredictConfigOrBuilder getModelPredictConfigOrBuilder() {
if (dataConfigCase_ == 18) {
return (com.clarifai.grpc.api.ModelPredictConfig) dataConfig_;
}
return com.clarifai.grpc.api.ModelPredictConfig.getDefaultInstance();
}
public static final int STATUS_FIELD_NUMBER = 8;
private com.clarifai.grpc.api.status.Status status_;
/**
*
* Status for this dataset version.
*
*
* .clarifai.api.status.Status status = 8;
* @return Whether the status field is set.
*/
@java.lang.Override
public boolean hasStatus() {
return status_ != null;
}
/**
*
* Status for this dataset version.
*
*
* .clarifai.api.status.Status status = 8;
* @return The status.
*/
@java.lang.Override
public com.clarifai.grpc.api.status.Status getStatus() {
return status_ == null ? com.clarifai.grpc.api.status.Status.getDefaultInstance() : status_;
}
/**
*
* Status for this dataset version.
*
*
* .clarifai.api.status.Status status = 8;
*/
@java.lang.Override
public com.clarifai.grpc.api.status.StatusOrBuilder getStatusOrBuilder() {
return getStatus();
}
public static final int DESCRIPTION_FIELD_NUMBER = 10;
private volatile java.lang.Object description_;
/**
*
* Description of the dataset version
*
*
* string description = 10;
* @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 of the dataset version
*
*
* string description = 10;
* @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 PROCESSING_INFO_FIELD_NUMBER = 19;
private com.clarifai.grpc.api.DatasetVersionProcessingInfo processingInfo_;
/**
*
* Dataset version processing. If this is not set when the dataset version is
* created, then the dataset default_processing_info is copied instead. Later
* updates to default_processing_info will not apply to existing versions.
*
*
* .clarifai.api.DatasetVersionProcessingInfo processing_info = 19;
* @return Whether the processingInfo field is set.
*/
@java.lang.Override
public boolean hasProcessingInfo() {
return processingInfo_ != null;
}
/**
*
* Dataset version processing. If this is not set when the dataset version is
* created, then the dataset default_processing_info is copied instead. Later
* updates to default_processing_info will not apply to existing versions.
*
*
* .clarifai.api.DatasetVersionProcessingInfo processing_info = 19;
* @return The processingInfo.
*/
@java.lang.Override
public com.clarifai.grpc.api.DatasetVersionProcessingInfo getProcessingInfo() {
return processingInfo_ == null ? com.clarifai.grpc.api.DatasetVersionProcessingInfo.getDefaultInstance() : processingInfo_;
}
/**
*
* Dataset version processing. If this is not set when the dataset version is
* created, then the dataset default_processing_info is copied instead. Later
* updates to default_processing_info will not apply to existing versions.
*
*
* .clarifai.api.DatasetVersionProcessingInfo processing_info = 19;
*/
@java.lang.Override
public com.clarifai.grpc.api.DatasetVersionProcessingInfoOrBuilder getProcessingInfoOrBuilder() {
return getProcessingInfo();
}
public static final int METRICS_FIELD_NUMBER = 16;
private static final class MetricsDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, com.clarifai.grpc.api.DatasetVersionMetrics> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
com.clarifai.grpc.api.Resources.internal_static_clarifai_api_DatasetVersion_MetricsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
com.clarifai.grpc.api.DatasetVersionMetrics.getDefaultInstance());
}
private com.google.protobuf.MapField<
java.lang.String, com.clarifai.grpc.api.DatasetVersionMetrics> metrics_;
private com.google.protobuf.MapField
internalGetMetrics() {
if (metrics_ == null) {
return com.google.protobuf.MapField.emptyMapField(
MetricsDefaultEntryHolder.defaultEntry);
}
return metrics_;
}
public int getMetricsCount() {
return internalGetMetrics().getMap().size();
}
/**
*
* Dataset version metrics
*
*
* map<string, .clarifai.api.DatasetVersionMetrics> metrics = 16;
*/
@java.lang.Override
public boolean containsMetrics(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetMetrics().getMap().containsKey(key);
}
/**
* Use {@link #getMetricsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getMetrics() {
return getMetricsMap();
}
/**
*
* Dataset version metrics
*
*
* map<string, .clarifai.api.DatasetVersionMetrics> metrics = 16;
*/
@java.lang.Override
public java.util.Map getMetricsMap() {
return internalGetMetrics().getMap();
}
/**
*
* Dataset version metrics
*
*
* map<string, .clarifai.api.DatasetVersionMetrics> metrics = 16;
*/
@java.lang.Override
public com.clarifai.grpc.api.DatasetVersionMetrics getMetricsOrDefault(
java.lang.String key,
com.clarifai.grpc.api.DatasetVersionMetrics defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetMetrics().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Dataset version metrics
*
*
* map<string, .clarifai.api.DatasetVersionMetrics> metrics = 16;
*/
@java.lang.Override
public com.clarifai.grpc.api.DatasetVersionMetrics getMetricsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetMetrics().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int EXPORT_INFO_FIELD_NUMBER = 17;
private com.clarifai.grpc.api.DatasetVersionExportInfo exportInfo_;
/**
*
* Dataset version exports
*
*
* .clarifai.api.DatasetVersionExportInfo export_info = 17;
* @return Whether the exportInfo field is set.
*/
@java.lang.Override
public boolean hasExportInfo() {
return exportInfo_ != null;
}
/**
*
* Dataset version exports
*
*
* .clarifai.api.DatasetVersionExportInfo export_info = 17;
* @return The exportInfo.
*/
@java.lang.Override
public com.clarifai.grpc.api.DatasetVersionExportInfo getExportInfo() {
return exportInfo_ == null ? com.clarifai.grpc.api.DatasetVersionExportInfo.getDefaultInstance() : exportInfo_;
}
/**
*
* Dataset version exports
*
*
* .clarifai.api.DatasetVersionExportInfo export_info = 17;
*/
@java.lang.Override
public com.clarifai.grpc.api.DatasetVersionExportInfoOrBuilder getExportInfoOrBuilder() {
return getExportInfo();
}
public static final int METADATA_FIELD_NUMBER = 12;
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 = 12;
* @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 = 12;
* @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 = 12;
*/
@java.lang.Override
public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() {
return getMetadata();
}
public static final int VISIBILITY_FIELD_NUMBER = 13;
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 = 13;
* @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 = 13;
* @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 = 13;
*/
@java.lang.Override
public com.clarifai.grpc.api.VisibilityOrBuilder getVisibilityOrBuilder() {
return getVisibility();
}
public static final int EMBED_MODEL_VERSION_IDS_FIELD_NUMBER = 14;
private com.google.protobuf.LazyStringList embedModelVersionIds_;
/**
*
* The embedding models to return embeddings for. If empty, no embeddings are returned.
*
*
* repeated string embed_model_version_ids = 14;
* @return A list containing the embedModelVersionIds.
*/
public com.google.protobuf.ProtocolStringList
getEmbedModelVersionIdsList() {
return embedModelVersionIds_;
}
/**
*
* The embedding models to return embeddings for. If empty, no embeddings are returned.
*
*
* repeated string embed_model_version_ids = 14;
* @return The count of embedModelVersionIds.
*/
public int getEmbedModelVersionIdsCount() {
return embedModelVersionIds_.size();
}
/**
*
* The embedding models to return embeddings for. If empty, no embeddings are returned.
*
*
* repeated string embed_model_version_ids = 14;
* @param index The index of the element to return.
* @return The embedModelVersionIds at the given index.
*/
public java.lang.String getEmbedModelVersionIds(int index) {
return embedModelVersionIds_.get(index);
}
/**
*
* The embedding models to return embeddings for. If empty, no embeddings are returned.
*
*
* repeated string embed_model_version_ids = 14;
* @param index The index of the value to return.
* @return The bytes of the embedModelVersionIds at the given index.
*/
public com.google.protobuf.ByteString
getEmbedModelVersionIdsBytes(int index) {
return embedModelVersionIds_.getByteString(index);
}
public static final int REQUEST_ORIGIN_FIELD_NUMBER = 20;
private int requestOrigin_;
/**
*
* Read Only. Cannot be Set
* Origin of request for new dataset version
*
*
* .clarifai.api.DatasetVersionRequestOrigin request_origin = 20;
* @return The enum numeric value on the wire for requestOrigin.
*/
@java.lang.Override public int getRequestOriginValue() {
return requestOrigin_;
}
/**
*
* Read Only. Cannot be Set
* Origin of request for new dataset version
*
*
* .clarifai.api.DatasetVersionRequestOrigin request_origin = 20;
* @return The requestOrigin.
*/
@java.lang.Override public com.clarifai.grpc.api.DatasetVersionRequestOrigin getRequestOrigin() {
@SuppressWarnings("deprecation")
com.clarifai.grpc.api.DatasetVersionRequestOrigin result = com.clarifai.grpc.api.DatasetVersionRequestOrigin.valueOf(requestOrigin_);
return result == null ? com.clarifai.grpc.api.DatasetVersionRequestOrigin.UNRECOGNIZED : result;
}
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 (modifiedAt_ != null) {
output.writeMessage(3, getModifiedAt());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(appId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, appId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, userId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(datasetId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, datasetId_);
}
if (status_ != null) {
output.writeMessage(8, getStatus());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, description_);
}
if (metadata_ != null) {
output.writeMessage(12, getMetadata());
}
if (visibility_ != null) {
output.writeMessage(13, getVisibility());
}
for (int i = 0; i < embedModelVersionIds_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 14, embedModelVersionIds_.getRaw(i));
}
if (dataConfigCase_ == 15) {
output.writeMessage(15, (com.clarifai.grpc.api.AnnotationFilterConfig) dataConfig_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetMetrics(),
MetricsDefaultEntryHolder.defaultEntry,
16);
if (exportInfo_ != null) {
output.writeMessage(17, getExportInfo());
}
if (dataConfigCase_ == 18) {
output.writeMessage(18, (com.clarifai.grpc.api.ModelPredictConfig) dataConfig_);
}
if (processingInfo_ != null) {
output.writeMessage(19, getProcessingInfo());
}
if (requestOrigin_ != com.clarifai.grpc.api.DatasetVersionRequestOrigin.DATASET_VERSION_REQUEST_ORIGIN_NOT_SET.getNumber()) {
output.writeEnum(20, requestOrigin_);
}
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 (modifiedAt_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getModifiedAt());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(appId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, appId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, userId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(datasetId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, datasetId_);
}
if (status_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getStatus());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, description_);
}
if (metadata_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, getMetadata());
}
if (visibility_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, getVisibility());
}
{
int dataSize = 0;
for (int i = 0; i < embedModelVersionIds_.size(); i++) {
dataSize += computeStringSizeNoTag(embedModelVersionIds_.getRaw(i));
}
size += dataSize;
size += 1 * getEmbedModelVersionIdsList().size();
}
if (dataConfigCase_ == 15) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, (com.clarifai.grpc.api.AnnotationFilterConfig) dataConfig_);
}
for (java.util.Map.Entry entry
: internalGetMetrics().getMap().entrySet()) {
com.google.protobuf.MapEntry
metrics__ = MetricsDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(16, metrics__);
}
if (exportInfo_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(17, getExportInfo());
}
if (dataConfigCase_ == 18) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(18, (com.clarifai.grpc.api.ModelPredictConfig) dataConfig_);
}
if (processingInfo_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(19, getProcessingInfo());
}
if (requestOrigin_ != com.clarifai.grpc.api.DatasetVersionRequestOrigin.DATASET_VERSION_REQUEST_ORIGIN_NOT_SET.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(20, requestOrigin_);
}
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.DatasetVersion)) {
return super.equals(obj);
}
com.clarifai.grpc.api.DatasetVersion other = (com.clarifai.grpc.api.DatasetVersion) obj;
if (!getId()
.equals(other.getId())) return false;
if (hasCreatedAt() != other.hasCreatedAt()) return false;
if (hasCreatedAt()) {
if (!getCreatedAt()
.equals(other.getCreatedAt())) return false;
}
if (hasModifiedAt() != other.hasModifiedAt()) return false;
if (hasModifiedAt()) {
if (!getModifiedAt()
.equals(other.getModifiedAt())) return false;
}
if (!getAppId()
.equals(other.getAppId())) return false;
if (!getUserId()
.equals(other.getUserId())) return false;
if (!getDatasetId()
.equals(other.getDatasetId())) return false;
if (hasStatus() != other.hasStatus()) return false;
if (hasStatus()) {
if (!getStatus()
.equals(other.getStatus())) return false;
}
if (!getDescription()
.equals(other.getDescription())) return false;
if (hasProcessingInfo() != other.hasProcessingInfo()) return false;
if (hasProcessingInfo()) {
if (!getProcessingInfo()
.equals(other.getProcessingInfo())) return false;
}
if (!internalGetMetrics().equals(
other.internalGetMetrics())) return false;
if (hasExportInfo() != other.hasExportInfo()) return false;
if (hasExportInfo()) {
if (!getExportInfo()
.equals(other.getExportInfo())) return false;
}
if (hasMetadata() != other.hasMetadata()) return false;
if (hasMetadata()) {
if (!getMetadata()
.equals(other.getMetadata())) return false;
}
if (hasVisibility() != other.hasVisibility()) return false;
if (hasVisibility()) {
if (!getVisibility()
.equals(other.getVisibility())) return false;
}
if (!getEmbedModelVersionIdsList()
.equals(other.getEmbedModelVersionIdsList())) return false;
if (requestOrigin_ != other.requestOrigin_) return false;
if (!getDataConfigCase().equals(other.getDataConfigCase())) return false;
switch (dataConfigCase_) {
case 15:
if (!getAnnotationFilterConfig()
.equals(other.getAnnotationFilterConfig())) return false;
break;
case 18:
if (!getModelPredictConfig()
.equals(other.getModelPredictConfig())) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
if (hasCreatedAt()) {
hash = (37 * hash) + CREATED_AT_FIELD_NUMBER;
hash = (53 * hash) + getCreatedAt().hashCode();
}
if (hasModifiedAt()) {
hash = (37 * hash) + MODIFIED_AT_FIELD_NUMBER;
hash = (53 * hash) + getModifiedAt().hashCode();
}
hash = (37 * hash) + APP_ID_FIELD_NUMBER;
hash = (53 * hash) + getAppId().hashCode();
hash = (37 * hash) + USER_ID_FIELD_NUMBER;
hash = (53 * hash) + getUserId().hashCode();
hash = (37 * hash) + DATASET_ID_FIELD_NUMBER;
hash = (53 * hash) + getDatasetId().hashCode();
if (hasStatus()) {
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + getStatus().hashCode();
}
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
if (hasProcessingInfo()) {
hash = (37 * hash) + PROCESSING_INFO_FIELD_NUMBER;
hash = (53 * hash) + getProcessingInfo().hashCode();
}
if (!internalGetMetrics().getMap().isEmpty()) {
hash = (37 * hash) + METRICS_FIELD_NUMBER;
hash = (53 * hash) + internalGetMetrics().hashCode();
}
if (hasExportInfo()) {
hash = (37 * hash) + EXPORT_INFO_FIELD_NUMBER;
hash = (53 * hash) + getExportInfo().hashCode();
}
if (hasMetadata()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMetadata().hashCode();
}
if (hasVisibility()) {
hash = (37 * hash) + VISIBILITY_FIELD_NUMBER;
hash = (53 * hash) + getVisibility().hashCode();
}
if (getEmbedModelVersionIdsCount() > 0) {
hash = (37 * hash) + EMBED_MODEL_VERSION_IDS_FIELD_NUMBER;
hash = (53 * hash) + getEmbedModelVersionIdsList().hashCode();
}
hash = (37 * hash) + REQUEST_ORIGIN_FIELD_NUMBER;
hash = (53 * hash) + requestOrigin_;
switch (dataConfigCase_) {
case 15:
hash = (37 * hash) + ANNOTATION_FILTER_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getAnnotationFilterConfig().hashCode();
break;
case 18:
hash = (37 * hash) + MODEL_PREDICT_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getModelPredictConfig().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.clarifai.grpc.api.DatasetVersion parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.DatasetVersion 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.DatasetVersion parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.DatasetVersion 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.DatasetVersion parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.DatasetVersion parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.clarifai.grpc.api.DatasetVersion parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.DatasetVersion 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.DatasetVersion parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.DatasetVersion 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.DatasetVersion parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.DatasetVersion 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.DatasetVersion 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;
}
/**
*
* DatasetVersion
*
*
* Protobuf type {@code clarifai.api.DatasetVersion}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:clarifai.api.DatasetVersion)
com.clarifai.grpc.api.DatasetVersionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_DatasetVersion_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 16:
return internalGetMetrics();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 16:
return internalGetMutableMetrics();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_DatasetVersion_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.clarifai.grpc.api.DatasetVersion.class, com.clarifai.grpc.api.DatasetVersion.Builder.class);
}
// Construct using com.clarifai.grpc.api.DatasetVersion.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 (modifiedAtBuilder_ == null) {
modifiedAt_ = null;
} else {
modifiedAt_ = null;
modifiedAtBuilder_ = null;
}
appId_ = "";
userId_ = "";
datasetId_ = "";
if (statusBuilder_ == null) {
status_ = null;
} else {
status_ = null;
statusBuilder_ = null;
}
description_ = "";
if (processingInfoBuilder_ == null) {
processingInfo_ = null;
} else {
processingInfo_ = null;
processingInfoBuilder_ = null;
}
internalGetMutableMetrics().clear();
if (exportInfoBuilder_ == null) {
exportInfo_ = null;
} else {
exportInfo_ = null;
exportInfoBuilder_ = null;
}
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadata_ = null;
metadataBuilder_ = null;
}
if (visibilityBuilder_ == null) {
visibility_ = null;
} else {
visibility_ = null;
visibilityBuilder_ = null;
}
embedModelVersionIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
requestOrigin_ = 0;
dataConfigCase_ = 0;
dataConfig_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_DatasetVersion_descriptor;
}
@java.lang.Override
public com.clarifai.grpc.api.DatasetVersion getDefaultInstanceForType() {
return com.clarifai.grpc.api.DatasetVersion.getDefaultInstance();
}
@java.lang.Override
public com.clarifai.grpc.api.DatasetVersion build() {
com.clarifai.grpc.api.DatasetVersion result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.clarifai.grpc.api.DatasetVersion buildPartial() {
com.clarifai.grpc.api.DatasetVersion result = new com.clarifai.grpc.api.DatasetVersion(this);
int from_bitField0_ = bitField0_;
result.id_ = id_;
if (createdAtBuilder_ == null) {
result.createdAt_ = createdAt_;
} else {
result.createdAt_ = createdAtBuilder_.build();
}
if (modifiedAtBuilder_ == null) {
result.modifiedAt_ = modifiedAt_;
} else {
result.modifiedAt_ = modifiedAtBuilder_.build();
}
result.appId_ = appId_;
result.userId_ = userId_;
result.datasetId_ = datasetId_;
if (dataConfigCase_ == 15) {
if (annotationFilterConfigBuilder_ == null) {
result.dataConfig_ = dataConfig_;
} else {
result.dataConfig_ = annotationFilterConfigBuilder_.build();
}
}
if (dataConfigCase_ == 18) {
if (modelPredictConfigBuilder_ == null) {
result.dataConfig_ = dataConfig_;
} else {
result.dataConfig_ = modelPredictConfigBuilder_.build();
}
}
if (statusBuilder_ == null) {
result.status_ = status_;
} else {
result.status_ = statusBuilder_.build();
}
result.description_ = description_;
if (processingInfoBuilder_ == null) {
result.processingInfo_ = processingInfo_;
} else {
result.processingInfo_ = processingInfoBuilder_.build();
}
result.metrics_ = internalGetMetrics();
result.metrics_.makeImmutable();
if (exportInfoBuilder_ == null) {
result.exportInfo_ = exportInfo_;
} else {
result.exportInfo_ = exportInfoBuilder_.build();
}
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.build();
}
if (visibilityBuilder_ == null) {
result.visibility_ = visibility_;
} else {
result.visibility_ = visibilityBuilder_.build();
}
if (((bitField0_ & 0x00000002) != 0)) {
embedModelVersionIds_ = embedModelVersionIds_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.embedModelVersionIds_ = embedModelVersionIds_;
result.requestOrigin_ = requestOrigin_;
result.dataConfigCase_ = dataConfigCase_;
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.DatasetVersion) {
return mergeFrom((com.clarifai.grpc.api.DatasetVersion)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.clarifai.grpc.api.DatasetVersion other) {
if (other == com.clarifai.grpc.api.DatasetVersion.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (other.hasCreatedAt()) {
mergeCreatedAt(other.getCreatedAt());
}
if (other.hasModifiedAt()) {
mergeModifiedAt(other.getModifiedAt());
}
if (!other.getAppId().isEmpty()) {
appId_ = other.appId_;
onChanged();
}
if (!other.getUserId().isEmpty()) {
userId_ = other.userId_;
onChanged();
}
if (!other.getDatasetId().isEmpty()) {
datasetId_ = other.datasetId_;
onChanged();
}
if (other.hasStatus()) {
mergeStatus(other.getStatus());
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
if (other.hasProcessingInfo()) {
mergeProcessingInfo(other.getProcessingInfo());
}
internalGetMutableMetrics().mergeFrom(
other.internalGetMetrics());
if (other.hasExportInfo()) {
mergeExportInfo(other.getExportInfo());
}
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
if (other.hasVisibility()) {
mergeVisibility(other.getVisibility());
}
if (!other.embedModelVersionIds_.isEmpty()) {
if (embedModelVersionIds_.isEmpty()) {
embedModelVersionIds_ = other.embedModelVersionIds_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureEmbedModelVersionIdsIsMutable();
embedModelVersionIds_.addAll(other.embedModelVersionIds_);
}
onChanged();
}
if (other.requestOrigin_ != 0) {
setRequestOriginValue(other.getRequestOriginValue());
}
switch (other.getDataConfigCase()) {
case ANNOTATION_FILTER_CONFIG: {
mergeAnnotationFilterConfig(other.getAnnotationFilterConfig());
break;
}
case MODEL_PREDICT_CONFIG: {
mergeModelPredictConfig(other.getModelPredictConfig());
break;
}
case DATACONFIG_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.clarifai.grpc.api.DatasetVersion parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.clarifai.grpc.api.DatasetVersion) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int dataConfigCase_ = 0;
private java.lang.Object dataConfig_;
public DataConfigCase
getDataConfigCase() {
return DataConfigCase.forNumber(
dataConfigCase_);
}
public Builder clearDataConfig() {
dataConfigCase_ = 0;
dataConfig_ = null;
onChanged();
return this;
}
private int bitField0_;
private java.lang.Object id_ = "";
/**
*
* The ID for the dataset version
*
*
* string id = 1;
* @return The id.
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The ID for the dataset version
*
*
* string id = 1;
* @return The bytes for id.
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The ID for the dataset version
*
*
* string id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
*
* The ID for the dataset version
*
*
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
* The ID for the dataset version
*
*
* 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 dataset version was created.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp created_at = 2;
* @return Whether the createdAt field is set.
*/
public boolean hasCreatedAt() {
return createdAtBuilder_ != null || createdAt_ != null;
}
/**
*
* When the dataset version was created.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .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 dataset version was created.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .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 dataset version was created.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .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 dataset version was created.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .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 dataset version was created.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp created_at = 2;
*/
public Builder clearCreatedAt() {
if (createdAtBuilder_ == null) {
createdAt_ = null;
onChanged();
} else {
createdAt_ = null;
createdAtBuilder_ = null;
}
return this;
}
/**
*
* When the dataset version was created.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp created_at = 2;
*/
public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() {
onChanged();
return getCreatedAtFieldBuilder().getBuilder();
}
/**
*
* When the dataset version was created.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .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 dataset version was created.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .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.google.protobuf.Timestamp modifiedAt_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> modifiedAtBuilder_;
/**
*
* When the dataset version was modified.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp modified_at = 3;
* @return Whether the modifiedAt field is set.
*/
public boolean hasModifiedAt() {
return modifiedAtBuilder_ != null || modifiedAt_ != null;
}
/**
*
* When the dataset version was modified.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp modified_at = 3;
* @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 the dataset version was modified.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp modified_at = 3;
*/
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 the dataset version was modified.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp modified_at = 3;
*/
public Builder setModifiedAt(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (modifiedAtBuilder_ == null) {
modifiedAt_ = builderForValue.build();
onChanged();
} else {
modifiedAtBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* When the dataset version was modified.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp modified_at = 3;
*/
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 the dataset version was modified.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp modified_at = 3;
*/
public Builder clearModifiedAt() {
if (modifiedAtBuilder_ == null) {
modifiedAt_ = null;
onChanged();
} else {
modifiedAt_ = null;
modifiedAtBuilder_ = null;
}
return this;
}
/**
*
* When the dataset version was modified.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp modified_at = 3;
*/
public com.google.protobuf.Timestamp.Builder getModifiedAtBuilder() {
onChanged();
return getModifiedAtFieldBuilder().getBuilder();
}
/**
*
* When the dataset version was modified.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp modified_at = 3;
*/
public com.google.protobuf.TimestampOrBuilder getModifiedAtOrBuilder() {
if (modifiedAtBuilder_ != null) {
return modifiedAtBuilder_.getMessageOrBuilder();
} else {
return modifiedAt_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : modifiedAt_;
}
}
/**
*
* When the dataset version was modified.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp modified_at = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getModifiedAtFieldBuilder() {
if (modifiedAtBuilder_ == null) {
modifiedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getModifiedAt(),
getParentForChildren(),
isClean());
modifiedAt_ = null;
}
return modifiedAtBuilder_;
}
private java.lang.Object appId_ = "";
/**
*
* The app the dataset version belongs to.
*
*
* string app_id = 4;
* @return The appId.
*/
public java.lang.String getAppId() {
java.lang.Object ref = appId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
appId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The app the dataset version belongs to.
*
*
* string app_id = 4;
* @return The bytes for appId.
*/
public com.google.protobuf.ByteString
getAppIdBytes() {
java.lang.Object ref = appId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
appId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The app the dataset version belongs to.
*
*
* string app_id = 4;
* @param value The appId to set.
* @return This builder for chaining.
*/
public Builder setAppId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
appId_ = value;
onChanged();
return this;
}
/**
*
* The app the dataset version belongs to.
*
*
* string app_id = 4;
* @return This builder for chaining.
*/
public Builder clearAppId() {
appId_ = getDefaultInstance().getAppId();
onChanged();
return this;
}
/**
*
* The app the dataset version belongs to.
*
*
* string app_id = 4;
* @param value The bytes for appId to set.
* @return This builder for chaining.
*/
public Builder setAppIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
appId_ = value;
onChanged();
return this;
}
private java.lang.Object userId_ = "";
/**
*
* The user the dataset version belongs to.
*
*
* string user_id = 5;
* @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 dataset version belongs to.
*
*
* string user_id = 5;
* @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 dataset version belongs to.
*
*
* string user_id = 5;
* @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 dataset version belongs to.
*
*
* string user_id = 5;
* @return This builder for chaining.
*/
public Builder clearUserId() {
userId_ = getDefaultInstance().getUserId();
onChanged();
return this;
}
/**
*
* The user the dataset version belongs to.
*
*
* string user_id = 5;
* @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 java.lang.Object datasetId_ = "";
/**
*
* The dataset the dataset version belongs to.
*
*
* string dataset_id = 6;
* @return The datasetId.
*/
public java.lang.String getDatasetId() {
java.lang.Object ref = datasetId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
datasetId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The dataset the dataset version belongs to.
*
*
* string dataset_id = 6;
* @return The bytes for datasetId.
*/
public com.google.protobuf.ByteString
getDatasetIdBytes() {
java.lang.Object ref = datasetId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
datasetId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The dataset the dataset version belongs to.
*
*
* string dataset_id = 6;
* @param value The datasetId to set.
* @return This builder for chaining.
*/
public Builder setDatasetId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
datasetId_ = value;
onChanged();
return this;
}
/**
*
* The dataset the dataset version belongs to.
*
*
* string dataset_id = 6;
* @return This builder for chaining.
*/
public Builder clearDatasetId() {
datasetId_ = getDefaultInstance().getDatasetId();
onChanged();
return this;
}
/**
*
* The dataset the dataset version belongs to.
*
*
* string dataset_id = 6;
* @param value The bytes for datasetId to set.
* @return This builder for chaining.
*/
public Builder setDatasetIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
datasetId_ = value;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.AnnotationFilterConfig, com.clarifai.grpc.api.AnnotationFilterConfig.Builder, com.clarifai.grpc.api.AnnotationFilterConfigOrBuilder> annotationFilterConfigBuilder_;
/**
*
* The dataset version will be generated based on a single annotation filter.
*
*
* .clarifai.api.AnnotationFilterConfig annotation_filter_config = 15;
* @return Whether the annotationFilterConfig field is set.
*/
@java.lang.Override
public boolean hasAnnotationFilterConfig() {
return dataConfigCase_ == 15;
}
/**
*
* The dataset version will be generated based on a single annotation filter.
*
*
* .clarifai.api.AnnotationFilterConfig annotation_filter_config = 15;
* @return The annotationFilterConfig.
*/
@java.lang.Override
public com.clarifai.grpc.api.AnnotationFilterConfig getAnnotationFilterConfig() {
if (annotationFilterConfigBuilder_ == null) {
if (dataConfigCase_ == 15) {
return (com.clarifai.grpc.api.AnnotationFilterConfig) dataConfig_;
}
return com.clarifai.grpc.api.AnnotationFilterConfig.getDefaultInstance();
} else {
if (dataConfigCase_ == 15) {
return annotationFilterConfigBuilder_.getMessage();
}
return com.clarifai.grpc.api.AnnotationFilterConfig.getDefaultInstance();
}
}
/**
*
* The dataset version will be generated based on a single annotation filter.
*
*
* .clarifai.api.AnnotationFilterConfig annotation_filter_config = 15;
*/
public Builder setAnnotationFilterConfig(com.clarifai.grpc.api.AnnotationFilterConfig value) {
if (annotationFilterConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
dataConfig_ = value;
onChanged();
} else {
annotationFilterConfigBuilder_.setMessage(value);
}
dataConfigCase_ = 15;
return this;
}
/**
*
* The dataset version will be generated based on a single annotation filter.
*
*
* .clarifai.api.AnnotationFilterConfig annotation_filter_config = 15;
*/
public Builder setAnnotationFilterConfig(
com.clarifai.grpc.api.AnnotationFilterConfig.Builder builderForValue) {
if (annotationFilterConfigBuilder_ == null) {
dataConfig_ = builderForValue.build();
onChanged();
} else {
annotationFilterConfigBuilder_.setMessage(builderForValue.build());
}
dataConfigCase_ = 15;
return this;
}
/**
*
* The dataset version will be generated based on a single annotation filter.
*
*
* .clarifai.api.AnnotationFilterConfig annotation_filter_config = 15;
*/
public Builder mergeAnnotationFilterConfig(com.clarifai.grpc.api.AnnotationFilterConfig value) {
if (annotationFilterConfigBuilder_ == null) {
if (dataConfigCase_ == 15 &&
dataConfig_ != com.clarifai.grpc.api.AnnotationFilterConfig.getDefaultInstance()) {
dataConfig_ = com.clarifai.grpc.api.AnnotationFilterConfig.newBuilder((com.clarifai.grpc.api.AnnotationFilterConfig) dataConfig_)
.mergeFrom(value).buildPartial();
} else {
dataConfig_ = value;
}
onChanged();
} else {
if (dataConfigCase_ == 15) {
annotationFilterConfigBuilder_.mergeFrom(value);
} else {
annotationFilterConfigBuilder_.setMessage(value);
}
}
dataConfigCase_ = 15;
return this;
}
/**
*
* The dataset version will be generated based on a single annotation filter.
*
*
* .clarifai.api.AnnotationFilterConfig annotation_filter_config = 15;
*/
public Builder clearAnnotationFilterConfig() {
if (annotationFilterConfigBuilder_ == null) {
if (dataConfigCase_ == 15) {
dataConfigCase_ = 0;
dataConfig_ = null;
onChanged();
}
} else {
if (dataConfigCase_ == 15) {
dataConfigCase_ = 0;
dataConfig_ = null;
}
annotationFilterConfigBuilder_.clear();
}
return this;
}
/**
*
* The dataset version will be generated based on a single annotation filter.
*
*
* .clarifai.api.AnnotationFilterConfig annotation_filter_config = 15;
*/
public com.clarifai.grpc.api.AnnotationFilterConfig.Builder getAnnotationFilterConfigBuilder() {
return getAnnotationFilterConfigFieldBuilder().getBuilder();
}
/**
*
* The dataset version will be generated based on a single annotation filter.
*
*
* .clarifai.api.AnnotationFilterConfig annotation_filter_config = 15;
*/
@java.lang.Override
public com.clarifai.grpc.api.AnnotationFilterConfigOrBuilder getAnnotationFilterConfigOrBuilder() {
if ((dataConfigCase_ == 15) && (annotationFilterConfigBuilder_ != null)) {
return annotationFilterConfigBuilder_.getMessageOrBuilder();
} else {
if (dataConfigCase_ == 15) {
return (com.clarifai.grpc.api.AnnotationFilterConfig) dataConfig_;
}
return com.clarifai.grpc.api.AnnotationFilterConfig.getDefaultInstance();
}
}
/**
*
* The dataset version will be generated based on a single annotation filter.
*
*
* .clarifai.api.AnnotationFilterConfig annotation_filter_config = 15;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.AnnotationFilterConfig, com.clarifai.grpc.api.AnnotationFilterConfig.Builder, com.clarifai.grpc.api.AnnotationFilterConfigOrBuilder>
getAnnotationFilterConfigFieldBuilder() {
if (annotationFilterConfigBuilder_ == null) {
if (!(dataConfigCase_ == 15)) {
dataConfig_ = com.clarifai.grpc.api.AnnotationFilterConfig.getDefaultInstance();
}
annotationFilterConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.AnnotationFilterConfig, com.clarifai.grpc.api.AnnotationFilterConfig.Builder, com.clarifai.grpc.api.AnnotationFilterConfigOrBuilder>(
(com.clarifai.grpc.api.AnnotationFilterConfig) dataConfig_,
getParentForChildren(),
isClean());
dataConfig_ = null;
}
dataConfigCase_ = 15;
onChanged();;
return annotationFilterConfigBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.ModelPredictConfig, com.clarifai.grpc.api.ModelPredictConfig.Builder, com.clarifai.grpc.api.ModelPredictConfigOrBuilder> modelPredictConfigBuilder_;
/**
*
* The dataset version will be generated based on model version inferences.
*
*
* .clarifai.api.ModelPredictConfig model_predict_config = 18;
* @return Whether the modelPredictConfig field is set.
*/
@java.lang.Override
public boolean hasModelPredictConfig() {
return dataConfigCase_ == 18;
}
/**
*
* The dataset version will be generated based on model version inferences.
*
*
* .clarifai.api.ModelPredictConfig model_predict_config = 18;
* @return The modelPredictConfig.
*/
@java.lang.Override
public com.clarifai.grpc.api.ModelPredictConfig getModelPredictConfig() {
if (modelPredictConfigBuilder_ == null) {
if (dataConfigCase_ == 18) {
return (com.clarifai.grpc.api.ModelPredictConfig) dataConfig_;
}
return com.clarifai.grpc.api.ModelPredictConfig.getDefaultInstance();
} else {
if (dataConfigCase_ == 18) {
return modelPredictConfigBuilder_.getMessage();
}
return com.clarifai.grpc.api.ModelPredictConfig.getDefaultInstance();
}
}
/**
*
* The dataset version will be generated based on model version inferences.
*
*
* .clarifai.api.ModelPredictConfig model_predict_config = 18;
*/
public Builder setModelPredictConfig(com.clarifai.grpc.api.ModelPredictConfig value) {
if (modelPredictConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
dataConfig_ = value;
onChanged();
} else {
modelPredictConfigBuilder_.setMessage(value);
}
dataConfigCase_ = 18;
return this;
}
/**
*
* The dataset version will be generated based on model version inferences.
*
*
* .clarifai.api.ModelPredictConfig model_predict_config = 18;
*/
public Builder setModelPredictConfig(
com.clarifai.grpc.api.ModelPredictConfig.Builder builderForValue) {
if (modelPredictConfigBuilder_ == null) {
dataConfig_ = builderForValue.build();
onChanged();
} else {
modelPredictConfigBuilder_.setMessage(builderForValue.build());
}
dataConfigCase_ = 18;
return this;
}
/**
*
* The dataset version will be generated based on model version inferences.
*
*
* .clarifai.api.ModelPredictConfig model_predict_config = 18;
*/
public Builder mergeModelPredictConfig(com.clarifai.grpc.api.ModelPredictConfig value) {
if (modelPredictConfigBuilder_ == null) {
if (dataConfigCase_ == 18 &&
dataConfig_ != com.clarifai.grpc.api.ModelPredictConfig.getDefaultInstance()) {
dataConfig_ = com.clarifai.grpc.api.ModelPredictConfig.newBuilder((com.clarifai.grpc.api.ModelPredictConfig) dataConfig_)
.mergeFrom(value).buildPartial();
} else {
dataConfig_ = value;
}
onChanged();
} else {
if (dataConfigCase_ == 18) {
modelPredictConfigBuilder_.mergeFrom(value);
} else {
modelPredictConfigBuilder_.setMessage(value);
}
}
dataConfigCase_ = 18;
return this;
}
/**
*
* The dataset version will be generated based on model version inferences.
*
*
* .clarifai.api.ModelPredictConfig model_predict_config = 18;
*/
public Builder clearModelPredictConfig() {
if (modelPredictConfigBuilder_ == null) {
if (dataConfigCase_ == 18) {
dataConfigCase_ = 0;
dataConfig_ = null;
onChanged();
}
} else {
if (dataConfigCase_ == 18) {
dataConfigCase_ = 0;
dataConfig_ = null;
}
modelPredictConfigBuilder_.clear();
}
return this;
}
/**
*
* The dataset version will be generated based on model version inferences.
*
*
* .clarifai.api.ModelPredictConfig model_predict_config = 18;
*/
public com.clarifai.grpc.api.ModelPredictConfig.Builder getModelPredictConfigBuilder() {
return getModelPredictConfigFieldBuilder().getBuilder();
}
/**
*
* The dataset version will be generated based on model version inferences.
*
*
* .clarifai.api.ModelPredictConfig model_predict_config = 18;
*/
@java.lang.Override
public com.clarifai.grpc.api.ModelPredictConfigOrBuilder getModelPredictConfigOrBuilder() {
if ((dataConfigCase_ == 18) && (modelPredictConfigBuilder_ != null)) {
return modelPredictConfigBuilder_.getMessageOrBuilder();
} else {
if (dataConfigCase_ == 18) {
return (com.clarifai.grpc.api.ModelPredictConfig) dataConfig_;
}
return com.clarifai.grpc.api.ModelPredictConfig.getDefaultInstance();
}
}
/**
*
* The dataset version will be generated based on model version inferences.
*
*
* .clarifai.api.ModelPredictConfig model_predict_config = 18;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.ModelPredictConfig, com.clarifai.grpc.api.ModelPredictConfig.Builder, com.clarifai.grpc.api.ModelPredictConfigOrBuilder>
getModelPredictConfigFieldBuilder() {
if (modelPredictConfigBuilder_ == null) {
if (!(dataConfigCase_ == 18)) {
dataConfig_ = com.clarifai.grpc.api.ModelPredictConfig.getDefaultInstance();
}
modelPredictConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.ModelPredictConfig, com.clarifai.grpc.api.ModelPredictConfig.Builder, com.clarifai.grpc.api.ModelPredictConfigOrBuilder>(
(com.clarifai.grpc.api.ModelPredictConfig) dataConfig_,
getParentForChildren(),
isClean());
dataConfig_ = null;
}
dataConfigCase_ = 18;
onChanged();;
return modelPredictConfigBuilder_;
}
private com.clarifai.grpc.api.status.Status status_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.status.Status, com.clarifai.grpc.api.status.Status.Builder, com.clarifai.grpc.api.status.StatusOrBuilder> statusBuilder_;
/**
*
* Status for this dataset version.
*
*
* .clarifai.api.status.Status status = 8;
* @return Whether the status field is set.
*/
public boolean hasStatus() {
return statusBuilder_ != null || status_ != null;
}
/**
*
* Status for this dataset version.
*
*
* .clarifai.api.status.Status status = 8;
* @return The status.
*/
public com.clarifai.grpc.api.status.Status getStatus() {
if (statusBuilder_ == null) {
return status_ == null ? com.clarifai.grpc.api.status.Status.getDefaultInstance() : status_;
} else {
return statusBuilder_.getMessage();
}
}
/**
*
* Status for this dataset version.
*
*
* .clarifai.api.status.Status status = 8;
*/
public Builder setStatus(com.clarifai.grpc.api.status.Status value) {
if (statusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
status_ = value;
onChanged();
} else {
statusBuilder_.setMessage(value);
}
return this;
}
/**
*
* Status for this dataset version.
*
*
* .clarifai.api.status.Status status = 8;
*/
public Builder setStatus(
com.clarifai.grpc.api.status.Status.Builder builderForValue) {
if (statusBuilder_ == null) {
status_ = builderForValue.build();
onChanged();
} else {
statusBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Status for this dataset version.
*
*
* .clarifai.api.status.Status status = 8;
*/
public Builder mergeStatus(com.clarifai.grpc.api.status.Status value) {
if (statusBuilder_ == null) {
if (status_ != null) {
status_ =
com.clarifai.grpc.api.status.Status.newBuilder(status_).mergeFrom(value).buildPartial();
} else {
status_ = value;
}
onChanged();
} else {
statusBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Status for this dataset version.
*
*
* .clarifai.api.status.Status status = 8;
*/
public Builder clearStatus() {
if (statusBuilder_ == null) {
status_ = null;
onChanged();
} else {
status_ = null;
statusBuilder_ = null;
}
return this;
}
/**
*
* Status for this dataset version.
*
*
* .clarifai.api.status.Status status = 8;
*/
public com.clarifai.grpc.api.status.Status.Builder getStatusBuilder() {
onChanged();
return getStatusFieldBuilder().getBuilder();
}
/**
*
* Status for this dataset version.
*
*
* .clarifai.api.status.Status status = 8;
*/
public com.clarifai.grpc.api.status.StatusOrBuilder getStatusOrBuilder() {
if (statusBuilder_ != null) {
return statusBuilder_.getMessageOrBuilder();
} else {
return status_ == null ?
com.clarifai.grpc.api.status.Status.getDefaultInstance() : status_;
}
}
/**
*
* Status for this dataset version.
*
*
* .clarifai.api.status.Status status = 8;
*/
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 java.lang.Object description_ = "";
/**
*
* Description of the dataset version
*
*
* string description = 10;
* @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 of the dataset version
*
*
* string description = 10;
* @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 of the dataset version
*
*
* string description = 10;
* @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 of the dataset version
*
*
* string description = 10;
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* Description of the dataset version
*
*
* string description = 10;
* @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.DatasetVersionProcessingInfo processingInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.DatasetVersionProcessingInfo, com.clarifai.grpc.api.DatasetVersionProcessingInfo.Builder, com.clarifai.grpc.api.DatasetVersionProcessingInfoOrBuilder> processingInfoBuilder_;
/**
*
* Dataset version processing. If this is not set when the dataset version is
* created, then the dataset default_processing_info is copied instead. Later
* updates to default_processing_info will not apply to existing versions.
*
*
* .clarifai.api.DatasetVersionProcessingInfo processing_info = 19;
* @return Whether the processingInfo field is set.
*/
public boolean hasProcessingInfo() {
return processingInfoBuilder_ != null || processingInfo_ != null;
}
/**
*
* Dataset version processing. If this is not set when the dataset version is
* created, then the dataset default_processing_info is copied instead. Later
* updates to default_processing_info will not apply to existing versions.
*
*
* .clarifai.api.DatasetVersionProcessingInfo processing_info = 19;
* @return The processingInfo.
*/
public com.clarifai.grpc.api.DatasetVersionProcessingInfo getProcessingInfo() {
if (processingInfoBuilder_ == null) {
return processingInfo_ == null ? com.clarifai.grpc.api.DatasetVersionProcessingInfo.getDefaultInstance() : processingInfo_;
} else {
return processingInfoBuilder_.getMessage();
}
}
/**
*
* Dataset version processing. If this is not set when the dataset version is
* created, then the dataset default_processing_info is copied instead. Later
* updates to default_processing_info will not apply to existing versions.
*
*
* .clarifai.api.DatasetVersionProcessingInfo processing_info = 19;
*/
public Builder setProcessingInfo(com.clarifai.grpc.api.DatasetVersionProcessingInfo value) {
if (processingInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
processingInfo_ = value;
onChanged();
} else {
processingInfoBuilder_.setMessage(value);
}
return this;
}
/**
*
* Dataset version processing. If this is not set when the dataset version is
* created, then the dataset default_processing_info is copied instead. Later
* updates to default_processing_info will not apply to existing versions.
*
*
* .clarifai.api.DatasetVersionProcessingInfo processing_info = 19;
*/
public Builder setProcessingInfo(
com.clarifai.grpc.api.DatasetVersionProcessingInfo.Builder builderForValue) {
if (processingInfoBuilder_ == null) {
processingInfo_ = builderForValue.build();
onChanged();
} else {
processingInfoBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Dataset version processing. If this is not set when the dataset version is
* created, then the dataset default_processing_info is copied instead. Later
* updates to default_processing_info will not apply to existing versions.
*
*
* .clarifai.api.DatasetVersionProcessingInfo processing_info = 19;
*/
public Builder mergeProcessingInfo(com.clarifai.grpc.api.DatasetVersionProcessingInfo value) {
if (processingInfoBuilder_ == null) {
if (processingInfo_ != null) {
processingInfo_ =
com.clarifai.grpc.api.DatasetVersionProcessingInfo.newBuilder(processingInfo_).mergeFrom(value).buildPartial();
} else {
processingInfo_ = value;
}
onChanged();
} else {
processingInfoBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Dataset version processing. If this is not set when the dataset version is
* created, then the dataset default_processing_info is copied instead. Later
* updates to default_processing_info will not apply to existing versions.
*
*
* .clarifai.api.DatasetVersionProcessingInfo processing_info = 19;
*/
public Builder clearProcessingInfo() {
if (processingInfoBuilder_ == null) {
processingInfo_ = null;
onChanged();
} else {
processingInfo_ = null;
processingInfoBuilder_ = null;
}
return this;
}
/**
*
* Dataset version processing. If this is not set when the dataset version is
* created, then the dataset default_processing_info is copied instead. Later
* updates to default_processing_info will not apply to existing versions.
*
*
* .clarifai.api.DatasetVersionProcessingInfo processing_info = 19;
*/
public com.clarifai.grpc.api.DatasetVersionProcessingInfo.Builder getProcessingInfoBuilder() {
onChanged();
return getProcessingInfoFieldBuilder().getBuilder();
}
/**
*
* Dataset version processing. If this is not set when the dataset version is
* created, then the dataset default_processing_info is copied instead. Later
* updates to default_processing_info will not apply to existing versions.
*
*
* .clarifai.api.DatasetVersionProcessingInfo processing_info = 19;
*/
public com.clarifai.grpc.api.DatasetVersionProcessingInfoOrBuilder getProcessingInfoOrBuilder() {
if (processingInfoBuilder_ != null) {
return processingInfoBuilder_.getMessageOrBuilder();
} else {
return processingInfo_ == null ?
com.clarifai.grpc.api.DatasetVersionProcessingInfo.getDefaultInstance() : processingInfo_;
}
}
/**
*
* Dataset version processing. If this is not set when the dataset version is
* created, then the dataset default_processing_info is copied instead. Later
* updates to default_processing_info will not apply to existing versions.
*
*
* .clarifai.api.DatasetVersionProcessingInfo processing_info = 19;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.DatasetVersionProcessingInfo, com.clarifai.grpc.api.DatasetVersionProcessingInfo.Builder, com.clarifai.grpc.api.DatasetVersionProcessingInfoOrBuilder>
getProcessingInfoFieldBuilder() {
if (processingInfoBuilder_ == null) {
processingInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.DatasetVersionProcessingInfo, com.clarifai.grpc.api.DatasetVersionProcessingInfo.Builder, com.clarifai.grpc.api.DatasetVersionProcessingInfoOrBuilder>(
getProcessingInfo(),
getParentForChildren(),
isClean());
processingInfo_ = null;
}
return processingInfoBuilder_;
}
private com.google.protobuf.MapField<
java.lang.String, com.clarifai.grpc.api.DatasetVersionMetrics> metrics_;
private com.google.protobuf.MapField
internalGetMetrics() {
if (metrics_ == null) {
return com.google.protobuf.MapField.emptyMapField(
MetricsDefaultEntryHolder.defaultEntry);
}
return metrics_;
}
private com.google.protobuf.MapField
internalGetMutableMetrics() {
onChanged();;
if (metrics_ == null) {
metrics_ = com.google.protobuf.MapField.newMapField(
MetricsDefaultEntryHolder.defaultEntry);
}
if (!metrics_.isMutable()) {
metrics_ = metrics_.copy();
}
return metrics_;
}
public int getMetricsCount() {
return internalGetMetrics().getMap().size();
}
/**
*
* Dataset version metrics
*
*
* map<string, .clarifai.api.DatasetVersionMetrics> metrics = 16;
*/
@java.lang.Override
public boolean containsMetrics(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetMetrics().getMap().containsKey(key);
}
/**
* Use {@link #getMetricsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getMetrics() {
return getMetricsMap();
}
/**
*
* Dataset version metrics
*
*
* map<string, .clarifai.api.DatasetVersionMetrics> metrics = 16;
*/
@java.lang.Override
public java.util.Map getMetricsMap() {
return internalGetMetrics().getMap();
}
/**
*
* Dataset version metrics
*
*
* map<string, .clarifai.api.DatasetVersionMetrics> metrics = 16;
*/
@java.lang.Override
public com.clarifai.grpc.api.DatasetVersionMetrics getMetricsOrDefault(
java.lang.String key,
com.clarifai.grpc.api.DatasetVersionMetrics defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetMetrics().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Dataset version metrics
*
*
* map<string, .clarifai.api.DatasetVersionMetrics> metrics = 16;
*/
@java.lang.Override
public com.clarifai.grpc.api.DatasetVersionMetrics getMetricsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetMetrics().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearMetrics() {
internalGetMutableMetrics().getMutableMap()
.clear();
return this;
}
/**
*
* Dataset version metrics
*
*
* map<string, .clarifai.api.DatasetVersionMetrics> metrics = 16;
*/
public Builder removeMetrics(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableMetrics().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableMetrics() {
return internalGetMutableMetrics().getMutableMap();
}
/**
*
* Dataset version metrics
*
*
* map<string, .clarifai.api.DatasetVersionMetrics> metrics = 16;
*/
public Builder putMetrics(
java.lang.String key,
com.clarifai.grpc.api.DatasetVersionMetrics value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableMetrics().getMutableMap()
.put(key, value);
return this;
}
/**
*
* Dataset version metrics
*
*
* map<string, .clarifai.api.DatasetVersionMetrics> metrics = 16;
*/
public Builder putAllMetrics(
java.util.Map values) {
internalGetMutableMetrics().getMutableMap()
.putAll(values);
return this;
}
private com.clarifai.grpc.api.DatasetVersionExportInfo exportInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.DatasetVersionExportInfo, com.clarifai.grpc.api.DatasetVersionExportInfo.Builder, com.clarifai.grpc.api.DatasetVersionExportInfoOrBuilder> exportInfoBuilder_;
/**
*
* Dataset version exports
*
*
* .clarifai.api.DatasetVersionExportInfo export_info = 17;
* @return Whether the exportInfo field is set.
*/
public boolean hasExportInfo() {
return exportInfoBuilder_ != null || exportInfo_ != null;
}
/**
*
* Dataset version exports
*
*
* .clarifai.api.DatasetVersionExportInfo export_info = 17;
* @return The exportInfo.
*/
public com.clarifai.grpc.api.DatasetVersionExportInfo getExportInfo() {
if (exportInfoBuilder_ == null) {
return exportInfo_ == null ? com.clarifai.grpc.api.DatasetVersionExportInfo.getDefaultInstance() : exportInfo_;
} else {
return exportInfoBuilder_.getMessage();
}
}
/**
*
* Dataset version exports
*
*
* .clarifai.api.DatasetVersionExportInfo export_info = 17;
*/
public Builder setExportInfo(com.clarifai.grpc.api.DatasetVersionExportInfo value) {
if (exportInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
exportInfo_ = value;
onChanged();
} else {
exportInfoBuilder_.setMessage(value);
}
return this;
}
/**
*
* Dataset version exports
*
*
* .clarifai.api.DatasetVersionExportInfo export_info = 17;
*/
public Builder setExportInfo(
com.clarifai.grpc.api.DatasetVersionExportInfo.Builder builderForValue) {
if (exportInfoBuilder_ == null) {
exportInfo_ = builderForValue.build();
onChanged();
} else {
exportInfoBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Dataset version exports
*
*
* .clarifai.api.DatasetVersionExportInfo export_info = 17;
*/
public Builder mergeExportInfo(com.clarifai.grpc.api.DatasetVersionExportInfo value) {
if (exportInfoBuilder_ == null) {
if (exportInfo_ != null) {
exportInfo_ =
com.clarifai.grpc.api.DatasetVersionExportInfo.newBuilder(exportInfo_).mergeFrom(value).buildPartial();
} else {
exportInfo_ = value;
}
onChanged();
} else {
exportInfoBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Dataset version exports
*
*
* .clarifai.api.DatasetVersionExportInfo export_info = 17;
*/
public Builder clearExportInfo() {
if (exportInfoBuilder_ == null) {
exportInfo_ = null;
onChanged();
} else {
exportInfo_ = null;
exportInfoBuilder_ = null;
}
return this;
}
/**
*
* Dataset version exports
*
*
* .clarifai.api.DatasetVersionExportInfo export_info = 17;
*/
public com.clarifai.grpc.api.DatasetVersionExportInfo.Builder getExportInfoBuilder() {
onChanged();
return getExportInfoFieldBuilder().getBuilder();
}
/**
*
* Dataset version exports
*
*
* .clarifai.api.DatasetVersionExportInfo export_info = 17;
*/
public com.clarifai.grpc.api.DatasetVersionExportInfoOrBuilder getExportInfoOrBuilder() {
if (exportInfoBuilder_ != null) {
return exportInfoBuilder_.getMessageOrBuilder();
} else {
return exportInfo_ == null ?
com.clarifai.grpc.api.DatasetVersionExportInfo.getDefaultInstance() : exportInfo_;
}
}
/**
*
* Dataset version exports
*
*
* .clarifai.api.DatasetVersionExportInfo export_info = 17;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.DatasetVersionExportInfo, com.clarifai.grpc.api.DatasetVersionExportInfo.Builder, com.clarifai.grpc.api.DatasetVersionExportInfoOrBuilder>
getExportInfoFieldBuilder() {
if (exportInfoBuilder_ == null) {
exportInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.DatasetVersionExportInfo, com.clarifai.grpc.api.DatasetVersionExportInfo.Builder, com.clarifai.grpc.api.DatasetVersionExportInfoOrBuilder>(
getExportInfo(),
getParentForChildren(),
isClean());
exportInfo_ = null;
}
return exportInfoBuilder_;
}
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 = 12;
* @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 = 12;
* @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 = 12;
*/
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 = 12;
*/
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 = 12;
*/
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 = 12;
*/
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 = 12;
*/
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 = 12;
*/
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 = 12;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
getMetadata(),
getParentForChildren(),
isClean());
metadata_ = null;
}
return metadataBuilder_;
}
private com.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 = 13;
* @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 = 13;
* @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 = 13;
*/
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 = 13;
*/
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 = 13;
*/
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 = 13;
*/
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 = 13;
*/
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 = 13;
*/
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 = 13;
*/
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 com.google.protobuf.LazyStringList embedModelVersionIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureEmbedModelVersionIdsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
embedModelVersionIds_ = new com.google.protobuf.LazyStringArrayList(embedModelVersionIds_);
bitField0_ |= 0x00000002;
}
}
/**
*
* The embedding models to return embeddings for. If empty, no embeddings are returned.
*
*
* repeated string embed_model_version_ids = 14;
* @return A list containing the embedModelVersionIds.
*/
public com.google.protobuf.ProtocolStringList
getEmbedModelVersionIdsList() {
return embedModelVersionIds_.getUnmodifiableView();
}
/**
*
* The embedding models to return embeddings for. If empty, no embeddings are returned.
*
*
* repeated string embed_model_version_ids = 14;
* @return The count of embedModelVersionIds.
*/
public int getEmbedModelVersionIdsCount() {
return embedModelVersionIds_.size();
}
/**
*
* The embedding models to return embeddings for. If empty, no embeddings are returned.
*
*
* repeated string embed_model_version_ids = 14;
* @param index The index of the element to return.
* @return The embedModelVersionIds at the given index.
*/
public java.lang.String getEmbedModelVersionIds(int index) {
return embedModelVersionIds_.get(index);
}
/**
*
* The embedding models to return embeddings for. If empty, no embeddings are returned.
*
*
* repeated string embed_model_version_ids = 14;
* @param index The index of the value to return.
* @return The bytes of the embedModelVersionIds at the given index.
*/
public com.google.protobuf.ByteString
getEmbedModelVersionIdsBytes(int index) {
return embedModelVersionIds_.getByteString(index);
}
/**
*
* The embedding models to return embeddings for. If empty, no embeddings are returned.
*
*
* repeated string embed_model_version_ids = 14;
* @param index The index to set the value at.
* @param value The embedModelVersionIds to set.
* @return This builder for chaining.
*/
public Builder setEmbedModelVersionIds(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureEmbedModelVersionIdsIsMutable();
embedModelVersionIds_.set(index, value);
onChanged();
return this;
}
/**
*
* The embedding models to return embeddings for. If empty, no embeddings are returned.
*
*
* repeated string embed_model_version_ids = 14;
* @param value The embedModelVersionIds to add.
* @return This builder for chaining.
*/
public Builder addEmbedModelVersionIds(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureEmbedModelVersionIdsIsMutable();
embedModelVersionIds_.add(value);
onChanged();
return this;
}
/**
*
* The embedding models to return embeddings for. If empty, no embeddings are returned.
*
*
* repeated string embed_model_version_ids = 14;
* @param values The embedModelVersionIds to add.
* @return This builder for chaining.
*/
public Builder addAllEmbedModelVersionIds(
java.lang.Iterable values) {
ensureEmbedModelVersionIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, embedModelVersionIds_);
onChanged();
return this;
}
/**
*
* The embedding models to return embeddings for. If empty, no embeddings are returned.
*
*
* repeated string embed_model_version_ids = 14;
* @return This builder for chaining.
*/
public Builder clearEmbedModelVersionIds() {
embedModelVersionIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* The embedding models to return embeddings for. If empty, no embeddings are returned.
*
*
* repeated string embed_model_version_ids = 14;
* @param value The bytes of the embedModelVersionIds to add.
* @return This builder for chaining.
*/
public Builder addEmbedModelVersionIdsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureEmbedModelVersionIdsIsMutable();
embedModelVersionIds_.add(value);
onChanged();
return this;
}
private int requestOrigin_ = 0;
/**
*
* Read Only. Cannot be Set
* Origin of request for new dataset version
*
*
* .clarifai.api.DatasetVersionRequestOrigin request_origin = 20;
* @return The enum numeric value on the wire for requestOrigin.
*/
@java.lang.Override public int getRequestOriginValue() {
return requestOrigin_;
}
/**
*
* Read Only. Cannot be Set
* Origin of request for new dataset version
*
*
* .clarifai.api.DatasetVersionRequestOrigin request_origin = 20;
* @param value The enum numeric value on the wire for requestOrigin to set.
* @return This builder for chaining.
*/
public Builder setRequestOriginValue(int value) {
requestOrigin_ = value;
onChanged();
return this;
}
/**
*
* Read Only. Cannot be Set
* Origin of request for new dataset version
*
*
* .clarifai.api.DatasetVersionRequestOrigin request_origin = 20;
* @return The requestOrigin.
*/
@java.lang.Override
public com.clarifai.grpc.api.DatasetVersionRequestOrigin getRequestOrigin() {
@SuppressWarnings("deprecation")
com.clarifai.grpc.api.DatasetVersionRequestOrigin result = com.clarifai.grpc.api.DatasetVersionRequestOrigin.valueOf(requestOrigin_);
return result == null ? com.clarifai.grpc.api.DatasetVersionRequestOrigin.UNRECOGNIZED : result;
}
/**
*
* Read Only. Cannot be Set
* Origin of request for new dataset version
*
*
* .clarifai.api.DatasetVersionRequestOrigin request_origin = 20;
* @param value The requestOrigin to set.
* @return This builder for chaining.
*/
public Builder setRequestOrigin(com.clarifai.grpc.api.DatasetVersionRequestOrigin value) {
if (value == null) {
throw new NullPointerException();
}
requestOrigin_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Read Only. Cannot be Set
* Origin of request for new dataset version
*
*
* .clarifai.api.DatasetVersionRequestOrigin request_origin = 20;
* @return This builder for chaining.
*/
public Builder clearRequestOrigin() {
requestOrigin_ = 0;
onChanged();
return this;
}
@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.DatasetVersion)
}
// @@protoc_insertion_point(class_scope:clarifai.api.DatasetVersion)
private static final com.clarifai.grpc.api.DatasetVersion DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.clarifai.grpc.api.DatasetVersion();
}
public static com.clarifai.grpc.api.DatasetVersion getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DatasetVersion parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DatasetVersion(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.DatasetVersion getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}