com.clarifai.grpc.api.App Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: proto/clarifai/api/resources.proto
package com.clarifai.grpc.api;
/**
*
* Application with tasks and datasets
*
*
* Protobuf type {@code clarifai.api.App}
*/
public final class App extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:clarifai.api.App)
AppOrBuilder {
private static final long serialVersionUID = 0L;
// Use App.newBuilder() to construct.
private App(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private App() {
id_ = "";
name_ = "";
defaultLanguage_ = "";
defaultWorkflowId_ = "";
userId_ = "";
description_ = "";
dataTierId_ = "";
notes_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new App();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private App(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
id_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
defaultLanguage_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
defaultWorkflowId_ = s;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
userId_ = s;
break;
}
case 50: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (createdAt_ != null) {
subBuilder = createdAt_.toBuilder();
}
createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(createdAt_);
createdAt_ = subBuilder.buildPartial();
}
break;
}
case 56: {
legalConsentStatus_ = input.readUInt32();
break;
}
case 106: {
com.google.protobuf.Struct.Builder subBuilder = null;
if (metadata_ != null) {
subBuilder = metadata_.toBuilder();
}
metadata_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadata_);
metadata_ = subBuilder.buildPartial();
}
break;
}
case 114: {
java.lang.String s = input.readStringRequireUtf8();
description_ = s;
break;
}
case 120: {
sampleMs_ = input.readUInt32();
break;
}
case 130: {
com.clarifai.grpc.api.Visibility.Builder subBuilder = null;
if (visibility_ != null) {
subBuilder = visibility_.toBuilder();
}
visibility_ = input.readMessage(com.clarifai.grpc.api.Visibility.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(visibility_);
visibility_ = subBuilder.buildPartial();
}
break;
}
case 138: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (modifiedAt_ != null) {
subBuilder = modifiedAt_.toBuilder();
}
modifiedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(modifiedAt_);
modifiedAt_ = subBuilder.buildPartial();
}
break;
}
case 146: {
java.lang.String s = input.readStringRequireUtf8();
dataTierId_ = s;
break;
}
case 152: {
isStarred_ = input.readBool();
break;
}
case 160: {
starCount_ = input.readInt32();
break;
}
case 170: {
java.lang.String s = input.readStringRequireUtf8();
notes_ = s;
break;
}
case 178: {
com.clarifai.grpc.api.Image.Builder subBuilder = null;
if (image_ != null) {
subBuilder = image_.toBuilder();
}
image_ = input.readMessage(com.clarifai.grpc.api.Image.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(image_);
image_ = subBuilder.buildPartial();
}
break;
}
case 186: {
com.clarifai.grpc.api.Workflow.Builder subBuilder = null;
if (defaultWorkflow_ != null) {
subBuilder = defaultWorkflow_.toBuilder();
}
defaultWorkflow_ = input.readMessage(com.clarifai.grpc.api.Workflow.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(defaultWorkflow_);
defaultWorkflow_ = subBuilder.buildPartial();
}
break;
}
case 194: {
com.clarifai.grpc.api.AppExtraInfo.Builder subBuilder = null;
if (extraInfo_ != null) {
subBuilder = extraInfo_.toBuilder();
}
extraInfo_ = input.readMessage(com.clarifai.grpc.api.AppExtraInfo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(extraInfo_);
extraInfo_ = subBuilder.buildPartial();
}
break;
}
case 202: {
com.google.protobuf.BoolValue.Builder subBuilder = null;
if (isTemplate_ != null) {
subBuilder = isTemplate_.toBuilder();
}
isTemplate_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(isTemplate_);
isTemplate_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_App_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_App_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.clarifai.grpc.api.App.class, com.clarifai.grpc.api.App.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
* string id = 1;
* @return The id.
*/
@java.lang.Override
public java.lang.String getId() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
}
}
/**
* string id = 1;
* @return The bytes for id.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object name_;
/**
* string name = 2;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
* string name = 2;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DEFAULT_LANGUAGE_FIELD_NUMBER = 3;
private volatile java.lang.Object defaultLanguage_;
/**
* string default_language = 3;
* @return The defaultLanguage.
*/
@java.lang.Override
public java.lang.String getDefaultLanguage() {
java.lang.Object ref = defaultLanguage_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
defaultLanguage_ = s;
return s;
}
}
/**
* string default_language = 3;
* @return The bytes for defaultLanguage.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDefaultLanguageBytes() {
java.lang.Object ref = defaultLanguage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
defaultLanguage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DEFAULT_WORKFLOW_ID_FIELD_NUMBER = 4;
private volatile java.lang.Object defaultWorkflowId_;
/**
*
* Default workflow id deprecated in favor of default_workflow
*
*
* string default_workflow_id = 4;
* @return The defaultWorkflowId.
*/
@java.lang.Override
public java.lang.String getDefaultWorkflowId() {
java.lang.Object ref = defaultWorkflowId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
defaultWorkflowId_ = s;
return s;
}
}
/**
*
* Default workflow id deprecated in favor of default_workflow
*
*
* string default_workflow_id = 4;
* @return The bytes for defaultWorkflowId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDefaultWorkflowIdBytes() {
java.lang.Object ref = defaultWorkflowId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
defaultWorkflowId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DEFAULT_WORKFLOW_FIELD_NUMBER = 23;
private com.clarifai.grpc.api.Workflow defaultWorkflow_;
/**
* .clarifai.api.Workflow default_workflow = 23;
* @return Whether the defaultWorkflow field is set.
*/
@java.lang.Override
public boolean hasDefaultWorkflow() {
return defaultWorkflow_ != null;
}
/**
* .clarifai.api.Workflow default_workflow = 23;
* @return The defaultWorkflow.
*/
@java.lang.Override
public com.clarifai.grpc.api.Workflow getDefaultWorkflow() {
return defaultWorkflow_ == null ? com.clarifai.grpc.api.Workflow.getDefaultInstance() : defaultWorkflow_;
}
/**
* .clarifai.api.Workflow default_workflow = 23;
*/
@java.lang.Override
public com.clarifai.grpc.api.WorkflowOrBuilder getDefaultWorkflowOrBuilder() {
return getDefaultWorkflow();
}
public static final int USER_ID_FIELD_NUMBER = 5;
private volatile java.lang.Object userId_;
/**
*
* why is user_id present here when this message type is used in PostApps but completely ignored there? PostApp already
* specifies the userid in path but doesn't even actually use neither of userids, it instead used the id from auth context.
* This creates a lot of ambiguity, should always have different message types for Post/Get endpoints so that the minimum interface for each op can be described
*
*
* string user_id = 5;
* @return The userId.
*/
@java.lang.Override
public java.lang.String getUserId() {
java.lang.Object ref = userId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
userId_ = s;
return s;
}
}
/**
*
* why is user_id present here when this message type is used in PostApps but completely ignored there? PostApp already
* specifies the userid in path but doesn't even actually use neither of userids, it instead used the id from auth context.
* This creates a lot of ambiguity, should always have different message types for Post/Get endpoints so that the minimum interface for each op can be described
*
*
* string user_id = 5;
* @return The bytes for userId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUserIdBytes() {
java.lang.Object ref = userId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CREATED_AT_FIELD_NUMBER = 6;
private com.google.protobuf.Timestamp createdAt_;
/**
*
* When the app 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 = 6;
* @return Whether the createdAt field is set.
*/
@java.lang.Override
public boolean hasCreatedAt() {
return createdAt_ != null;
}
/**
*
* When the app 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 = 6;
* @return The createdAt.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getCreatedAt() {
return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
}
/**
*
* When the app 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 = 6;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
return getCreatedAt();
}
public static final int MODIFIED_AT_FIELD_NUMBER = 17;
private com.google.protobuf.Timestamp modifiedAt_;
/**
*
* When the app was last modified
*
*
* .google.protobuf.Timestamp modified_at = 17;
* @return Whether the modifiedAt field is set.
*/
@java.lang.Override
public boolean hasModifiedAt() {
return modifiedAt_ != null;
}
/**
*
* When the app was last modified
*
*
* .google.protobuf.Timestamp modified_at = 17;
* @return The modifiedAt.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getModifiedAt() {
return modifiedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modifiedAt_;
}
/**
*
* When the app was last modified
*
*
* .google.protobuf.Timestamp modified_at = 17;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getModifiedAtOrBuilder() {
return getModifiedAt();
}
public static final int LEGAL_CONSENT_STATUS_FIELD_NUMBER = 7;
private int legalConsentStatus_;
/**
*
* if user accept legal consent for face recognition
*
*
* uint32 legal_consent_status = 7;
* @return The legalConsentStatus.
*/
@java.lang.Override
public int getLegalConsentStatus() {
return legalConsentStatus_;
}
public static final int METADATA_FIELD_NUMBER = 13;
private com.google.protobuf.Struct metadata_;
/**
*
* To handle arbitrary json metadata you can use a struct field:
* https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
*
*
* .google.protobuf.Struct metadata = 13;
* @return Whether the metadata field is set.
*/
@java.lang.Override
public boolean hasMetadata() {
return metadata_ != null;
}
/**
*
* To handle arbitrary json metadata you can use a struct field:
* https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
*
*
* .google.protobuf.Struct metadata = 13;
* @return The metadata.
*/
@java.lang.Override
public com.google.protobuf.Struct getMetadata() {
return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_;
}
/**
*
* To handle arbitrary json metadata you can use a struct field:
* https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
*
*
* .google.protobuf.Struct metadata = 13;
*/
@java.lang.Override
public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() {
return getMetadata();
}
public static final int DESCRIPTION_FIELD_NUMBER = 14;
private volatile java.lang.Object description_;
/**
*
* short description about the app.
*
*
* string description = 14;
* @return The description.
*/
@java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
}
}
/**
*
* short description about the app.
*
*
* string description = 14;
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SAMPLE_MS_FIELD_NUMBER = 15;
private int sampleMs_;
/**
*
* Default value for model predictions on video: Sample delay for video predicting (1 frame per N milliseconds)
*
*
* uint32 sample_ms = 15;
* @return The sampleMs.
*/
@java.lang.Override
public int getSampleMs() {
return sampleMs_;
}
public static final int VISIBILITY_FIELD_NUMBER = 16;
private com.clarifai.grpc.api.Visibility visibility_;
/**
*
* The visibility field represents whether this message is privately/publicly visible.
* To be visible to the public the App that contains it AND the User that contains the App must
* also be publicly visible.
*
*
* .clarifai.api.Visibility visibility = 16;
* @return Whether the visibility field is set.
*/
@java.lang.Override
public boolean hasVisibility() {
return visibility_ != null;
}
/**
*
* The visibility field represents whether this message is privately/publicly visible.
* To be visible to the public the App that contains it AND the User that contains the App must
* also be publicly visible.
*
*
* .clarifai.api.Visibility visibility = 16;
* @return The visibility.
*/
@java.lang.Override
public com.clarifai.grpc.api.Visibility getVisibility() {
return visibility_ == null ? com.clarifai.grpc.api.Visibility.getDefaultInstance() : visibility_;
}
/**
*
* The visibility field represents whether this message is privately/publicly visible.
* To be visible to the public the App that contains it AND the User that contains the App must
* also be publicly visible.
*
*
* .clarifai.api.Visibility visibility = 16;
*/
@java.lang.Override
public com.clarifai.grpc.api.VisibilityOrBuilder getVisibilityOrBuilder() {
return getVisibility();
}
public static final int DATA_TIER_ID_FIELD_NUMBER = 18;
private volatile java.lang.Object dataTierId_;
/**
*
* data tier id this app is using.
*
*
* string data_tier_id = 18;
* @return The dataTierId.
*/
@java.lang.Override
public java.lang.String getDataTierId() {
java.lang.Object ref = dataTierId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
dataTierId_ = s;
return s;
}
}
/**
*
* data tier id this app is using.
*
*
* string data_tier_id = 18;
* @return The bytes for dataTierId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDataTierIdBytes() {
java.lang.Object ref = dataTierId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dataTierId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int IS_STARRED_FIELD_NUMBER = 19;
private boolean isStarred_;
/**
*
* Is starred by the requesting user (only showed on get/list requests)
* Please use PostAppStars/DeleteAppStars endpoints to star/unstar an app
*
*
* bool is_starred = 19;
* @return The isStarred.
*/
@java.lang.Override
public boolean getIsStarred() {
return isStarred_;
}
public static final int STAR_COUNT_FIELD_NUMBER = 20;
private int starCount_;
/**
*
* How many users have starred the app (only showed on get/list requests)
* Computed value, not editable
*
*
* int32 star_count = 20;
* @return The starCount.
*/
@java.lang.Override
public int getStarCount() {
return starCount_;
}
public static final int NOTES_FIELD_NUMBER = 21;
private volatile java.lang.Object notes_;
/**
*
* Notes for the application
* This field should be used for in-depth notes and supports up to 64Kbs.
*
*
* string notes = 21;
* @return The notes.
*/
@java.lang.Override
public java.lang.String getNotes() {
java.lang.Object ref = notes_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
notes_ = s;
return s;
}
}
/**
*
* Notes for the application
* This field should be used for in-depth notes and supports up to 64Kbs.
*
*
* string notes = 21;
* @return The bytes for notes.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNotesBytes() {
java.lang.Object ref = notes_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
notes_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int IMAGE_FIELD_NUMBER = 22;
private com.clarifai.grpc.api.Image image_;
/**
*
* Representative image for this app
*
*
* .clarifai.api.Image image = 22;
* @return Whether the image field is set.
*/
@java.lang.Override
public boolean hasImage() {
return image_ != null;
}
/**
*
* Representative image for this app
*
*
* .clarifai.api.Image image = 22;
* @return The image.
*/
@java.lang.Override
public com.clarifai.grpc.api.Image getImage() {
return image_ == null ? com.clarifai.grpc.api.Image.getDefaultInstance() : image_;
}
/**
*
* Representative image for this app
*
*
* .clarifai.api.Image image = 22;
*/
@java.lang.Override
public com.clarifai.grpc.api.ImageOrBuilder getImageOrBuilder() {
return getImage();
}
public static final int IS_TEMPLATE_FIELD_NUMBER = 25;
private com.google.protobuf.BoolValue isTemplate_;
/**
*
* An app marked as a template can be duplicated by any user that can see it,
* including all visible resources within it.
*
*
* .google.protobuf.BoolValue is_template = 25;
* @return Whether the isTemplate field is set.
*/
@java.lang.Override
public boolean hasIsTemplate() {
return isTemplate_ != null;
}
/**
*
* An app marked as a template can be duplicated by any user that can see it,
* including all visible resources within it.
*
*
* .google.protobuf.BoolValue is_template = 25;
* @return The isTemplate.
*/
@java.lang.Override
public com.google.protobuf.BoolValue getIsTemplate() {
return isTemplate_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isTemplate_;
}
/**
*
* An app marked as a template can be duplicated by any user that can see it,
* including all visible resources within it.
*
*
* .google.protobuf.BoolValue is_template = 25;
*/
@java.lang.Override
public com.google.protobuf.BoolValueOrBuilder getIsTemplateOrBuilder() {
return getIsTemplate();
}
public static final int EXTRA_INFO_FIELD_NUMBER = 24;
private com.clarifai.grpc.api.AppExtraInfo extraInfo_;
/**
* .clarifai.api.AppExtraInfo extra_info = 24;
* @return Whether the extraInfo field is set.
*/
@java.lang.Override
public boolean hasExtraInfo() {
return extraInfo_ != null;
}
/**
* .clarifai.api.AppExtraInfo extra_info = 24;
* @return The extraInfo.
*/
@java.lang.Override
public com.clarifai.grpc.api.AppExtraInfo getExtraInfo() {
return extraInfo_ == null ? com.clarifai.grpc.api.AppExtraInfo.getDefaultInstance() : extraInfo_;
}
/**
* .clarifai.api.AppExtraInfo extra_info = 24;
*/
@java.lang.Override
public com.clarifai.grpc.api.AppExtraInfoOrBuilder getExtraInfoOrBuilder() {
return getExtraInfo();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultLanguage_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, defaultLanguage_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultWorkflowId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, defaultWorkflowId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, userId_);
}
if (createdAt_ != null) {
output.writeMessage(6, getCreatedAt());
}
if (legalConsentStatus_ != 0) {
output.writeUInt32(7, legalConsentStatus_);
}
if (metadata_ != null) {
output.writeMessage(13, getMetadata());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 14, description_);
}
if (sampleMs_ != 0) {
output.writeUInt32(15, sampleMs_);
}
if (visibility_ != null) {
output.writeMessage(16, getVisibility());
}
if (modifiedAt_ != null) {
output.writeMessage(17, getModifiedAt());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataTierId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 18, dataTierId_);
}
if (isStarred_ != false) {
output.writeBool(19, isStarred_);
}
if (starCount_ != 0) {
output.writeInt32(20, starCount_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(notes_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 21, notes_);
}
if (image_ != null) {
output.writeMessage(22, getImage());
}
if (defaultWorkflow_ != null) {
output.writeMessage(23, getDefaultWorkflow());
}
if (extraInfo_ != null) {
output.writeMessage(24, getExtraInfo());
}
if (isTemplate_ != null) {
output.writeMessage(25, getIsTemplate());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultLanguage_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, defaultLanguage_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultWorkflowId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, defaultWorkflowId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, userId_);
}
if (createdAt_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getCreatedAt());
}
if (legalConsentStatus_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(7, legalConsentStatus_);
}
if (metadata_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, getMetadata());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, description_);
}
if (sampleMs_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(15, sampleMs_);
}
if (visibility_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(16, getVisibility());
}
if (modifiedAt_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(17, getModifiedAt());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataTierId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, dataTierId_);
}
if (isStarred_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(19, isStarred_);
}
if (starCount_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(20, starCount_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(notes_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, notes_);
}
if (image_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(22, getImage());
}
if (defaultWorkflow_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(23, getDefaultWorkflow());
}
if (extraInfo_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(24, getExtraInfo());
}
if (isTemplate_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(25, getIsTemplate());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.clarifai.grpc.api.App)) {
return super.equals(obj);
}
com.clarifai.grpc.api.App other = (com.clarifai.grpc.api.App) obj;
if (!getId()
.equals(other.getId())) return false;
if (!getName()
.equals(other.getName())) return false;
if (!getDefaultLanguage()
.equals(other.getDefaultLanguage())) return false;
if (!getDefaultWorkflowId()
.equals(other.getDefaultWorkflowId())) return false;
if (hasDefaultWorkflow() != other.hasDefaultWorkflow()) return false;
if (hasDefaultWorkflow()) {
if (!getDefaultWorkflow()
.equals(other.getDefaultWorkflow())) return false;
}
if (!getUserId()
.equals(other.getUserId())) return false;
if (hasCreatedAt() != other.hasCreatedAt()) return false;
if (hasCreatedAt()) {
if (!getCreatedAt()
.equals(other.getCreatedAt())) return false;
}
if (hasModifiedAt() != other.hasModifiedAt()) return false;
if (hasModifiedAt()) {
if (!getModifiedAt()
.equals(other.getModifiedAt())) return false;
}
if (getLegalConsentStatus()
!= other.getLegalConsentStatus()) return false;
if (hasMetadata() != other.hasMetadata()) return false;
if (hasMetadata()) {
if (!getMetadata()
.equals(other.getMetadata())) return false;
}
if (!getDescription()
.equals(other.getDescription())) return false;
if (getSampleMs()
!= other.getSampleMs()) return false;
if (hasVisibility() != other.hasVisibility()) return false;
if (hasVisibility()) {
if (!getVisibility()
.equals(other.getVisibility())) return false;
}
if (!getDataTierId()
.equals(other.getDataTierId())) return false;
if (getIsStarred()
!= other.getIsStarred()) return false;
if (getStarCount()
!= other.getStarCount()) return false;
if (!getNotes()
.equals(other.getNotes())) return false;
if (hasImage() != other.hasImage()) return false;
if (hasImage()) {
if (!getImage()
.equals(other.getImage())) return false;
}
if (hasIsTemplate() != other.hasIsTemplate()) return false;
if (hasIsTemplate()) {
if (!getIsTemplate()
.equals(other.getIsTemplate())) return false;
}
if (hasExtraInfo() != other.hasExtraInfo()) return false;
if (hasExtraInfo()) {
if (!getExtraInfo()
.equals(other.getExtraInfo())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + DEFAULT_LANGUAGE_FIELD_NUMBER;
hash = (53 * hash) + getDefaultLanguage().hashCode();
hash = (37 * hash) + DEFAULT_WORKFLOW_ID_FIELD_NUMBER;
hash = (53 * hash) + getDefaultWorkflowId().hashCode();
if (hasDefaultWorkflow()) {
hash = (37 * hash) + DEFAULT_WORKFLOW_FIELD_NUMBER;
hash = (53 * hash) + getDefaultWorkflow().hashCode();
}
hash = (37 * hash) + USER_ID_FIELD_NUMBER;
hash = (53 * hash) + getUserId().hashCode();
if (hasCreatedAt()) {
hash = (37 * hash) + CREATED_AT_FIELD_NUMBER;
hash = (53 * hash) + getCreatedAt().hashCode();
}
if (hasModifiedAt()) {
hash = (37 * hash) + MODIFIED_AT_FIELD_NUMBER;
hash = (53 * hash) + getModifiedAt().hashCode();
}
hash = (37 * hash) + LEGAL_CONSENT_STATUS_FIELD_NUMBER;
hash = (53 * hash) + getLegalConsentStatus();
if (hasMetadata()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMetadata().hashCode();
}
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
hash = (37 * hash) + SAMPLE_MS_FIELD_NUMBER;
hash = (53 * hash) + getSampleMs();
if (hasVisibility()) {
hash = (37 * hash) + VISIBILITY_FIELD_NUMBER;
hash = (53 * hash) + getVisibility().hashCode();
}
hash = (37 * hash) + DATA_TIER_ID_FIELD_NUMBER;
hash = (53 * hash) + getDataTierId().hashCode();
hash = (37 * hash) + IS_STARRED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsStarred());
hash = (37 * hash) + STAR_COUNT_FIELD_NUMBER;
hash = (53 * hash) + getStarCount();
hash = (37 * hash) + NOTES_FIELD_NUMBER;
hash = (53 * hash) + getNotes().hashCode();
if (hasImage()) {
hash = (37 * hash) + IMAGE_FIELD_NUMBER;
hash = (53 * hash) + getImage().hashCode();
}
if (hasIsTemplate()) {
hash = (37 * hash) + IS_TEMPLATE_FIELD_NUMBER;
hash = (53 * hash) + getIsTemplate().hashCode();
}
if (hasExtraInfo()) {
hash = (37 * hash) + EXTRA_INFO_FIELD_NUMBER;
hash = (53 * hash) + getExtraInfo().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.clarifai.grpc.api.App parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.App parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.clarifai.grpc.api.App parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.App parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.clarifai.grpc.api.App parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.App parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.clarifai.grpc.api.App parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.App parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.clarifai.grpc.api.App parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.App parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.clarifai.grpc.api.App parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.App parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.clarifai.grpc.api.App prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Application with tasks and datasets
*
*
* Protobuf type {@code clarifai.api.App}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:clarifai.api.App)
com.clarifai.grpc.api.AppOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_App_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_App_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.clarifai.grpc.api.App.class, com.clarifai.grpc.api.App.Builder.class);
}
// Construct using com.clarifai.grpc.api.App.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_ = "";
name_ = "";
defaultLanguage_ = "";
defaultWorkflowId_ = "";
if (defaultWorkflowBuilder_ == null) {
defaultWorkflow_ = null;
} else {
defaultWorkflow_ = null;
defaultWorkflowBuilder_ = null;
}
userId_ = "";
if (createdAtBuilder_ == null) {
createdAt_ = null;
} else {
createdAt_ = null;
createdAtBuilder_ = null;
}
if (modifiedAtBuilder_ == null) {
modifiedAt_ = null;
} else {
modifiedAt_ = null;
modifiedAtBuilder_ = null;
}
legalConsentStatus_ = 0;
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadata_ = null;
metadataBuilder_ = null;
}
description_ = "";
sampleMs_ = 0;
if (visibilityBuilder_ == null) {
visibility_ = null;
} else {
visibility_ = null;
visibilityBuilder_ = null;
}
dataTierId_ = "";
isStarred_ = false;
starCount_ = 0;
notes_ = "";
if (imageBuilder_ == null) {
image_ = null;
} else {
image_ = null;
imageBuilder_ = null;
}
if (isTemplateBuilder_ == null) {
isTemplate_ = null;
} else {
isTemplate_ = null;
isTemplateBuilder_ = null;
}
if (extraInfoBuilder_ == null) {
extraInfo_ = null;
} else {
extraInfo_ = null;
extraInfoBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_App_descriptor;
}
@java.lang.Override
public com.clarifai.grpc.api.App getDefaultInstanceForType() {
return com.clarifai.grpc.api.App.getDefaultInstance();
}
@java.lang.Override
public com.clarifai.grpc.api.App build() {
com.clarifai.grpc.api.App result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.clarifai.grpc.api.App buildPartial() {
com.clarifai.grpc.api.App result = new com.clarifai.grpc.api.App(this);
result.id_ = id_;
result.name_ = name_;
result.defaultLanguage_ = defaultLanguage_;
result.defaultWorkflowId_ = defaultWorkflowId_;
if (defaultWorkflowBuilder_ == null) {
result.defaultWorkflow_ = defaultWorkflow_;
} else {
result.defaultWorkflow_ = defaultWorkflowBuilder_.build();
}
result.userId_ = userId_;
if (createdAtBuilder_ == null) {
result.createdAt_ = createdAt_;
} else {
result.createdAt_ = createdAtBuilder_.build();
}
if (modifiedAtBuilder_ == null) {
result.modifiedAt_ = modifiedAt_;
} else {
result.modifiedAt_ = modifiedAtBuilder_.build();
}
result.legalConsentStatus_ = legalConsentStatus_;
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.build();
}
result.description_ = description_;
result.sampleMs_ = sampleMs_;
if (visibilityBuilder_ == null) {
result.visibility_ = visibility_;
} else {
result.visibility_ = visibilityBuilder_.build();
}
result.dataTierId_ = dataTierId_;
result.isStarred_ = isStarred_;
result.starCount_ = starCount_;
result.notes_ = notes_;
if (imageBuilder_ == null) {
result.image_ = image_;
} else {
result.image_ = imageBuilder_.build();
}
if (isTemplateBuilder_ == null) {
result.isTemplate_ = isTemplate_;
} else {
result.isTemplate_ = isTemplateBuilder_.build();
}
if (extraInfoBuilder_ == null) {
result.extraInfo_ = extraInfo_;
} else {
result.extraInfo_ = extraInfoBuilder_.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.App) {
return mergeFrom((com.clarifai.grpc.api.App)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.clarifai.grpc.api.App other) {
if (other == com.clarifai.grpc.api.App.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getDefaultLanguage().isEmpty()) {
defaultLanguage_ = other.defaultLanguage_;
onChanged();
}
if (!other.getDefaultWorkflowId().isEmpty()) {
defaultWorkflowId_ = other.defaultWorkflowId_;
onChanged();
}
if (other.hasDefaultWorkflow()) {
mergeDefaultWorkflow(other.getDefaultWorkflow());
}
if (!other.getUserId().isEmpty()) {
userId_ = other.userId_;
onChanged();
}
if (other.hasCreatedAt()) {
mergeCreatedAt(other.getCreatedAt());
}
if (other.hasModifiedAt()) {
mergeModifiedAt(other.getModifiedAt());
}
if (other.getLegalConsentStatus() != 0) {
setLegalConsentStatus(other.getLegalConsentStatus());
}
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
if (other.getSampleMs() != 0) {
setSampleMs(other.getSampleMs());
}
if (other.hasVisibility()) {
mergeVisibility(other.getVisibility());
}
if (!other.getDataTierId().isEmpty()) {
dataTierId_ = other.dataTierId_;
onChanged();
}
if (other.getIsStarred() != false) {
setIsStarred(other.getIsStarred());
}
if (other.getStarCount() != 0) {
setStarCount(other.getStarCount());
}
if (!other.getNotes().isEmpty()) {
notes_ = other.notes_;
onChanged();
}
if (other.hasImage()) {
mergeImage(other.getImage());
}
if (other.hasIsTemplate()) {
mergeIsTemplate(other.getIsTemplate());
}
if (other.hasExtraInfo()) {
mergeExtraInfo(other.getExtraInfo());
}
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.App parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.clarifai.grpc.api.App) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object id_ = "";
/**
* string id = 1;
* @return The id.
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string id = 1;
* @return The bytes for id.
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
* string id = 1;
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
id_ = value;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
* string name = 2;
* @return The name.
*/
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;
}
}
/**
* string name = 2;
* @return The bytes for name.
*/
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;
}
}
/**
* string name = 2;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
* string name = 2;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* string name = 2;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.lang.Object defaultLanguage_ = "";
/**
* string default_language = 3;
* @return The defaultLanguage.
*/
public java.lang.String getDefaultLanguage() {
java.lang.Object ref = defaultLanguage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
defaultLanguage_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string default_language = 3;
* @return The bytes for defaultLanguage.
*/
public com.google.protobuf.ByteString
getDefaultLanguageBytes() {
java.lang.Object ref = defaultLanguage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
defaultLanguage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string default_language = 3;
* @param value The defaultLanguage to set.
* @return This builder for chaining.
*/
public Builder setDefaultLanguage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
defaultLanguage_ = value;
onChanged();
return this;
}
/**
* string default_language = 3;
* @return This builder for chaining.
*/
public Builder clearDefaultLanguage() {
defaultLanguage_ = getDefaultInstance().getDefaultLanguage();
onChanged();
return this;
}
/**
* string default_language = 3;
* @param value The bytes for defaultLanguage to set.
* @return This builder for chaining.
*/
public Builder setDefaultLanguageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
defaultLanguage_ = value;
onChanged();
return this;
}
private java.lang.Object defaultWorkflowId_ = "";
/**
*
* Default workflow id deprecated in favor of default_workflow
*
*
* string default_workflow_id = 4;
* @return The defaultWorkflowId.
*/
public java.lang.String getDefaultWorkflowId() {
java.lang.Object ref = defaultWorkflowId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
defaultWorkflowId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Default workflow id deprecated in favor of default_workflow
*
*
* string default_workflow_id = 4;
* @return The bytes for defaultWorkflowId.
*/
public com.google.protobuf.ByteString
getDefaultWorkflowIdBytes() {
java.lang.Object ref = defaultWorkflowId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
defaultWorkflowId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Default workflow id deprecated in favor of default_workflow
*
*
* string default_workflow_id = 4;
* @param value The defaultWorkflowId to set.
* @return This builder for chaining.
*/
public Builder setDefaultWorkflowId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
defaultWorkflowId_ = value;
onChanged();
return this;
}
/**
*
* Default workflow id deprecated in favor of default_workflow
*
*
* string default_workflow_id = 4;
* @return This builder for chaining.
*/
public Builder clearDefaultWorkflowId() {
defaultWorkflowId_ = getDefaultInstance().getDefaultWorkflowId();
onChanged();
return this;
}
/**
*
* Default workflow id deprecated in favor of default_workflow
*
*
* string default_workflow_id = 4;
* @param value The bytes for defaultWorkflowId to set.
* @return This builder for chaining.
*/
public Builder setDefaultWorkflowIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
defaultWorkflowId_ = value;
onChanged();
return this;
}
private com.clarifai.grpc.api.Workflow defaultWorkflow_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.Workflow, com.clarifai.grpc.api.Workflow.Builder, com.clarifai.grpc.api.WorkflowOrBuilder> defaultWorkflowBuilder_;
/**
* .clarifai.api.Workflow default_workflow = 23;
* @return Whether the defaultWorkflow field is set.
*/
public boolean hasDefaultWorkflow() {
return defaultWorkflowBuilder_ != null || defaultWorkflow_ != null;
}
/**
* .clarifai.api.Workflow default_workflow = 23;
* @return The defaultWorkflow.
*/
public com.clarifai.grpc.api.Workflow getDefaultWorkflow() {
if (defaultWorkflowBuilder_ == null) {
return defaultWorkflow_ == null ? com.clarifai.grpc.api.Workflow.getDefaultInstance() : defaultWorkflow_;
} else {
return defaultWorkflowBuilder_.getMessage();
}
}
/**
* .clarifai.api.Workflow default_workflow = 23;
*/
public Builder setDefaultWorkflow(com.clarifai.grpc.api.Workflow value) {
if (defaultWorkflowBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
defaultWorkflow_ = value;
onChanged();
} else {
defaultWorkflowBuilder_.setMessage(value);
}
return this;
}
/**
* .clarifai.api.Workflow default_workflow = 23;
*/
public Builder setDefaultWorkflow(
com.clarifai.grpc.api.Workflow.Builder builderForValue) {
if (defaultWorkflowBuilder_ == null) {
defaultWorkflow_ = builderForValue.build();
onChanged();
} else {
defaultWorkflowBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .clarifai.api.Workflow default_workflow = 23;
*/
public Builder mergeDefaultWorkflow(com.clarifai.grpc.api.Workflow value) {
if (defaultWorkflowBuilder_ == null) {
if (defaultWorkflow_ != null) {
defaultWorkflow_ =
com.clarifai.grpc.api.Workflow.newBuilder(defaultWorkflow_).mergeFrom(value).buildPartial();
} else {
defaultWorkflow_ = value;
}
onChanged();
} else {
defaultWorkflowBuilder_.mergeFrom(value);
}
return this;
}
/**
* .clarifai.api.Workflow default_workflow = 23;
*/
public Builder clearDefaultWorkflow() {
if (defaultWorkflowBuilder_ == null) {
defaultWorkflow_ = null;
onChanged();
} else {
defaultWorkflow_ = null;
defaultWorkflowBuilder_ = null;
}
return this;
}
/**
* .clarifai.api.Workflow default_workflow = 23;
*/
public com.clarifai.grpc.api.Workflow.Builder getDefaultWorkflowBuilder() {
onChanged();
return getDefaultWorkflowFieldBuilder().getBuilder();
}
/**
* .clarifai.api.Workflow default_workflow = 23;
*/
public com.clarifai.grpc.api.WorkflowOrBuilder getDefaultWorkflowOrBuilder() {
if (defaultWorkflowBuilder_ != null) {
return defaultWorkflowBuilder_.getMessageOrBuilder();
} else {
return defaultWorkflow_ == null ?
com.clarifai.grpc.api.Workflow.getDefaultInstance() : defaultWorkflow_;
}
}
/**
* .clarifai.api.Workflow default_workflow = 23;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.Workflow, com.clarifai.grpc.api.Workflow.Builder, com.clarifai.grpc.api.WorkflowOrBuilder>
getDefaultWorkflowFieldBuilder() {
if (defaultWorkflowBuilder_ == null) {
defaultWorkflowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.Workflow, com.clarifai.grpc.api.Workflow.Builder, com.clarifai.grpc.api.WorkflowOrBuilder>(
getDefaultWorkflow(),
getParentForChildren(),
isClean());
defaultWorkflow_ = null;
}
return defaultWorkflowBuilder_;
}
private java.lang.Object userId_ = "";
/**
*
* why is user_id present here when this message type is used in PostApps but completely ignored there? PostApp already
* specifies the userid in path but doesn't even actually use neither of userids, it instead used the id from auth context.
* This creates a lot of ambiguity, should always have different message types for Post/Get endpoints so that the minimum interface for each op can be described
*
*
* 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;
}
}
/**
*
* why is user_id present here when this message type is used in PostApps but completely ignored there? PostApp already
* specifies the userid in path but doesn't even actually use neither of userids, it instead used the id from auth context.
* This creates a lot of ambiguity, should always have different message types for Post/Get endpoints so that the minimum interface for each op can be described
*
*
* 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;
}
}
/**
*
* why is user_id present here when this message type is used in PostApps but completely ignored there? PostApp already
* specifies the userid in path but doesn't even actually use neither of userids, it instead used the id from auth context.
* This creates a lot of ambiguity, should always have different message types for Post/Get endpoints so that the minimum interface for each op can be described
*
*
* 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;
}
/**
*
* why is user_id present here when this message type is used in PostApps but completely ignored there? PostApp already
* specifies the userid in path but doesn't even actually use neither of userids, it instead used the id from auth context.
* This creates a lot of ambiguity, should always have different message types for Post/Get endpoints so that the minimum interface for each op can be described
*
*
* string user_id = 5;
* @return This builder for chaining.
*/
public Builder clearUserId() {
userId_ = getDefaultInstance().getUserId();
onChanged();
return this;
}
/**
*
* why is user_id present here when this message type is used in PostApps but completely ignored there? PostApp already
* specifies the userid in path but doesn't even actually use neither of userids, it instead used the id from auth context.
* This creates a lot of ambiguity, should always have different message types for Post/Get endpoints so that the minimum interface for each op can be described
*
*
* 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 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 app 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 = 6;
* @return Whether the createdAt field is set.
*/
public boolean hasCreatedAt() {
return createdAtBuilder_ != null || createdAt_ != null;
}
/**
*
* When the app 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 = 6;
* @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 app 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 = 6;
*/
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 app 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 = 6;
*/
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 app 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 = 6;
*/
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 app 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 = 6;
*/
public Builder clearCreatedAt() {
if (createdAtBuilder_ == null) {
createdAt_ = null;
onChanged();
} else {
createdAt_ = null;
createdAtBuilder_ = null;
}
return this;
}
/**
*
* When the app 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 = 6;
*/
public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() {
onChanged();
return getCreatedAtFieldBuilder().getBuilder();
}
/**
*
* When the app 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 = 6;
*/
public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
if (createdAtBuilder_ != null) {
return createdAtBuilder_.getMessageOrBuilder();
} else {
return createdAt_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
}
}
/**
*
* When the app 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 = 6;
*/
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 app was last modified
*
*
* .google.protobuf.Timestamp modified_at = 17;
* @return Whether the modifiedAt field is set.
*/
public boolean hasModifiedAt() {
return modifiedAtBuilder_ != null || modifiedAt_ != null;
}
/**
*
* When the app was last modified
*
*
* .google.protobuf.Timestamp modified_at = 17;
* @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 app was last modified
*
*
* .google.protobuf.Timestamp modified_at = 17;
*/
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 app was last modified
*
*
* .google.protobuf.Timestamp modified_at = 17;
*/
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 app was last modified
*
*
* .google.protobuf.Timestamp modified_at = 17;
*/
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 app was last modified
*
*
* .google.protobuf.Timestamp modified_at = 17;
*/
public Builder clearModifiedAt() {
if (modifiedAtBuilder_ == null) {
modifiedAt_ = null;
onChanged();
} else {
modifiedAt_ = null;
modifiedAtBuilder_ = null;
}
return this;
}
/**
*
* When the app was last modified
*
*
* .google.protobuf.Timestamp modified_at = 17;
*/
public com.google.protobuf.Timestamp.Builder getModifiedAtBuilder() {
onChanged();
return getModifiedAtFieldBuilder().getBuilder();
}
/**
*
* When the app was last modified
*
*
* .google.protobuf.Timestamp modified_at = 17;
*/
public com.google.protobuf.TimestampOrBuilder getModifiedAtOrBuilder() {
if (modifiedAtBuilder_ != null) {
return modifiedAtBuilder_.getMessageOrBuilder();
} else {
return modifiedAt_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : modifiedAt_;
}
}
/**
*
* When the app was last modified
*
*
* .google.protobuf.Timestamp modified_at = 17;
*/
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 int legalConsentStatus_ ;
/**
*
* if user accept legal consent for face recognition
*
*
* uint32 legal_consent_status = 7;
* @return The legalConsentStatus.
*/
@java.lang.Override
public int getLegalConsentStatus() {
return legalConsentStatus_;
}
/**
*
* if user accept legal consent for face recognition
*
*
* uint32 legal_consent_status = 7;
* @param value The legalConsentStatus to set.
* @return This builder for chaining.
*/
public Builder setLegalConsentStatus(int value) {
legalConsentStatus_ = value;
onChanged();
return this;
}
/**
*
* if user accept legal consent for face recognition
*
*
* uint32 legal_consent_status = 7;
* @return This builder for chaining.
*/
public Builder clearLegalConsentStatus() {
legalConsentStatus_ = 0;
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 = 13;
* @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 = 13;
* @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 = 13;
*/
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 = 13;
*/
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 = 13;
*/
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 = 13;
*/
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 = 13;
*/
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 = 13;
*/
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 = 13;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
getMetadata(),
getParentForChildren(),
isClean());
metadata_ = null;
}
return metadataBuilder_;
}
private java.lang.Object description_ = "";
/**
*
* short description about the app.
*
*
* string description = 14;
* @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 the app.
*
*
* string description = 14;
* @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 the app.
*
*
* string description = 14;
* @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 the app.
*
*
* string description = 14;
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* short description about the app.
*
*
* string description = 14;
* @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 int sampleMs_ ;
/**
*
* Default value for model predictions on video: Sample delay for video predicting (1 frame per N milliseconds)
*
*
* uint32 sample_ms = 15;
* @return The sampleMs.
*/
@java.lang.Override
public int getSampleMs() {
return sampleMs_;
}
/**
*
* Default value for model predictions on video: Sample delay for video predicting (1 frame per N milliseconds)
*
*
* uint32 sample_ms = 15;
* @param value The sampleMs to set.
* @return This builder for chaining.
*/
public Builder setSampleMs(int value) {
sampleMs_ = value;
onChanged();
return this;
}
/**
*
* Default value for model predictions on video: Sample delay for video predicting (1 frame per N milliseconds)
*
*
* uint32 sample_ms = 15;
* @return This builder for chaining.
*/
public Builder clearSampleMs() {
sampleMs_ = 0;
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 = 16;
* @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 = 16;
* @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 = 16;
*/
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 = 16;
*/
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 = 16;
*/
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 = 16;
*/
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 = 16;
*/
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 = 16;
*/
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 = 16;
*/
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 dataTierId_ = "";
/**
*
* data tier id this app is using.
*
*
* string data_tier_id = 18;
* @return The dataTierId.
*/
public java.lang.String getDataTierId() {
java.lang.Object ref = dataTierId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
dataTierId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* data tier id this app is using.
*
*
* string data_tier_id = 18;
* @return The bytes for dataTierId.
*/
public com.google.protobuf.ByteString
getDataTierIdBytes() {
java.lang.Object ref = dataTierId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dataTierId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* data tier id this app is using.
*
*
* string data_tier_id = 18;
* @param value The dataTierId to set.
* @return This builder for chaining.
*/
public Builder setDataTierId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
dataTierId_ = value;
onChanged();
return this;
}
/**
*
* data tier id this app is using.
*
*
* string data_tier_id = 18;
* @return This builder for chaining.
*/
public Builder clearDataTierId() {
dataTierId_ = getDefaultInstance().getDataTierId();
onChanged();
return this;
}
/**
*
* data tier id this app is using.
*
*
* string data_tier_id = 18;
* @param value The bytes for dataTierId to set.
* @return This builder for chaining.
*/
public Builder setDataTierIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
dataTierId_ = value;
onChanged();
return this;
}
private boolean isStarred_ ;
/**
*
* Is starred by the requesting user (only showed on get/list requests)
* Please use PostAppStars/DeleteAppStars endpoints to star/unstar an app
*
*
* bool is_starred = 19;
* @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 PostAppStars/DeleteAppStars endpoints to star/unstar an app
*
*
* bool is_starred = 19;
* @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 PostAppStars/DeleteAppStars endpoints to star/unstar an app
*
*
* bool is_starred = 19;
* @return This builder for chaining.
*/
public Builder clearIsStarred() {
isStarred_ = false;
onChanged();
return this;
}
private int starCount_ ;
/**
*
* How many users have starred the app (only showed on get/list requests)
* Computed value, not editable
*
*
* int32 star_count = 20;
* @return The starCount.
*/
@java.lang.Override
public int getStarCount() {
return starCount_;
}
/**
*
* How many users have starred the app (only showed on get/list requests)
* Computed value, not editable
*
*
* int32 star_count = 20;
* @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 app (only showed on get/list requests)
* Computed value, not editable
*
*
* int32 star_count = 20;
* @return This builder for chaining.
*/
public Builder clearStarCount() {
starCount_ = 0;
onChanged();
return this;
}
private java.lang.Object notes_ = "";
/**
*
* Notes for the application
* This field should be used for in-depth notes and supports up to 64Kbs.
*
*
* string notes = 21;
* @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 application
* This field should be used for in-depth notes and supports up to 64Kbs.
*
*
* string notes = 21;
* @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 application
* This field should be used for in-depth notes and supports up to 64Kbs.
*
*
* string notes = 21;
* @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 application
* This field should be used for in-depth notes and supports up to 64Kbs.
*
*
* string notes = 21;
* @return This builder for chaining.
*/
public Builder clearNotes() {
notes_ = getDefaultInstance().getNotes();
onChanged();
return this;
}
/**
*
* Notes for the application
* This field should be used for in-depth notes and supports up to 64Kbs.
*
*
* string notes = 21;
* @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.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 app
*
*
* .clarifai.api.Image image = 22;
* @return Whether the image field is set.
*/
public boolean hasImage() {
return imageBuilder_ != null || image_ != null;
}
/**
*
* Representative image for this app
*
*
* .clarifai.api.Image image = 22;
* @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 app
*
*
* .clarifai.api.Image image = 22;
*/
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 app
*
*
* .clarifai.api.Image image = 22;
*/
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 app
*
*
* .clarifai.api.Image image = 22;
*/
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 app
*
*
* .clarifai.api.Image image = 22;
*/
public Builder clearImage() {
if (imageBuilder_ == null) {
image_ = null;
onChanged();
} else {
image_ = null;
imageBuilder_ = null;
}
return this;
}
/**
*
* Representative image for this app
*
*
* .clarifai.api.Image image = 22;
*/
public com.clarifai.grpc.api.Image.Builder getImageBuilder() {
onChanged();
return getImageFieldBuilder().getBuilder();
}
/**
*
* Representative image for this app
*
*
* .clarifai.api.Image image = 22;
*/
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 app
*
*
* .clarifai.api.Image image = 22;
*/
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_;
}
private com.google.protobuf.BoolValue isTemplate_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> isTemplateBuilder_;
/**
*
* An app marked as a template can be duplicated by any user that can see it,
* including all visible resources within it.
*
*
* .google.protobuf.BoolValue is_template = 25;
* @return Whether the isTemplate field is set.
*/
public boolean hasIsTemplate() {
return isTemplateBuilder_ != null || isTemplate_ != null;
}
/**
*
* An app marked as a template can be duplicated by any user that can see it,
* including all visible resources within it.
*
*
* .google.protobuf.BoolValue is_template = 25;
* @return The isTemplate.
*/
public com.google.protobuf.BoolValue getIsTemplate() {
if (isTemplateBuilder_ == null) {
return isTemplate_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isTemplate_;
} else {
return isTemplateBuilder_.getMessage();
}
}
/**
*
* An app marked as a template can be duplicated by any user that can see it,
* including all visible resources within it.
*
*
* .google.protobuf.BoolValue is_template = 25;
*/
public Builder setIsTemplate(com.google.protobuf.BoolValue value) {
if (isTemplateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
isTemplate_ = value;
onChanged();
} else {
isTemplateBuilder_.setMessage(value);
}
return this;
}
/**
*
* An app marked as a template can be duplicated by any user that can see it,
* including all visible resources within it.
*
*
* .google.protobuf.BoolValue is_template = 25;
*/
public Builder setIsTemplate(
com.google.protobuf.BoolValue.Builder builderForValue) {
if (isTemplateBuilder_ == null) {
isTemplate_ = builderForValue.build();
onChanged();
} else {
isTemplateBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* An app marked as a template can be duplicated by any user that can see it,
* including all visible resources within it.
*
*
* .google.protobuf.BoolValue is_template = 25;
*/
public Builder mergeIsTemplate(com.google.protobuf.BoolValue value) {
if (isTemplateBuilder_ == null) {
if (isTemplate_ != null) {
isTemplate_ =
com.google.protobuf.BoolValue.newBuilder(isTemplate_).mergeFrom(value).buildPartial();
} else {
isTemplate_ = value;
}
onChanged();
} else {
isTemplateBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* An app marked as a template can be duplicated by any user that can see it,
* including all visible resources within it.
*
*
* .google.protobuf.BoolValue is_template = 25;
*/
public Builder clearIsTemplate() {
if (isTemplateBuilder_ == null) {
isTemplate_ = null;
onChanged();
} else {
isTemplate_ = null;
isTemplateBuilder_ = null;
}
return this;
}
/**
*
* An app marked as a template can be duplicated by any user that can see it,
* including all visible resources within it.
*
*
* .google.protobuf.BoolValue is_template = 25;
*/
public com.google.protobuf.BoolValue.Builder getIsTemplateBuilder() {
onChanged();
return getIsTemplateFieldBuilder().getBuilder();
}
/**
*
* An app marked as a template can be duplicated by any user that can see it,
* including all visible resources within it.
*
*
* .google.protobuf.BoolValue is_template = 25;
*/
public com.google.protobuf.BoolValueOrBuilder getIsTemplateOrBuilder() {
if (isTemplateBuilder_ != null) {
return isTemplateBuilder_.getMessageOrBuilder();
} else {
return isTemplate_ == null ?
com.google.protobuf.BoolValue.getDefaultInstance() : isTemplate_;
}
}
/**
*
* An app marked as a template can be duplicated by any user that can see it,
* including all visible resources within it.
*
*
* .google.protobuf.BoolValue is_template = 25;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>
getIsTemplateFieldBuilder() {
if (isTemplateBuilder_ == null) {
isTemplateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
getIsTemplate(),
getParentForChildren(),
isClean());
isTemplate_ = null;
}
return isTemplateBuilder_;
}
private com.clarifai.grpc.api.AppExtraInfo extraInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.AppExtraInfo, com.clarifai.grpc.api.AppExtraInfo.Builder, com.clarifai.grpc.api.AppExtraInfoOrBuilder> extraInfoBuilder_;
/**
* .clarifai.api.AppExtraInfo extra_info = 24;
* @return Whether the extraInfo field is set.
*/
public boolean hasExtraInfo() {
return extraInfoBuilder_ != null || extraInfo_ != null;
}
/**
* .clarifai.api.AppExtraInfo extra_info = 24;
* @return The extraInfo.
*/
public com.clarifai.grpc.api.AppExtraInfo getExtraInfo() {
if (extraInfoBuilder_ == null) {
return extraInfo_ == null ? com.clarifai.grpc.api.AppExtraInfo.getDefaultInstance() : extraInfo_;
} else {
return extraInfoBuilder_.getMessage();
}
}
/**
* .clarifai.api.AppExtraInfo extra_info = 24;
*/
public Builder setExtraInfo(com.clarifai.grpc.api.AppExtraInfo value) {
if (extraInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
extraInfo_ = value;
onChanged();
} else {
extraInfoBuilder_.setMessage(value);
}
return this;
}
/**
* .clarifai.api.AppExtraInfo extra_info = 24;
*/
public Builder setExtraInfo(
com.clarifai.grpc.api.AppExtraInfo.Builder builderForValue) {
if (extraInfoBuilder_ == null) {
extraInfo_ = builderForValue.build();
onChanged();
} else {
extraInfoBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .clarifai.api.AppExtraInfo extra_info = 24;
*/
public Builder mergeExtraInfo(com.clarifai.grpc.api.AppExtraInfo value) {
if (extraInfoBuilder_ == null) {
if (extraInfo_ != null) {
extraInfo_ =
com.clarifai.grpc.api.AppExtraInfo.newBuilder(extraInfo_).mergeFrom(value).buildPartial();
} else {
extraInfo_ = value;
}
onChanged();
} else {
extraInfoBuilder_.mergeFrom(value);
}
return this;
}
/**
* .clarifai.api.AppExtraInfo extra_info = 24;
*/
public Builder clearExtraInfo() {
if (extraInfoBuilder_ == null) {
extraInfo_ = null;
onChanged();
} else {
extraInfo_ = null;
extraInfoBuilder_ = null;
}
return this;
}
/**
* .clarifai.api.AppExtraInfo extra_info = 24;
*/
public com.clarifai.grpc.api.AppExtraInfo.Builder getExtraInfoBuilder() {
onChanged();
return getExtraInfoFieldBuilder().getBuilder();
}
/**
* .clarifai.api.AppExtraInfo extra_info = 24;
*/
public com.clarifai.grpc.api.AppExtraInfoOrBuilder getExtraInfoOrBuilder() {
if (extraInfoBuilder_ != null) {
return extraInfoBuilder_.getMessageOrBuilder();
} else {
return extraInfo_ == null ?
com.clarifai.grpc.api.AppExtraInfo.getDefaultInstance() : extraInfo_;
}
}
/**
* .clarifai.api.AppExtraInfo extra_info = 24;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.AppExtraInfo, com.clarifai.grpc.api.AppExtraInfo.Builder, com.clarifai.grpc.api.AppExtraInfoOrBuilder>
getExtraInfoFieldBuilder() {
if (extraInfoBuilder_ == null) {
extraInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.AppExtraInfo, com.clarifai.grpc.api.AppExtraInfo.Builder, com.clarifai.grpc.api.AppExtraInfoOrBuilder>(
getExtraInfo(),
getParentForChildren(),
isClean());
extraInfo_ = null;
}
return extraInfoBuilder_;
}
@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.App)
}
// @@protoc_insertion_point(class_scope:clarifai.api.App)
private static final com.clarifai.grpc.api.App DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.clarifai.grpc.api.App();
}
public static com.clarifai.grpc.api.App getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public App parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new App(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.App getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}