implements
// @@protoc_insertion_point(builder_implements:clarifai.api.Dataset)
com.clarifai.grpc.api.DatasetOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Dataset_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Dataset_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.clarifai.grpc.api.Dataset.class, com.clarifai.grpc.api.Dataset.Builder.class);
}
// Construct using com.clarifai.grpc.api.Dataset.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
id_ = "";
if (createdAtBuilder_ == null) {
createdAt_ = null;
} else {
createdAt_ = null;
createdAtBuilder_ = null;
}
if (modifiedAtBuilder_ == null) {
modifiedAt_ = null;
} else {
modifiedAt_ = null;
modifiedAtBuilder_ = null;
}
appId_ = "";
userId_ = "";
description_ = "";
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadata_ = null;
metadataBuilder_ = null;
}
if (visibilityBuilder_ == null) {
visibility_ = null;
} else {
visibility_ = null;
visibilityBuilder_ = null;
}
if (defaultAnnotationFilterBuilder_ == null) {
defaultAnnotationFilter_ = null;
} else {
defaultAnnotationFilter_ = null;
defaultAnnotationFilterBuilder_ = null;
}
if (defaultProcessingInfoBuilder_ == null) {
defaultProcessingInfo_ = null;
} else {
defaultProcessingInfo_ = null;
defaultProcessingInfoBuilder_ = null;
}
notes_ = "";
if (versionBuilder_ == null) {
version_ = null;
} else {
version_ = null;
versionBuilder_ = null;
}
isStarred_ = false;
starCount_ = 0;
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_Dataset_descriptor;
}
@java.lang.Override
public com.clarifai.grpc.api.Dataset getDefaultInstanceForType() {
return com.clarifai.grpc.api.Dataset.getDefaultInstance();
}
@java.lang.Override
public com.clarifai.grpc.api.Dataset build() {
com.clarifai.grpc.api.Dataset result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.clarifai.grpc.api.Dataset buildPartial() {
com.clarifai.grpc.api.Dataset result = new com.clarifai.grpc.api.Dataset(this);
result.id_ = id_;
if (createdAtBuilder_ == null) {
result.createdAt_ = createdAt_;
} else {
result.createdAt_ = createdAtBuilder_.build();
}
if (modifiedAtBuilder_ == null) {
result.modifiedAt_ = modifiedAt_;
} else {
result.modifiedAt_ = modifiedAtBuilder_.build();
}
result.appId_ = appId_;
result.userId_ = userId_;
result.description_ = description_;
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.build();
}
if (visibilityBuilder_ == null) {
result.visibility_ = visibility_;
} else {
result.visibility_ = visibilityBuilder_.build();
}
if (defaultAnnotationFilterBuilder_ == null) {
result.defaultAnnotationFilter_ = defaultAnnotationFilter_;
} else {
result.defaultAnnotationFilter_ = defaultAnnotationFilterBuilder_.build();
}
if (defaultProcessingInfoBuilder_ == null) {
result.defaultProcessingInfo_ = defaultProcessingInfo_;
} else {
result.defaultProcessingInfo_ = defaultProcessingInfoBuilder_.build();
}
result.notes_ = notes_;
if (versionBuilder_ == null) {
result.version_ = version_;
} else {
result.version_ = versionBuilder_.build();
}
result.isStarred_ = isStarred_;
result.starCount_ = starCount_;
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.Dataset) {
return mergeFrom((com.clarifai.grpc.api.Dataset)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.clarifai.grpc.api.Dataset other) {
if (other == com.clarifai.grpc.api.Dataset.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (other.hasCreatedAt()) {
mergeCreatedAt(other.getCreatedAt());
}
if (other.hasModifiedAt()) {
mergeModifiedAt(other.getModifiedAt());
}
if (!other.getAppId().isEmpty()) {
appId_ = other.appId_;
onChanged();
}
if (!other.getUserId().isEmpty()) {
userId_ = other.userId_;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
if (other.hasVisibility()) {
mergeVisibility(other.getVisibility());
}
if (other.hasDefaultAnnotationFilter()) {
mergeDefaultAnnotationFilter(other.getDefaultAnnotationFilter());
}
if (other.hasDefaultProcessingInfo()) {
mergeDefaultProcessingInfo(other.getDefaultProcessingInfo());
}
if (!other.getNotes().isEmpty()) {
notes_ = other.notes_;
onChanged();
}
if (other.hasVersion()) {
mergeVersion(other.getVersion());
}
if (other.getIsStarred() != false) {
setIsStarred(other.getIsStarred());
}
if (other.getStarCount() != 0) {
setStarCount(other.getStarCount());
}
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.Dataset parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.clarifai.grpc.api.Dataset) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object id_ = "";
/**
*
* The ID for the dataset
*
*
* string id = 1;
* @return The id.
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The ID for the dataset
*
*
* string id = 1;
* @return The bytes for id.
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The ID for the dataset
*
*
* string id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
*
* The ID for the dataset
*
*
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
* The ID for the dataset
*
*
* string id = 1;
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
id_ = value;
onChanged();
return this;
}
private com.google.protobuf.Timestamp createdAt_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_;
/**
*
* When the dataset was created.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp created_at = 2;
* @return Whether the createdAt field is set.
*/
public boolean hasCreatedAt() {
return createdAtBuilder_ != null || createdAt_ != null;
}
/**
*
* When the dataset was created.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp created_at = 2;
* @return The createdAt.
*/
public com.google.protobuf.Timestamp getCreatedAt() {
if (createdAtBuilder_ == null) {
return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
} else {
return createdAtBuilder_.getMessage();
}
}
/**
*
* When the dataset was created.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp created_at = 2;
*/
public Builder setCreatedAt(com.google.protobuf.Timestamp value) {
if (createdAtBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
createdAt_ = value;
onChanged();
} else {
createdAtBuilder_.setMessage(value);
}
return this;
}
/**
*
* When the dataset was created.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp created_at = 2;
*/
public Builder setCreatedAt(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (createdAtBuilder_ == null) {
createdAt_ = builderForValue.build();
onChanged();
} else {
createdAtBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* When the dataset was created.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp created_at = 2;
*/
public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) {
if (createdAtBuilder_ == null) {
if (createdAt_ != null) {
createdAt_ =
com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial();
} else {
createdAt_ = value;
}
onChanged();
} else {
createdAtBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* When the dataset was created.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp created_at = 2;
*/
public Builder clearCreatedAt() {
if (createdAtBuilder_ == null) {
createdAt_ = null;
onChanged();
} else {
createdAt_ = null;
createdAtBuilder_ = null;
}
return this;
}
/**
*
* When the dataset was created.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp created_at = 2;
*/
public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() {
onChanged();
return getCreatedAtFieldBuilder().getBuilder();
}
/**
*
* When the dataset was created.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp created_at = 2;
*/
public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
if (createdAtBuilder_ != null) {
return createdAtBuilder_.getMessageOrBuilder();
} else {
return createdAt_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
}
}
/**
*
* When the dataset was created.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp created_at = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getCreatedAtFieldBuilder() {
if (createdAtBuilder_ == null) {
createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getCreatedAt(),
getParentForChildren(),
isClean());
createdAt_ = null;
}
return createdAtBuilder_;
}
private com.google.protobuf.Timestamp modifiedAt_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> modifiedAtBuilder_;
/**
*
* When the dataset was modified.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp modified_at = 3;
* @return Whether the modifiedAt field is set.
*/
public boolean hasModifiedAt() {
return modifiedAtBuilder_ != null || modifiedAt_ != null;
}
/**
*
* When the dataset was modified.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp modified_at = 3;
* @return The modifiedAt.
*/
public com.google.protobuf.Timestamp getModifiedAt() {
if (modifiedAtBuilder_ == null) {
return modifiedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modifiedAt_;
} else {
return modifiedAtBuilder_.getMessage();
}
}
/**
*
* When the dataset was modified.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp modified_at = 3;
*/
public Builder setModifiedAt(com.google.protobuf.Timestamp value) {
if (modifiedAtBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
modifiedAt_ = value;
onChanged();
} else {
modifiedAtBuilder_.setMessage(value);
}
return this;
}
/**
*
* When the dataset was modified.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp modified_at = 3;
*/
public Builder setModifiedAt(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (modifiedAtBuilder_ == null) {
modifiedAt_ = builderForValue.build();
onChanged();
} else {
modifiedAtBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* When the dataset was modified.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp modified_at = 3;
*/
public Builder mergeModifiedAt(com.google.protobuf.Timestamp value) {
if (modifiedAtBuilder_ == null) {
if (modifiedAt_ != null) {
modifiedAt_ =
com.google.protobuf.Timestamp.newBuilder(modifiedAt_).mergeFrom(value).buildPartial();
} else {
modifiedAt_ = value;
}
onChanged();
} else {
modifiedAtBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* When the dataset was modified.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp modified_at = 3;
*/
public Builder clearModifiedAt() {
if (modifiedAtBuilder_ == null) {
modifiedAt_ = null;
onChanged();
} else {
modifiedAt_ = null;
modifiedAtBuilder_ = null;
}
return this;
}
/**
*
* When the dataset was modified.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp modified_at = 3;
*/
public com.google.protobuf.Timestamp.Builder getModifiedAtBuilder() {
onChanged();
return getModifiedAtFieldBuilder().getBuilder();
}
/**
*
* When the dataset was modified.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp modified_at = 3;
*/
public com.google.protobuf.TimestampOrBuilder getModifiedAtOrBuilder() {
if (modifiedAtBuilder_ != null) {
return modifiedAtBuilder_.getMessageOrBuilder();
} else {
return modifiedAt_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : modifiedAt_;
}
}
/**
*
* When the dataset was modified.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp modified_at = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getModifiedAtFieldBuilder() {
if (modifiedAtBuilder_ == null) {
modifiedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getModifiedAt(),
getParentForChildren(),
isClean());
modifiedAt_ = null;
}
return modifiedAtBuilder_;
}
private java.lang.Object appId_ = "";
/**
*
* The app the dataset belongs to.
*
*
* string app_id = 4;
* @return The appId.
*/
public java.lang.String getAppId() {
java.lang.Object ref = appId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
appId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The app the dataset belongs to.
*
*
* string app_id = 4;
* @return The bytes for appId.
*/
public com.google.protobuf.ByteString
getAppIdBytes() {
java.lang.Object ref = appId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
appId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The app the dataset belongs to.
*
*
* string app_id = 4;
* @param value The appId to set.
* @return This builder for chaining.
*/
public Builder setAppId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
appId_ = value;
onChanged();
return this;
}
/**
*
* The app the dataset belongs to.
*
*
* string app_id = 4;
* @return This builder for chaining.
*/
public Builder clearAppId() {
appId_ = getDefaultInstance().getAppId();
onChanged();
return this;
}
/**
*
* The app the dataset belongs to.
*
*
* string app_id = 4;
* @param value The bytes for appId to set.
* @return This builder for chaining.
*/
public Builder setAppIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
appId_ = value;
onChanged();
return this;
}
private java.lang.Object userId_ = "";
/**
*
* The user the dataset belongs to.
*
*
* string user_id = 5;
* @return The userId.
*/
public java.lang.String getUserId() {
java.lang.Object ref = userId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
userId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The user the dataset belongs to.
*
*
* string user_id = 5;
* @return The bytes for userId.
*/
public com.google.protobuf.ByteString
getUserIdBytes() {
java.lang.Object ref = userId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The user the dataset belongs to.
*
*
* string user_id = 5;
* @param value The userId to set.
* @return This builder for chaining.
*/
public Builder setUserId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
userId_ = value;
onChanged();
return this;
}
/**
*
* The user the dataset belongs to.
*
*
* string user_id = 5;
* @return This builder for chaining.
*/
public Builder clearUserId() {
userId_ = getDefaultInstance().getUserId();
onChanged();
return this;
}
/**
*
* The user the dataset belongs to.
*
*
* string user_id = 5;
* @param value The bytes for userId to set.
* @return This builder for chaining.
*/
public Builder setUserIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
userId_ = value;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
* Description of the dataset
*
*
* string description = 7;
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Description of the dataset
*
*
* string description = 7;
* @return The bytes for description.
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Description of the dataset
*
*
* string description = 7;
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
onChanged();
return this;
}
/**
*
* Description of the dataset
*
*
* string description = 7;
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* Description of the dataset
*
*
* string description = 7;
* @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 = 8;
* @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 = 8;
* @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 = 8;
*/
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 = 8;
*/
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 = 8;
*/
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 = 8;
*/
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 = 8;
*/
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 = 8;
*/
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 = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
getMetadata(),
getParentForChildren(),
isClean());
metadata_ = null;
}
return metadataBuilder_;
}
private com.clarifai.grpc.api.Visibility visibility_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.Visibility, com.clarifai.grpc.api.Visibility.Builder, com.clarifai.grpc.api.VisibilityOrBuilder> visibilityBuilder_;
/**
*
* The visibility field represents whether this message is privately/publicly visible.
* To be visible to the public the App that contains it AND the User that contains the App must
* also be publicly visible.
*
*
* .clarifai.api.Visibility visibility = 9;
* @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 = 9;
* @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 = 9;
*/
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 = 9;
*/
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 = 9;
*/
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 = 9;
*/
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 = 9;
*/
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 = 9;
*/
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 = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.Visibility, com.clarifai.grpc.api.Visibility.Builder, com.clarifai.grpc.api.VisibilityOrBuilder>
getVisibilityFieldBuilder() {
if (visibilityBuilder_ == null) {
visibilityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.Visibility, com.clarifai.grpc.api.Visibility.Builder, com.clarifai.grpc.api.VisibilityOrBuilder>(
getVisibility(),
getParentForChildren(),
isClean());
visibility_ = null;
}
return visibilityBuilder_;
}
private com.clarifai.grpc.api.AnnotationFilter defaultAnnotationFilter_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.AnnotationFilter, com.clarifai.grpc.api.AnnotationFilter.Builder, com.clarifai.grpc.api.AnnotationFilterOrBuilder> defaultAnnotationFilterBuilder_;
/**
*
* Default annotation filter used for this dataset.
*
*
* .clarifai.api.AnnotationFilter default_annotation_filter = 12;
* @return Whether the defaultAnnotationFilter field is set.
*/
public boolean hasDefaultAnnotationFilter() {
return defaultAnnotationFilterBuilder_ != null || defaultAnnotationFilter_ != null;
}
/**
*
* Default annotation filter used for this dataset.
*
*
* .clarifai.api.AnnotationFilter default_annotation_filter = 12;
* @return The defaultAnnotationFilter.
*/
public com.clarifai.grpc.api.AnnotationFilter getDefaultAnnotationFilter() {
if (defaultAnnotationFilterBuilder_ == null) {
return defaultAnnotationFilter_ == null ? com.clarifai.grpc.api.AnnotationFilter.getDefaultInstance() : defaultAnnotationFilter_;
} else {
return defaultAnnotationFilterBuilder_.getMessage();
}
}
/**
*
* Default annotation filter used for this dataset.
*
*
* .clarifai.api.AnnotationFilter default_annotation_filter = 12;
*/
public Builder setDefaultAnnotationFilter(com.clarifai.grpc.api.AnnotationFilter value) {
if (defaultAnnotationFilterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
defaultAnnotationFilter_ = value;
onChanged();
} else {
defaultAnnotationFilterBuilder_.setMessage(value);
}
return this;
}
/**
*
* Default annotation filter used for this dataset.
*
*
* .clarifai.api.AnnotationFilter default_annotation_filter = 12;
*/
public Builder setDefaultAnnotationFilter(
com.clarifai.grpc.api.AnnotationFilter.Builder builderForValue) {
if (defaultAnnotationFilterBuilder_ == null) {
defaultAnnotationFilter_ = builderForValue.build();
onChanged();
} else {
defaultAnnotationFilterBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Default annotation filter used for this dataset.
*
*
* .clarifai.api.AnnotationFilter default_annotation_filter = 12;
*/
public Builder mergeDefaultAnnotationFilter(com.clarifai.grpc.api.AnnotationFilter value) {
if (defaultAnnotationFilterBuilder_ == null) {
if (defaultAnnotationFilter_ != null) {
defaultAnnotationFilter_ =
com.clarifai.grpc.api.AnnotationFilter.newBuilder(defaultAnnotationFilter_).mergeFrom(value).buildPartial();
} else {
defaultAnnotationFilter_ = value;
}
onChanged();
} else {
defaultAnnotationFilterBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Default annotation filter used for this dataset.
*
*
* .clarifai.api.AnnotationFilter default_annotation_filter = 12;
*/
public Builder clearDefaultAnnotationFilter() {
if (defaultAnnotationFilterBuilder_ == null) {
defaultAnnotationFilter_ = null;
onChanged();
} else {
defaultAnnotationFilter_ = null;
defaultAnnotationFilterBuilder_ = null;
}
return this;
}
/**
*
* Default annotation filter used for this dataset.
*
*
* .clarifai.api.AnnotationFilter default_annotation_filter = 12;
*/
public com.clarifai.grpc.api.AnnotationFilter.Builder getDefaultAnnotationFilterBuilder() {
onChanged();
return getDefaultAnnotationFilterFieldBuilder().getBuilder();
}
/**
*
* Default annotation filter used for this dataset.
*
*
* .clarifai.api.AnnotationFilter default_annotation_filter = 12;
*/
public com.clarifai.grpc.api.AnnotationFilterOrBuilder getDefaultAnnotationFilterOrBuilder() {
if (defaultAnnotationFilterBuilder_ != null) {
return defaultAnnotationFilterBuilder_.getMessageOrBuilder();
} else {
return defaultAnnotationFilter_ == null ?
com.clarifai.grpc.api.AnnotationFilter.getDefaultInstance() : defaultAnnotationFilter_;
}
}
/**
*
* Default annotation filter used for this dataset.
*
*
* .clarifai.api.AnnotationFilter default_annotation_filter = 12;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.AnnotationFilter, com.clarifai.grpc.api.AnnotationFilter.Builder, com.clarifai.grpc.api.AnnotationFilterOrBuilder>
getDefaultAnnotationFilterFieldBuilder() {
if (defaultAnnotationFilterBuilder_ == null) {
defaultAnnotationFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.AnnotationFilter, com.clarifai.grpc.api.AnnotationFilter.Builder, com.clarifai.grpc.api.AnnotationFilterOrBuilder>(
getDefaultAnnotationFilter(),
getParentForChildren(),
isClean());
defaultAnnotationFilter_ = null;
}
return defaultAnnotationFilterBuilder_;
}
private com.clarifai.grpc.api.DatasetVersionProcessingInfo defaultProcessingInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.DatasetVersionProcessingInfo, com.clarifai.grpc.api.DatasetVersionProcessingInfo.Builder, com.clarifai.grpc.api.DatasetVersionProcessingInfoOrBuilder> defaultProcessingInfoBuilder_;
/**
*
* Default processing info used for this dataset.
*
*
* .clarifai.api.DatasetVersionProcessingInfo default_processing_info = 16;
* @return Whether the defaultProcessingInfo field is set.
*/
public boolean hasDefaultProcessingInfo() {
return defaultProcessingInfoBuilder_ != null || defaultProcessingInfo_ != null;
}
/**
*
* Default processing info used for this dataset.
*
*
* .clarifai.api.DatasetVersionProcessingInfo default_processing_info = 16;
* @return The defaultProcessingInfo.
*/
public com.clarifai.grpc.api.DatasetVersionProcessingInfo getDefaultProcessingInfo() {
if (defaultProcessingInfoBuilder_ == null) {
return defaultProcessingInfo_ == null ? com.clarifai.grpc.api.DatasetVersionProcessingInfo.getDefaultInstance() : defaultProcessingInfo_;
} else {
return defaultProcessingInfoBuilder_.getMessage();
}
}
/**
*
* Default processing info used for this dataset.
*
*
* .clarifai.api.DatasetVersionProcessingInfo default_processing_info = 16;
*/
public Builder setDefaultProcessingInfo(com.clarifai.grpc.api.DatasetVersionProcessingInfo value) {
if (defaultProcessingInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
defaultProcessingInfo_ = value;
onChanged();
} else {
defaultProcessingInfoBuilder_.setMessage(value);
}
return this;
}
/**
*
* Default processing info used for this dataset.
*
*
* .clarifai.api.DatasetVersionProcessingInfo default_processing_info = 16;
*/
public Builder setDefaultProcessingInfo(
com.clarifai.grpc.api.DatasetVersionProcessingInfo.Builder builderForValue) {
if (defaultProcessingInfoBuilder_ == null) {
defaultProcessingInfo_ = builderForValue.build();
onChanged();
} else {
defaultProcessingInfoBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Default processing info used for this dataset.
*
*
* .clarifai.api.DatasetVersionProcessingInfo default_processing_info = 16;
*/
public Builder mergeDefaultProcessingInfo(com.clarifai.grpc.api.DatasetVersionProcessingInfo value) {
if (defaultProcessingInfoBuilder_ == null) {
if (defaultProcessingInfo_ != null) {
defaultProcessingInfo_ =
com.clarifai.grpc.api.DatasetVersionProcessingInfo.newBuilder(defaultProcessingInfo_).mergeFrom(value).buildPartial();
} else {
defaultProcessingInfo_ = value;
}
onChanged();
} else {
defaultProcessingInfoBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Default processing info used for this dataset.
*
*
* .clarifai.api.DatasetVersionProcessingInfo default_processing_info = 16;
*/
public Builder clearDefaultProcessingInfo() {
if (defaultProcessingInfoBuilder_ == null) {
defaultProcessingInfo_ = null;
onChanged();
} else {
defaultProcessingInfo_ = null;
defaultProcessingInfoBuilder_ = null;
}
return this;
}
/**
*
* Default processing info used for this dataset.
*
*
* .clarifai.api.DatasetVersionProcessingInfo default_processing_info = 16;
*/
public com.clarifai.grpc.api.DatasetVersionProcessingInfo.Builder getDefaultProcessingInfoBuilder() {
onChanged();
return getDefaultProcessingInfoFieldBuilder().getBuilder();
}
/**
*
* Default processing info used for this dataset.
*
*
* .clarifai.api.DatasetVersionProcessingInfo default_processing_info = 16;
*/
public com.clarifai.grpc.api.DatasetVersionProcessingInfoOrBuilder getDefaultProcessingInfoOrBuilder() {
if (defaultProcessingInfoBuilder_ != null) {
return defaultProcessingInfoBuilder_.getMessageOrBuilder();
} else {
return defaultProcessingInfo_ == null ?
com.clarifai.grpc.api.DatasetVersionProcessingInfo.getDefaultInstance() : defaultProcessingInfo_;
}
}
/**
*
* Default processing info used for this dataset.
*
*
* .clarifai.api.DatasetVersionProcessingInfo default_processing_info = 16;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.DatasetVersionProcessingInfo, com.clarifai.grpc.api.DatasetVersionProcessingInfo.Builder, com.clarifai.grpc.api.DatasetVersionProcessingInfoOrBuilder>
getDefaultProcessingInfoFieldBuilder() {
if (defaultProcessingInfoBuilder_ == null) {
defaultProcessingInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.DatasetVersionProcessingInfo, com.clarifai.grpc.api.DatasetVersionProcessingInfo.Builder, com.clarifai.grpc.api.DatasetVersionProcessingInfoOrBuilder>(
getDefaultProcessingInfo(),
getParentForChildren(),
isClean());
defaultProcessingInfo_ = null;
}
return defaultProcessingInfoBuilder_;
}
private java.lang.Object notes_ = "";
/**
*
* Notes for the dataset
* This field should be used for in-depth notes and supports up to 64Kbs.
*
*
* string notes = 11;
* @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 dataset
* This field should be used for in-depth notes and supports up to 64Kbs.
*
*
* string notes = 11;
* @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 dataset
* This field should be used for in-depth notes and supports up to 64Kbs.
*
*
* string notes = 11;
* @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 dataset
* This field should be used for in-depth notes and supports up to 64Kbs.
*
*
* string notes = 11;
* @return This builder for chaining.
*/
public Builder clearNotes() {
notes_ = getDefaultInstance().getNotes();
onChanged();
return this;
}
/**
*
* Notes for the dataset
* This field should be used for in-depth notes and supports up to 64Kbs.
*
*
* string notes = 11;
* @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.clarifai.grpc.api.DatasetVersion version_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.DatasetVersion, com.clarifai.grpc.api.DatasetVersion.Builder, com.clarifai.grpc.api.DatasetVersionOrBuilder> versionBuilder_;
/**
*
* Dataset version associated with this dataset. This is used in listing Datasets
* and including the latest version.
*
*
* .clarifai.api.DatasetVersion version = 13;
* @return Whether the version field is set.
*/
public boolean hasVersion() {
return versionBuilder_ != null || version_ != null;
}
/**
*
* Dataset version associated with this dataset. This is used in listing Datasets
* and including the latest version.
*
*
* .clarifai.api.DatasetVersion version = 13;
* @return The version.
*/
public com.clarifai.grpc.api.DatasetVersion getVersion() {
if (versionBuilder_ == null) {
return version_ == null ? com.clarifai.grpc.api.DatasetVersion.getDefaultInstance() : version_;
} else {
return versionBuilder_.getMessage();
}
}
/**
*
* Dataset version associated with this dataset. This is used in listing Datasets
* and including the latest version.
*
*
* .clarifai.api.DatasetVersion version = 13;
*/
public Builder setVersion(com.clarifai.grpc.api.DatasetVersion value) {
if (versionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
version_ = value;
onChanged();
} else {
versionBuilder_.setMessage(value);
}
return this;
}
/**
*
* Dataset version associated with this dataset. This is used in listing Datasets
* and including the latest version.
*
*
* .clarifai.api.DatasetVersion version = 13;
*/
public Builder setVersion(
com.clarifai.grpc.api.DatasetVersion.Builder builderForValue) {
if (versionBuilder_ == null) {
version_ = builderForValue.build();
onChanged();
} else {
versionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Dataset version associated with this dataset. This is used in listing Datasets
* and including the latest version.
*
*
* .clarifai.api.DatasetVersion version = 13;
*/
public Builder mergeVersion(com.clarifai.grpc.api.DatasetVersion value) {
if (versionBuilder_ == null) {
if (version_ != null) {
version_ =
com.clarifai.grpc.api.DatasetVersion.newBuilder(version_).mergeFrom(value).buildPartial();
} else {
version_ = value;
}
onChanged();
} else {
versionBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Dataset version associated with this dataset. This is used in listing Datasets
* and including the latest version.
*
*
* .clarifai.api.DatasetVersion version = 13;
*/
public Builder clearVersion() {
if (versionBuilder_ == null) {
version_ = null;
onChanged();
} else {
version_ = null;
versionBuilder_ = null;
}
return this;
}
/**
*
* Dataset version associated with this dataset. This is used in listing Datasets
* and including the latest version.
*
*
* .clarifai.api.DatasetVersion version = 13;
*/
public com.clarifai.grpc.api.DatasetVersion.Builder getVersionBuilder() {
onChanged();
return getVersionFieldBuilder().getBuilder();
}
/**
*
* Dataset version associated with this dataset. This is used in listing Datasets
* and including the latest version.
*
*
* .clarifai.api.DatasetVersion version = 13;
*/
public com.clarifai.grpc.api.DatasetVersionOrBuilder getVersionOrBuilder() {
if (versionBuilder_ != null) {
return versionBuilder_.getMessageOrBuilder();
} else {
return version_ == null ?
com.clarifai.grpc.api.DatasetVersion.getDefaultInstance() : version_;
}
}
/**
*
* Dataset version associated with this dataset. This is used in listing Datasets
* and including the latest version.
*
*
* .clarifai.api.DatasetVersion version = 13;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.DatasetVersion, com.clarifai.grpc.api.DatasetVersion.Builder, com.clarifai.grpc.api.DatasetVersionOrBuilder>
getVersionFieldBuilder() {
if (versionBuilder_ == null) {
versionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.DatasetVersion, com.clarifai.grpc.api.DatasetVersion.Builder, com.clarifai.grpc.api.DatasetVersionOrBuilder>(
getVersion(),
getParentForChildren(),
isClean());
version_ = null;
}
return versionBuilder_;
}
private boolean isStarred_ ;
/**
*
* Whether the dataset is starred by the requesting user.
*
*
* bool is_starred = 14;
* @return The isStarred.
*/
@java.lang.Override
public boolean getIsStarred() {
return isStarred_;
}
/**
*
* Whether the dataset is starred by the requesting user.
*
*
* bool is_starred = 14;
* @param value The isStarred to set.
* @return This builder for chaining.
*/
public Builder setIsStarred(boolean value) {
isStarred_ = value;
onChanged();
return this;
}
/**
*
* Whether the dataset is starred by the requesting user.
*
*
* bool is_starred = 14;
* @return This builder for chaining.
*/
public Builder clearIsStarred() {
isStarred_ = false;
onChanged();
return this;
}
private int starCount_ ;
/**
*
* Number of users that starred this dataset.
*
*
* int32 star_count = 15;
* @return The starCount.
*/
@java.lang.Override
public int getStarCount() {
return starCount_;
}
/**
*
* Number of users that starred this dataset.
*
*
* int32 star_count = 15;
* @param value The starCount to set.
* @return This builder for chaining.
*/
public Builder setStarCount(int value) {
starCount_ = value;
onChanged();
return this;
}
/**
*
* Number of users that starred this dataset.
*
*
* int32 star_count = 15;
* @return This builder for chaining.
*/
public Builder clearStarCount() {
starCount_ = 0;
onChanged();
return this;
}
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 dataset is a bookmarked dataset of this app.
* Info in this field will allow you to find/access original dataset.
*
*
* .clarifai.api.BookmarkOrigin bookmark_origin = 17;
* @return Whether the bookmarkOrigin field is set.
*/
public boolean hasBookmarkOrigin() {
return bookmarkOriginBuilder_ != null || bookmarkOrigin_ != null;
}
/**
*
* bookmark info. When set, this dataset is a bookmarked dataset of this app.
* Info in this field will allow you to find/access original dataset.
*
*
* .clarifai.api.BookmarkOrigin bookmark_origin = 17;
* @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 dataset is a bookmarked dataset of this app.
* Info in this field will allow you to find/access original dataset.
*
*
* .clarifai.api.BookmarkOrigin bookmark_origin = 17;
*/
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 dataset is a bookmarked dataset of this app.
* Info in this field will allow you to find/access original dataset.
*
*
* .clarifai.api.BookmarkOrigin bookmark_origin = 17;
*/
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 dataset is a bookmarked dataset of this app.
* Info in this field will allow you to find/access original dataset.
*
*
* .clarifai.api.BookmarkOrigin bookmark_origin = 17;
*/
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 dataset is a bookmarked dataset of this app.
* Info in this field will allow you to find/access original dataset.
*
*
* .clarifai.api.BookmarkOrigin bookmark_origin = 17;
*/
public Builder clearBookmarkOrigin() {
if (bookmarkOriginBuilder_ == null) {
bookmarkOrigin_ = null;
onChanged();
} else {
bookmarkOrigin_ = null;
bookmarkOriginBuilder_ = null;
}
return this;
}
/**
*
* bookmark info. When set, this dataset is a bookmarked dataset of this app.
* Info in this field will allow you to find/access original dataset.
*
*
* .clarifai.api.BookmarkOrigin bookmark_origin = 17;
*/
public com.clarifai.grpc.api.BookmarkOrigin.Builder getBookmarkOriginBuilder() {
onChanged();
return getBookmarkOriginFieldBuilder().getBuilder();
}
/**
*
* bookmark info. When set, this dataset is a bookmarked dataset of this app.
* Info in this field will allow you to find/access original dataset.
*
*
* .clarifai.api.BookmarkOrigin bookmark_origin = 17;
*/
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 dataset is a bookmarked dataset of this app.
* Info in this field will allow you to find/access original dataset.
*
*
* .clarifai.api.BookmarkOrigin bookmark_origin = 17;
*/
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 dataset
*
*
* .clarifai.api.Image image = 18;
* @return Whether the image field is set.
*/
public boolean hasImage() {
return imageBuilder_ != null || image_ != null;
}
/**
*
* Representative image for this dataset
*
*
* .clarifai.api.Image image = 18;
* @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 dataset
*
*
* .clarifai.api.Image image = 18;
*/
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 dataset
*
*
* .clarifai.api.Image image = 18;
*/
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 dataset
*
*
* .clarifai.api.Image image = 18;
*/
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 dataset
*
*
* .clarifai.api.Image image = 18;
*/
public Builder clearImage() {
if (imageBuilder_ == null) {
image_ = null;
onChanged();
} else {
image_ = null;
imageBuilder_ = null;
}
return this;
}
/**
*
* Representative image for this dataset
*
*
* .clarifai.api.Image image = 18;
*/
public com.clarifai.grpc.api.Image.Builder getImageBuilder() {
onChanged();
return getImageFieldBuilder().getBuilder();
}
/**
*
* Representative image for this dataset
*
*
* .clarifai.api.Image image = 18;
*/
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 dataset
*
*
* .clarifai.api.Image image = 18;
*/
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.Dataset)
}
// @@protoc_insertion_point(class_scope:clarifai.api.Dataset)
private static final com.clarifai.grpc.api.Dataset DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.clarifai.grpc.api.Dataset();
}
public static com.clarifai.grpc.api.Dataset getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Dataset parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Dataset(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.Dataset getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}