implements
// @@protoc_insertion_point(builder_implements:clarifai.api.Model)
com.clarifai.grpc.api.ModelOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Model_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Model_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.clarifai.grpc.api.Model.class, com.clarifai.grpc.api.Model.Builder.class);
}
// Construct using com.clarifai.grpc.api.Model.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getLanguagesFullFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
id_ = "";
name_ = "";
if (createdAtBuilder_ == null) {
createdAt_ = null;
} else {
createdAt_ = null;
createdAtBuilder_ = null;
}
if (modifiedAtBuilder_ == null) {
modifiedAt_ = null;
} else {
modifiedAt_ = null;
modifiedAtBuilder_ = null;
}
appId_ = "";
if (outputInfoBuilder_ == null) {
outputInfo_ = null;
} else {
outputInfo_ = null;
outputInfoBuilder_ = null;
}
if (modelVersionBuilder_ == null) {
modelVersion_ = null;
} else {
modelVersion_ = null;
modelVersionBuilder_ = null;
}
displayName_ = "";
userId_ = "";
if (defaultEvalInfoBuilder_ == null) {
defaultEvalInfo_ = null;
} else {
defaultEvalInfo_ = null;
defaultEvalInfoBuilder_ = null;
}
modelTypeId_ = "";
task_ = "";
if (visibilityBuilder_ == null) {
visibility_ = null;
} else {
visibility_ = null;
visibilityBuilder_ = null;
}
description_ = "";
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadata_ = null;
metadataBuilder_ = null;
}
if (presetsBuilder_ == null) {
presets_ = null;
} else {
presets_ = null;
presetsBuilder_ = null;
}
notes_ = "";
toolkits_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
useCases_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
languages_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
if (languagesFullBuilder_ == null) {
languagesFull_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
languagesFullBuilder_.clear();
}
checkConsents_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000010);
isStarred_ = false;
starCount_ = 0;
if (workflowRecommendedBuilder_ == null) {
workflowRecommended_ = null;
} else {
workflowRecommended_ = null;
workflowRecommendedBuilder_ = null;
}
if (bookmarkOriginBuilder_ == null) {
bookmarkOrigin_ = null;
} else {
bookmarkOrigin_ = null;
bookmarkOriginBuilder_ = null;
}
if (imageBuilder_ == null) {
image_ = null;
} else {
image_ = null;
imageBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Model_descriptor;
}
@java.lang.Override
public com.clarifai.grpc.api.Model getDefaultInstanceForType() {
return com.clarifai.grpc.api.Model.getDefaultInstance();
}
@java.lang.Override
public com.clarifai.grpc.api.Model build() {
com.clarifai.grpc.api.Model result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.clarifai.grpc.api.Model buildPartial() {
com.clarifai.grpc.api.Model result = new com.clarifai.grpc.api.Model(this);
int from_bitField0_ = bitField0_;
result.id_ = id_;
result.name_ = name_;
if (createdAtBuilder_ == null) {
result.createdAt_ = createdAt_;
} else {
result.createdAt_ = createdAtBuilder_.build();
}
if (modifiedAtBuilder_ == null) {
result.modifiedAt_ = modifiedAt_;
} else {
result.modifiedAt_ = modifiedAtBuilder_.build();
}
result.appId_ = appId_;
if (outputInfoBuilder_ == null) {
result.outputInfo_ = outputInfo_;
} else {
result.outputInfo_ = outputInfoBuilder_.build();
}
if (modelVersionBuilder_ == null) {
result.modelVersion_ = modelVersion_;
} else {
result.modelVersion_ = modelVersionBuilder_.build();
}
result.displayName_ = displayName_;
result.userId_ = userId_;
if (defaultEvalInfoBuilder_ == null) {
result.defaultEvalInfo_ = defaultEvalInfo_;
} else {
result.defaultEvalInfo_ = defaultEvalInfoBuilder_.build();
}
result.modelTypeId_ = modelTypeId_;
result.task_ = task_;
if (visibilityBuilder_ == null) {
result.visibility_ = visibility_;
} else {
result.visibility_ = visibilityBuilder_.build();
}
result.description_ = description_;
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.build();
}
if (presetsBuilder_ == null) {
result.presets_ = presets_;
} else {
result.presets_ = presetsBuilder_.build();
}
result.notes_ = notes_;
if (((bitField0_ & 0x00000001) != 0)) {
toolkits_ = toolkits_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.toolkits_ = toolkits_;
if (((bitField0_ & 0x00000002) != 0)) {
useCases_ = useCases_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.useCases_ = useCases_;
if (((bitField0_ & 0x00000004) != 0)) {
languages_ = languages_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000004);
}
result.languages_ = languages_;
if (languagesFullBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
languagesFull_ = java.util.Collections.unmodifiableList(languagesFull_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.languagesFull_ = languagesFull_;
} else {
result.languagesFull_ = languagesFullBuilder_.build();
}
if (((bitField0_ & 0x00000010) != 0)) {
checkConsents_ = checkConsents_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000010);
}
result.checkConsents_ = checkConsents_;
result.isStarred_ = isStarred_;
result.starCount_ = starCount_;
if (workflowRecommendedBuilder_ == null) {
result.workflowRecommended_ = workflowRecommended_;
} else {
result.workflowRecommended_ = workflowRecommendedBuilder_.build();
}
if (bookmarkOriginBuilder_ == null) {
result.bookmarkOrigin_ = bookmarkOrigin_;
} else {
result.bookmarkOrigin_ = bookmarkOriginBuilder_.build();
}
if (imageBuilder_ == null) {
result.image_ = image_;
} else {
result.image_ = imageBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.clarifai.grpc.api.Model) {
return mergeFrom((com.clarifai.grpc.api.Model)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.clarifai.grpc.api.Model other) {
if (other == com.clarifai.grpc.api.Model.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.hasCreatedAt()) {
mergeCreatedAt(other.getCreatedAt());
}
if (other.hasModifiedAt()) {
mergeModifiedAt(other.getModifiedAt());
}
if (!other.getAppId().isEmpty()) {
appId_ = other.appId_;
onChanged();
}
if (other.hasOutputInfo()) {
mergeOutputInfo(other.getOutputInfo());
}
if (other.hasModelVersion()) {
mergeModelVersion(other.getModelVersion());
}
if (!other.getDisplayName().isEmpty()) {
displayName_ = other.displayName_;
onChanged();
}
if (!other.getUserId().isEmpty()) {
userId_ = other.userId_;
onChanged();
}
if (other.hasDefaultEvalInfo()) {
mergeDefaultEvalInfo(other.getDefaultEvalInfo());
}
if (!other.getModelTypeId().isEmpty()) {
modelTypeId_ = other.modelTypeId_;
onChanged();
}
if (!other.getTask().isEmpty()) {
task_ = other.task_;
onChanged();
}
if (other.hasVisibility()) {
mergeVisibility(other.getVisibility());
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
if (other.hasPresets()) {
mergePresets(other.getPresets());
}
if (!other.getNotes().isEmpty()) {
notes_ = other.notes_;
onChanged();
}
if (!other.toolkits_.isEmpty()) {
if (toolkits_.isEmpty()) {
toolkits_ = other.toolkits_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureToolkitsIsMutable();
toolkits_.addAll(other.toolkits_);
}
onChanged();
}
if (!other.useCases_.isEmpty()) {
if (useCases_.isEmpty()) {
useCases_ = other.useCases_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureUseCasesIsMutable();
useCases_.addAll(other.useCases_);
}
onChanged();
}
if (!other.languages_.isEmpty()) {
if (languages_.isEmpty()) {
languages_ = other.languages_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureLanguagesIsMutable();
languages_.addAll(other.languages_);
}
onChanged();
}
if (languagesFullBuilder_ == null) {
if (!other.languagesFull_.isEmpty()) {
if (languagesFull_.isEmpty()) {
languagesFull_ = other.languagesFull_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureLanguagesFullIsMutable();
languagesFull_.addAll(other.languagesFull_);
}
onChanged();
}
} else {
if (!other.languagesFull_.isEmpty()) {
if (languagesFullBuilder_.isEmpty()) {
languagesFullBuilder_.dispose();
languagesFullBuilder_ = null;
languagesFull_ = other.languagesFull_;
bitField0_ = (bitField0_ & ~0x00000008);
languagesFullBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getLanguagesFullFieldBuilder() : null;
} else {
languagesFullBuilder_.addAllMessages(other.languagesFull_);
}
}
}
if (!other.checkConsents_.isEmpty()) {
if (checkConsents_.isEmpty()) {
checkConsents_ = other.checkConsents_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureCheckConsentsIsMutable();
checkConsents_.addAll(other.checkConsents_);
}
onChanged();
}
if (other.getIsStarred() != false) {
setIsStarred(other.getIsStarred());
}
if (other.getStarCount() != 0) {
setStarCount(other.getStarCount());
}
if (other.hasWorkflowRecommended()) {
mergeWorkflowRecommended(other.getWorkflowRecommended());
}
if (other.hasBookmarkOrigin()) {
mergeBookmarkOrigin(other.getBookmarkOrigin());
}
if (other.hasImage()) {
mergeImage(other.getImage());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.clarifai.grpc.api.Model parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.clarifai.grpc.api.Model) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object id_ = "";
/**
*
* The model's ID. Must be unique within a particular app and URL-friendly.
*
*
* string id = 1;
* @return The id.
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The model's ID. Must be unique within a particular app and URL-friendly.
*
*
* string id = 1;
* @return The bytes for id.
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The model's ID. Must be unique within a particular app and URL-friendly.
*
*
* string id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
*
* The model's ID. Must be unique within a particular app and URL-friendly.
*
*
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
* The model's ID. Must be unique within a particular app and URL-friendly.
*
*
* string id = 1;
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
id_ = value;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
* DEPRECATED: Please use the model id to name the model.
*
*
* string name = 2 [deprecated = true];
* @deprecated clarifai.api.Model.name is deprecated.
* See proto/clarifai/api/resources.proto;l=1318
* @return The name.
*/
@java.lang.Deprecated public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* DEPRECATED: Please use the model id to name the model.
*
*
* string name = 2 [deprecated = true];
* @deprecated clarifai.api.Model.name is deprecated.
* See proto/clarifai/api/resources.proto;l=1318
* @return The bytes for name.
*/
@java.lang.Deprecated public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* DEPRECATED: Please use the model id to name the model.
*
*
* string name = 2 [deprecated = true];
* @deprecated clarifai.api.Model.name is deprecated.
* See proto/clarifai/api/resources.proto;l=1318
* @param value The name to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* DEPRECATED: Please use the model id to name the model.
*
*
* string name = 2 [deprecated = true];
* @deprecated clarifai.api.Model.name is deprecated.
* See proto/clarifai/api/resources.proto;l=1318
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* DEPRECATED: Please use the model id to name the model.
*
*
* string name = 2 [deprecated = true];
* @deprecated clarifai.api.Model.name is deprecated.
* See proto/clarifai/api/resources.proto;l=1318
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private com.google.protobuf.Timestamp createdAt_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_;
/**
*
* When the model was created. We follow the XXXX timestamp
* format. We use https://www.ietf.org/rfc/rfc3339.txt format:
* "2006-01-02T15:04:05.999999Z" so you can expect results like
* the following from the API:
* "2017-04-11T21:50:50.223962Z"
*
*
* .google.protobuf.Timestamp created_at = 3;
* @return Whether the createdAt field is set.
*/
public boolean hasCreatedAt() {
return createdAtBuilder_ != null || createdAt_ != null;
}
/**
*
* When the model was created. We follow the XXXX timestamp
* format. We use https://www.ietf.org/rfc/rfc3339.txt format:
* "2006-01-02T15:04:05.999999Z" so you can expect results like
* the following from the API:
* "2017-04-11T21:50:50.223962Z"
*
*
* .google.protobuf.Timestamp created_at = 3;
* @return The createdAt.
*/
public com.google.protobuf.Timestamp getCreatedAt() {
if (createdAtBuilder_ == null) {
return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
} else {
return createdAtBuilder_.getMessage();
}
}
/**
*
* When the model was created. We follow the XXXX timestamp
* format. We use https://www.ietf.org/rfc/rfc3339.txt format:
* "2006-01-02T15:04:05.999999Z" so you can expect results like
* the following from the API:
* "2017-04-11T21:50:50.223962Z"
*
*
* .google.protobuf.Timestamp created_at = 3;
*/
public Builder setCreatedAt(com.google.protobuf.Timestamp value) {
if (createdAtBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
createdAt_ = value;
onChanged();
} else {
createdAtBuilder_.setMessage(value);
}
return this;
}
/**
*
* When the model was created. We follow the XXXX timestamp
* format. We use https://www.ietf.org/rfc/rfc3339.txt format:
* "2006-01-02T15:04:05.999999Z" so you can expect results like
* the following from the API:
* "2017-04-11T21:50:50.223962Z"
*
*
* .google.protobuf.Timestamp created_at = 3;
*/
public Builder setCreatedAt(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (createdAtBuilder_ == null) {
createdAt_ = builderForValue.build();
onChanged();
} else {
createdAtBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* When the model was created. We follow the XXXX timestamp
* format. We use https://www.ietf.org/rfc/rfc3339.txt format:
* "2006-01-02T15:04:05.999999Z" so you can expect results like
* the following from the API:
* "2017-04-11T21:50:50.223962Z"
*
*
* .google.protobuf.Timestamp created_at = 3;
*/
public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) {
if (createdAtBuilder_ == null) {
if (createdAt_ != null) {
createdAt_ =
com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial();
} else {
createdAt_ = value;
}
onChanged();
} else {
createdAtBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* When the model was created. We follow the XXXX timestamp
* format. We use https://www.ietf.org/rfc/rfc3339.txt format:
* "2006-01-02T15:04:05.999999Z" so you can expect results like
* the following from the API:
* "2017-04-11T21:50:50.223962Z"
*
*
* .google.protobuf.Timestamp created_at = 3;
*/
public Builder clearCreatedAt() {
if (createdAtBuilder_ == null) {
createdAt_ = null;
onChanged();
} else {
createdAt_ = null;
createdAtBuilder_ = null;
}
return this;
}
/**
*
* When the model was created. We follow the XXXX timestamp
* format. We use https://www.ietf.org/rfc/rfc3339.txt format:
* "2006-01-02T15:04:05.999999Z" so you can expect results like
* the following from the API:
* "2017-04-11T21:50:50.223962Z"
*
*
* .google.protobuf.Timestamp created_at = 3;
*/
public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() {
onChanged();
return getCreatedAtFieldBuilder().getBuilder();
}
/**
*
* When the model was created. We follow the XXXX timestamp
* format. We use https://www.ietf.org/rfc/rfc3339.txt format:
* "2006-01-02T15:04:05.999999Z" so you can expect results like
* the following from the API:
* "2017-04-11T21:50:50.223962Z"
*
*
* .google.protobuf.Timestamp created_at = 3;
*/
public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
if (createdAtBuilder_ != null) {
return createdAtBuilder_.getMessageOrBuilder();
} else {
return createdAt_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
}
}
/**
*
* When the model was created. We follow the XXXX timestamp
* format. We use https://www.ietf.org/rfc/rfc3339.txt format:
* "2006-01-02T15:04:05.999999Z" so you can expect results like
* the following from the API:
* "2017-04-11T21:50:50.223962Z"
*
*
* .google.protobuf.Timestamp created_at = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getCreatedAtFieldBuilder() {
if (createdAtBuilder_ == null) {
createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getCreatedAt(),
getParentForChildren(),
isClean());
createdAt_ = null;
}
return createdAtBuilder_;
}
private com.google.protobuf.Timestamp modifiedAt_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> modifiedAtBuilder_;
/**
*
* When was the most recent model version created at
*
*
* .google.protobuf.Timestamp modified_at = 19;
* @return Whether the modifiedAt field is set.
*/
public boolean hasModifiedAt() {
return modifiedAtBuilder_ != null || modifiedAt_ != null;
}
/**
*
* When was the most recent model version created at
*
*
* .google.protobuf.Timestamp modified_at = 19;
* @return The modifiedAt.
*/
public com.google.protobuf.Timestamp getModifiedAt() {
if (modifiedAtBuilder_ == null) {
return modifiedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modifiedAt_;
} else {
return modifiedAtBuilder_.getMessage();
}
}
/**
*
* When was the most recent model version created at
*
*
* .google.protobuf.Timestamp modified_at = 19;
*/
public Builder setModifiedAt(com.google.protobuf.Timestamp value) {
if (modifiedAtBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
modifiedAt_ = value;
onChanged();
} else {
modifiedAtBuilder_.setMessage(value);
}
return this;
}
/**
*
* When was the most recent model version created at
*
*
* .google.protobuf.Timestamp modified_at = 19;
*/
public Builder setModifiedAt(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (modifiedAtBuilder_ == null) {
modifiedAt_ = builderForValue.build();
onChanged();
} else {
modifiedAtBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* When was the most recent model version created at
*
*
* .google.protobuf.Timestamp modified_at = 19;
*/
public Builder mergeModifiedAt(com.google.protobuf.Timestamp value) {
if (modifiedAtBuilder_ == null) {
if (modifiedAt_ != null) {
modifiedAt_ =
com.google.protobuf.Timestamp.newBuilder(modifiedAt_).mergeFrom(value).buildPartial();
} else {
modifiedAt_ = value;
}
onChanged();
} else {
modifiedAtBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* When was the most recent model version created at
*
*
* .google.protobuf.Timestamp modified_at = 19;
*/
public Builder clearModifiedAt() {
if (modifiedAtBuilder_ == null) {
modifiedAt_ = null;
onChanged();
} else {
modifiedAt_ = null;
modifiedAtBuilder_ = null;
}
return this;
}
/**
*
* When was the most recent model version created at
*
*
* .google.protobuf.Timestamp modified_at = 19;
*/
public com.google.protobuf.Timestamp.Builder getModifiedAtBuilder() {
onChanged();
return getModifiedAtFieldBuilder().getBuilder();
}
/**
*
* When was the most recent model version created at
*
*
* .google.protobuf.Timestamp modified_at = 19;
*/
public com.google.protobuf.TimestampOrBuilder getModifiedAtOrBuilder() {
if (modifiedAtBuilder_ != null) {
return modifiedAtBuilder_.getMessageOrBuilder();
} else {
return modifiedAt_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : modifiedAt_;
}
}
/**
*
* When was the most recent model version created at
*
*
* .google.protobuf.Timestamp modified_at = 19;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getModifiedAtFieldBuilder() {
if (modifiedAtBuilder_ == null) {
modifiedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getModifiedAt(),
getParentForChildren(),
isClean());
modifiedAt_ = null;
}
return modifiedAtBuilder_;
}
private java.lang.Object appId_ = "";
/**
*
* The app the model belongs to.
*
*
* string app_id = 4 [(.clarifai.api.utils.cl_show_if_empty) = true];
* @return The appId.
*/
public java.lang.String getAppId() {
java.lang.Object ref = appId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
appId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The app the model belongs to.
*
*
* string app_id = 4 [(.clarifai.api.utils.cl_show_if_empty) = true];
* @return The bytes for appId.
*/
public com.google.protobuf.ByteString
getAppIdBytes() {
java.lang.Object ref = appId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
appId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The app the model belongs to.
*
*
* string app_id = 4 [(.clarifai.api.utils.cl_show_if_empty) = true];
* @param value The appId to set.
* @return This builder for chaining.
*/
public Builder setAppId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
appId_ = value;
onChanged();
return this;
}
/**
*
* The app the model belongs to.
*
*
* string app_id = 4 [(.clarifai.api.utils.cl_show_if_empty) = true];
* @return This builder for chaining.
*/
public Builder clearAppId() {
appId_ = getDefaultInstance().getAppId();
onChanged();
return this;
}
/**
*
* The app the model belongs to.
*
*
* string app_id = 4 [(.clarifai.api.utils.cl_show_if_empty) = true];
* @param value The bytes for appId to set.
* @return This builder for chaining.
*/
public Builder setAppIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
appId_ = value;
onChanged();
return this;
}
private com.clarifai.grpc.api.OutputInfo outputInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.OutputInfo, com.clarifai.grpc.api.OutputInfo.Builder, com.clarifai.grpc.api.OutputInfoOrBuilder> outputInfoBuilder_;
/**
*
* Info about the model's output and configuration.
* DEPRECATED: Will be moved to model version
*
*
* .clarifai.api.OutputInfo output_info = 5 [deprecated = true];
* @deprecated clarifai.api.Model.output_info is deprecated.
* See proto/clarifai/api/resources.proto;l=1331
* @return Whether the outputInfo field is set.
*/
@java.lang.Deprecated public boolean hasOutputInfo() {
return outputInfoBuilder_ != null || outputInfo_ != null;
}
/**
*
* Info about the model's output and configuration.
* DEPRECATED: Will be moved to model version
*
*
* .clarifai.api.OutputInfo output_info = 5 [deprecated = true];
* @deprecated clarifai.api.Model.output_info is deprecated.
* See proto/clarifai/api/resources.proto;l=1331
* @return The outputInfo.
*/
@java.lang.Deprecated public com.clarifai.grpc.api.OutputInfo getOutputInfo() {
if (outputInfoBuilder_ == null) {
return outputInfo_ == null ? com.clarifai.grpc.api.OutputInfo.getDefaultInstance() : outputInfo_;
} else {
return outputInfoBuilder_.getMessage();
}
}
/**
*
* Info about the model's output and configuration.
* DEPRECATED: Will be moved to model version
*
*
* .clarifai.api.OutputInfo output_info = 5 [deprecated = true];
*/
@java.lang.Deprecated public Builder setOutputInfo(com.clarifai.grpc.api.OutputInfo value) {
if (outputInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
outputInfo_ = value;
onChanged();
} else {
outputInfoBuilder_.setMessage(value);
}
return this;
}
/**
*
* Info about the model's output and configuration.
* DEPRECATED: Will be moved to model version
*
*
* .clarifai.api.OutputInfo output_info = 5 [deprecated = true];
*/
@java.lang.Deprecated public Builder setOutputInfo(
com.clarifai.grpc.api.OutputInfo.Builder builderForValue) {
if (outputInfoBuilder_ == null) {
outputInfo_ = builderForValue.build();
onChanged();
} else {
outputInfoBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Info about the model's output and configuration.
* DEPRECATED: Will be moved to model version
*
*
* .clarifai.api.OutputInfo output_info = 5 [deprecated = true];
*/
@java.lang.Deprecated public Builder mergeOutputInfo(com.clarifai.grpc.api.OutputInfo value) {
if (outputInfoBuilder_ == null) {
if (outputInfo_ != null) {
outputInfo_ =
com.clarifai.grpc.api.OutputInfo.newBuilder(outputInfo_).mergeFrom(value).buildPartial();
} else {
outputInfo_ = value;
}
onChanged();
} else {
outputInfoBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Info about the model's output and configuration.
* DEPRECATED: Will be moved to model version
*
*
* .clarifai.api.OutputInfo output_info = 5 [deprecated = true];
*/
@java.lang.Deprecated public Builder clearOutputInfo() {
if (outputInfoBuilder_ == null) {
outputInfo_ = null;
onChanged();
} else {
outputInfo_ = null;
outputInfoBuilder_ = null;
}
return this;
}
/**
*
* Info about the model's output and configuration.
* DEPRECATED: Will be moved to model version
*
*
* .clarifai.api.OutputInfo output_info = 5 [deprecated = true];
*/
@java.lang.Deprecated public com.clarifai.grpc.api.OutputInfo.Builder getOutputInfoBuilder() {
onChanged();
return getOutputInfoFieldBuilder().getBuilder();
}
/**
*
* Info about the model's output and configuration.
* DEPRECATED: Will be moved to model version
*
*
* .clarifai.api.OutputInfo output_info = 5 [deprecated = true];
*/
@java.lang.Deprecated public com.clarifai.grpc.api.OutputInfoOrBuilder getOutputInfoOrBuilder() {
if (outputInfoBuilder_ != null) {
return outputInfoBuilder_.getMessageOrBuilder();
} else {
return outputInfo_ == null ?
com.clarifai.grpc.api.OutputInfo.getDefaultInstance() : outputInfo_;
}
}
/**
*
* Info about the model's output and configuration.
* DEPRECATED: Will be moved to model version
*
*
* .clarifai.api.OutputInfo output_info = 5 [deprecated = true];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.OutputInfo, com.clarifai.grpc.api.OutputInfo.Builder, com.clarifai.grpc.api.OutputInfoOrBuilder>
getOutputInfoFieldBuilder() {
if (outputInfoBuilder_ == null) {
outputInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.OutputInfo, com.clarifai.grpc.api.OutputInfo.Builder, com.clarifai.grpc.api.OutputInfoOrBuilder>(
getOutputInfo(),
getParentForChildren(),
isClean());
outputInfo_ = null;
}
return outputInfoBuilder_;
}
private com.clarifai.grpc.api.ModelVersion modelVersion_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.ModelVersion, com.clarifai.grpc.api.ModelVersion.Builder, com.clarifai.grpc.api.ModelVersionOrBuilder> modelVersionBuilder_;
/**
*
* A particular version of the model, e.g., to specify the version when creating a workflow or
* when listing Models to include the latest ModelVersion of the model in the response.
*
*
* .clarifai.api.ModelVersion model_version = 6;
* @return Whether the modelVersion field is set.
*/
public boolean hasModelVersion() {
return modelVersionBuilder_ != null || modelVersion_ != null;
}
/**
*
* A particular version of the model, e.g., to specify the version when creating a workflow or
* when listing Models to include the latest ModelVersion of the model in the response.
*
*
* .clarifai.api.ModelVersion model_version = 6;
* @return The modelVersion.
*/
public com.clarifai.grpc.api.ModelVersion getModelVersion() {
if (modelVersionBuilder_ == null) {
return modelVersion_ == null ? com.clarifai.grpc.api.ModelVersion.getDefaultInstance() : modelVersion_;
} else {
return modelVersionBuilder_.getMessage();
}
}
/**
*
* A particular version of the model, e.g., to specify the version when creating a workflow or
* when listing Models to include the latest ModelVersion of the model in the response.
*
*
* .clarifai.api.ModelVersion model_version = 6;
*/
public Builder setModelVersion(com.clarifai.grpc.api.ModelVersion value) {
if (modelVersionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
modelVersion_ = value;
onChanged();
} else {
modelVersionBuilder_.setMessage(value);
}
return this;
}
/**
*
* A particular version of the model, e.g., to specify the version when creating a workflow or
* when listing Models to include the latest ModelVersion of the model in the response.
*
*
* .clarifai.api.ModelVersion model_version = 6;
*/
public Builder setModelVersion(
com.clarifai.grpc.api.ModelVersion.Builder builderForValue) {
if (modelVersionBuilder_ == null) {
modelVersion_ = builderForValue.build();
onChanged();
} else {
modelVersionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* A particular version of the model, e.g., to specify the version when creating a workflow or
* when listing Models to include the latest ModelVersion of the model in the response.
*
*
* .clarifai.api.ModelVersion model_version = 6;
*/
public Builder mergeModelVersion(com.clarifai.grpc.api.ModelVersion value) {
if (modelVersionBuilder_ == null) {
if (modelVersion_ != null) {
modelVersion_ =
com.clarifai.grpc.api.ModelVersion.newBuilder(modelVersion_).mergeFrom(value).buildPartial();
} else {
modelVersion_ = value;
}
onChanged();
} else {
modelVersionBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* A particular version of the model, e.g., to specify the version when creating a workflow or
* when listing Models to include the latest ModelVersion of the model in the response.
*
*
* .clarifai.api.ModelVersion model_version = 6;
*/
public Builder clearModelVersion() {
if (modelVersionBuilder_ == null) {
modelVersion_ = null;
onChanged();
} else {
modelVersion_ = null;
modelVersionBuilder_ = null;
}
return this;
}
/**
*
* A particular version of the model, e.g., to specify the version when creating a workflow or
* when listing Models to include the latest ModelVersion of the model in the response.
*
*
* .clarifai.api.ModelVersion model_version = 6;
*/
public com.clarifai.grpc.api.ModelVersion.Builder getModelVersionBuilder() {
onChanged();
return getModelVersionFieldBuilder().getBuilder();
}
/**
*
* A particular version of the model, e.g., to specify the version when creating a workflow or
* when listing Models to include the latest ModelVersion of the model in the response.
*
*
* .clarifai.api.ModelVersion model_version = 6;
*/
public com.clarifai.grpc.api.ModelVersionOrBuilder getModelVersionOrBuilder() {
if (modelVersionBuilder_ != null) {
return modelVersionBuilder_.getMessageOrBuilder();
} else {
return modelVersion_ == null ?
com.clarifai.grpc.api.ModelVersion.getDefaultInstance() : modelVersion_;
}
}
/**
*
* A particular version of the model, e.g., to specify the version when creating a workflow or
* when listing Models to include the latest ModelVersion of the model in the response.
*
*
* .clarifai.api.ModelVersion model_version = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.ModelVersion, com.clarifai.grpc.api.ModelVersion.Builder, com.clarifai.grpc.api.ModelVersionOrBuilder>
getModelVersionFieldBuilder() {
if (modelVersionBuilder_ == null) {
modelVersionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.ModelVersion, com.clarifai.grpc.api.ModelVersion.Builder, com.clarifai.grpc.api.ModelVersionOrBuilder>(
getModelVersion(),
getParentForChildren(),
isClean());
modelVersion_ = null;
}
return modelVersionBuilder_;
}
private java.lang.Object displayName_ = "";
/**
*
* DEPRECATED: Please use the model id to name the model.
*
*
* string display_name = 7 [deprecated = true];
* @deprecated clarifai.api.Model.display_name is deprecated.
* See proto/clarifai/api/resources.proto;l=1336
* @return The displayName.
*/
@java.lang.Deprecated public java.lang.String getDisplayName() {
java.lang.Object ref = displayName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
displayName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* DEPRECATED: Please use the model id to name the model.
*
*
* string display_name = 7 [deprecated = true];
* @deprecated clarifai.api.Model.display_name is deprecated.
* See proto/clarifai/api/resources.proto;l=1336
* @return The bytes for displayName.
*/
@java.lang.Deprecated public com.google.protobuf.ByteString
getDisplayNameBytes() {
java.lang.Object ref = displayName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
displayName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* DEPRECATED: Please use the model id to name the model.
*
*
* string display_name = 7 [deprecated = true];
* @deprecated clarifai.api.Model.display_name is deprecated.
* See proto/clarifai/api/resources.proto;l=1336
* @param value The displayName to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setDisplayName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
displayName_ = value;
onChanged();
return this;
}
/**
*
* DEPRECATED: Please use the model id to name the model.
*
*
* string display_name = 7 [deprecated = true];
* @deprecated clarifai.api.Model.display_name is deprecated.
* See proto/clarifai/api/resources.proto;l=1336
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearDisplayName() {
displayName_ = getDefaultInstance().getDisplayName();
onChanged();
return this;
}
/**
*
* DEPRECATED: Please use the model id to name the model.
*
*
* string display_name = 7 [deprecated = true];
* @deprecated clarifai.api.Model.display_name is deprecated.
* See proto/clarifai/api/resources.proto;l=1336
* @param value The bytes for displayName to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setDisplayNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
displayName_ = value;
onChanged();
return this;
}
private java.lang.Object userId_ = "";
/**
*
* The user id that the model belongs to.
*
*
* string user_id = 9;
* @return The userId.
*/
public java.lang.String getUserId() {
java.lang.Object ref = userId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
userId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The user id that the model belongs to.
*
*
* string user_id = 9;
* @return The bytes for userId.
*/
public com.google.protobuf.ByteString
getUserIdBytes() {
java.lang.Object ref = userId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The user id that the model belongs to.
*
*
* string user_id = 9;
* @param value The userId to set.
* @return This builder for chaining.
*/
public Builder setUserId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
userId_ = value;
onChanged();
return this;
}
/**
*
* The user id that the model belongs to.
*
*
* string user_id = 9;
* @return This builder for chaining.
*/
public Builder clearUserId() {
userId_ = getDefaultInstance().getUserId();
onChanged();
return this;
}
/**
*
* The user id that the model belongs to.
*
*
* string user_id = 9;
* @param value The bytes for userId to set.
* @return This builder for chaining.
*/
public Builder setUserIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
userId_ = value;
onChanged();
return this;
}
private com.clarifai.grpc.api.EvalInfo defaultEvalInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.EvalInfo, com.clarifai.grpc.api.EvalInfo.Builder, com.clarifai.grpc.api.EvalInfoOrBuilder> defaultEvalInfoBuilder_;
/**
*
* The default evaluation info. Can be overwritten by eval request.
*
*
* .clarifai.api.EvalInfo default_eval_info = 30;
* @return Whether the defaultEvalInfo field is set.
*/
public boolean hasDefaultEvalInfo() {
return defaultEvalInfoBuilder_ != null || defaultEvalInfo_ != null;
}
/**
*
* The default evaluation info. Can be overwritten by eval request.
*
*
* .clarifai.api.EvalInfo default_eval_info = 30;
* @return The defaultEvalInfo.
*/
public com.clarifai.grpc.api.EvalInfo getDefaultEvalInfo() {
if (defaultEvalInfoBuilder_ == null) {
return defaultEvalInfo_ == null ? com.clarifai.grpc.api.EvalInfo.getDefaultInstance() : defaultEvalInfo_;
} else {
return defaultEvalInfoBuilder_.getMessage();
}
}
/**
*
* The default evaluation info. Can be overwritten by eval request.
*
*
* .clarifai.api.EvalInfo default_eval_info = 30;
*/
public Builder setDefaultEvalInfo(com.clarifai.grpc.api.EvalInfo value) {
if (defaultEvalInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
defaultEvalInfo_ = value;
onChanged();
} else {
defaultEvalInfoBuilder_.setMessage(value);
}
return this;
}
/**
*
* The default evaluation info. Can be overwritten by eval request.
*
*
* .clarifai.api.EvalInfo default_eval_info = 30;
*/
public Builder setDefaultEvalInfo(
com.clarifai.grpc.api.EvalInfo.Builder builderForValue) {
if (defaultEvalInfoBuilder_ == null) {
defaultEvalInfo_ = builderForValue.build();
onChanged();
} else {
defaultEvalInfoBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The default evaluation info. Can be overwritten by eval request.
*
*
* .clarifai.api.EvalInfo default_eval_info = 30;
*/
public Builder mergeDefaultEvalInfo(com.clarifai.grpc.api.EvalInfo value) {
if (defaultEvalInfoBuilder_ == null) {
if (defaultEvalInfo_ != null) {
defaultEvalInfo_ =
com.clarifai.grpc.api.EvalInfo.newBuilder(defaultEvalInfo_).mergeFrom(value).buildPartial();
} else {
defaultEvalInfo_ = value;
}
onChanged();
} else {
defaultEvalInfoBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The default evaluation info. Can be overwritten by eval request.
*
*
* .clarifai.api.EvalInfo default_eval_info = 30;
*/
public Builder clearDefaultEvalInfo() {
if (defaultEvalInfoBuilder_ == null) {
defaultEvalInfo_ = null;
onChanged();
} else {
defaultEvalInfo_ = null;
defaultEvalInfoBuilder_ = null;
}
return this;
}
/**
*
* The default evaluation info. Can be overwritten by eval request.
*
*
* .clarifai.api.EvalInfo default_eval_info = 30;
*/
public com.clarifai.grpc.api.EvalInfo.Builder getDefaultEvalInfoBuilder() {
onChanged();
return getDefaultEvalInfoFieldBuilder().getBuilder();
}
/**
*
* The default evaluation info. Can be overwritten by eval request.
*
*
* .clarifai.api.EvalInfo default_eval_info = 30;
*/
public com.clarifai.grpc.api.EvalInfoOrBuilder getDefaultEvalInfoOrBuilder() {
if (defaultEvalInfoBuilder_ != null) {
return defaultEvalInfoBuilder_.getMessageOrBuilder();
} else {
return defaultEvalInfo_ == null ?
com.clarifai.grpc.api.EvalInfo.getDefaultInstance() : defaultEvalInfo_;
}
}
/**
*
* The default evaluation info. Can be overwritten by eval request.
*
*
* .clarifai.api.EvalInfo default_eval_info = 30;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.EvalInfo, com.clarifai.grpc.api.EvalInfo.Builder, com.clarifai.grpc.api.EvalInfoOrBuilder>
getDefaultEvalInfoFieldBuilder() {
if (defaultEvalInfoBuilder_ == null) {
defaultEvalInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.EvalInfo, com.clarifai.grpc.api.EvalInfo.Builder, com.clarifai.grpc.api.EvalInfoOrBuilder>(
getDefaultEvalInfo(),
getParentForChildren(),
isClean());
defaultEvalInfo_ = null;
}
return defaultEvalInfoBuilder_;
}
private java.lang.Object modelTypeId_ = "";
/**
*
* The ModelType.Id that is used for this model. This is used for all versions and you cannot
* change model_type_id between versions of the same model.
*
*
* string model_type_id = 14;
* @return The modelTypeId.
*/
public java.lang.String getModelTypeId() {
java.lang.Object ref = modelTypeId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
modelTypeId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The ModelType.Id that is used for this model. This is used for all versions and you cannot
* change model_type_id between versions of the same model.
*
*
* string model_type_id = 14;
* @return The bytes for modelTypeId.
*/
public com.google.protobuf.ByteString
getModelTypeIdBytes() {
java.lang.Object ref = modelTypeId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
modelTypeId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The ModelType.Id that is used for this model. This is used for all versions and you cannot
* change model_type_id between versions of the same model.
*
*
* string model_type_id = 14;
* @param value The modelTypeId to set.
* @return This builder for chaining.
*/
public Builder setModelTypeId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
modelTypeId_ = value;
onChanged();
return this;
}
/**
*
* The ModelType.Id that is used for this model. This is used for all versions and you cannot
* change model_type_id between versions of the same model.
*
*
* string model_type_id = 14;
* @return This builder for chaining.
*/
public Builder clearModelTypeId() {
modelTypeId_ = getDefaultInstance().getModelTypeId();
onChanged();
return this;
}
/**
*
* The ModelType.Id that is used for this model. This is used for all versions and you cannot
* change model_type_id between versions of the same model.
*
*
* string model_type_id = 14;
* @param value The bytes for modelTypeId to set.
* @return This builder for chaining.
*/
public Builder setModelTypeIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
modelTypeId_ = value;
onChanged();
return this;
}
private java.lang.Object task_ = "";
/**
*
* The task the model was trained to do
*
*
* string task = 26;
* @return The task.
*/
public java.lang.String getTask() {
java.lang.Object ref = task_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
task_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The task the model was trained to do
*
*
* string task = 26;
* @return The bytes for task.
*/
public com.google.protobuf.ByteString
getTaskBytes() {
java.lang.Object ref = task_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
task_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The task the model was trained to do
*
*
* string task = 26;
* @param value The task to set.
* @return This builder for chaining.
*/
public Builder setTask(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
task_ = value;
onChanged();
return this;
}
/**
*
* The task the model was trained to do
*
*
* string task = 26;
* @return This builder for chaining.
*/
public Builder clearTask() {
task_ = getDefaultInstance().getTask();
onChanged();
return this;
}
/**
*
* The task the model was trained to do
*
*
* string task = 26;
* @param value The bytes for task to set.
* @return This builder for chaining.
*/
public Builder setTaskBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
task_ = value;
onChanged();
return this;
}
private com.clarifai.grpc.api.Visibility visibility_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.Visibility, com.clarifai.grpc.api.Visibility.Builder, com.clarifai.grpc.api.VisibilityOrBuilder> visibilityBuilder_;
/**
*
* The visibility field represents whether this message is privately/publicly visible.
* To be visible to the public the App that contains it AND the User that contains the App must
* also be publicly visible.
*
*
* .clarifai.api.Visibility visibility = 15;
* @return Whether the visibility field is set.
*/
public boolean hasVisibility() {
return visibilityBuilder_ != null || visibility_ != null;
}
/**
*
* The visibility field represents whether this message is privately/publicly visible.
* To be visible to the public the App that contains it AND the User that contains the App must
* also be publicly visible.
*
*
* .clarifai.api.Visibility visibility = 15;
* @return The visibility.
*/
public com.clarifai.grpc.api.Visibility getVisibility() {
if (visibilityBuilder_ == null) {
return visibility_ == null ? com.clarifai.grpc.api.Visibility.getDefaultInstance() : visibility_;
} else {
return visibilityBuilder_.getMessage();
}
}
/**
*
* The visibility field represents whether this message is privately/publicly visible.
* To be visible to the public the App that contains it AND the User that contains the App must
* also be publicly visible.
*
*
* .clarifai.api.Visibility visibility = 15;
*/
public Builder setVisibility(com.clarifai.grpc.api.Visibility value) {
if (visibilityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
visibility_ = value;
onChanged();
} else {
visibilityBuilder_.setMessage(value);
}
return this;
}
/**
*
* The visibility field represents whether this message is privately/publicly visible.
* To be visible to the public the App that contains it AND the User that contains the App must
* also be publicly visible.
*
*
* .clarifai.api.Visibility visibility = 15;
*/
public Builder setVisibility(
com.clarifai.grpc.api.Visibility.Builder builderForValue) {
if (visibilityBuilder_ == null) {
visibility_ = builderForValue.build();
onChanged();
} else {
visibilityBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The visibility field represents whether this message is privately/publicly visible.
* To be visible to the public the App that contains it AND the User that contains the App must
* also be publicly visible.
*
*
* .clarifai.api.Visibility visibility = 15;
*/
public Builder mergeVisibility(com.clarifai.grpc.api.Visibility value) {
if (visibilityBuilder_ == null) {
if (visibility_ != null) {
visibility_ =
com.clarifai.grpc.api.Visibility.newBuilder(visibility_).mergeFrom(value).buildPartial();
} else {
visibility_ = value;
}
onChanged();
} else {
visibilityBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The visibility field represents whether this message is privately/publicly visible.
* To be visible to the public the App that contains it AND the User that contains the App must
* also be publicly visible.
*
*
* .clarifai.api.Visibility visibility = 15;
*/
public Builder clearVisibility() {
if (visibilityBuilder_ == null) {
visibility_ = null;
onChanged();
} else {
visibility_ = null;
visibilityBuilder_ = null;
}
return this;
}
/**
*
* The visibility field represents whether this message is privately/publicly visible.
* To be visible to the public the App that contains it AND the User that contains the App must
* also be publicly visible.
*
*
* .clarifai.api.Visibility visibility = 15;
*/
public com.clarifai.grpc.api.Visibility.Builder getVisibilityBuilder() {
onChanged();
return getVisibilityFieldBuilder().getBuilder();
}
/**
*
* The visibility field represents whether this message is privately/publicly visible.
* To be visible to the public the App that contains it AND the User that contains the App must
* also be publicly visible.
*
*
* .clarifai.api.Visibility visibility = 15;
*/
public com.clarifai.grpc.api.VisibilityOrBuilder getVisibilityOrBuilder() {
if (visibilityBuilder_ != null) {
return visibilityBuilder_.getMessageOrBuilder();
} else {
return visibility_ == null ?
com.clarifai.grpc.api.Visibility.getDefaultInstance() : visibility_;
}
}
/**
*
* The visibility field represents whether this message is privately/publicly visible.
* To be visible to the public the App that contains it AND the User that contains the App must
* also be publicly visible.
*
*
* .clarifai.api.Visibility visibility = 15;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.Visibility, com.clarifai.grpc.api.Visibility.Builder, com.clarifai.grpc.api.VisibilityOrBuilder>
getVisibilityFieldBuilder() {
if (visibilityBuilder_ == null) {
visibilityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.Visibility, com.clarifai.grpc.api.Visibility.Builder, com.clarifai.grpc.api.VisibilityOrBuilder>(
getVisibility(),
getParentForChildren(),
isClean());
visibility_ = null;
}
return visibilityBuilder_;
}
private java.lang.Object description_ = "";
/**
*
* Short description about this model
*
*
* string description = 16;
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Short description about this model
*
*
* string description = 16;
* @return The bytes for description.
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Short description about this model
*
*
* string description = 16;
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
onChanged();
return this;
}
/**
*
* Short description about this model
*
*
* string description = 16;
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* Short description about this model
*
*
* string description = 16;
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
onChanged();
return this;
}
private com.google.protobuf.Struct metadata_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> metadataBuilder_;
/**
*
* To handle arbitrary json metadata you can use a struct field:
* https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
*
*
* .google.protobuf.Struct metadata = 17;
* @return Whether the metadata field is set.
*/
public boolean hasMetadata() {
return metadataBuilder_ != null || metadata_ != null;
}
/**
*
* To handle arbitrary json metadata you can use a struct field:
* https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
*
*
* .google.protobuf.Struct metadata = 17;
* @return The metadata.
*/
public com.google.protobuf.Struct getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
*
* To handle arbitrary json metadata you can use a struct field:
* https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
*
*
* .google.protobuf.Struct metadata = 17;
*/
public Builder setMetadata(com.google.protobuf.Struct value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
onChanged();
} else {
metadataBuilder_.setMessage(value);
}
return this;
}
/**
*
* To handle arbitrary json metadata you can use a struct field:
* https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
*
*
* .google.protobuf.Struct metadata = 17;
*/
public Builder setMetadata(
com.google.protobuf.Struct.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
onChanged();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* To handle arbitrary json metadata you can use a struct field:
* https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
*
*
* .google.protobuf.Struct metadata = 17;
*/
public Builder mergeMetadata(com.google.protobuf.Struct value) {
if (metadataBuilder_ == null) {
if (metadata_ != null) {
metadata_ =
com.google.protobuf.Struct.newBuilder(metadata_).mergeFrom(value).buildPartial();
} else {
metadata_ = value;
}
onChanged();
} else {
metadataBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* To handle arbitrary json metadata you can use a struct field:
* https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
*
*
* .google.protobuf.Struct metadata = 17;
*/
public Builder clearMetadata() {
if (metadataBuilder_ == null) {
metadata_ = null;
onChanged();
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
/**
*
* To handle arbitrary json metadata you can use a struct field:
* https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
*
*
* .google.protobuf.Struct metadata = 17;
*/
public com.google.protobuf.Struct.Builder getMetadataBuilder() {
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
*
* To handle arbitrary json metadata you can use a struct field:
* https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
*
*
* .google.protobuf.Struct metadata = 17;
*/
public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null ?
com.google.protobuf.Struct.getDefaultInstance() : metadata_;
}
}
/**
*
* To handle arbitrary json metadata you can use a struct field:
* https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
*
*
* .google.protobuf.Struct metadata = 17;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
getMetadata(),
getParentForChildren(),
isClean());
metadata_ = null;
}
return metadataBuilder_;
}
private com.google.protobuf.Struct presets_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> presetsBuilder_;
/**
* .google.protobuf.Struct presets = 27;
* @return Whether the presets field is set.
*/
public boolean hasPresets() {
return presetsBuilder_ != null || presets_ != null;
}
/**
* .google.protobuf.Struct presets = 27;
* @return The presets.
*/
public com.google.protobuf.Struct getPresets() {
if (presetsBuilder_ == null) {
return presets_ == null ? com.google.protobuf.Struct.getDefaultInstance() : presets_;
} else {
return presetsBuilder_.getMessage();
}
}
/**
* .google.protobuf.Struct presets = 27;
*/
public Builder setPresets(com.google.protobuf.Struct value) {
if (presetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
presets_ = value;
onChanged();
} else {
presetsBuilder_.setMessage(value);
}
return this;
}
/**
* .google.protobuf.Struct presets = 27;
*/
public Builder setPresets(
com.google.protobuf.Struct.Builder builderForValue) {
if (presetsBuilder_ == null) {
presets_ = builderForValue.build();
onChanged();
} else {
presetsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .google.protobuf.Struct presets = 27;
*/
public Builder mergePresets(com.google.protobuf.Struct value) {
if (presetsBuilder_ == null) {
if (presets_ != null) {
presets_ =
com.google.protobuf.Struct.newBuilder(presets_).mergeFrom(value).buildPartial();
} else {
presets_ = value;
}
onChanged();
} else {
presetsBuilder_.mergeFrom(value);
}
return this;
}
/**
* .google.protobuf.Struct presets = 27;
*/
public Builder clearPresets() {
if (presetsBuilder_ == null) {
presets_ = null;
onChanged();
} else {
presets_ = null;
presetsBuilder_ = null;
}
return this;
}
/**
* .google.protobuf.Struct presets = 27;
*/
public com.google.protobuf.Struct.Builder getPresetsBuilder() {
onChanged();
return getPresetsFieldBuilder().getBuilder();
}
/**
* .google.protobuf.Struct presets = 27;
*/
public com.google.protobuf.StructOrBuilder getPresetsOrBuilder() {
if (presetsBuilder_ != null) {
return presetsBuilder_.getMessageOrBuilder();
} else {
return presets_ == null ?
com.google.protobuf.Struct.getDefaultInstance() : presets_;
}
}
/**
* .google.protobuf.Struct presets = 27;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>
getPresetsFieldBuilder() {
if (presetsBuilder_ == null) {
presetsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
getPresets(),
getParentForChildren(),
isClean());
presets_ = null;
}
return presetsBuilder_;
}
private java.lang.Object notes_ = "";
/**
*
* Notes for the model
* This field should be used for in-depth notes and supports up to 64Kbs.
*
*
* string notes = 18;
* @return The notes.
*/
public java.lang.String getNotes() {
java.lang.Object ref = notes_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
notes_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Notes for the model
* This field should be used for in-depth notes and supports up to 64Kbs.
*
*
* string notes = 18;
* @return The bytes for notes.
*/
public com.google.protobuf.ByteString
getNotesBytes() {
java.lang.Object ref = notes_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
notes_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Notes for the model
* This field should be used for in-depth notes and supports up to 64Kbs.
*
*
* string notes = 18;
* @param value The notes to set.
* @return This builder for chaining.
*/
public Builder setNotes(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
notes_ = value;
onChanged();
return this;
}
/**
*
* Notes for the model
* This field should be used for in-depth notes and supports up to 64Kbs.
*
*
* string notes = 18;
* @return This builder for chaining.
*/
public Builder clearNotes() {
notes_ = getDefaultInstance().getNotes();
onChanged();
return this;
}
/**
*
* Notes for the model
* This field should be used for in-depth notes and supports up to 64Kbs.
*
*
* string notes = 18;
* @param value The bytes for notes to set.
* @return This builder for chaining.
*/
public Builder setNotesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
notes_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList toolkits_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureToolkitsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
toolkits_ = new com.google.protobuf.LazyStringArrayList(toolkits_);
bitField0_ |= 0x00000001;
}
}
/**
*
* Tags from toolkits category
*
*
* repeated string toolkits = 20 [(.clarifai.api.utils.cl_show_if_empty) = true];
* @return A list containing the toolkits.
*/
public com.google.protobuf.ProtocolStringList
getToolkitsList() {
return toolkits_.getUnmodifiableView();
}
/**
*
* Tags from toolkits category
*
*
* repeated string toolkits = 20 [(.clarifai.api.utils.cl_show_if_empty) = true];
* @return The count of toolkits.
*/
public int getToolkitsCount() {
return toolkits_.size();
}
/**
*
* Tags from toolkits category
*
*
* repeated string toolkits = 20 [(.clarifai.api.utils.cl_show_if_empty) = true];
* @param index The index of the element to return.
* @return The toolkits at the given index.
*/
public java.lang.String getToolkits(int index) {
return toolkits_.get(index);
}
/**
*
* Tags from toolkits category
*
*
* repeated string toolkits = 20 [(.clarifai.api.utils.cl_show_if_empty) = true];
* @param index The index of the value to return.
* @return The bytes of the toolkits at the given index.
*/
public com.google.protobuf.ByteString
getToolkitsBytes(int index) {
return toolkits_.getByteString(index);
}
/**
*
* Tags from toolkits category
*
*
* repeated string toolkits = 20 [(.clarifai.api.utils.cl_show_if_empty) = true];
* @param index The index to set the value at.
* @param value The toolkits to set.
* @return This builder for chaining.
*/
public Builder setToolkits(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureToolkitsIsMutable();
toolkits_.set(index, value);
onChanged();
return this;
}
/**
*
* Tags from toolkits category
*
*
* repeated string toolkits = 20 [(.clarifai.api.utils.cl_show_if_empty) = true];
* @param value The toolkits to add.
* @return This builder for chaining.
*/
public Builder addToolkits(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureToolkitsIsMutable();
toolkits_.add(value);
onChanged();
return this;
}
/**
*
* Tags from toolkits category
*
*
* repeated string toolkits = 20 [(.clarifai.api.utils.cl_show_if_empty) = true];
* @param values The toolkits to add.
* @return This builder for chaining.
*/
public Builder addAllToolkits(
java.lang.Iterable values) {
ensureToolkitsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, toolkits_);
onChanged();
return this;
}
/**
*
* Tags from toolkits category
*
*
* repeated string toolkits = 20 [(.clarifai.api.utils.cl_show_if_empty) = true];
* @return This builder for chaining.
*/
public Builder clearToolkits() {
toolkits_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Tags from toolkits category
*
*
* repeated string toolkits = 20 [(.clarifai.api.utils.cl_show_if_empty) = true];
* @param value The bytes of the toolkits to add.
* @return This builder for chaining.
*/
public Builder addToolkitsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureToolkitsIsMutable();
toolkits_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList useCases_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureUseCasesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
useCases_ = new com.google.protobuf.LazyStringArrayList(useCases_);
bitField0_ |= 0x00000002;
}
}
/**
*
* Tags from use_cases category
*
*
* repeated string use_cases = 21 [(.clarifai.api.utils.cl_show_if_empty) = true];
* @return A list containing the useCases.
*/
public com.google.protobuf.ProtocolStringList
getUseCasesList() {
return useCases_.getUnmodifiableView();
}
/**
*
* Tags from use_cases category
*
*
* repeated string use_cases = 21 [(.clarifai.api.utils.cl_show_if_empty) = true];
* @return The count of useCases.
*/
public int getUseCasesCount() {
return useCases_.size();
}
/**
*
* Tags from use_cases category
*
*
* repeated string use_cases = 21 [(.clarifai.api.utils.cl_show_if_empty) = true];
* @param index The index of the element to return.
* @return The useCases at the given index.
*/
public java.lang.String getUseCases(int index) {
return useCases_.get(index);
}
/**
*
* Tags from use_cases category
*
*
* repeated string use_cases = 21 [(.clarifai.api.utils.cl_show_if_empty) = true];
* @param index The index of the value to return.
* @return The bytes of the useCases at the given index.
*/
public com.google.protobuf.ByteString
getUseCasesBytes(int index) {
return useCases_.getByteString(index);
}
/**
*
* Tags from use_cases category
*
*
* repeated string use_cases = 21 [(.clarifai.api.utils.cl_show_if_empty) = true];
* @param index The index to set the value at.
* @param value The useCases to set.
* @return This builder for chaining.
*/
public Builder setUseCases(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureUseCasesIsMutable();
useCases_.set(index, value);
onChanged();
return this;
}
/**
*
* Tags from use_cases category
*
*
* repeated string use_cases = 21 [(.clarifai.api.utils.cl_show_if_empty) = true];
* @param value The useCases to add.
* @return This builder for chaining.
*/
public Builder addUseCases(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureUseCasesIsMutable();
useCases_.add(value);
onChanged();
return this;
}
/**
*
* Tags from use_cases category
*
*
* repeated string use_cases = 21 [(.clarifai.api.utils.cl_show_if_empty) = true];
* @param values The useCases to add.
* @return This builder for chaining.
*/
public Builder addAllUseCases(
java.lang.Iterable values) {
ensureUseCasesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, useCases_);
onChanged();
return this;
}
/**
*
* Tags from use_cases category
*
*
* repeated string use_cases = 21 [(.clarifai.api.utils.cl_show_if_empty) = true];
* @return This builder for chaining.
*/
public Builder clearUseCases() {
useCases_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Tags from use_cases category
*
*
* repeated string use_cases = 21 [(.clarifai.api.utils.cl_show_if_empty) = true];
* @param value The bytes of the useCases to add.
* @return This builder for chaining.
*/
public Builder addUseCasesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureUseCasesIsMutable();
useCases_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList languages_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureLanguagesIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
languages_ = new com.google.protobuf.LazyStringArrayList(languages_);
bitField0_ |= 0x00000004;
}
}
/**
*
* Tags from languages category.
*
*
* repeated string languages = 25 [(.clarifai.api.utils.cl_show_if_empty) = true];
* @return A list containing the languages.
*/
public com.google.protobuf.ProtocolStringList
getLanguagesList() {
return languages_.getUnmodifiableView();
}
/**
*
* Tags from languages category.
*
*
* repeated string languages = 25 [(.clarifai.api.utils.cl_show_if_empty) = true];
* @return The count of languages.
*/
public int getLanguagesCount() {
return languages_.size();
}
/**
*
* Tags from languages category.
*
*
* repeated string languages = 25 [(.clarifai.api.utils.cl_show_if_empty) = true];
* @param index The index of the element to return.
* @return The languages at the given index.
*/
public java.lang.String getLanguages(int index) {
return languages_.get(index);
}
/**
*
* Tags from languages category.
*
*
* repeated string languages = 25 [(.clarifai.api.utils.cl_show_if_empty) = true];
* @param index The index of the value to return.
* @return The bytes of the languages at the given index.
*/
public com.google.protobuf.ByteString
getLanguagesBytes(int index) {
return languages_.getByteString(index);
}
/**
*
* Tags from languages category.
*
*
* repeated string languages = 25 [(.clarifai.api.utils.cl_show_if_empty) = true];
* @param index The index to set the value at.
* @param value The languages to set.
* @return This builder for chaining.
*/
public Builder setLanguages(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureLanguagesIsMutable();
languages_.set(index, value);
onChanged();
return this;
}
/**
*
* Tags from languages category.
*
*
* repeated string languages = 25 [(.clarifai.api.utils.cl_show_if_empty) = true];
* @param value The languages to add.
* @return This builder for chaining.
*/
public Builder addLanguages(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureLanguagesIsMutable();
languages_.add(value);
onChanged();
return this;
}
/**
*
* Tags from languages category.
*
*
* repeated string languages = 25 [(.clarifai.api.utils.cl_show_if_empty) = true];
* @param values The languages to add.
* @return This builder for chaining.
*/
public Builder addAllLanguages(
java.lang.Iterable values) {
ensureLanguagesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, languages_);
onChanged();
return this;
}
/**
*
* Tags from languages category.
*
*
* repeated string languages = 25 [(.clarifai.api.utils.cl_show_if_empty) = true];
* @return This builder for chaining.
*/
public Builder clearLanguages() {
languages_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* Tags from languages category.
*
*
* repeated string languages = 25 [(.clarifai.api.utils.cl_show_if_empty) = true];
* @param value The bytes of the languages to add.
* @return This builder for chaining.
*/
public Builder addLanguagesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureLanguagesIsMutable();
languages_.add(value);
onChanged();
return this;
}
private java.util.List languagesFull_ =
java.util.Collections.emptyList();
private void ensureLanguagesFullIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
languagesFull_ = new java.util.ArrayList(languagesFull_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.clarifai.grpc.api.FullTag, com.clarifai.grpc.api.FullTag.Builder, com.clarifai.grpc.api.FullTagOrBuilder> languagesFullBuilder_;
/**
*
* Tags from languages category with names, only used in responses.
*
*
* repeated .clarifai.api.FullTag languages_full = 31 [(.clarifai.api.utils.cl_show_if_empty) = true];
*/
public java.util.List getLanguagesFullList() {
if (languagesFullBuilder_ == null) {
return java.util.Collections.unmodifiableList(languagesFull_);
} else {
return languagesFullBuilder_.getMessageList();
}
}
/**
*
* Tags from languages category with names, only used in responses.
*
*
* repeated .clarifai.api.FullTag languages_full = 31 [(.clarifai.api.utils.cl_show_if_empty) = true];
*/
public int getLanguagesFullCount() {
if (languagesFullBuilder_ == null) {
return languagesFull_.size();
} else {
return languagesFullBuilder_.getCount();
}
}
/**
*
* Tags from languages category with names, only used in responses.
*
*
* repeated .clarifai.api.FullTag languages_full = 31 [(.clarifai.api.utils.cl_show_if_empty) = true];
*/
public com.clarifai.grpc.api.FullTag getLanguagesFull(int index) {
if (languagesFullBuilder_ == null) {
return languagesFull_.get(index);
} else {
return languagesFullBuilder_.getMessage(index);
}
}
/**
*
* Tags from languages category with names, only used in responses.
*
*
* repeated .clarifai.api.FullTag languages_full = 31 [(.clarifai.api.utils.cl_show_if_empty) = true];
*/
public Builder setLanguagesFull(
int index, com.clarifai.grpc.api.FullTag value) {
if (languagesFullBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLanguagesFullIsMutable();
languagesFull_.set(index, value);
onChanged();
} else {
languagesFullBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Tags from languages category with names, only used in responses.
*
*
* repeated .clarifai.api.FullTag languages_full = 31 [(.clarifai.api.utils.cl_show_if_empty) = true];
*/
public Builder setLanguagesFull(
int index, com.clarifai.grpc.api.FullTag.Builder builderForValue) {
if (languagesFullBuilder_ == null) {
ensureLanguagesFullIsMutable();
languagesFull_.set(index, builderForValue.build());
onChanged();
} else {
languagesFullBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Tags from languages category with names, only used in responses.
*
*
* repeated .clarifai.api.FullTag languages_full = 31 [(.clarifai.api.utils.cl_show_if_empty) = true];
*/
public Builder addLanguagesFull(com.clarifai.grpc.api.FullTag value) {
if (languagesFullBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLanguagesFullIsMutable();
languagesFull_.add(value);
onChanged();
} else {
languagesFullBuilder_.addMessage(value);
}
return this;
}
/**
*
* Tags from languages category with names, only used in responses.
*
*
* repeated .clarifai.api.FullTag languages_full = 31 [(.clarifai.api.utils.cl_show_if_empty) = true];
*/
public Builder addLanguagesFull(
int index, com.clarifai.grpc.api.FullTag value) {
if (languagesFullBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLanguagesFullIsMutable();
languagesFull_.add(index, value);
onChanged();
} else {
languagesFullBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Tags from languages category with names, only used in responses.
*
*
* repeated .clarifai.api.FullTag languages_full = 31 [(.clarifai.api.utils.cl_show_if_empty) = true];
*/
public Builder addLanguagesFull(
com.clarifai.grpc.api.FullTag.Builder builderForValue) {
if (languagesFullBuilder_ == null) {
ensureLanguagesFullIsMutable();
languagesFull_.add(builderForValue.build());
onChanged();
} else {
languagesFullBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Tags from languages category with names, only used in responses.
*
*
* repeated .clarifai.api.FullTag languages_full = 31 [(.clarifai.api.utils.cl_show_if_empty) = true];
*/
public Builder addLanguagesFull(
int index, com.clarifai.grpc.api.FullTag.Builder builderForValue) {
if (languagesFullBuilder_ == null) {
ensureLanguagesFullIsMutable();
languagesFull_.add(index, builderForValue.build());
onChanged();
} else {
languagesFullBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Tags from languages category with names, only used in responses.
*
*
* repeated .clarifai.api.FullTag languages_full = 31 [(.clarifai.api.utils.cl_show_if_empty) = true];
*/
public Builder addAllLanguagesFull(
java.lang.Iterable extends com.clarifai.grpc.api.FullTag> values) {
if (languagesFullBuilder_ == null) {
ensureLanguagesFullIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, languagesFull_);
onChanged();
} else {
languagesFullBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Tags from languages category with names, only used in responses.
*
*
* repeated .clarifai.api.FullTag languages_full = 31 [(.clarifai.api.utils.cl_show_if_empty) = true];
*/
public Builder clearLanguagesFull() {
if (languagesFullBuilder_ == null) {
languagesFull_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
languagesFullBuilder_.clear();
}
return this;
}
/**
*
* Tags from languages category with names, only used in responses.
*
*
* repeated .clarifai.api.FullTag languages_full = 31 [(.clarifai.api.utils.cl_show_if_empty) = true];
*/
public Builder removeLanguagesFull(int index) {
if (languagesFullBuilder_ == null) {
ensureLanguagesFullIsMutable();
languagesFull_.remove(index);
onChanged();
} else {
languagesFullBuilder_.remove(index);
}
return this;
}
/**
*
* Tags from languages category with names, only used in responses.
*
*
* repeated .clarifai.api.FullTag languages_full = 31 [(.clarifai.api.utils.cl_show_if_empty) = true];
*/
public com.clarifai.grpc.api.FullTag.Builder getLanguagesFullBuilder(
int index) {
return getLanguagesFullFieldBuilder().getBuilder(index);
}
/**
*
* Tags from languages category with names, only used in responses.
*
*
* repeated .clarifai.api.FullTag languages_full = 31 [(.clarifai.api.utils.cl_show_if_empty) = true];
*/
public com.clarifai.grpc.api.FullTagOrBuilder getLanguagesFullOrBuilder(
int index) {
if (languagesFullBuilder_ == null) {
return languagesFull_.get(index); } else {
return languagesFullBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Tags from languages category with names, only used in responses.
*
*
* repeated .clarifai.api.FullTag languages_full = 31 [(.clarifai.api.utils.cl_show_if_empty) = true];
*/
public java.util.List extends com.clarifai.grpc.api.FullTagOrBuilder>
getLanguagesFullOrBuilderList() {
if (languagesFullBuilder_ != null) {
return languagesFullBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(languagesFull_);
}
}
/**
*
* Tags from languages category with names, only used in responses.
*
*
* repeated .clarifai.api.FullTag languages_full = 31 [(.clarifai.api.utils.cl_show_if_empty) = true];
*/
public com.clarifai.grpc.api.FullTag.Builder addLanguagesFullBuilder() {
return getLanguagesFullFieldBuilder().addBuilder(
com.clarifai.grpc.api.FullTag.getDefaultInstance());
}
/**
*
* Tags from languages category with names, only used in responses.
*
*
* repeated .clarifai.api.FullTag languages_full = 31 [(.clarifai.api.utils.cl_show_if_empty) = true];
*/
public com.clarifai.grpc.api.FullTag.Builder addLanguagesFullBuilder(
int index) {
return getLanguagesFullFieldBuilder().addBuilder(
index, com.clarifai.grpc.api.FullTag.getDefaultInstance());
}
/**
*
* Tags from languages category with names, only used in responses.
*
*
* repeated .clarifai.api.FullTag languages_full = 31 [(.clarifai.api.utils.cl_show_if_empty) = true];
*/
public java.util.List
getLanguagesFullBuilderList() {
return getLanguagesFullFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.clarifai.grpc.api.FullTag, com.clarifai.grpc.api.FullTag.Builder, com.clarifai.grpc.api.FullTagOrBuilder>
getLanguagesFullFieldBuilder() {
if (languagesFullBuilder_ == null) {
languagesFullBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.clarifai.grpc.api.FullTag, com.clarifai.grpc.api.FullTag.Builder, com.clarifai.grpc.api.FullTagOrBuilder>(
languagesFull_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
languagesFull_ = null;
}
return languagesFullBuilder_;
}
private com.google.protobuf.LazyStringList checkConsents_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureCheckConsentsIsMutable() {
if (!((bitField0_ & 0x00000010) != 0)) {
checkConsents_ = new com.google.protobuf.LazyStringArrayList(checkConsents_);
bitField0_ |= 0x00000010;
}
}
/**
* repeated string check_consents = 32 [(.clarifai.api.utils.cl_show_if_empty) = true];
* @return A list containing the checkConsents.
*/
public com.google.protobuf.ProtocolStringList
getCheckConsentsList() {
return checkConsents_.getUnmodifiableView();
}
/**
* repeated string check_consents = 32 [(.clarifai.api.utils.cl_show_if_empty) = true];
* @return The count of checkConsents.
*/
public int getCheckConsentsCount() {
return checkConsents_.size();
}
/**
* repeated string check_consents = 32 [(.clarifai.api.utils.cl_show_if_empty) = true];
* @param index The index of the element to return.
* @return The checkConsents at the given index.
*/
public java.lang.String getCheckConsents(int index) {
return checkConsents_.get(index);
}
/**
* repeated string check_consents = 32 [(.clarifai.api.utils.cl_show_if_empty) = true];
* @param index The index of the value to return.
* @return The bytes of the checkConsents at the given index.
*/
public com.google.protobuf.ByteString
getCheckConsentsBytes(int index) {
return checkConsents_.getByteString(index);
}
/**
* repeated string check_consents = 32 [(.clarifai.api.utils.cl_show_if_empty) = true];
* @param index The index to set the value at.
* @param value The checkConsents to set.
* @return This builder for chaining.
*/
public Builder setCheckConsents(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureCheckConsentsIsMutable();
checkConsents_.set(index, value);
onChanged();
return this;
}
/**
* repeated string check_consents = 32 [(.clarifai.api.utils.cl_show_if_empty) = true];
* @param value The checkConsents to add.
* @return This builder for chaining.
*/
public Builder addCheckConsents(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureCheckConsentsIsMutable();
checkConsents_.add(value);
onChanged();
return this;
}
/**
* repeated string check_consents = 32 [(.clarifai.api.utils.cl_show_if_empty) = true];
* @param values The checkConsents to add.
* @return This builder for chaining.
*/
public Builder addAllCheckConsents(
java.lang.Iterable values) {
ensureCheckConsentsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, checkConsents_);
onChanged();
return this;
}
/**
* repeated string check_consents = 32 [(.clarifai.api.utils.cl_show_if_empty) = true];
* @return This builder for chaining.
*/
public Builder clearCheckConsents() {
checkConsents_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
* repeated string check_consents = 32 [(.clarifai.api.utils.cl_show_if_empty) = true];
* @param value The bytes of the checkConsents to add.
* @return This builder for chaining.
*/
public Builder addCheckConsentsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureCheckConsentsIsMutable();
checkConsents_.add(value);
onChanged();
return this;
}
private boolean isStarred_ ;
/**
*
* Is starred by the requesting user (only showed on get/list requests)
* Please use PostModelStars/DeleteModelStars endpoints to star/unstar a model
*
*
* bool is_starred = 22;
* @return The isStarred.
*/
@java.lang.Override
public boolean getIsStarred() {
return isStarred_;
}
/**
*
* Is starred by the requesting user (only showed on get/list requests)
* Please use PostModelStars/DeleteModelStars endpoints to star/unstar a model
*
*
* bool is_starred = 22;
* @param value The isStarred to set.
* @return This builder for chaining.
*/
public Builder setIsStarred(boolean value) {
isStarred_ = value;
onChanged();
return this;
}
/**
*
* Is starred by the requesting user (only showed on get/list requests)
* Please use PostModelStars/DeleteModelStars endpoints to star/unstar a model
*
*
* bool is_starred = 22;
* @return This builder for chaining.
*/
public Builder clearIsStarred() {
isStarred_ = false;
onChanged();
return this;
}
private int starCount_ ;
/**
*
* How many users have starred the model (only showed on get/list requests)
* Computed value, not editable
*
*
* int32 star_count = 23;
* @return The starCount.
*/
@java.lang.Override
public int getStarCount() {
return starCount_;
}
/**
*
* How many users have starred the model (only showed on get/list requests)
* Computed value, not editable
*
*
* int32 star_count = 23;
* @param value The starCount to set.
* @return This builder for chaining.
*/
public Builder setStarCount(int value) {
starCount_ = value;
onChanged();
return this;
}
/**
*
* How many users have starred the model (only showed on get/list requests)
* Computed value, not editable
*
*
* int32 star_count = 23;
* @return This builder for chaining.
*/
public Builder clearStarCount() {
starCount_ = 0;
onChanged();
return this;
}
private com.google.protobuf.BoolValue workflowRecommended_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> workflowRecommendedBuilder_;
/**
*
* Whether it's recommended that this model is used within a workflow
*
*
* .google.protobuf.BoolValue workflow_recommended = 29;
* @return Whether the workflowRecommended field is set.
*/
public boolean hasWorkflowRecommended() {
return workflowRecommendedBuilder_ != null || workflowRecommended_ != null;
}
/**
*
* Whether it's recommended that this model is used within a workflow
*
*
* .google.protobuf.BoolValue workflow_recommended = 29;
* @return The workflowRecommended.
*/
public com.google.protobuf.BoolValue getWorkflowRecommended() {
if (workflowRecommendedBuilder_ == null) {
return workflowRecommended_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : workflowRecommended_;
} else {
return workflowRecommendedBuilder_.getMessage();
}
}
/**
*
* Whether it's recommended that this model is used within a workflow
*
*
* .google.protobuf.BoolValue workflow_recommended = 29;
*/
public Builder setWorkflowRecommended(com.google.protobuf.BoolValue value) {
if (workflowRecommendedBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
workflowRecommended_ = value;
onChanged();
} else {
workflowRecommendedBuilder_.setMessage(value);
}
return this;
}
/**
*
* Whether it's recommended that this model is used within a workflow
*
*
* .google.protobuf.BoolValue workflow_recommended = 29;
*/
public Builder setWorkflowRecommended(
com.google.protobuf.BoolValue.Builder builderForValue) {
if (workflowRecommendedBuilder_ == null) {
workflowRecommended_ = builderForValue.build();
onChanged();
} else {
workflowRecommendedBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Whether it's recommended that this model is used within a workflow
*
*
* .google.protobuf.BoolValue workflow_recommended = 29;
*/
public Builder mergeWorkflowRecommended(com.google.protobuf.BoolValue value) {
if (workflowRecommendedBuilder_ == null) {
if (workflowRecommended_ != null) {
workflowRecommended_ =
com.google.protobuf.BoolValue.newBuilder(workflowRecommended_).mergeFrom(value).buildPartial();
} else {
workflowRecommended_ = value;
}
onChanged();
} else {
workflowRecommendedBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Whether it's recommended that this model is used within a workflow
*
*
* .google.protobuf.BoolValue workflow_recommended = 29;
*/
public Builder clearWorkflowRecommended() {
if (workflowRecommendedBuilder_ == null) {
workflowRecommended_ = null;
onChanged();
} else {
workflowRecommended_ = null;
workflowRecommendedBuilder_ = null;
}
return this;
}
/**
*
* Whether it's recommended that this model is used within a workflow
*
*
* .google.protobuf.BoolValue workflow_recommended = 29;
*/
public com.google.protobuf.BoolValue.Builder getWorkflowRecommendedBuilder() {
onChanged();
return getWorkflowRecommendedFieldBuilder().getBuilder();
}
/**
*
* Whether it's recommended that this model is used within a workflow
*
*
* .google.protobuf.BoolValue workflow_recommended = 29;
*/
public com.google.protobuf.BoolValueOrBuilder getWorkflowRecommendedOrBuilder() {
if (workflowRecommendedBuilder_ != null) {
return workflowRecommendedBuilder_.getMessageOrBuilder();
} else {
return workflowRecommended_ == null ?
com.google.protobuf.BoolValue.getDefaultInstance() : workflowRecommended_;
}
}
/**
*
* Whether it's recommended that this model is used within a workflow
*
*
* .google.protobuf.BoolValue workflow_recommended = 29;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>
getWorkflowRecommendedFieldBuilder() {
if (workflowRecommendedBuilder_ == null) {
workflowRecommendedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
getWorkflowRecommended(),
getParentForChildren(),
isClean());
workflowRecommended_ = null;
}
return workflowRecommendedBuilder_;
}
private com.clarifai.grpc.api.BookmarkOrigin bookmarkOrigin_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.BookmarkOrigin, com.clarifai.grpc.api.BookmarkOrigin.Builder, com.clarifai.grpc.api.BookmarkOriginOrBuilder> bookmarkOriginBuilder_;
/**
*
* bookmark info. When set, this model is a bookmarked model of this app.
* Info in this field will allow you to find/access original model.
*
*
* .clarifai.api.BookmarkOrigin bookmark_origin = 33;
* @return Whether the bookmarkOrigin field is set.
*/
public boolean hasBookmarkOrigin() {
return bookmarkOriginBuilder_ != null || bookmarkOrigin_ != null;
}
/**
*
* bookmark info. When set, this model is a bookmarked model of this app.
* Info in this field will allow you to find/access original model.
*
*
* .clarifai.api.BookmarkOrigin bookmark_origin = 33;
* @return The bookmarkOrigin.
*/
public com.clarifai.grpc.api.BookmarkOrigin getBookmarkOrigin() {
if (bookmarkOriginBuilder_ == null) {
return bookmarkOrigin_ == null ? com.clarifai.grpc.api.BookmarkOrigin.getDefaultInstance() : bookmarkOrigin_;
} else {
return bookmarkOriginBuilder_.getMessage();
}
}
/**
*
* bookmark info. When set, this model is a bookmarked model of this app.
* Info in this field will allow you to find/access original model.
*
*
* .clarifai.api.BookmarkOrigin bookmark_origin = 33;
*/
public Builder setBookmarkOrigin(com.clarifai.grpc.api.BookmarkOrigin value) {
if (bookmarkOriginBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
bookmarkOrigin_ = value;
onChanged();
} else {
bookmarkOriginBuilder_.setMessage(value);
}
return this;
}
/**
*
* bookmark info. When set, this model is a bookmarked model of this app.
* Info in this field will allow you to find/access original model.
*
*
* .clarifai.api.BookmarkOrigin bookmark_origin = 33;
*/
public Builder setBookmarkOrigin(
com.clarifai.grpc.api.BookmarkOrigin.Builder builderForValue) {
if (bookmarkOriginBuilder_ == null) {
bookmarkOrigin_ = builderForValue.build();
onChanged();
} else {
bookmarkOriginBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* bookmark info. When set, this model is a bookmarked model of this app.
* Info in this field will allow you to find/access original model.
*
*
* .clarifai.api.BookmarkOrigin bookmark_origin = 33;
*/
public Builder mergeBookmarkOrigin(com.clarifai.grpc.api.BookmarkOrigin value) {
if (bookmarkOriginBuilder_ == null) {
if (bookmarkOrigin_ != null) {
bookmarkOrigin_ =
com.clarifai.grpc.api.BookmarkOrigin.newBuilder(bookmarkOrigin_).mergeFrom(value).buildPartial();
} else {
bookmarkOrigin_ = value;
}
onChanged();
} else {
bookmarkOriginBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* bookmark info. When set, this model is a bookmarked model of this app.
* Info in this field will allow you to find/access original model.
*
*
* .clarifai.api.BookmarkOrigin bookmark_origin = 33;
*/
public Builder clearBookmarkOrigin() {
if (bookmarkOriginBuilder_ == null) {
bookmarkOrigin_ = null;
onChanged();
} else {
bookmarkOrigin_ = null;
bookmarkOriginBuilder_ = null;
}
return this;
}
/**
*
* bookmark info. When set, this model is a bookmarked model of this app.
* Info in this field will allow you to find/access original model.
*
*
* .clarifai.api.BookmarkOrigin bookmark_origin = 33;
*/
public com.clarifai.grpc.api.BookmarkOrigin.Builder getBookmarkOriginBuilder() {
onChanged();
return getBookmarkOriginFieldBuilder().getBuilder();
}
/**
*
* bookmark info. When set, this model is a bookmarked model of this app.
* Info in this field will allow you to find/access original model.
*
*
* .clarifai.api.BookmarkOrigin bookmark_origin = 33;
*/
public com.clarifai.grpc.api.BookmarkOriginOrBuilder getBookmarkOriginOrBuilder() {
if (bookmarkOriginBuilder_ != null) {
return bookmarkOriginBuilder_.getMessageOrBuilder();
} else {
return bookmarkOrigin_ == null ?
com.clarifai.grpc.api.BookmarkOrigin.getDefaultInstance() : bookmarkOrigin_;
}
}
/**
*
* bookmark info. When set, this model is a bookmarked model of this app.
* Info in this field will allow you to find/access original model.
*
*
* .clarifai.api.BookmarkOrigin bookmark_origin = 33;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.BookmarkOrigin, com.clarifai.grpc.api.BookmarkOrigin.Builder, com.clarifai.grpc.api.BookmarkOriginOrBuilder>
getBookmarkOriginFieldBuilder() {
if (bookmarkOriginBuilder_ == null) {
bookmarkOriginBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.BookmarkOrigin, com.clarifai.grpc.api.BookmarkOrigin.Builder, com.clarifai.grpc.api.BookmarkOriginOrBuilder>(
getBookmarkOrigin(),
getParentForChildren(),
isClean());
bookmarkOrigin_ = null;
}
return bookmarkOriginBuilder_;
}
private com.clarifai.grpc.api.Image image_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.Image, com.clarifai.grpc.api.Image.Builder, com.clarifai.grpc.api.ImageOrBuilder> imageBuilder_;
/**
*
* Representative image for this model
*
*
* .clarifai.api.Image image = 34;
* @return Whether the image field is set.
*/
public boolean hasImage() {
return imageBuilder_ != null || image_ != null;
}
/**
*
* Representative image for this model
*
*
* .clarifai.api.Image image = 34;
* @return The image.
*/
public com.clarifai.grpc.api.Image getImage() {
if (imageBuilder_ == null) {
return image_ == null ? com.clarifai.grpc.api.Image.getDefaultInstance() : image_;
} else {
return imageBuilder_.getMessage();
}
}
/**
*
* Representative image for this model
*
*
* .clarifai.api.Image image = 34;
*/
public Builder setImage(com.clarifai.grpc.api.Image value) {
if (imageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
image_ = value;
onChanged();
} else {
imageBuilder_.setMessage(value);
}
return this;
}
/**
*
* Representative image for this model
*
*
* .clarifai.api.Image image = 34;
*/
public Builder setImage(
com.clarifai.grpc.api.Image.Builder builderForValue) {
if (imageBuilder_ == null) {
image_ = builderForValue.build();
onChanged();
} else {
imageBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Representative image for this model
*
*
* .clarifai.api.Image image = 34;
*/
public Builder mergeImage(com.clarifai.grpc.api.Image value) {
if (imageBuilder_ == null) {
if (image_ != null) {
image_ =
com.clarifai.grpc.api.Image.newBuilder(image_).mergeFrom(value).buildPartial();
} else {
image_ = value;
}
onChanged();
} else {
imageBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Representative image for this model
*
*
* .clarifai.api.Image image = 34;
*/
public Builder clearImage() {
if (imageBuilder_ == null) {
image_ = null;
onChanged();
} else {
image_ = null;
imageBuilder_ = null;
}
return this;
}
/**
*
* Representative image for this model
*
*
* .clarifai.api.Image image = 34;
*/
public com.clarifai.grpc.api.Image.Builder getImageBuilder() {
onChanged();
return getImageFieldBuilder().getBuilder();
}
/**
*
* Representative image for this model
*
*
* .clarifai.api.Image image = 34;
*/
public com.clarifai.grpc.api.ImageOrBuilder getImageOrBuilder() {
if (imageBuilder_ != null) {
return imageBuilder_.getMessageOrBuilder();
} else {
return image_ == null ?
com.clarifai.grpc.api.Image.getDefaultInstance() : image_;
}
}
/**
*
* Representative image for this model
*
*
* .clarifai.api.Image image = 34;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.Image, com.clarifai.grpc.api.Image.Builder, com.clarifai.grpc.api.ImageOrBuilder>
getImageFieldBuilder() {
if (imageBuilder_ == null) {
imageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.Image, com.clarifai.grpc.api.Image.Builder, com.clarifai.grpc.api.ImageOrBuilder>(
getImage(),
getParentForChildren(),
isClean());
image_ = null;
}
return imageBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:clarifai.api.Model)
}
// @@protoc_insertion_point(class_scope:clarifai.api.Model)
private static final com.clarifai.grpc.api.Model DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.clarifai.grpc.api.Model();
}
public static com.clarifai.grpc.api.Model getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Model parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Model(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.clarifai.grpc.api.Model getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}