com.clarifai.grpc.api.ListWorkflowsRequest Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: proto/clarifai/api/service.proto
package com.clarifai.grpc.api;
/**
*
* ListWorkflowsRequest
*
*
* Protobuf type {@code clarifai.api.ListWorkflowsRequest}
*/
public final class ListWorkflowsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:clarifai.api.ListWorkflowsRequest)
ListWorkflowsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListWorkflowsRequest.newBuilder() to construct.
private ListWorkflowsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListWorkflowsRequest() {
additionalFields_ = com.google.protobuf.LazyStringArrayList.EMPTY;
search_ = "";
query_ = "";
id_ = "";
searchTerm_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListWorkflowsRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListWorkflowsRequest(
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: {
com.clarifai.grpc.api.UserAppIDSet.Builder subBuilder = null;
if (userAppId_ != null) {
subBuilder = userAppId_.toBuilder();
}
userAppId_ = input.readMessage(com.clarifai.grpc.api.UserAppIDSet.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(userAppId_);
userAppId_ = subBuilder.buildPartial();
}
break;
}
case 16: {
page_ = input.readUInt32();
break;
}
case 24: {
perPage_ = input.readUInt32();
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
id_ = s;
break;
}
case 40: {
sortAscending_ = input.readBool();
break;
}
case 48: {
sortBy_ = input.readBool();
sortByCase_ = 6;
break;
}
case 56: {
sortBy_ = input.readBool();
sortByCase_ = 7;
break;
}
case 66: {
java.lang.String s = input.readStringRequireUtf8();
query_ = s;
break;
}
case 72: {
featuredOnly_ = input.readBool();
break;
}
case 82: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
additionalFields_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
additionalFields_.add(s);
break;
}
case 88: {
starredOnly_ = input.readBool();
break;
}
case 98: {
java.lang.String s = input.readStringRequireUtf8();
searchTerm_ = s;
break;
}
case 104: {
sortBy_ = input.readBool();
sortByCase_ = 13;
break;
}
case 112: {
sortBy_ = input.readBool();
sortByCase_ = 14;
break;
}
case 120: {
bookmark_ = input.readBool();
break;
}
case 130: {
java.lang.String s = input.readStringRequireUtf8();
search_ = s;
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)) {
additionalFields_ = additionalFields_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.clarifai.grpc.api.Service.internal_static_clarifai_api_ListWorkflowsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.clarifai.grpc.api.Service.internal_static_clarifai_api_ListWorkflowsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.clarifai.grpc.api.ListWorkflowsRequest.class, com.clarifai.grpc.api.ListWorkflowsRequest.Builder.class);
}
private int sortByCase_ = 0;
private java.lang.Object sortBy_;
public enum SortByCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
SORT_BY_ID(6),
SORT_BY_MODIFIED_AT(7),
SORT_BY_CREATED_AT(13),
SORT_BY_STAR_COUNT(14),
SORTBY_NOT_SET(0);
private final int value;
private SortByCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static SortByCase valueOf(int value) {
return forNumber(value);
}
public static SortByCase forNumber(int value) {
switch (value) {
case 6: return SORT_BY_ID;
case 7: return SORT_BY_MODIFIED_AT;
case 13: return SORT_BY_CREATED_AT;
case 14: return SORT_BY_STAR_COUNT;
case 0: return SORTBY_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public SortByCase
getSortByCase() {
return SortByCase.forNumber(
sortByCase_);
}
public static final int USER_APP_ID_FIELD_NUMBER = 1;
private com.clarifai.grpc.api.UserAppIDSet userAppId_;
/**
* .clarifai.api.UserAppIDSet user_app_id = 1;
* @return Whether the userAppId field is set.
*/
@java.lang.Override
public boolean hasUserAppId() {
return userAppId_ != null;
}
/**
* .clarifai.api.UserAppIDSet user_app_id = 1;
* @return The userAppId.
*/
@java.lang.Override
public com.clarifai.grpc.api.UserAppIDSet getUserAppId() {
return userAppId_ == null ? com.clarifai.grpc.api.UserAppIDSet.getDefaultInstance() : userAppId_;
}
/**
* .clarifai.api.UserAppIDSet user_app_id = 1;
*/
@java.lang.Override
public com.clarifai.grpc.api.UserAppIDSetOrBuilder getUserAppIdOrBuilder() {
return getUserAppId();
}
public static final int PAGE_FIELD_NUMBER = 2;
private int page_;
/**
*
* (optional URL parameter) The page number. Pagination is used to split the results into chunks.
* Defaults to 1.
*
*
* uint32 page = 2;
* @return The page.
*/
@java.lang.Override
public int getPage() {
return page_;
}
public static final int PER_PAGE_FIELD_NUMBER = 3;
private int perPage_;
/**
*
* (optional URL parameter) The number of results that will be contained in each page. Defaults
* to 128.
*
*
* uint32 per_page = 3;
* @return The perPage.
*/
@java.lang.Override
public int getPerPage() {
return perPage_;
}
public static final int ADDITIONAL_FIELDS_FIELD_NUMBER = 10;
private com.google.protobuf.LazyStringList additionalFields_;
/**
*
* (optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars
*
*
* repeated string additional_fields = 10;
* @return A list containing the additionalFields.
*/
public com.google.protobuf.ProtocolStringList
getAdditionalFieldsList() {
return additionalFields_;
}
/**
*
* (optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars
*
*
* repeated string additional_fields = 10;
* @return The count of additionalFields.
*/
public int getAdditionalFieldsCount() {
return additionalFields_.size();
}
/**
*
* (optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars
*
*
* repeated string additional_fields = 10;
* @param index The index of the element to return.
* @return The additionalFields at the given index.
*/
public java.lang.String getAdditionalFields(int index) {
return additionalFields_.get(index);
}
/**
*
* (optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars
*
*
* repeated string additional_fields = 10;
* @param index The index of the value to return.
* @return The bytes of the additionalFields at the given index.
*/
public com.google.protobuf.ByteString
getAdditionalFieldsBytes(int index) {
return additionalFields_.getByteString(index);
}
public static final int SORT_ASCENDING_FIELD_NUMBER = 5;
private boolean sortAscending_;
/**
*
* Sorting options:
* Whether to sort in ascending order. If false, will order in descending order.
*
*
* bool sort_ascending = 5;
* @return The sortAscending.
*/
@java.lang.Override
public boolean getSortAscending() {
return sortAscending_;
}
public static final int SORT_BY_ID_FIELD_NUMBER = 6;
/**
*
* Whether to order by the name
*
*
* bool sort_by_id = 6;
* @return Whether the sortById field is set.
*/
@java.lang.Override
public boolean hasSortById() {
return sortByCase_ == 6;
}
/**
*
* Whether to order by the name
*
*
* bool sort_by_id = 6;
* @return The sortById.
*/
@java.lang.Override
public boolean getSortById() {
if (sortByCase_ == 6) {
return (java.lang.Boolean) sortBy_;
}
return false;
}
public static final int SORT_BY_MODIFIED_AT_FIELD_NUMBER = 7;
/**
*
* Whether to order by the modified_at time.
* If none of the sort options is set to true, will sort by modified_at.
*
*
* bool sort_by_modified_at = 7;
* @return Whether the sortByModifiedAt field is set.
*/
@java.lang.Override
public boolean hasSortByModifiedAt() {
return sortByCase_ == 7;
}
/**
*
* Whether to order by the modified_at time.
* If none of the sort options is set to true, will sort by modified_at.
*
*
* bool sort_by_modified_at = 7;
* @return The sortByModifiedAt.
*/
@java.lang.Override
public boolean getSortByModifiedAt() {
if (sortByCase_ == 7) {
return (java.lang.Boolean) sortBy_;
}
return false;
}
public static final int SORT_BY_CREATED_AT_FIELD_NUMBER = 13;
/**
*
* Whether to order by the created_at time.
*
*
* bool sort_by_created_at = 13;
* @return Whether the sortByCreatedAt field is set.
*/
@java.lang.Override
public boolean hasSortByCreatedAt() {
return sortByCase_ == 13;
}
/**
*
* Whether to order by the created_at time.
*
*
* bool sort_by_created_at = 13;
* @return The sortByCreatedAt.
*/
@java.lang.Override
public boolean getSortByCreatedAt() {
if (sortByCase_ == 13) {
return (java.lang.Boolean) sortBy_;
}
return false;
}
public static final int SORT_BY_STAR_COUNT_FIELD_NUMBER = 14;
/**
*
* Whether to order by the number of users stared the workflow
*
*
* bool sort_by_star_count = 14;
* @return Whether the sortByStarCount field is set.
*/
@java.lang.Override
public boolean hasSortByStarCount() {
return sortByCase_ == 14;
}
/**
*
* Whether to order by the number of users stared the workflow
*
*
* bool sort_by_star_count = 14;
* @return The sortByStarCount.
*/
@java.lang.Override
public boolean getSortByStarCount() {
if (sortByCase_ == 14) {
return (java.lang.Boolean) sortBy_;
}
return false;
}
public static final int FEATURED_ONLY_FIELD_NUMBER = 9;
private boolean featuredOnly_;
/**
*
* Filtering options:
* If true, we only return workflows that are handpicked by clarifai staff
*
*
* bool featured_only = 9;
* @return The featuredOnly.
*/
@java.lang.Override
public boolean getFeaturedOnly() {
return featuredOnly_;
}
public static final int STARRED_ONLY_FIELD_NUMBER = 11;
private boolean starredOnly_;
/**
*
* If true, we only return workflows that are starred by the requesting user
*
*
* bool starred_only = 11;
* @return The starredOnly.
*/
@java.lang.Override
public boolean getStarredOnly() {
return starredOnly_;
}
public static final int BOOKMARK_FIELD_NUMBER = 15;
private boolean bookmark_;
/**
*
* Filter workflows by bookmark. If set, only return bookmarked workflows. Otherwise none bookmarked workflows only.
*
*
* bool bookmark = 15;
* @return The bookmark.
*/
@java.lang.Override
public boolean getBookmark() {
return bookmark_;
}
public static final int SEARCH_FIELD_NUMBER = 16;
private volatile java.lang.Object search_;
/**
*
* Searching options:
* Specify a search parameter in order to perform keyword search on the
* following fields of the workflow:
* - id
* - description
* - notes
* - user_id (unless user_app_id.user_id is already set)
* Keywords are both normalized for search (so searching for "satisfy" matches "satisfied")
* and used for partial prefix-matching (so searching for "clari" matches "clarifai").
* NOTE: Both the list of fields searched and the exact keyword matching
* rules are subject to change and not guaranteed to be backwards-compatible.
*
*
* string search = 16;
* @return The search.
*/
@java.lang.Override
public java.lang.String getSearch() {
java.lang.Object ref = search_;
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();
search_ = s;
return s;
}
}
/**
*
* Searching options:
* Specify a search parameter in order to perform keyword search on the
* following fields of the workflow:
* - id
* - description
* - notes
* - user_id (unless user_app_id.user_id is already set)
* Keywords are both normalized for search (so searching for "satisfy" matches "satisfied")
* and used for partial prefix-matching (so searching for "clari" matches "clarifai").
* NOTE: Both the list of fields searched and the exact keyword matching
* rules are subject to change and not guaranteed to be backwards-compatible.
*
*
* string search = 16;
* @return The bytes for search.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSearchBytes() {
java.lang.Object ref = search_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
search_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int QUERY_FIELD_NUMBER = 8;
private volatile java.lang.Object query_;
/**
*
* Query various text fields (id, description and notes) that can contain the words in the query string.
* Deprecated: use search instead.
*
*
* string query = 8 [deprecated = true];
* @deprecated clarifai.api.ListWorkflowsRequest.query is deprecated.
* See proto/clarifai/api/service.proto;l=6526
* @return The query.
*/
@java.lang.Override
@java.lang.Deprecated public java.lang.String getQuery() {
java.lang.Object ref = query_;
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();
query_ = s;
return s;
}
}
/**
*
* Query various text fields (id, description and notes) that can contain the words in the query string.
* Deprecated: use search instead.
*
*
* string query = 8 [deprecated = true];
* @deprecated clarifai.api.ListWorkflowsRequest.query is deprecated.
* See proto/clarifai/api/service.proto;l=6526
* @return The bytes for query.
*/
@java.lang.Override
@java.lang.Deprecated public com.google.protobuf.ByteString
getQueryBytes() {
java.lang.Object ref = query_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
query_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ID_FIELD_NUMBER = 4;
private volatile java.lang.Object id_;
/**
*
* Filter by the id of the workflow. This supports wilcard queries like "gen*" to match "general" as an example.
* Deprecated: use search instead.
*
*
* string id = 4 [deprecated = true];
* @deprecated clarifai.api.ListWorkflowsRequest.id is deprecated.
* See proto/clarifai/api/service.proto;l=6529
* @return The id.
*/
@java.lang.Override
@java.lang.Deprecated 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;
}
}
/**
*
* Filter by the id of the workflow. This supports wilcard queries like "gen*" to match "general" as an example.
* Deprecated: use search instead.
*
*
* string id = 4 [deprecated = true];
* @deprecated clarifai.api.ListWorkflowsRequest.id is deprecated.
* See proto/clarifai/api/service.proto;l=6529
* @return The bytes for id.
*/
@java.lang.Override
@java.lang.Deprecated 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 SEARCH_TERM_FIELD_NUMBER = 12;
private volatile java.lang.Object searchTerm_;
/**
*
* Full text and prefix matching on id, owner id, description and notes. Searchable fields may be added
* Deprecated: use search instead.
*
*
* string search_term = 12 [deprecated = true];
* @deprecated clarifai.api.ListWorkflowsRequest.search_term is deprecated.
* See proto/clarifai/api/service.proto;l=6532
* @return The searchTerm.
*/
@java.lang.Override
@java.lang.Deprecated public java.lang.String getSearchTerm() {
java.lang.Object ref = searchTerm_;
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();
searchTerm_ = s;
return s;
}
}
/**
*
* Full text and prefix matching on id, owner id, description and notes. Searchable fields may be added
* Deprecated: use search instead.
*
*
* string search_term = 12 [deprecated = true];
* @deprecated clarifai.api.ListWorkflowsRequest.search_term is deprecated.
* See proto/clarifai/api/service.proto;l=6532
* @return The bytes for searchTerm.
*/
@java.lang.Override
@java.lang.Deprecated public com.google.protobuf.ByteString
getSearchTermBytes() {
java.lang.Object ref = searchTerm_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
searchTerm_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (userAppId_ != null) {
output.writeMessage(1, getUserAppId());
}
if (page_ != 0) {
output.writeUInt32(2, page_);
}
if (perPage_ != 0) {
output.writeUInt32(3, perPage_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, id_);
}
if (sortAscending_ != false) {
output.writeBool(5, sortAscending_);
}
if (sortByCase_ == 6) {
output.writeBool(
6, (boolean)((java.lang.Boolean) sortBy_));
}
if (sortByCase_ == 7) {
output.writeBool(
7, (boolean)((java.lang.Boolean) sortBy_));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, query_);
}
if (featuredOnly_ != false) {
output.writeBool(9, featuredOnly_);
}
for (int i = 0; i < additionalFields_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, additionalFields_.getRaw(i));
}
if (starredOnly_ != false) {
output.writeBool(11, starredOnly_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(searchTerm_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 12, searchTerm_);
}
if (sortByCase_ == 13) {
output.writeBool(
13, (boolean)((java.lang.Boolean) sortBy_));
}
if (sortByCase_ == 14) {
output.writeBool(
14, (boolean)((java.lang.Boolean) sortBy_));
}
if (bookmark_ != false) {
output.writeBool(15, bookmark_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(search_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 16, search_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (userAppId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getUserAppId());
}
if (page_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, page_);
}
if (perPage_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, perPage_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, id_);
}
if (sortAscending_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, sortAscending_);
}
if (sortByCase_ == 6) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(
6, (boolean)((java.lang.Boolean) sortBy_));
}
if (sortByCase_ == 7) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(
7, (boolean)((java.lang.Boolean) sortBy_));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, query_);
}
if (featuredOnly_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(9, featuredOnly_);
}
{
int dataSize = 0;
for (int i = 0; i < additionalFields_.size(); i++) {
dataSize += computeStringSizeNoTag(additionalFields_.getRaw(i));
}
size += dataSize;
size += 1 * getAdditionalFieldsList().size();
}
if (starredOnly_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(11, starredOnly_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(searchTerm_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, searchTerm_);
}
if (sortByCase_ == 13) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(
13, (boolean)((java.lang.Boolean) sortBy_));
}
if (sortByCase_ == 14) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(
14, (boolean)((java.lang.Boolean) sortBy_));
}
if (bookmark_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(15, bookmark_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(search_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, search_);
}
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.ListWorkflowsRequest)) {
return super.equals(obj);
}
com.clarifai.grpc.api.ListWorkflowsRequest other = (com.clarifai.grpc.api.ListWorkflowsRequest) obj;
if (hasUserAppId() != other.hasUserAppId()) return false;
if (hasUserAppId()) {
if (!getUserAppId()
.equals(other.getUserAppId())) return false;
}
if (getPage()
!= other.getPage()) return false;
if (getPerPage()
!= other.getPerPage()) return false;
if (!getAdditionalFieldsList()
.equals(other.getAdditionalFieldsList())) return false;
if (getSortAscending()
!= other.getSortAscending()) return false;
if (getFeaturedOnly()
!= other.getFeaturedOnly()) return false;
if (getStarredOnly()
!= other.getStarredOnly()) return false;
if (getBookmark()
!= other.getBookmark()) return false;
if (!getSearch()
.equals(other.getSearch())) return false;
if (!getQuery()
.equals(other.getQuery())) return false;
if (!getId()
.equals(other.getId())) return false;
if (!getSearchTerm()
.equals(other.getSearchTerm())) return false;
if (!getSortByCase().equals(other.getSortByCase())) return false;
switch (sortByCase_) {
case 6:
if (getSortById()
!= other.getSortById()) return false;
break;
case 7:
if (getSortByModifiedAt()
!= other.getSortByModifiedAt()) return false;
break;
case 13:
if (getSortByCreatedAt()
!= other.getSortByCreatedAt()) return false;
break;
case 14:
if (getSortByStarCount()
!= other.getSortByStarCount()) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasUserAppId()) {
hash = (37 * hash) + USER_APP_ID_FIELD_NUMBER;
hash = (53 * hash) + getUserAppId().hashCode();
}
hash = (37 * hash) + PAGE_FIELD_NUMBER;
hash = (53 * hash) + getPage();
hash = (37 * hash) + PER_PAGE_FIELD_NUMBER;
hash = (53 * hash) + getPerPage();
if (getAdditionalFieldsCount() > 0) {
hash = (37 * hash) + ADDITIONAL_FIELDS_FIELD_NUMBER;
hash = (53 * hash) + getAdditionalFieldsList().hashCode();
}
hash = (37 * hash) + SORT_ASCENDING_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getSortAscending());
hash = (37 * hash) + FEATURED_ONLY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getFeaturedOnly());
hash = (37 * hash) + STARRED_ONLY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getStarredOnly());
hash = (37 * hash) + BOOKMARK_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getBookmark());
hash = (37 * hash) + SEARCH_FIELD_NUMBER;
hash = (53 * hash) + getSearch().hashCode();
hash = (37 * hash) + QUERY_FIELD_NUMBER;
hash = (53 * hash) + getQuery().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
hash = (37 * hash) + SEARCH_TERM_FIELD_NUMBER;
hash = (53 * hash) + getSearchTerm().hashCode();
switch (sortByCase_) {
case 6:
hash = (37 * hash) + SORT_BY_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getSortById());
break;
case 7:
hash = (37 * hash) + SORT_BY_MODIFIED_AT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getSortByModifiedAt());
break;
case 13:
hash = (37 * hash) + SORT_BY_CREATED_AT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getSortByCreatedAt());
break;
case 14:
hash = (37 * hash) + SORT_BY_STAR_COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getSortByStarCount());
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.clarifai.grpc.api.ListWorkflowsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.ListWorkflowsRequest 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.ListWorkflowsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.ListWorkflowsRequest 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.ListWorkflowsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.ListWorkflowsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.clarifai.grpc.api.ListWorkflowsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.ListWorkflowsRequest 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.ListWorkflowsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.ListWorkflowsRequest 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.ListWorkflowsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.ListWorkflowsRequest 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.ListWorkflowsRequest 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;
}
/**
*
* ListWorkflowsRequest
*
*
* Protobuf type {@code clarifai.api.ListWorkflowsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:clarifai.api.ListWorkflowsRequest)
com.clarifai.grpc.api.ListWorkflowsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.clarifai.grpc.api.Service.internal_static_clarifai_api_ListWorkflowsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.clarifai.grpc.api.Service.internal_static_clarifai_api_ListWorkflowsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.clarifai.grpc.api.ListWorkflowsRequest.class, com.clarifai.grpc.api.ListWorkflowsRequest.Builder.class);
}
// Construct using com.clarifai.grpc.api.ListWorkflowsRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (userAppIdBuilder_ == null) {
userAppId_ = null;
} else {
userAppId_ = null;
userAppIdBuilder_ = null;
}
page_ = 0;
perPage_ = 0;
additionalFields_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
sortAscending_ = false;
featuredOnly_ = false;
starredOnly_ = false;
bookmark_ = false;
search_ = "";
query_ = "";
id_ = "";
searchTerm_ = "";
sortByCase_ = 0;
sortBy_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.clarifai.grpc.api.Service.internal_static_clarifai_api_ListWorkflowsRequest_descriptor;
}
@java.lang.Override
public com.clarifai.grpc.api.ListWorkflowsRequest getDefaultInstanceForType() {
return com.clarifai.grpc.api.ListWorkflowsRequest.getDefaultInstance();
}
@java.lang.Override
public com.clarifai.grpc.api.ListWorkflowsRequest build() {
com.clarifai.grpc.api.ListWorkflowsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.clarifai.grpc.api.ListWorkflowsRequest buildPartial() {
com.clarifai.grpc.api.ListWorkflowsRequest result = new com.clarifai.grpc.api.ListWorkflowsRequest(this);
int from_bitField0_ = bitField0_;
if (userAppIdBuilder_ == null) {
result.userAppId_ = userAppId_;
} else {
result.userAppId_ = userAppIdBuilder_.build();
}
result.page_ = page_;
result.perPage_ = perPage_;
if (((bitField0_ & 0x00000001) != 0)) {
additionalFields_ = additionalFields_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.additionalFields_ = additionalFields_;
result.sortAscending_ = sortAscending_;
if (sortByCase_ == 6) {
result.sortBy_ = sortBy_;
}
if (sortByCase_ == 7) {
result.sortBy_ = sortBy_;
}
if (sortByCase_ == 13) {
result.sortBy_ = sortBy_;
}
if (sortByCase_ == 14) {
result.sortBy_ = sortBy_;
}
result.featuredOnly_ = featuredOnly_;
result.starredOnly_ = starredOnly_;
result.bookmark_ = bookmark_;
result.search_ = search_;
result.query_ = query_;
result.id_ = id_;
result.searchTerm_ = searchTerm_;
result.sortByCase_ = sortByCase_;
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.ListWorkflowsRequest) {
return mergeFrom((com.clarifai.grpc.api.ListWorkflowsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.clarifai.grpc.api.ListWorkflowsRequest other) {
if (other == com.clarifai.grpc.api.ListWorkflowsRequest.getDefaultInstance()) return this;
if (other.hasUserAppId()) {
mergeUserAppId(other.getUserAppId());
}
if (other.getPage() != 0) {
setPage(other.getPage());
}
if (other.getPerPage() != 0) {
setPerPage(other.getPerPage());
}
if (!other.additionalFields_.isEmpty()) {
if (additionalFields_.isEmpty()) {
additionalFields_ = other.additionalFields_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureAdditionalFieldsIsMutable();
additionalFields_.addAll(other.additionalFields_);
}
onChanged();
}
if (other.getSortAscending() != false) {
setSortAscending(other.getSortAscending());
}
if (other.getFeaturedOnly() != false) {
setFeaturedOnly(other.getFeaturedOnly());
}
if (other.getStarredOnly() != false) {
setStarredOnly(other.getStarredOnly());
}
if (other.getBookmark() != false) {
setBookmark(other.getBookmark());
}
if (!other.getSearch().isEmpty()) {
search_ = other.search_;
onChanged();
}
if (!other.getQuery().isEmpty()) {
query_ = other.query_;
onChanged();
}
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (!other.getSearchTerm().isEmpty()) {
searchTerm_ = other.searchTerm_;
onChanged();
}
switch (other.getSortByCase()) {
case SORT_BY_ID: {
setSortById(other.getSortById());
break;
}
case SORT_BY_MODIFIED_AT: {
setSortByModifiedAt(other.getSortByModifiedAt());
break;
}
case SORT_BY_CREATED_AT: {
setSortByCreatedAt(other.getSortByCreatedAt());
break;
}
case SORT_BY_STAR_COUNT: {
setSortByStarCount(other.getSortByStarCount());
break;
}
case SORTBY_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.clarifai.grpc.api.ListWorkflowsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.clarifai.grpc.api.ListWorkflowsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int sortByCase_ = 0;
private java.lang.Object sortBy_;
public SortByCase
getSortByCase() {
return SortByCase.forNumber(
sortByCase_);
}
public Builder clearSortBy() {
sortByCase_ = 0;
sortBy_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.clarifai.grpc.api.UserAppIDSet userAppId_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.UserAppIDSet, com.clarifai.grpc.api.UserAppIDSet.Builder, com.clarifai.grpc.api.UserAppIDSetOrBuilder> userAppIdBuilder_;
/**
* .clarifai.api.UserAppIDSet user_app_id = 1;
* @return Whether the userAppId field is set.
*/
public boolean hasUserAppId() {
return userAppIdBuilder_ != null || userAppId_ != null;
}
/**
* .clarifai.api.UserAppIDSet user_app_id = 1;
* @return The userAppId.
*/
public com.clarifai.grpc.api.UserAppIDSet getUserAppId() {
if (userAppIdBuilder_ == null) {
return userAppId_ == null ? com.clarifai.grpc.api.UserAppIDSet.getDefaultInstance() : userAppId_;
} else {
return userAppIdBuilder_.getMessage();
}
}
/**
* .clarifai.api.UserAppIDSet user_app_id = 1;
*/
public Builder setUserAppId(com.clarifai.grpc.api.UserAppIDSet value) {
if (userAppIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
userAppId_ = value;
onChanged();
} else {
userAppIdBuilder_.setMessage(value);
}
return this;
}
/**
* .clarifai.api.UserAppIDSet user_app_id = 1;
*/
public Builder setUserAppId(
com.clarifai.grpc.api.UserAppIDSet.Builder builderForValue) {
if (userAppIdBuilder_ == null) {
userAppId_ = builderForValue.build();
onChanged();
} else {
userAppIdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .clarifai.api.UserAppIDSet user_app_id = 1;
*/
public Builder mergeUserAppId(com.clarifai.grpc.api.UserAppIDSet value) {
if (userAppIdBuilder_ == null) {
if (userAppId_ != null) {
userAppId_ =
com.clarifai.grpc.api.UserAppIDSet.newBuilder(userAppId_).mergeFrom(value).buildPartial();
} else {
userAppId_ = value;
}
onChanged();
} else {
userAppIdBuilder_.mergeFrom(value);
}
return this;
}
/**
* .clarifai.api.UserAppIDSet user_app_id = 1;
*/
public Builder clearUserAppId() {
if (userAppIdBuilder_ == null) {
userAppId_ = null;
onChanged();
} else {
userAppId_ = null;
userAppIdBuilder_ = null;
}
return this;
}
/**
* .clarifai.api.UserAppIDSet user_app_id = 1;
*/
public com.clarifai.grpc.api.UserAppIDSet.Builder getUserAppIdBuilder() {
onChanged();
return getUserAppIdFieldBuilder().getBuilder();
}
/**
* .clarifai.api.UserAppIDSet user_app_id = 1;
*/
public com.clarifai.grpc.api.UserAppIDSetOrBuilder getUserAppIdOrBuilder() {
if (userAppIdBuilder_ != null) {
return userAppIdBuilder_.getMessageOrBuilder();
} else {
return userAppId_ == null ?
com.clarifai.grpc.api.UserAppIDSet.getDefaultInstance() : userAppId_;
}
}
/**
* .clarifai.api.UserAppIDSet user_app_id = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.UserAppIDSet, com.clarifai.grpc.api.UserAppIDSet.Builder, com.clarifai.grpc.api.UserAppIDSetOrBuilder>
getUserAppIdFieldBuilder() {
if (userAppIdBuilder_ == null) {
userAppIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.UserAppIDSet, com.clarifai.grpc.api.UserAppIDSet.Builder, com.clarifai.grpc.api.UserAppIDSetOrBuilder>(
getUserAppId(),
getParentForChildren(),
isClean());
userAppId_ = null;
}
return userAppIdBuilder_;
}
private int page_ ;
/**
*
* (optional URL parameter) The page number. Pagination is used to split the results into chunks.
* Defaults to 1.
*
*
* uint32 page = 2;
* @return The page.
*/
@java.lang.Override
public int getPage() {
return page_;
}
/**
*
* (optional URL parameter) The page number. Pagination is used to split the results into chunks.
* Defaults to 1.
*
*
* uint32 page = 2;
* @param value The page to set.
* @return This builder for chaining.
*/
public Builder setPage(int value) {
page_ = value;
onChanged();
return this;
}
/**
*
* (optional URL parameter) The page number. Pagination is used to split the results into chunks.
* Defaults to 1.
*
*
* uint32 page = 2;
* @return This builder for chaining.
*/
public Builder clearPage() {
page_ = 0;
onChanged();
return this;
}
private int perPage_ ;
/**
*
* (optional URL parameter) The number of results that will be contained in each page. Defaults
* to 128.
*
*
* uint32 per_page = 3;
* @return The perPage.
*/
@java.lang.Override
public int getPerPage() {
return perPage_;
}
/**
*
* (optional URL parameter) The number of results that will be contained in each page. Defaults
* to 128.
*
*
* uint32 per_page = 3;
* @param value The perPage to set.
* @return This builder for chaining.
*/
public Builder setPerPage(int value) {
perPage_ = value;
onChanged();
return this;
}
/**
*
* (optional URL parameter) The number of results that will be contained in each page. Defaults
* to 128.
*
*
* uint32 per_page = 3;
* @return This builder for chaining.
*/
public Builder clearPerPage() {
perPage_ = 0;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList additionalFields_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureAdditionalFieldsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
additionalFields_ = new com.google.protobuf.LazyStringArrayList(additionalFields_);
bitField0_ |= 0x00000001;
}
}
/**
*
* (optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars
*
*
* repeated string additional_fields = 10;
* @return A list containing the additionalFields.
*/
public com.google.protobuf.ProtocolStringList
getAdditionalFieldsList() {
return additionalFields_.getUnmodifiableView();
}
/**
*
* (optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars
*
*
* repeated string additional_fields = 10;
* @return The count of additionalFields.
*/
public int getAdditionalFieldsCount() {
return additionalFields_.size();
}
/**
*
* (optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars
*
*
* repeated string additional_fields = 10;
* @param index The index of the element to return.
* @return The additionalFields at the given index.
*/
public java.lang.String getAdditionalFields(int index) {
return additionalFields_.get(index);
}
/**
*
* (optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars
*
*
* repeated string additional_fields = 10;
* @param index The index of the value to return.
* @return The bytes of the additionalFields at the given index.
*/
public com.google.protobuf.ByteString
getAdditionalFieldsBytes(int index) {
return additionalFields_.getByteString(index);
}
/**
*
* (optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars
*
*
* repeated string additional_fields = 10;
* @param index The index to set the value at.
* @param value The additionalFields to set.
* @return This builder for chaining.
*/
public Builder setAdditionalFields(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAdditionalFieldsIsMutable();
additionalFields_.set(index, value);
onChanged();
return this;
}
/**
*
* (optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars
*
*
* repeated string additional_fields = 10;
* @param value The additionalFields to add.
* @return This builder for chaining.
*/
public Builder addAdditionalFields(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAdditionalFieldsIsMutable();
additionalFields_.add(value);
onChanged();
return this;
}
/**
*
* (optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars
*
*
* repeated string additional_fields = 10;
* @param values The additionalFields to add.
* @return This builder for chaining.
*/
public Builder addAllAdditionalFields(
java.lang.Iterable values) {
ensureAdditionalFieldsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, additionalFields_);
onChanged();
return this;
}
/**
*
* (optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars
*
*
* repeated string additional_fields = 10;
* @return This builder for chaining.
*/
public Builder clearAdditionalFields() {
additionalFields_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* (optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars
*
*
* repeated string additional_fields = 10;
* @param value The bytes of the additionalFields to add.
* @return This builder for chaining.
*/
public Builder addAdditionalFieldsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureAdditionalFieldsIsMutable();
additionalFields_.add(value);
onChanged();
return this;
}
private boolean sortAscending_ ;
/**
*
* Sorting options:
* Whether to sort in ascending order. If false, will order in descending order.
*
*
* bool sort_ascending = 5;
* @return The sortAscending.
*/
@java.lang.Override
public boolean getSortAscending() {
return sortAscending_;
}
/**
*
* Sorting options:
* Whether to sort in ascending order. If false, will order in descending order.
*
*
* bool sort_ascending = 5;
* @param value The sortAscending to set.
* @return This builder for chaining.
*/
public Builder setSortAscending(boolean value) {
sortAscending_ = value;
onChanged();
return this;
}
/**
*
* Sorting options:
* Whether to sort in ascending order. If false, will order in descending order.
*
*
* bool sort_ascending = 5;
* @return This builder for chaining.
*/
public Builder clearSortAscending() {
sortAscending_ = false;
onChanged();
return this;
}
/**
*
* Whether to order by the name
*
*
* bool sort_by_id = 6;
* @return Whether the sortById field is set.
*/
public boolean hasSortById() {
return sortByCase_ == 6;
}
/**
*
* Whether to order by the name
*
*
* bool sort_by_id = 6;
* @return The sortById.
*/
public boolean getSortById() {
if (sortByCase_ == 6) {
return (java.lang.Boolean) sortBy_;
}
return false;
}
/**
*
* Whether to order by the name
*
*
* bool sort_by_id = 6;
* @param value The sortById to set.
* @return This builder for chaining.
*/
public Builder setSortById(boolean value) {
sortByCase_ = 6;
sortBy_ = value;
onChanged();
return this;
}
/**
*
* Whether to order by the name
*
*
* bool sort_by_id = 6;
* @return This builder for chaining.
*/
public Builder clearSortById() {
if (sortByCase_ == 6) {
sortByCase_ = 0;
sortBy_ = null;
onChanged();
}
return this;
}
/**
*
* Whether to order by the modified_at time.
* If none of the sort options is set to true, will sort by modified_at.
*
*
* bool sort_by_modified_at = 7;
* @return Whether the sortByModifiedAt field is set.
*/
public boolean hasSortByModifiedAt() {
return sortByCase_ == 7;
}
/**
*
* Whether to order by the modified_at time.
* If none of the sort options is set to true, will sort by modified_at.
*
*
* bool sort_by_modified_at = 7;
* @return The sortByModifiedAt.
*/
public boolean getSortByModifiedAt() {
if (sortByCase_ == 7) {
return (java.lang.Boolean) sortBy_;
}
return false;
}
/**
*
* Whether to order by the modified_at time.
* If none of the sort options is set to true, will sort by modified_at.
*
*
* bool sort_by_modified_at = 7;
* @param value The sortByModifiedAt to set.
* @return This builder for chaining.
*/
public Builder setSortByModifiedAt(boolean value) {
sortByCase_ = 7;
sortBy_ = value;
onChanged();
return this;
}
/**
*
* Whether to order by the modified_at time.
* If none of the sort options is set to true, will sort by modified_at.
*
*
* bool sort_by_modified_at = 7;
* @return This builder for chaining.
*/
public Builder clearSortByModifiedAt() {
if (sortByCase_ == 7) {
sortByCase_ = 0;
sortBy_ = null;
onChanged();
}
return this;
}
/**
*
* Whether to order by the created_at time.
*
*
* bool sort_by_created_at = 13;
* @return Whether the sortByCreatedAt field is set.
*/
public boolean hasSortByCreatedAt() {
return sortByCase_ == 13;
}
/**
*
* Whether to order by the created_at time.
*
*
* bool sort_by_created_at = 13;
* @return The sortByCreatedAt.
*/
public boolean getSortByCreatedAt() {
if (sortByCase_ == 13) {
return (java.lang.Boolean) sortBy_;
}
return false;
}
/**
*
* Whether to order by the created_at time.
*
*
* bool sort_by_created_at = 13;
* @param value The sortByCreatedAt to set.
* @return This builder for chaining.
*/
public Builder setSortByCreatedAt(boolean value) {
sortByCase_ = 13;
sortBy_ = value;
onChanged();
return this;
}
/**
*
* Whether to order by the created_at time.
*
*
* bool sort_by_created_at = 13;
* @return This builder for chaining.
*/
public Builder clearSortByCreatedAt() {
if (sortByCase_ == 13) {
sortByCase_ = 0;
sortBy_ = null;
onChanged();
}
return this;
}
/**
*
* Whether to order by the number of users stared the workflow
*
*
* bool sort_by_star_count = 14;
* @return Whether the sortByStarCount field is set.
*/
public boolean hasSortByStarCount() {
return sortByCase_ == 14;
}
/**
*
* Whether to order by the number of users stared the workflow
*
*
* bool sort_by_star_count = 14;
* @return The sortByStarCount.
*/
public boolean getSortByStarCount() {
if (sortByCase_ == 14) {
return (java.lang.Boolean) sortBy_;
}
return false;
}
/**
*
* Whether to order by the number of users stared the workflow
*
*
* bool sort_by_star_count = 14;
* @param value The sortByStarCount to set.
* @return This builder for chaining.
*/
public Builder setSortByStarCount(boolean value) {
sortByCase_ = 14;
sortBy_ = value;
onChanged();
return this;
}
/**
*
* Whether to order by the number of users stared the workflow
*
*
* bool sort_by_star_count = 14;
* @return This builder for chaining.
*/
public Builder clearSortByStarCount() {
if (sortByCase_ == 14) {
sortByCase_ = 0;
sortBy_ = null;
onChanged();
}
return this;
}
private boolean featuredOnly_ ;
/**
*
* Filtering options:
* If true, we only return workflows that are handpicked by clarifai staff
*
*
* bool featured_only = 9;
* @return The featuredOnly.
*/
@java.lang.Override
public boolean getFeaturedOnly() {
return featuredOnly_;
}
/**
*
* Filtering options:
* If true, we only return workflows that are handpicked by clarifai staff
*
*
* bool featured_only = 9;
* @param value The featuredOnly to set.
* @return This builder for chaining.
*/
public Builder setFeaturedOnly(boolean value) {
featuredOnly_ = value;
onChanged();
return this;
}
/**
*
* Filtering options:
* If true, we only return workflows that are handpicked by clarifai staff
*
*
* bool featured_only = 9;
* @return This builder for chaining.
*/
public Builder clearFeaturedOnly() {
featuredOnly_ = false;
onChanged();
return this;
}
private boolean starredOnly_ ;
/**
*
* If true, we only return workflows that are starred by the requesting user
*
*
* bool starred_only = 11;
* @return The starredOnly.
*/
@java.lang.Override
public boolean getStarredOnly() {
return starredOnly_;
}
/**
*
* If true, we only return workflows that are starred by the requesting user
*
*
* bool starred_only = 11;
* @param value The starredOnly to set.
* @return This builder for chaining.
*/
public Builder setStarredOnly(boolean value) {
starredOnly_ = value;
onChanged();
return this;
}
/**
*
* If true, we only return workflows that are starred by the requesting user
*
*
* bool starred_only = 11;
* @return This builder for chaining.
*/
public Builder clearStarredOnly() {
starredOnly_ = false;
onChanged();
return this;
}
private boolean bookmark_ ;
/**
*
* Filter workflows by bookmark. If set, only return bookmarked workflows. Otherwise none bookmarked workflows only.
*
*
* bool bookmark = 15;
* @return The bookmark.
*/
@java.lang.Override
public boolean getBookmark() {
return bookmark_;
}
/**
*
* Filter workflows by bookmark. If set, only return bookmarked workflows. Otherwise none bookmarked workflows only.
*
*
* bool bookmark = 15;
* @param value The bookmark to set.
* @return This builder for chaining.
*/
public Builder setBookmark(boolean value) {
bookmark_ = value;
onChanged();
return this;
}
/**
*
* Filter workflows by bookmark. If set, only return bookmarked workflows. Otherwise none bookmarked workflows only.
*
*
* bool bookmark = 15;
* @return This builder for chaining.
*/
public Builder clearBookmark() {
bookmark_ = false;
onChanged();
return this;
}
private java.lang.Object search_ = "";
/**
*
* Searching options:
* Specify a search parameter in order to perform keyword search on the
* following fields of the workflow:
* - id
* - description
* - notes
* - user_id (unless user_app_id.user_id is already set)
* Keywords are both normalized for search (so searching for "satisfy" matches "satisfied")
* and used for partial prefix-matching (so searching for "clari" matches "clarifai").
* NOTE: Both the list of fields searched and the exact keyword matching
* rules are subject to change and not guaranteed to be backwards-compatible.
*
*
* string search = 16;
* @return The search.
*/
public java.lang.String getSearch() {
java.lang.Object ref = search_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
search_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Searching options:
* Specify a search parameter in order to perform keyword search on the
* following fields of the workflow:
* - id
* - description
* - notes
* - user_id (unless user_app_id.user_id is already set)
* Keywords are both normalized for search (so searching for "satisfy" matches "satisfied")
* and used for partial prefix-matching (so searching for "clari" matches "clarifai").
* NOTE: Both the list of fields searched and the exact keyword matching
* rules are subject to change and not guaranteed to be backwards-compatible.
*
*
* string search = 16;
* @return The bytes for search.
*/
public com.google.protobuf.ByteString
getSearchBytes() {
java.lang.Object ref = search_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
search_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Searching options:
* Specify a search parameter in order to perform keyword search on the
* following fields of the workflow:
* - id
* - description
* - notes
* - user_id (unless user_app_id.user_id is already set)
* Keywords are both normalized for search (so searching for "satisfy" matches "satisfied")
* and used for partial prefix-matching (so searching for "clari" matches "clarifai").
* NOTE: Both the list of fields searched and the exact keyword matching
* rules are subject to change and not guaranteed to be backwards-compatible.
*
*
* string search = 16;
* @param value The search to set.
* @return This builder for chaining.
*/
public Builder setSearch(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
search_ = value;
onChanged();
return this;
}
/**
*
* Searching options:
* Specify a search parameter in order to perform keyword search on the
* following fields of the workflow:
* - id
* - description
* - notes
* - user_id (unless user_app_id.user_id is already set)
* Keywords are both normalized for search (so searching for "satisfy" matches "satisfied")
* and used for partial prefix-matching (so searching for "clari" matches "clarifai").
* NOTE: Both the list of fields searched and the exact keyword matching
* rules are subject to change and not guaranteed to be backwards-compatible.
*
*
* string search = 16;
* @return This builder for chaining.
*/
public Builder clearSearch() {
search_ = getDefaultInstance().getSearch();
onChanged();
return this;
}
/**
*
* Searching options:
* Specify a search parameter in order to perform keyword search on the
* following fields of the workflow:
* - id
* - description
* - notes
* - user_id (unless user_app_id.user_id is already set)
* Keywords are both normalized for search (so searching for "satisfy" matches "satisfied")
* and used for partial prefix-matching (so searching for "clari" matches "clarifai").
* NOTE: Both the list of fields searched and the exact keyword matching
* rules are subject to change and not guaranteed to be backwards-compatible.
*
*
* string search = 16;
* @param value The bytes for search to set.
* @return This builder for chaining.
*/
public Builder setSearchBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
search_ = value;
onChanged();
return this;
}
private java.lang.Object query_ = "";
/**
*
* Query various text fields (id, description and notes) that can contain the words in the query string.
* Deprecated: use search instead.
*
*
* string query = 8 [deprecated = true];
* @deprecated clarifai.api.ListWorkflowsRequest.query is deprecated.
* See proto/clarifai/api/service.proto;l=6526
* @return The query.
*/
@java.lang.Deprecated public java.lang.String getQuery() {
java.lang.Object ref = query_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
query_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Query various text fields (id, description and notes) that can contain the words in the query string.
* Deprecated: use search instead.
*
*
* string query = 8 [deprecated = true];
* @deprecated clarifai.api.ListWorkflowsRequest.query is deprecated.
* See proto/clarifai/api/service.proto;l=6526
* @return The bytes for query.
*/
@java.lang.Deprecated public com.google.protobuf.ByteString
getQueryBytes() {
java.lang.Object ref = query_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
query_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Query various text fields (id, description and notes) that can contain the words in the query string.
* Deprecated: use search instead.
*
*
* string query = 8 [deprecated = true];
* @deprecated clarifai.api.ListWorkflowsRequest.query is deprecated.
* See proto/clarifai/api/service.proto;l=6526
* @param value The query to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setQuery(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
query_ = value;
onChanged();
return this;
}
/**
*
* Query various text fields (id, description and notes) that can contain the words in the query string.
* Deprecated: use search instead.
*
*
* string query = 8 [deprecated = true];
* @deprecated clarifai.api.ListWorkflowsRequest.query is deprecated.
* See proto/clarifai/api/service.proto;l=6526
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearQuery() {
query_ = getDefaultInstance().getQuery();
onChanged();
return this;
}
/**
*
* Query various text fields (id, description and notes) that can contain the words in the query string.
* Deprecated: use search instead.
*
*
* string query = 8 [deprecated = true];
* @deprecated clarifai.api.ListWorkflowsRequest.query is deprecated.
* See proto/clarifai/api/service.proto;l=6526
* @param value The bytes for query to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setQueryBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
query_ = value;
onChanged();
return this;
}
private java.lang.Object id_ = "";
/**
*
* Filter by the id of the workflow. This supports wilcard queries like "gen*" to match "general" as an example.
* Deprecated: use search instead.
*
*
* string id = 4 [deprecated = true];
* @deprecated clarifai.api.ListWorkflowsRequest.id is deprecated.
* See proto/clarifai/api/service.proto;l=6529
* @return The id.
*/
@java.lang.Deprecated 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;
}
}
/**
*
* Filter by the id of the workflow. This supports wilcard queries like "gen*" to match "general" as an example.
* Deprecated: use search instead.
*
*
* string id = 4 [deprecated = true];
* @deprecated clarifai.api.ListWorkflowsRequest.id is deprecated.
* See proto/clarifai/api/service.proto;l=6529
* @return The bytes for id.
*/
@java.lang.Deprecated 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;
}
}
/**
*
* Filter by the id of the workflow. This supports wilcard queries like "gen*" to match "general" as an example.
* Deprecated: use search instead.
*
*
* string id = 4 [deprecated = true];
* @deprecated clarifai.api.ListWorkflowsRequest.id is deprecated.
* See proto/clarifai/api/service.proto;l=6529
* @param value The id to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
*
* Filter by the id of the workflow. This supports wilcard queries like "gen*" to match "general" as an example.
* Deprecated: use search instead.
*
*
* string id = 4 [deprecated = true];
* @deprecated clarifai.api.ListWorkflowsRequest.id is deprecated.
* See proto/clarifai/api/service.proto;l=6529
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
* Filter by the id of the workflow. This supports wilcard queries like "gen*" to match "general" as an example.
* Deprecated: use search instead.
*
*
* string id = 4 [deprecated = true];
* @deprecated clarifai.api.ListWorkflowsRequest.id is deprecated.
* See proto/clarifai/api/service.proto;l=6529
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated 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 searchTerm_ = "";
/**
*
* Full text and prefix matching on id, owner id, description and notes. Searchable fields may be added
* Deprecated: use search instead.
*
*
* string search_term = 12 [deprecated = true];
* @deprecated clarifai.api.ListWorkflowsRequest.search_term is deprecated.
* See proto/clarifai/api/service.proto;l=6532
* @return The searchTerm.
*/
@java.lang.Deprecated public java.lang.String getSearchTerm() {
java.lang.Object ref = searchTerm_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
searchTerm_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Full text and prefix matching on id, owner id, description and notes. Searchable fields may be added
* Deprecated: use search instead.
*
*
* string search_term = 12 [deprecated = true];
* @deprecated clarifai.api.ListWorkflowsRequest.search_term is deprecated.
* See proto/clarifai/api/service.proto;l=6532
* @return The bytes for searchTerm.
*/
@java.lang.Deprecated public com.google.protobuf.ByteString
getSearchTermBytes() {
java.lang.Object ref = searchTerm_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
searchTerm_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Full text and prefix matching on id, owner id, description and notes. Searchable fields may be added
* Deprecated: use search instead.
*
*
* string search_term = 12 [deprecated = true];
* @deprecated clarifai.api.ListWorkflowsRequest.search_term is deprecated.
* See proto/clarifai/api/service.proto;l=6532
* @param value The searchTerm to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setSearchTerm(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
searchTerm_ = value;
onChanged();
return this;
}
/**
*
* Full text and prefix matching on id, owner id, description and notes. Searchable fields may be added
* Deprecated: use search instead.
*
*
* string search_term = 12 [deprecated = true];
* @deprecated clarifai.api.ListWorkflowsRequest.search_term is deprecated.
* See proto/clarifai/api/service.proto;l=6532
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearSearchTerm() {
searchTerm_ = getDefaultInstance().getSearchTerm();
onChanged();
return this;
}
/**
*
* Full text and prefix matching on id, owner id, description and notes. Searchable fields may be added
* Deprecated: use search instead.
*
*
* string search_term = 12 [deprecated = true];
* @deprecated clarifai.api.ListWorkflowsRequest.search_term is deprecated.
* See proto/clarifai/api/service.proto;l=6532
* @param value The bytes for searchTerm to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setSearchTermBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
searchTerm_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:clarifai.api.ListWorkflowsRequest)
}
// @@protoc_insertion_point(class_scope:clarifai.api.ListWorkflowsRequest)
private static final com.clarifai.grpc.api.ListWorkflowsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.clarifai.grpc.api.ListWorkflowsRequest();
}
public static com.clarifai.grpc.api.ListWorkflowsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListWorkflowsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListWorkflowsRequest(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.ListWorkflowsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}