All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.clarifai.grpc.api.Workflow 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;

/**
 * 
 * Workflow
 * 
* * Protobuf type {@code clarifai.api.Workflow} */ public final class Workflow extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:clarifai.api.Workflow) WorkflowOrBuilder { private static final long serialVersionUID = 0L; // Use Workflow.newBuilder() to construct. private Workflow(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Workflow() { id_ = ""; appId_ = ""; nodes_ = java.util.Collections.emptyList(); userId_ = ""; description_ = ""; notes_ = ""; useCases_ = com.google.protobuf.LazyStringArrayList.EMPTY; checkConsents_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Workflow(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Workflow( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); id_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); appId_ = s; break; } case 26: { 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 34: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { nodes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } nodes_.add( input.readMessage(com.clarifai.grpc.api.WorkflowNode.parser(), extensionRegistry)); break; } case 42: { 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 50: { 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 58: { java.lang.String s = input.readStringRequireUtf8(); userId_ = s; break; } case 66: { 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 74: { com.clarifai.grpc.api.WorkflowVersion.Builder subBuilder = null; if (version_ != null) { subBuilder = version_.toBuilder(); } version_ = input.readMessage(com.clarifai.grpc.api.WorkflowVersion.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(version_); version_ = subBuilder.buildPartial(); } break; } case 80: { isStarred_ = input.readBool(); break; } case 88: { starCount_ = input.readInt32(); break; } case 98: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 106: { java.lang.String s = input.readStringRequireUtf8(); notes_ = s; break; } case 114: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000002) != 0)) { useCases_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } useCases_.add(s); break; } case 122: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000004) != 0)) { checkConsents_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000004; } checkConsents_.add(s); break; } case 130: { com.clarifai.grpc.api.BookmarkOrigin.Builder subBuilder = null; if (bookmarkOrigin_ != null) { subBuilder = bookmarkOrigin_.toBuilder(); } bookmarkOrigin_ = input.readMessage(com.clarifai.grpc.api.BookmarkOrigin.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(bookmarkOrigin_); bookmarkOrigin_ = subBuilder.buildPartial(); } break; } case 138: { 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; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { nodes_ = java.util.Collections.unmodifiableList(nodes_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { useCases_ = useCases_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000004) != 0)) { checkConsents_ = checkConsents_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Workflow_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Workflow_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clarifai.grpc.api.Workflow.class, com.clarifai.grpc.api.Workflow.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
   * The workflows's unique 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; } } /** *
   * The workflows's unique id.
   * 
* * 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 APP_ID_FIELD_NUMBER = 2; private volatile java.lang.Object appId_; /** *
   * The app the workflow belongs to
   * 
* * string app_id = 2; * @return The appId. */ @java.lang.Override public java.lang.String getAppId() { java.lang.Object ref = appId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); appId_ = s; return s; } } /** *
   * The app the workflow belongs to
   * 
* * string app_id = 2; * @return The bytes for appId. */ @java.lang.Override public com.google.protobuf.ByteString getAppIdBytes() { java.lang.Object ref = appId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); appId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CREATED_AT_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createdAt_; /** *
   * When the workflow was created. We follow the XXXX timestamp
   * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
   * "2006-01-02T15:04:05.999999Z" so you can expect results like
   * the following from the API:
   * "2017-04-11T21:50:50.223962Z"
   * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ @java.lang.Override public boolean hasCreatedAt() { return createdAt_ != null; } /** *
   * When the workflow was created. We follow the XXXX timestamp
   * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
   * "2006-01-02T15:04:05.999999Z" so you can expect results like
   * the following from the API:
   * "2017-04-11T21:50:50.223962Z"
   * 
* * .google.protobuf.Timestamp created_at = 3; * @return The createdAt. */ @java.lang.Override public com.google.protobuf.Timestamp getCreatedAt() { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } /** *
   * When the workflow was created. We follow the XXXX timestamp
   * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
   * "2006-01-02T15:04:05.999999Z" so you can expect results like
   * the following from the API:
   * "2017-04-11T21:50:50.223962Z"
   * 
* * .google.protobuf.Timestamp created_at = 3; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { return getCreatedAt(); } public static final int NODES_FIELD_NUMBER = 4; private java.util.List nodes_; /** *
   * The list of nodes retrieved from latest workflow version.
   * Each node can specify an input node that it connects to in order to define the graph.
   * 
* * repeated .clarifai.api.WorkflowNode nodes = 4; */ @java.lang.Override public java.util.List getNodesList() { return nodes_; } /** *
   * The list of nodes retrieved from latest workflow version.
   * Each node can specify an input node that it connects to in order to define the graph.
   * 
* * repeated .clarifai.api.WorkflowNode nodes = 4; */ @java.lang.Override public java.util.List getNodesOrBuilderList() { return nodes_; } /** *
   * The list of nodes retrieved from latest workflow version.
   * Each node can specify an input node that it connects to in order to define the graph.
   * 
* * repeated .clarifai.api.WorkflowNode nodes = 4; */ @java.lang.Override public int getNodesCount() { return nodes_.size(); } /** *
   * The list of nodes retrieved from latest workflow version.
   * Each node can specify an input node that it connects to in order to define the graph.
   * 
* * repeated .clarifai.api.WorkflowNode nodes = 4; */ @java.lang.Override public com.clarifai.grpc.api.WorkflowNode getNodes(int index) { return nodes_.get(index); } /** *
   * The list of nodes retrieved from latest workflow version.
   * Each node can specify an input node that it connects to in order to define the graph.
   * 
* * repeated .clarifai.api.WorkflowNode nodes = 4; */ @java.lang.Override public com.clarifai.grpc.api.WorkflowNodeOrBuilder getNodesOrBuilder( int index) { return nodes_.get(index); } public static final int METADATA_FIELD_NUMBER = 5; 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 = 5; * @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 = 5; * @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 = 5; */ @java.lang.Override public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { return getMetadata(); } public static final int VISIBILITY_FIELD_NUMBER = 6; 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 = 6; * @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 = 6; * @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 = 6; */ @java.lang.Override public com.clarifai.grpc.api.VisibilityOrBuilder getVisibilityOrBuilder() { return getVisibility(); } public static final int USER_ID_FIELD_NUMBER = 7; private volatile java.lang.Object userId_; /** *
   * The user the workflow belongs to
   * 
* * string user_id = 7; * @return The userId. */ @java.lang.Override public java.lang.String getUserId() { java.lang.Object ref = userId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userId_ = s; return s; } } /** *
   * The user the workflow belongs to
   * 
* * string user_id = 7; * @return The bytes for userId. */ @java.lang.Override public com.google.protobuf.ByteString getUserIdBytes() { java.lang.Object ref = userId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); userId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MODIFIED_AT_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp modifiedAt_; /** *
   * When the workflow was last modified
   * 
* * .google.protobuf.Timestamp modified_at = 8; * @return Whether the modifiedAt field is set. */ @java.lang.Override public boolean hasModifiedAt() { return modifiedAt_ != null; } /** *
   * When the workflow was last modified
   * 
* * .google.protobuf.Timestamp modified_at = 8; * @return The modifiedAt. */ @java.lang.Override public com.google.protobuf.Timestamp getModifiedAt() { return modifiedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modifiedAt_; } /** *
   * When the workflow was last modified
   * 
* * .google.protobuf.Timestamp modified_at = 8; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getModifiedAtOrBuilder() { return getModifiedAt(); } public static final int VERSION_FIELD_NUMBER = 9; private com.clarifai.grpc.api.WorkflowVersion version_; /** *
   * Info about the workflow version used to return the latest version when listing Workflows.
   * 
* * .clarifai.api.WorkflowVersion version = 9; * @return Whether the version field is set. */ @java.lang.Override public boolean hasVersion() { return version_ != null; } /** *
   * Info about the workflow version used to return the latest version when listing Workflows.
   * 
* * .clarifai.api.WorkflowVersion version = 9; * @return The version. */ @java.lang.Override public com.clarifai.grpc.api.WorkflowVersion getVersion() { return version_ == null ? com.clarifai.grpc.api.WorkflowVersion.getDefaultInstance() : version_; } /** *
   * Info about the workflow version used to return the latest version when listing Workflows.
   * 
* * .clarifai.api.WorkflowVersion version = 9; */ @java.lang.Override public com.clarifai.grpc.api.WorkflowVersionOrBuilder getVersionOrBuilder() { return getVersion(); } public static final int IS_STARRED_FIELD_NUMBER = 10; private boolean isStarred_; /** *
   * Is starred by the requesting user (only showed on get/list requests)
   * Please use PostWorkflowStars/DeleteWorkflowStars endpoints to star/unstar a workflow
   * 
* * bool is_starred = 10; * @return The isStarred. */ @java.lang.Override public boolean getIsStarred() { return isStarred_; } public static final int STAR_COUNT_FIELD_NUMBER = 11; private int starCount_; /** *
   * How many users have starred the workflow (only showed on get/list requests)
   * Computed value, not editable
   * 
* * int32 star_count = 11; * @return The starCount. */ @java.lang.Override public int getStarCount() { return starCount_; } public static final int DESCRIPTION_FIELD_NUMBER = 12; private volatile java.lang.Object description_; /** *
   * Short description about this workflow
   * 
* * string description = 12; * @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 this workflow
   * 
* * string description = 12; * @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 NOTES_FIELD_NUMBER = 13; private volatile java.lang.Object notes_; /** *
   * Notes for the workflow
   * This field should be used for in-depth notes and supports up to 64Kbs.
   * 
* * string notes = 13; * @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 workflow
   * This field should be used for in-depth notes and supports up to 64Kbs.
   * 
* * string notes = 13; * @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 USE_CASES_FIELD_NUMBER = 14; private com.google.protobuf.LazyStringList useCases_; /** *
   * Tags from use_cases category
   * 
* * repeated string use_cases = 14 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @return A list containing the useCases. */ public com.google.protobuf.ProtocolStringList getUseCasesList() { return useCases_; } /** *
   * Tags from use_cases category
   * 
* * repeated string use_cases = 14 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @return The count of useCases. */ public int getUseCasesCount() { return useCases_.size(); } /** *
   * Tags from use_cases category
   * 
* * repeated string use_cases = 14 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param index The index of the element to return. * @return The useCases at the given index. */ public java.lang.String getUseCases(int index) { return useCases_.get(index); } /** *
   * Tags from use_cases category
   * 
* * repeated string use_cases = 14 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param index The index of the value to return. * @return The bytes of the useCases at the given index. */ public com.google.protobuf.ByteString getUseCasesBytes(int index) { return useCases_.getByteString(index); } public static final int CHECK_CONSENTS_FIELD_NUMBER = 15; private com.google.protobuf.LazyStringList checkConsents_; /** *
   * Tags for check consents
   * 
* * repeated string check_consents = 15 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @return A list containing the checkConsents. */ public com.google.protobuf.ProtocolStringList getCheckConsentsList() { return checkConsents_; } /** *
   * Tags for check consents
   * 
* * repeated string check_consents = 15 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @return The count of checkConsents. */ public int getCheckConsentsCount() { return checkConsents_.size(); } /** *
   * Tags for check consents
   * 
* * repeated string check_consents = 15 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param index The index of the element to return. * @return The checkConsents at the given index. */ public java.lang.String getCheckConsents(int index) { return checkConsents_.get(index); } /** *
   * Tags for check consents
   * 
* * repeated string check_consents = 15 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param index The index of the value to return. * @return The bytes of the checkConsents at the given index. */ public com.google.protobuf.ByteString getCheckConsentsBytes(int index) { return checkConsents_.getByteString(index); } public static final int BOOKMARK_ORIGIN_FIELD_NUMBER = 16; private com.clarifai.grpc.api.BookmarkOrigin bookmarkOrigin_; /** *
   * bookmark info. When set, this workflow is a bookmarked workflow of this app.
   * Info in this field will allow you to find/access original workflow.
   * 
* * .clarifai.api.BookmarkOrigin bookmark_origin = 16; * @return Whether the bookmarkOrigin field is set. */ @java.lang.Override public boolean hasBookmarkOrigin() { return bookmarkOrigin_ != null; } /** *
   * bookmark info. When set, this workflow is a bookmarked workflow of this app.
   * Info in this field will allow you to find/access original workflow.
   * 
* * .clarifai.api.BookmarkOrigin bookmark_origin = 16; * @return The bookmarkOrigin. */ @java.lang.Override public com.clarifai.grpc.api.BookmarkOrigin getBookmarkOrigin() { return bookmarkOrigin_ == null ? com.clarifai.grpc.api.BookmarkOrigin.getDefaultInstance() : bookmarkOrigin_; } /** *
   * bookmark info. When set, this workflow is a bookmarked workflow of this app.
   * Info in this field will allow you to find/access original workflow.
   * 
* * .clarifai.api.BookmarkOrigin bookmark_origin = 16; */ @java.lang.Override public com.clarifai.grpc.api.BookmarkOriginOrBuilder getBookmarkOriginOrBuilder() { return getBookmarkOrigin(); } public static final int IMAGE_FIELD_NUMBER = 17; private com.clarifai.grpc.api.Image image_; /** *
   * Representative image for this workflow
   * 
* * .clarifai.api.Image image = 17; * @return Whether the image field is set. */ @java.lang.Override public boolean hasImage() { return image_ != null; } /** *
   * Representative image for this workflow
   * 
* * .clarifai.api.Image image = 17; * @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 workflow
   * 
* * .clarifai.api.Image image = 17; */ @java.lang.Override public com.clarifai.grpc.api.ImageOrBuilder getImageOrBuilder() { return getImage(); } 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(appId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, appId_); } if (createdAt_ != null) { output.writeMessage(3, getCreatedAt()); } for (int i = 0; i < nodes_.size(); i++) { output.writeMessage(4, nodes_.get(i)); } if (metadata_ != null) { output.writeMessage(5, getMetadata()); } if (visibility_ != null) { output.writeMessage(6, getVisibility()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, userId_); } if (modifiedAt_ != null) { output.writeMessage(8, getModifiedAt()); } if (version_ != null) { output.writeMessage(9, getVersion()); } if (isStarred_ != false) { output.writeBool(10, isStarred_); } if (starCount_ != 0) { output.writeInt32(11, starCount_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, description_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(notes_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, notes_); } for (int i = 0; i < useCases_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, useCases_.getRaw(i)); } for (int i = 0; i < checkConsents_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 15, checkConsents_.getRaw(i)); } if (bookmarkOrigin_ != null) { output.writeMessage(16, getBookmarkOrigin()); } if (image_ != null) { output.writeMessage(17, getImage()); } 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(appId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, appId_); } if (createdAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getCreatedAt()); } for (int i = 0; i < nodes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, nodes_.get(i)); } if (metadata_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getMetadata()); } if (visibility_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getVisibility()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, userId_); } if (modifiedAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getModifiedAt()); } if (version_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getVersion()); } if (isStarred_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(10, isStarred_); } if (starCount_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(11, starCount_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, description_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(notes_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, notes_); } { int dataSize = 0; for (int i = 0; i < useCases_.size(); i++) { dataSize += computeStringSizeNoTag(useCases_.getRaw(i)); } size += dataSize; size += 1 * getUseCasesList().size(); } { int dataSize = 0; for (int i = 0; i < checkConsents_.size(); i++) { dataSize += computeStringSizeNoTag(checkConsents_.getRaw(i)); } size += dataSize; size += 1 * getCheckConsentsList().size(); } if (bookmarkOrigin_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(16, getBookmarkOrigin()); } if (image_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(17, getImage()); } 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.Workflow)) { return super.equals(obj); } com.clarifai.grpc.api.Workflow other = (com.clarifai.grpc.api.Workflow) obj; if (!getId() .equals(other.getId())) return false; if (!getAppId() .equals(other.getAppId())) return false; if (hasCreatedAt() != other.hasCreatedAt()) return false; if (hasCreatedAt()) { if (!getCreatedAt() .equals(other.getCreatedAt())) return false; } if (!getNodesList() .equals(other.getNodesList())) return false; if (hasMetadata() != other.hasMetadata()) return false; if (hasMetadata()) { if (!getMetadata() .equals(other.getMetadata())) return false; } if (hasVisibility() != other.hasVisibility()) return false; if (hasVisibility()) { if (!getVisibility() .equals(other.getVisibility())) return false; } if (!getUserId() .equals(other.getUserId())) return false; if (hasModifiedAt() != other.hasModifiedAt()) return false; if (hasModifiedAt()) { if (!getModifiedAt() .equals(other.getModifiedAt())) return false; } if (hasVersion() != other.hasVersion()) return false; if (hasVersion()) { if (!getVersion() .equals(other.getVersion())) return false; } if (getIsStarred() != other.getIsStarred()) return false; if (getStarCount() != other.getStarCount()) return false; if (!getDescription() .equals(other.getDescription())) return false; if (!getNotes() .equals(other.getNotes())) return false; if (!getUseCasesList() .equals(other.getUseCasesList())) return false; if (!getCheckConsentsList() .equals(other.getCheckConsentsList())) return false; if (hasBookmarkOrigin() != other.hasBookmarkOrigin()) return false; if (hasBookmarkOrigin()) { if (!getBookmarkOrigin() .equals(other.getBookmarkOrigin())) return false; } if (hasImage() != other.hasImage()) return false; if (hasImage()) { if (!getImage() .equals(other.getImage())) 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) + APP_ID_FIELD_NUMBER; hash = (53 * hash) + getAppId().hashCode(); if (hasCreatedAt()) { hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; hash = (53 * hash) + getCreatedAt().hashCode(); } if (getNodesCount() > 0) { hash = (37 * hash) + NODES_FIELD_NUMBER; hash = (53 * hash) + getNodesList().hashCode(); } if (hasMetadata()) { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + getMetadata().hashCode(); } if (hasVisibility()) { hash = (37 * hash) + VISIBILITY_FIELD_NUMBER; hash = (53 * hash) + getVisibility().hashCode(); } hash = (37 * hash) + USER_ID_FIELD_NUMBER; hash = (53 * hash) + getUserId().hashCode(); if (hasModifiedAt()) { hash = (37 * hash) + MODIFIED_AT_FIELD_NUMBER; hash = (53 * hash) + getModifiedAt().hashCode(); } if (hasVersion()) { hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().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) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + NOTES_FIELD_NUMBER; hash = (53 * hash) + getNotes().hashCode(); if (getUseCasesCount() > 0) { hash = (37 * hash) + USE_CASES_FIELD_NUMBER; hash = (53 * hash) + getUseCasesList().hashCode(); } if (getCheckConsentsCount() > 0) { hash = (37 * hash) + CHECK_CONSENTS_FIELD_NUMBER; hash = (53 * hash) + getCheckConsentsList().hashCode(); } if (hasBookmarkOrigin()) { hash = (37 * hash) + BOOKMARK_ORIGIN_FIELD_NUMBER; hash = (53 * hash) + getBookmarkOrigin().hashCode(); } if (hasImage()) { hash = (37 * hash) + IMAGE_FIELD_NUMBER; hash = (53 * hash) + getImage().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.clarifai.grpc.api.Workflow parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.Workflow 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.Workflow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.Workflow 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.Workflow parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.Workflow parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clarifai.grpc.api.Workflow parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clarifai.grpc.api.Workflow 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.Workflow parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.clarifai.grpc.api.Workflow 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.Workflow parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clarifai.grpc.api.Workflow 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.Workflow 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; } /** *
   * Workflow
   * 
* * Protobuf type {@code clarifai.api.Workflow} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:clarifai.api.Workflow) com.clarifai.grpc.api.WorkflowOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Workflow_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Workflow_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clarifai.grpc.api.Workflow.class, com.clarifai.grpc.api.Workflow.Builder.class); } // Construct using com.clarifai.grpc.api.Workflow.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getNodesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); id_ = ""; appId_ = ""; if (createdAtBuilder_ == null) { createdAt_ = null; } else { createdAt_ = null; createdAtBuilder_ = null; } if (nodesBuilder_ == null) { nodes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { nodesBuilder_.clear(); } if (metadataBuilder_ == null) { metadata_ = null; } else { metadata_ = null; metadataBuilder_ = null; } if (visibilityBuilder_ == null) { visibility_ = null; } else { visibility_ = null; visibilityBuilder_ = null; } userId_ = ""; if (modifiedAtBuilder_ == null) { modifiedAt_ = null; } else { modifiedAt_ = null; modifiedAtBuilder_ = null; } if (versionBuilder_ == null) { version_ = null; } else { version_ = null; versionBuilder_ = null; } isStarred_ = false; starCount_ = 0; description_ = ""; notes_ = ""; useCases_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); checkConsents_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); if (bookmarkOriginBuilder_ == null) { bookmarkOrigin_ = null; } else { bookmarkOrigin_ = null; bookmarkOriginBuilder_ = null; } if (imageBuilder_ == null) { image_ = null; } else { image_ = null; imageBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Workflow_descriptor; } @java.lang.Override public com.clarifai.grpc.api.Workflow getDefaultInstanceForType() { return com.clarifai.grpc.api.Workflow.getDefaultInstance(); } @java.lang.Override public com.clarifai.grpc.api.Workflow build() { com.clarifai.grpc.api.Workflow result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.clarifai.grpc.api.Workflow buildPartial() { com.clarifai.grpc.api.Workflow result = new com.clarifai.grpc.api.Workflow(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.appId_ = appId_; if (createdAtBuilder_ == null) { result.createdAt_ = createdAt_; } else { result.createdAt_ = createdAtBuilder_.build(); } if (nodesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { nodes_ = java.util.Collections.unmodifiableList(nodes_); bitField0_ = (bitField0_ & ~0x00000001); } result.nodes_ = nodes_; } else { result.nodes_ = nodesBuilder_.build(); } if (metadataBuilder_ == null) { result.metadata_ = metadata_; } else { result.metadata_ = metadataBuilder_.build(); } if (visibilityBuilder_ == null) { result.visibility_ = visibility_; } else { result.visibility_ = visibilityBuilder_.build(); } result.userId_ = userId_; if (modifiedAtBuilder_ == null) { result.modifiedAt_ = modifiedAt_; } else { result.modifiedAt_ = modifiedAtBuilder_.build(); } if (versionBuilder_ == null) { result.version_ = version_; } else { result.version_ = versionBuilder_.build(); } result.isStarred_ = isStarred_; result.starCount_ = starCount_; result.description_ = description_; result.notes_ = notes_; if (((bitField0_ & 0x00000002) != 0)) { useCases_ = useCases_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.useCases_ = useCases_; if (((bitField0_ & 0x00000004) != 0)) { checkConsents_ = checkConsents_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000004); } result.checkConsents_ = checkConsents_; if (bookmarkOriginBuilder_ == null) { result.bookmarkOrigin_ = bookmarkOrigin_; } else { result.bookmarkOrigin_ = bookmarkOriginBuilder_.build(); } if (imageBuilder_ == null) { result.image_ = image_; } else { result.image_ = imageBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.clarifai.grpc.api.Workflow) { return mergeFrom((com.clarifai.grpc.api.Workflow)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.clarifai.grpc.api.Workflow other) { if (other == com.clarifai.grpc.api.Workflow.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getAppId().isEmpty()) { appId_ = other.appId_; onChanged(); } if (other.hasCreatedAt()) { mergeCreatedAt(other.getCreatedAt()); } if (nodesBuilder_ == null) { if (!other.nodes_.isEmpty()) { if (nodes_.isEmpty()) { nodes_ = other.nodes_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureNodesIsMutable(); nodes_.addAll(other.nodes_); } onChanged(); } } else { if (!other.nodes_.isEmpty()) { if (nodesBuilder_.isEmpty()) { nodesBuilder_.dispose(); nodesBuilder_ = null; nodes_ = other.nodes_; bitField0_ = (bitField0_ & ~0x00000001); nodesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getNodesFieldBuilder() : null; } else { nodesBuilder_.addAllMessages(other.nodes_); } } } if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } if (other.hasVisibility()) { mergeVisibility(other.getVisibility()); } if (!other.getUserId().isEmpty()) { userId_ = other.userId_; onChanged(); } if (other.hasModifiedAt()) { mergeModifiedAt(other.getModifiedAt()); } if (other.hasVersion()) { mergeVersion(other.getVersion()); } if (other.getIsStarred() != false) { setIsStarred(other.getIsStarred()); } if (other.getStarCount() != 0) { setStarCount(other.getStarCount()); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } if (!other.getNotes().isEmpty()) { notes_ = other.notes_; onChanged(); } if (!other.useCases_.isEmpty()) { if (useCases_.isEmpty()) { useCases_ = other.useCases_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureUseCasesIsMutable(); useCases_.addAll(other.useCases_); } onChanged(); } if (!other.checkConsents_.isEmpty()) { if (checkConsents_.isEmpty()) { checkConsents_ = other.checkConsents_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureCheckConsentsIsMutable(); checkConsents_.addAll(other.checkConsents_); } onChanged(); } if (other.hasBookmarkOrigin()) { mergeBookmarkOrigin(other.getBookmarkOrigin()); } if (other.hasImage()) { mergeImage(other.getImage()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.clarifai.grpc.api.Workflow parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.clarifai.grpc.api.Workflow) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object id_ = ""; /** *
     * The workflows's unique 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; } } /** *
     * The workflows's unique id.
     * 
* * string id = 1; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The workflows's unique id.
     * 
* * string id = 1; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** *
     * The workflows's unique id.
     * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
     * The workflows's unique id.
     * 
* * 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 appId_ = ""; /** *
     * The app the workflow belongs to
     * 
* * string app_id = 2; * @return The appId. */ public java.lang.String getAppId() { java.lang.Object ref = appId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); appId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The app the workflow belongs to
     * 
* * string app_id = 2; * @return The bytes for appId. */ public com.google.protobuf.ByteString getAppIdBytes() { java.lang.Object ref = appId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); appId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The app the workflow belongs to
     * 
* * string app_id = 2; * @param value The appId to set. * @return This builder for chaining. */ public Builder setAppId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } appId_ = value; onChanged(); return this; } /** *
     * The app the workflow belongs to
     * 
* * string app_id = 2; * @return This builder for chaining. */ public Builder clearAppId() { appId_ = getDefaultInstance().getAppId(); onChanged(); return this; } /** *
     * The app the workflow belongs to
     * 
* * string app_id = 2; * @param value The bytes for appId to set. * @return This builder for chaining. */ public Builder setAppIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); appId_ = value; onChanged(); return this; } private com.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 workflow was created. We follow the XXXX timestamp
     * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
     * "2006-01-02T15:04:05.999999Z" so you can expect results like
     * the following from the API:
     * "2017-04-11T21:50:50.223962Z"
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ public boolean hasCreatedAt() { return createdAtBuilder_ != null || createdAt_ != null; } /** *
     * When the workflow was created. We follow the XXXX timestamp
     * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
     * "2006-01-02T15:04:05.999999Z" so you can expect results like
     * the following from the API:
     * "2017-04-11T21:50:50.223962Z"
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return The createdAt. */ public com.google.protobuf.Timestamp getCreatedAt() { if (createdAtBuilder_ == null) { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } else { return createdAtBuilder_.getMessage(); } } /** *
     * When the workflow was created. We follow the XXXX timestamp
     * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
     * "2006-01-02T15:04:05.999999Z" so you can expect results like
     * the following from the API:
     * "2017-04-11T21:50:50.223962Z"
     * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder setCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createdAt_ = value; onChanged(); } else { createdAtBuilder_.setMessage(value); } return this; } /** *
     * When the workflow was created. We follow the XXXX timestamp
     * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
     * "2006-01-02T15:04:05.999999Z" so you can expect results like
     * the following from the API:
     * "2017-04-11T21:50:50.223962Z"
     * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder setCreatedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (createdAtBuilder_ == null) { createdAt_ = builderForValue.build(); onChanged(); } else { createdAtBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * When the workflow was created. We follow the XXXX timestamp
     * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
     * "2006-01-02T15:04:05.999999Z" so you can expect results like
     * the following from the API:
     * "2017-04-11T21:50:50.223962Z"
     * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (createdAt_ != null) { createdAt_ = com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial(); } else { createdAt_ = value; } onChanged(); } else { createdAtBuilder_.mergeFrom(value); } return this; } /** *
     * When the workflow was created. We follow the XXXX timestamp
     * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
     * "2006-01-02T15:04:05.999999Z" so you can expect results like
     * the following from the API:
     * "2017-04-11T21:50:50.223962Z"
     * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder clearCreatedAt() { if (createdAtBuilder_ == null) { createdAt_ = null; onChanged(); } else { createdAt_ = null; createdAtBuilder_ = null; } return this; } /** *
     * When the workflow was created. We follow the XXXX timestamp
     * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
     * "2006-01-02T15:04:05.999999Z" so you can expect results like
     * the following from the API:
     * "2017-04-11T21:50:50.223962Z"
     * 
* * .google.protobuf.Timestamp created_at = 3; */ public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { onChanged(); return getCreatedAtFieldBuilder().getBuilder(); } /** *
     * When the workflow was created. We follow the XXXX timestamp
     * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
     * "2006-01-02T15:04:05.999999Z" so you can expect results like
     * the following from the API:
     * "2017-04-11T21:50:50.223962Z"
     * 
* * .google.protobuf.Timestamp created_at = 3; */ public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { if (createdAtBuilder_ != null) { return createdAtBuilder_.getMessageOrBuilder(); } else { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } } /** *
     * When the workflow was created. We follow the XXXX timestamp
     * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
     * "2006-01-02T15:04:05.999999Z" so you can expect results like
     * the following from the API:
     * "2017-04-11T21:50:50.223962Z"
     * 
* * .google.protobuf.Timestamp created_at = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreatedAtFieldBuilder() { if (createdAtBuilder_ == null) { createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCreatedAt(), getParentForChildren(), isClean()); createdAt_ = null; } return createdAtBuilder_; } private java.util.List nodes_ = java.util.Collections.emptyList(); private void ensureNodesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { nodes_ = new java.util.ArrayList(nodes_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.WorkflowNode, com.clarifai.grpc.api.WorkflowNode.Builder, com.clarifai.grpc.api.WorkflowNodeOrBuilder> nodesBuilder_; /** *
     * The list of nodes retrieved from latest workflow version.
     * Each node can specify an input node that it connects to in order to define the graph.
     * 
* * repeated .clarifai.api.WorkflowNode nodes = 4; */ public java.util.List getNodesList() { if (nodesBuilder_ == null) { return java.util.Collections.unmodifiableList(nodes_); } else { return nodesBuilder_.getMessageList(); } } /** *
     * The list of nodes retrieved from latest workflow version.
     * Each node can specify an input node that it connects to in order to define the graph.
     * 
* * repeated .clarifai.api.WorkflowNode nodes = 4; */ public int getNodesCount() { if (nodesBuilder_ == null) { return nodes_.size(); } else { return nodesBuilder_.getCount(); } } /** *
     * The list of nodes retrieved from latest workflow version.
     * Each node can specify an input node that it connects to in order to define the graph.
     * 
* * repeated .clarifai.api.WorkflowNode nodes = 4; */ public com.clarifai.grpc.api.WorkflowNode getNodes(int index) { if (nodesBuilder_ == null) { return nodes_.get(index); } else { return nodesBuilder_.getMessage(index); } } /** *
     * The list of nodes retrieved from latest workflow version.
     * Each node can specify an input node that it connects to in order to define the graph.
     * 
* * repeated .clarifai.api.WorkflowNode nodes = 4; */ public Builder setNodes( int index, com.clarifai.grpc.api.WorkflowNode value) { if (nodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNodesIsMutable(); nodes_.set(index, value); onChanged(); } else { nodesBuilder_.setMessage(index, value); } return this; } /** *
     * The list of nodes retrieved from latest workflow version.
     * Each node can specify an input node that it connects to in order to define the graph.
     * 
* * repeated .clarifai.api.WorkflowNode nodes = 4; */ public Builder setNodes( int index, com.clarifai.grpc.api.WorkflowNode.Builder builderForValue) { if (nodesBuilder_ == null) { ensureNodesIsMutable(); nodes_.set(index, builderForValue.build()); onChanged(); } else { nodesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * The list of nodes retrieved from latest workflow version.
     * Each node can specify an input node that it connects to in order to define the graph.
     * 
* * repeated .clarifai.api.WorkflowNode nodes = 4; */ public Builder addNodes(com.clarifai.grpc.api.WorkflowNode value) { if (nodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNodesIsMutable(); nodes_.add(value); onChanged(); } else { nodesBuilder_.addMessage(value); } return this; } /** *
     * The list of nodes retrieved from latest workflow version.
     * Each node can specify an input node that it connects to in order to define the graph.
     * 
* * repeated .clarifai.api.WorkflowNode nodes = 4; */ public Builder addNodes( int index, com.clarifai.grpc.api.WorkflowNode value) { if (nodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNodesIsMutable(); nodes_.add(index, value); onChanged(); } else { nodesBuilder_.addMessage(index, value); } return this; } /** *
     * The list of nodes retrieved from latest workflow version.
     * Each node can specify an input node that it connects to in order to define the graph.
     * 
* * repeated .clarifai.api.WorkflowNode nodes = 4; */ public Builder addNodes( com.clarifai.grpc.api.WorkflowNode.Builder builderForValue) { if (nodesBuilder_ == null) { ensureNodesIsMutable(); nodes_.add(builderForValue.build()); onChanged(); } else { nodesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * The list of nodes retrieved from latest workflow version.
     * Each node can specify an input node that it connects to in order to define the graph.
     * 
* * repeated .clarifai.api.WorkflowNode nodes = 4; */ public Builder addNodes( int index, com.clarifai.grpc.api.WorkflowNode.Builder builderForValue) { if (nodesBuilder_ == null) { ensureNodesIsMutable(); nodes_.add(index, builderForValue.build()); onChanged(); } else { nodesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * The list of nodes retrieved from latest workflow version.
     * Each node can specify an input node that it connects to in order to define the graph.
     * 
* * repeated .clarifai.api.WorkflowNode nodes = 4; */ public Builder addAllNodes( java.lang.Iterable values) { if (nodesBuilder_ == null) { ensureNodesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, nodes_); onChanged(); } else { nodesBuilder_.addAllMessages(values); } return this; } /** *
     * The list of nodes retrieved from latest workflow version.
     * Each node can specify an input node that it connects to in order to define the graph.
     * 
* * repeated .clarifai.api.WorkflowNode nodes = 4; */ public Builder clearNodes() { if (nodesBuilder_ == null) { nodes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { nodesBuilder_.clear(); } return this; } /** *
     * The list of nodes retrieved from latest workflow version.
     * Each node can specify an input node that it connects to in order to define the graph.
     * 
* * repeated .clarifai.api.WorkflowNode nodes = 4; */ public Builder removeNodes(int index) { if (nodesBuilder_ == null) { ensureNodesIsMutable(); nodes_.remove(index); onChanged(); } else { nodesBuilder_.remove(index); } return this; } /** *
     * The list of nodes retrieved from latest workflow version.
     * Each node can specify an input node that it connects to in order to define the graph.
     * 
* * repeated .clarifai.api.WorkflowNode nodes = 4; */ public com.clarifai.grpc.api.WorkflowNode.Builder getNodesBuilder( int index) { return getNodesFieldBuilder().getBuilder(index); } /** *
     * The list of nodes retrieved from latest workflow version.
     * Each node can specify an input node that it connects to in order to define the graph.
     * 
* * repeated .clarifai.api.WorkflowNode nodes = 4; */ public com.clarifai.grpc.api.WorkflowNodeOrBuilder getNodesOrBuilder( int index) { if (nodesBuilder_ == null) { return nodes_.get(index); } else { return nodesBuilder_.getMessageOrBuilder(index); } } /** *
     * The list of nodes retrieved from latest workflow version.
     * Each node can specify an input node that it connects to in order to define the graph.
     * 
* * repeated .clarifai.api.WorkflowNode nodes = 4; */ public java.util.List getNodesOrBuilderList() { if (nodesBuilder_ != null) { return nodesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(nodes_); } } /** *
     * The list of nodes retrieved from latest workflow version.
     * Each node can specify an input node that it connects to in order to define the graph.
     * 
* * repeated .clarifai.api.WorkflowNode nodes = 4; */ public com.clarifai.grpc.api.WorkflowNode.Builder addNodesBuilder() { return getNodesFieldBuilder().addBuilder( com.clarifai.grpc.api.WorkflowNode.getDefaultInstance()); } /** *
     * The list of nodes retrieved from latest workflow version.
     * Each node can specify an input node that it connects to in order to define the graph.
     * 
* * repeated .clarifai.api.WorkflowNode nodes = 4; */ public com.clarifai.grpc.api.WorkflowNode.Builder addNodesBuilder( int index) { return getNodesFieldBuilder().addBuilder( index, com.clarifai.grpc.api.WorkflowNode.getDefaultInstance()); } /** *
     * The list of nodes retrieved from latest workflow version.
     * Each node can specify an input node that it connects to in order to define the graph.
     * 
* * repeated .clarifai.api.WorkflowNode nodes = 4; */ public java.util.List getNodesBuilderList() { return getNodesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.WorkflowNode, com.clarifai.grpc.api.WorkflowNode.Builder, com.clarifai.grpc.api.WorkflowNodeOrBuilder> getNodesFieldBuilder() { if (nodesBuilder_ == null) { nodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.WorkflowNode, com.clarifai.grpc.api.WorkflowNode.Builder, com.clarifai.grpc.api.WorkflowNodeOrBuilder>( nodes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); nodes_ = null; } return nodesBuilder_; } 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 = 5; * @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 = 5; * @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 = 5; */ 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 = 5; */ 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 = 5; */ 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 = 5; */ 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 = 5; */ 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 = 5; */ 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 = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( getMetadata(), getParentForChildren(), isClean()); metadata_ = null; } return metadataBuilder_; } private com.clarifai.grpc.api.Visibility visibility_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Visibility, com.clarifai.grpc.api.Visibility.Builder, com.clarifai.grpc.api.VisibilityOrBuilder> visibilityBuilder_; /** *
     * The visibility field represents whether this message is privately/publicly visible.
     * To be visible to the public the App that contains it AND the User that contains the App must
     * also be publicly visible.
     * 
* * .clarifai.api.Visibility visibility = 6; * @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 = 6; * @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 = 6; */ 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 = 6; */ 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 = 6; */ 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 = 6; */ 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 = 6; */ 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 = 6; */ 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 = 6; */ 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 userId_ = ""; /** *
     * The user the workflow belongs to
     * 
* * string user_id = 7; * @return The userId. */ public java.lang.String getUserId() { java.lang.Object ref = userId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The user the workflow belongs to
     * 
* * string user_id = 7; * @return The bytes for userId. */ public com.google.protobuf.ByteString getUserIdBytes() { java.lang.Object ref = userId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); userId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The user the workflow belongs to
     * 
* * string user_id = 7; * @param value The userId to set. * @return This builder for chaining. */ public Builder setUserId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } userId_ = value; onChanged(); return this; } /** *
     * The user the workflow belongs to
     * 
* * string user_id = 7; * @return This builder for chaining. */ public Builder clearUserId() { userId_ = getDefaultInstance().getUserId(); onChanged(); return this; } /** *
     * The user the workflow belongs to
     * 
* * string user_id = 7; * @param value The bytes for userId to set. * @return This builder for chaining. */ public Builder setUserIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); userId_ = value; onChanged(); return this; } private com.google.protobuf.Timestamp modifiedAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> modifiedAtBuilder_; /** *
     * When the workflow was last modified
     * 
* * .google.protobuf.Timestamp modified_at = 8; * @return Whether the modifiedAt field is set. */ public boolean hasModifiedAt() { return modifiedAtBuilder_ != null || modifiedAt_ != null; } /** *
     * When the workflow was last modified
     * 
* * .google.protobuf.Timestamp modified_at = 8; * @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 workflow was last modified
     * 
* * .google.protobuf.Timestamp modified_at = 8; */ 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 workflow was last modified
     * 
* * .google.protobuf.Timestamp modified_at = 8; */ 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 workflow was last modified
     * 
* * .google.protobuf.Timestamp modified_at = 8; */ 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 workflow was last modified
     * 
* * .google.protobuf.Timestamp modified_at = 8; */ public Builder clearModifiedAt() { if (modifiedAtBuilder_ == null) { modifiedAt_ = null; onChanged(); } else { modifiedAt_ = null; modifiedAtBuilder_ = null; } return this; } /** *
     * When the workflow was last modified
     * 
* * .google.protobuf.Timestamp modified_at = 8; */ public com.google.protobuf.Timestamp.Builder getModifiedAtBuilder() { onChanged(); return getModifiedAtFieldBuilder().getBuilder(); } /** *
     * When the workflow was last modified
     * 
* * .google.protobuf.Timestamp modified_at = 8; */ public com.google.protobuf.TimestampOrBuilder getModifiedAtOrBuilder() { if (modifiedAtBuilder_ != null) { return modifiedAtBuilder_.getMessageOrBuilder(); } else { return modifiedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modifiedAt_; } } /** *
     * When the workflow was last modified
     * 
* * .google.protobuf.Timestamp modified_at = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getModifiedAtFieldBuilder() { if (modifiedAtBuilder_ == null) { modifiedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getModifiedAt(), getParentForChildren(), isClean()); modifiedAt_ = null; } return modifiedAtBuilder_; } private com.clarifai.grpc.api.WorkflowVersion version_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.WorkflowVersion, com.clarifai.grpc.api.WorkflowVersion.Builder, com.clarifai.grpc.api.WorkflowVersionOrBuilder> versionBuilder_; /** *
     * Info about the workflow version used to return the latest version when listing Workflows.
     * 
* * .clarifai.api.WorkflowVersion version = 9; * @return Whether the version field is set. */ public boolean hasVersion() { return versionBuilder_ != null || version_ != null; } /** *
     * Info about the workflow version used to return the latest version when listing Workflows.
     * 
* * .clarifai.api.WorkflowVersion version = 9; * @return The version. */ public com.clarifai.grpc.api.WorkflowVersion getVersion() { if (versionBuilder_ == null) { return version_ == null ? com.clarifai.grpc.api.WorkflowVersion.getDefaultInstance() : version_; } else { return versionBuilder_.getMessage(); } } /** *
     * Info about the workflow version used to return the latest version when listing Workflows.
     * 
* * .clarifai.api.WorkflowVersion version = 9; */ public Builder setVersion(com.clarifai.grpc.api.WorkflowVersion value) { if (versionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } version_ = value; onChanged(); } else { versionBuilder_.setMessage(value); } return this; } /** *
     * Info about the workflow version used to return the latest version when listing Workflows.
     * 
* * .clarifai.api.WorkflowVersion version = 9; */ public Builder setVersion( com.clarifai.grpc.api.WorkflowVersion.Builder builderForValue) { if (versionBuilder_ == null) { version_ = builderForValue.build(); onChanged(); } else { versionBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Info about the workflow version used to return the latest version when listing Workflows.
     * 
* * .clarifai.api.WorkflowVersion version = 9; */ public Builder mergeVersion(com.clarifai.grpc.api.WorkflowVersion value) { if (versionBuilder_ == null) { if (version_ != null) { version_ = com.clarifai.grpc.api.WorkflowVersion.newBuilder(version_).mergeFrom(value).buildPartial(); } else { version_ = value; } onChanged(); } else { versionBuilder_.mergeFrom(value); } return this; } /** *
     * Info about the workflow version used to return the latest version when listing Workflows.
     * 
* * .clarifai.api.WorkflowVersion version = 9; */ public Builder clearVersion() { if (versionBuilder_ == null) { version_ = null; onChanged(); } else { version_ = null; versionBuilder_ = null; } return this; } /** *
     * Info about the workflow version used to return the latest version when listing Workflows.
     * 
* * .clarifai.api.WorkflowVersion version = 9; */ public com.clarifai.grpc.api.WorkflowVersion.Builder getVersionBuilder() { onChanged(); return getVersionFieldBuilder().getBuilder(); } /** *
     * Info about the workflow version used to return the latest version when listing Workflows.
     * 
* * .clarifai.api.WorkflowVersion version = 9; */ public com.clarifai.grpc.api.WorkflowVersionOrBuilder getVersionOrBuilder() { if (versionBuilder_ != null) { return versionBuilder_.getMessageOrBuilder(); } else { return version_ == null ? com.clarifai.grpc.api.WorkflowVersion.getDefaultInstance() : version_; } } /** *
     * Info about the workflow version used to return the latest version when listing Workflows.
     * 
* * .clarifai.api.WorkflowVersion version = 9; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.WorkflowVersion, com.clarifai.grpc.api.WorkflowVersion.Builder, com.clarifai.grpc.api.WorkflowVersionOrBuilder> getVersionFieldBuilder() { if (versionBuilder_ == null) { versionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.WorkflowVersion, com.clarifai.grpc.api.WorkflowVersion.Builder, com.clarifai.grpc.api.WorkflowVersionOrBuilder>( getVersion(), getParentForChildren(), isClean()); version_ = null; } return versionBuilder_; } private boolean isStarred_ ; /** *
     * Is starred by the requesting user (only showed on get/list requests)
     * Please use PostWorkflowStars/DeleteWorkflowStars endpoints to star/unstar a workflow
     * 
* * bool is_starred = 10; * @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 PostWorkflowStars/DeleteWorkflowStars endpoints to star/unstar a workflow
     * 
* * bool is_starred = 10; * @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 PostWorkflowStars/DeleteWorkflowStars endpoints to star/unstar a workflow
     * 
* * bool is_starred = 10; * @return This builder for chaining. */ public Builder clearIsStarred() { isStarred_ = false; onChanged(); return this; } private int starCount_ ; /** *
     * How many users have starred the workflow (only showed on get/list requests)
     * Computed value, not editable
     * 
* * int32 star_count = 11; * @return The starCount. */ @java.lang.Override public int getStarCount() { return starCount_; } /** *
     * How many users have starred the workflow (only showed on get/list requests)
     * Computed value, not editable
     * 
* * int32 star_count = 11; * @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 workflow (only showed on get/list requests)
     * Computed value, not editable
     * 
* * int32 star_count = 11; * @return This builder for chaining. */ public Builder clearStarCount() { starCount_ = 0; onChanged(); return this; } private java.lang.Object description_ = ""; /** *
     * Short description about this workflow
     * 
* * string description = 12; * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Short description about this workflow
     * 
* * string description = 12; * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Short description about this workflow
     * 
* * string description = 12; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); return this; } /** *
     * Short description about this workflow
     * 
* * string description = 12; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
     * Short description about this workflow
     * 
* * string description = 12; * @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 java.lang.Object notes_ = ""; /** *
     * Notes for the workflow
     * This field should be used for in-depth notes and supports up to 64Kbs.
     * 
* * string notes = 13; * @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 workflow
     * This field should be used for in-depth notes and supports up to 64Kbs.
     * 
* * string notes = 13; * @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 workflow
     * This field should be used for in-depth notes and supports up to 64Kbs.
     * 
* * string notes = 13; * @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 workflow
     * This field should be used for in-depth notes and supports up to 64Kbs.
     * 
* * string notes = 13; * @return This builder for chaining. */ public Builder clearNotes() { notes_ = getDefaultInstance().getNotes(); onChanged(); return this; } /** *
     * Notes for the workflow
     * This field should be used for in-depth notes and supports up to 64Kbs.
     * 
* * string notes = 13; * @param value The bytes for notes to set. * @return This builder for chaining. */ public Builder setNotesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); notes_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList useCases_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUseCasesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { useCases_ = new com.google.protobuf.LazyStringArrayList(useCases_); bitField0_ |= 0x00000002; } } /** *
     * Tags from use_cases category
     * 
* * repeated string use_cases = 14 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @return A list containing the useCases. */ public com.google.protobuf.ProtocolStringList getUseCasesList() { return useCases_.getUnmodifiableView(); } /** *
     * Tags from use_cases category
     * 
* * repeated string use_cases = 14 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @return The count of useCases. */ public int getUseCasesCount() { return useCases_.size(); } /** *
     * Tags from use_cases category
     * 
* * repeated string use_cases = 14 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param index The index of the element to return. * @return The useCases at the given index. */ public java.lang.String getUseCases(int index) { return useCases_.get(index); } /** *
     * Tags from use_cases category
     * 
* * repeated string use_cases = 14 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param index The index of the value to return. * @return The bytes of the useCases at the given index. */ public com.google.protobuf.ByteString getUseCasesBytes(int index) { return useCases_.getByteString(index); } /** *
     * Tags from use_cases category
     * 
* * repeated string use_cases = 14 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param index The index to set the value at. * @param value The useCases to set. * @return This builder for chaining. */ public Builder setUseCases( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureUseCasesIsMutable(); useCases_.set(index, value); onChanged(); return this; } /** *
     * Tags from use_cases category
     * 
* * repeated string use_cases = 14 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param value The useCases to add. * @return This builder for chaining. */ public Builder addUseCases( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureUseCasesIsMutable(); useCases_.add(value); onChanged(); return this; } /** *
     * Tags from use_cases category
     * 
* * repeated string use_cases = 14 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param values The useCases to add. * @return This builder for chaining. */ public Builder addAllUseCases( java.lang.Iterable values) { ensureUseCasesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, useCases_); onChanged(); return this; } /** *
     * Tags from use_cases category
     * 
* * repeated string use_cases = 14 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @return This builder for chaining. */ public Builder clearUseCases() { useCases_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     * Tags from use_cases category
     * 
* * repeated string use_cases = 14 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param value The bytes of the useCases to add. * @return This builder for chaining. */ public Builder addUseCasesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureUseCasesIsMutable(); useCases_.add(value); onChanged(); return this; } private com.google.protobuf.LazyStringList checkConsents_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureCheckConsentsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { checkConsents_ = new com.google.protobuf.LazyStringArrayList(checkConsents_); bitField0_ |= 0x00000004; } } /** *
     * Tags for check consents
     * 
* * repeated string check_consents = 15 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @return A list containing the checkConsents. */ public com.google.protobuf.ProtocolStringList getCheckConsentsList() { return checkConsents_.getUnmodifiableView(); } /** *
     * Tags for check consents
     * 
* * repeated string check_consents = 15 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @return The count of checkConsents. */ public int getCheckConsentsCount() { return checkConsents_.size(); } /** *
     * Tags for check consents
     * 
* * repeated string check_consents = 15 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param index The index of the element to return. * @return The checkConsents at the given index. */ public java.lang.String getCheckConsents(int index) { return checkConsents_.get(index); } /** *
     * Tags for check consents
     * 
* * repeated string check_consents = 15 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param index The index of the value to return. * @return The bytes of the checkConsents at the given index. */ public com.google.protobuf.ByteString getCheckConsentsBytes(int index) { return checkConsents_.getByteString(index); } /** *
     * Tags for check consents
     * 
* * repeated string check_consents = 15 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param index The index to set the value at. * @param value The checkConsents to set. * @return This builder for chaining. */ public Builder setCheckConsents( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureCheckConsentsIsMutable(); checkConsents_.set(index, value); onChanged(); return this; } /** *
     * Tags for check consents
     * 
* * repeated string check_consents = 15 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param value The checkConsents to add. * @return This builder for chaining. */ public Builder addCheckConsents( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureCheckConsentsIsMutable(); checkConsents_.add(value); onChanged(); return this; } /** *
     * Tags for check consents
     * 
* * repeated string check_consents = 15 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param values The checkConsents to add. * @return This builder for chaining. */ public Builder addAllCheckConsents( java.lang.Iterable values) { ensureCheckConsentsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, checkConsents_); onChanged(); return this; } /** *
     * Tags for check consents
     * 
* * repeated string check_consents = 15 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @return This builder for chaining. */ public Builder clearCheckConsents() { checkConsents_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
     * Tags for check consents
     * 
* * repeated string check_consents = 15 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param value The bytes of the checkConsents to add. * @return This builder for chaining. */ public Builder addCheckConsentsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureCheckConsentsIsMutable(); checkConsents_.add(value); onChanged(); return this; } private com.clarifai.grpc.api.BookmarkOrigin bookmarkOrigin_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.BookmarkOrigin, com.clarifai.grpc.api.BookmarkOrigin.Builder, com.clarifai.grpc.api.BookmarkOriginOrBuilder> bookmarkOriginBuilder_; /** *
     * bookmark info. When set, this workflow is a bookmarked workflow of this app.
     * Info in this field will allow you to find/access original workflow.
     * 
* * .clarifai.api.BookmarkOrigin bookmark_origin = 16; * @return Whether the bookmarkOrigin field is set. */ public boolean hasBookmarkOrigin() { return bookmarkOriginBuilder_ != null || bookmarkOrigin_ != null; } /** *
     * bookmark info. When set, this workflow is a bookmarked workflow of this app.
     * Info in this field will allow you to find/access original workflow.
     * 
* * .clarifai.api.BookmarkOrigin bookmark_origin = 16; * @return The bookmarkOrigin. */ public com.clarifai.grpc.api.BookmarkOrigin getBookmarkOrigin() { if (bookmarkOriginBuilder_ == null) { return bookmarkOrigin_ == null ? com.clarifai.grpc.api.BookmarkOrigin.getDefaultInstance() : bookmarkOrigin_; } else { return bookmarkOriginBuilder_.getMessage(); } } /** *
     * bookmark info. When set, this workflow is a bookmarked workflow of this app.
     * Info in this field will allow you to find/access original workflow.
     * 
* * .clarifai.api.BookmarkOrigin bookmark_origin = 16; */ public Builder setBookmarkOrigin(com.clarifai.grpc.api.BookmarkOrigin value) { if (bookmarkOriginBuilder_ == null) { if (value == null) { throw new NullPointerException(); } bookmarkOrigin_ = value; onChanged(); } else { bookmarkOriginBuilder_.setMessage(value); } return this; } /** *
     * bookmark info. When set, this workflow is a bookmarked workflow of this app.
     * Info in this field will allow you to find/access original workflow.
     * 
* * .clarifai.api.BookmarkOrigin bookmark_origin = 16; */ public Builder setBookmarkOrigin( com.clarifai.grpc.api.BookmarkOrigin.Builder builderForValue) { if (bookmarkOriginBuilder_ == null) { bookmarkOrigin_ = builderForValue.build(); onChanged(); } else { bookmarkOriginBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * bookmark info. When set, this workflow is a bookmarked workflow of this app.
     * Info in this field will allow you to find/access original workflow.
     * 
* * .clarifai.api.BookmarkOrigin bookmark_origin = 16; */ public Builder mergeBookmarkOrigin(com.clarifai.grpc.api.BookmarkOrigin value) { if (bookmarkOriginBuilder_ == null) { if (bookmarkOrigin_ != null) { bookmarkOrigin_ = com.clarifai.grpc.api.BookmarkOrigin.newBuilder(bookmarkOrigin_).mergeFrom(value).buildPartial(); } else { bookmarkOrigin_ = value; } onChanged(); } else { bookmarkOriginBuilder_.mergeFrom(value); } return this; } /** *
     * bookmark info. When set, this workflow is a bookmarked workflow of this app.
     * Info in this field will allow you to find/access original workflow.
     * 
* * .clarifai.api.BookmarkOrigin bookmark_origin = 16; */ public Builder clearBookmarkOrigin() { if (bookmarkOriginBuilder_ == null) { bookmarkOrigin_ = null; onChanged(); } else { bookmarkOrigin_ = null; bookmarkOriginBuilder_ = null; } return this; } /** *
     * bookmark info. When set, this workflow is a bookmarked workflow of this app.
     * Info in this field will allow you to find/access original workflow.
     * 
* * .clarifai.api.BookmarkOrigin bookmark_origin = 16; */ public com.clarifai.grpc.api.BookmarkOrigin.Builder getBookmarkOriginBuilder() { onChanged(); return getBookmarkOriginFieldBuilder().getBuilder(); } /** *
     * bookmark info. When set, this workflow is a bookmarked workflow of this app.
     * Info in this field will allow you to find/access original workflow.
     * 
* * .clarifai.api.BookmarkOrigin bookmark_origin = 16; */ public com.clarifai.grpc.api.BookmarkOriginOrBuilder getBookmarkOriginOrBuilder() { if (bookmarkOriginBuilder_ != null) { return bookmarkOriginBuilder_.getMessageOrBuilder(); } else { return bookmarkOrigin_ == null ? com.clarifai.grpc.api.BookmarkOrigin.getDefaultInstance() : bookmarkOrigin_; } } /** *
     * bookmark info. When set, this workflow is a bookmarked workflow of this app.
     * Info in this field will allow you to find/access original workflow.
     * 
* * .clarifai.api.BookmarkOrigin bookmark_origin = 16; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.BookmarkOrigin, com.clarifai.grpc.api.BookmarkOrigin.Builder, com.clarifai.grpc.api.BookmarkOriginOrBuilder> getBookmarkOriginFieldBuilder() { if (bookmarkOriginBuilder_ == null) { bookmarkOriginBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.BookmarkOrigin, com.clarifai.grpc.api.BookmarkOrigin.Builder, com.clarifai.grpc.api.BookmarkOriginOrBuilder>( getBookmarkOrigin(), getParentForChildren(), isClean()); bookmarkOrigin_ = null; } return bookmarkOriginBuilder_; } private com.clarifai.grpc.api.Image image_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Image, com.clarifai.grpc.api.Image.Builder, com.clarifai.grpc.api.ImageOrBuilder> imageBuilder_; /** *
     * Representative image for this workflow
     * 
* * .clarifai.api.Image image = 17; * @return Whether the image field is set. */ public boolean hasImage() { return imageBuilder_ != null || image_ != null; } /** *
     * Representative image for this workflow
     * 
* * .clarifai.api.Image image = 17; * @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 workflow
     * 
* * .clarifai.api.Image image = 17; */ 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 workflow
     * 
* * .clarifai.api.Image image = 17; */ 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 workflow
     * 
* * .clarifai.api.Image image = 17; */ 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 workflow
     * 
* * .clarifai.api.Image image = 17; */ public Builder clearImage() { if (imageBuilder_ == null) { image_ = null; onChanged(); } else { image_ = null; imageBuilder_ = null; } return this; } /** *
     * Representative image for this workflow
     * 
* * .clarifai.api.Image image = 17; */ public com.clarifai.grpc.api.Image.Builder getImageBuilder() { onChanged(); return getImageFieldBuilder().getBuilder(); } /** *
     * Representative image for this workflow
     * 
* * .clarifai.api.Image image = 17; */ 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 workflow
     * 
* * .clarifai.api.Image image = 17; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Image, com.clarifai.grpc.api.Image.Builder, com.clarifai.grpc.api.ImageOrBuilder> getImageFieldBuilder() { if (imageBuilder_ == null) { imageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Image, com.clarifai.grpc.api.Image.Builder, com.clarifai.grpc.api.ImageOrBuilder>( getImage(), getParentForChildren(), isClean()); image_ = null; } return imageBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:clarifai.api.Workflow) } // @@protoc_insertion_point(class_scope:clarifai.api.Workflow) private static final com.clarifai.grpc.api.Workflow DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.clarifai.grpc.api.Workflow(); } public static com.clarifai.grpc.api.Workflow getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Workflow parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Workflow(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.Workflow getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy