com.clarifai.grpc.api.PostConceptsSearchesRequest Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: proto/clarifai/api/service.proto
package com.clarifai.grpc.api;
/**
*
* PostConceptsSearchesRequest
*
*
* Protobuf type {@code clarifai.api.PostConceptsSearchesRequest}
*/
public final class PostConceptsSearchesRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:clarifai.api.PostConceptsSearchesRequest)
PostConceptsSearchesRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use PostConceptsSearchesRequest.newBuilder() to construct.
private PostConceptsSearchesRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PostConceptsSearchesRequest() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PostConceptsSearchesRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PostConceptsSearchesRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
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 18: {
com.clarifai.grpc.api.ConceptQuery.Builder subBuilder = null;
if (conceptQuery_ != null) {
subBuilder = conceptQuery_.toBuilder();
}
conceptQuery_ = input.readMessage(com.clarifai.grpc.api.ConceptQuery.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(conceptQuery_);
conceptQuery_ = subBuilder.buildPartial();
}
break;
}
case 26: {
com.clarifai.grpc.api.Pagination.Builder subBuilder = null;
if (pagination_ != null) {
subBuilder = pagination_.toBuilder();
}
pagination_ = input.readMessage(com.clarifai.grpc.api.Pagination.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(pagination_);
pagination_ = subBuilder.buildPartial();
}
break;
}
case 34: {
com.clarifai.grpc.api.ConceptExtraInfoRequest.Builder subBuilder = null;
if (extraInfo_ != null) {
subBuilder = extraInfo_.toBuilder();
}
extraInfo_ = input.readMessage(com.clarifai.grpc.api.ConceptExtraInfoRequest.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(extraInfo_);
extraInfo_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.clarifai.grpc.api.Service.internal_static_clarifai_api_PostConceptsSearchesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.clarifai.grpc.api.Service.internal_static_clarifai_api_PostConceptsSearchesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.clarifai.grpc.api.PostConceptsSearchesRequest.class, com.clarifai.grpc.api.PostConceptsSearchesRequest.Builder.class);
}
public static final int USER_APP_ID_FIELD_NUMBER = 1;
private com.clarifai.grpc.api.UserAppIDSet userAppId_;
/**
*
* Ids present in the url of the request.
*
*
* .clarifai.api.UserAppIDSet user_app_id = 1;
* @return Whether the userAppId field is set.
*/
@java.lang.Override
public boolean hasUserAppId() {
return userAppId_ != null;
}
/**
*
* Ids present in the url of the request.
*
*
* .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_;
}
/**
*
* Ids present in the url of the request.
*
*
* .clarifai.api.UserAppIDSet user_app_id = 1;
*/
@java.lang.Override
public com.clarifai.grpc.api.UserAppIDSetOrBuilder getUserAppIdOrBuilder() {
return getUserAppId();
}
public static final int CONCEPT_QUERY_FIELD_NUMBER = 2;
private com.clarifai.grpc.api.ConceptQuery conceptQuery_;
/**
*
* The body of the request.
*
*
* .clarifai.api.ConceptQuery concept_query = 2;
* @return Whether the conceptQuery field is set.
*/
@java.lang.Override
public boolean hasConceptQuery() {
return conceptQuery_ != null;
}
/**
*
* The body of the request.
*
*
* .clarifai.api.ConceptQuery concept_query = 2;
* @return The conceptQuery.
*/
@java.lang.Override
public com.clarifai.grpc.api.ConceptQuery getConceptQuery() {
return conceptQuery_ == null ? com.clarifai.grpc.api.ConceptQuery.getDefaultInstance() : conceptQuery_;
}
/**
*
* The body of the request.
*
*
* .clarifai.api.ConceptQuery concept_query = 2;
*/
@java.lang.Override
public com.clarifai.grpc.api.ConceptQueryOrBuilder getConceptQueryOrBuilder() {
return getConceptQuery();
}
public static final int EXTRA_INFO_FIELD_NUMBER = 4;
private com.clarifai.grpc.api.ConceptExtraInfoRequest extraInfo_;
/**
*
* Request additional info to be retrieved for each concept in the response.
*
*
* .clarifai.api.ConceptExtraInfoRequest extra_info = 4;
* @return Whether the extraInfo field is set.
*/
@java.lang.Override
public boolean hasExtraInfo() {
return extraInfo_ != null;
}
/**
*
* Request additional info to be retrieved for each concept in the response.
*
*
* .clarifai.api.ConceptExtraInfoRequest extra_info = 4;
* @return The extraInfo.
*/
@java.lang.Override
public com.clarifai.grpc.api.ConceptExtraInfoRequest getExtraInfo() {
return extraInfo_ == null ? com.clarifai.grpc.api.ConceptExtraInfoRequest.getDefaultInstance() : extraInfo_;
}
/**
*
* Request additional info to be retrieved for each concept in the response.
*
*
* .clarifai.api.ConceptExtraInfoRequest extra_info = 4;
*/
@java.lang.Override
public com.clarifai.grpc.api.ConceptExtraInfoRequestOrBuilder getExtraInfoOrBuilder() {
return getExtraInfo();
}
public static final int PAGINATION_FIELD_NUMBER = 3;
private com.clarifai.grpc.api.Pagination pagination_;
/**
*
* Pagination parameters here since there are no url args in this
* POST request.
*
*
* .clarifai.api.Pagination pagination = 3;
* @return Whether the pagination field is set.
*/
@java.lang.Override
public boolean hasPagination() {
return pagination_ != null;
}
/**
*
* Pagination parameters here since there are no url args in this
* POST request.
*
*
* .clarifai.api.Pagination pagination = 3;
* @return The pagination.
*/
@java.lang.Override
public com.clarifai.grpc.api.Pagination getPagination() {
return pagination_ == null ? com.clarifai.grpc.api.Pagination.getDefaultInstance() : pagination_;
}
/**
*
* Pagination parameters here since there are no url args in this
* POST request.
*
*
* .clarifai.api.Pagination pagination = 3;
*/
@java.lang.Override
public com.clarifai.grpc.api.PaginationOrBuilder getPaginationOrBuilder() {
return getPagination();
}
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 (conceptQuery_ != null) {
output.writeMessage(2, getConceptQuery());
}
if (pagination_ != null) {
output.writeMessage(3, getPagination());
}
if (extraInfo_ != null) {
output.writeMessage(4, getExtraInfo());
}
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 (conceptQuery_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getConceptQuery());
}
if (pagination_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getPagination());
}
if (extraInfo_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getExtraInfo());
}
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.PostConceptsSearchesRequest)) {
return super.equals(obj);
}
com.clarifai.grpc.api.PostConceptsSearchesRequest other = (com.clarifai.grpc.api.PostConceptsSearchesRequest) obj;
if (hasUserAppId() != other.hasUserAppId()) return false;
if (hasUserAppId()) {
if (!getUserAppId()
.equals(other.getUserAppId())) return false;
}
if (hasConceptQuery() != other.hasConceptQuery()) return false;
if (hasConceptQuery()) {
if (!getConceptQuery()
.equals(other.getConceptQuery())) return false;
}
if (hasExtraInfo() != other.hasExtraInfo()) return false;
if (hasExtraInfo()) {
if (!getExtraInfo()
.equals(other.getExtraInfo())) return false;
}
if (hasPagination() != other.hasPagination()) return false;
if (hasPagination()) {
if (!getPagination()
.equals(other.getPagination())) 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();
if (hasUserAppId()) {
hash = (37 * hash) + USER_APP_ID_FIELD_NUMBER;
hash = (53 * hash) + getUserAppId().hashCode();
}
if (hasConceptQuery()) {
hash = (37 * hash) + CONCEPT_QUERY_FIELD_NUMBER;
hash = (53 * hash) + getConceptQuery().hashCode();
}
if (hasExtraInfo()) {
hash = (37 * hash) + EXTRA_INFO_FIELD_NUMBER;
hash = (53 * hash) + getExtraInfo().hashCode();
}
if (hasPagination()) {
hash = (37 * hash) + PAGINATION_FIELD_NUMBER;
hash = (53 * hash) + getPagination().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.clarifai.grpc.api.PostConceptsSearchesRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.PostConceptsSearchesRequest 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.PostConceptsSearchesRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.PostConceptsSearchesRequest 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.PostConceptsSearchesRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.PostConceptsSearchesRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.clarifai.grpc.api.PostConceptsSearchesRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.PostConceptsSearchesRequest 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.PostConceptsSearchesRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.PostConceptsSearchesRequest 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.PostConceptsSearchesRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.PostConceptsSearchesRequest 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.PostConceptsSearchesRequest 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;
}
/**
*
* PostConceptsSearchesRequest
*
*
* Protobuf type {@code clarifai.api.PostConceptsSearchesRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:clarifai.api.PostConceptsSearchesRequest)
com.clarifai.grpc.api.PostConceptsSearchesRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.clarifai.grpc.api.Service.internal_static_clarifai_api_PostConceptsSearchesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.clarifai.grpc.api.Service.internal_static_clarifai_api_PostConceptsSearchesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.clarifai.grpc.api.PostConceptsSearchesRequest.class, com.clarifai.grpc.api.PostConceptsSearchesRequest.Builder.class);
}
// Construct using com.clarifai.grpc.api.PostConceptsSearchesRequest.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;
}
if (conceptQueryBuilder_ == null) {
conceptQuery_ = null;
} else {
conceptQuery_ = null;
conceptQueryBuilder_ = null;
}
if (extraInfoBuilder_ == null) {
extraInfo_ = null;
} else {
extraInfo_ = null;
extraInfoBuilder_ = null;
}
if (paginationBuilder_ == null) {
pagination_ = null;
} else {
pagination_ = null;
paginationBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.clarifai.grpc.api.Service.internal_static_clarifai_api_PostConceptsSearchesRequest_descriptor;
}
@java.lang.Override
public com.clarifai.grpc.api.PostConceptsSearchesRequest getDefaultInstanceForType() {
return com.clarifai.grpc.api.PostConceptsSearchesRequest.getDefaultInstance();
}
@java.lang.Override
public com.clarifai.grpc.api.PostConceptsSearchesRequest build() {
com.clarifai.grpc.api.PostConceptsSearchesRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.clarifai.grpc.api.PostConceptsSearchesRequest buildPartial() {
com.clarifai.grpc.api.PostConceptsSearchesRequest result = new com.clarifai.grpc.api.PostConceptsSearchesRequest(this);
if (userAppIdBuilder_ == null) {
result.userAppId_ = userAppId_;
} else {
result.userAppId_ = userAppIdBuilder_.build();
}
if (conceptQueryBuilder_ == null) {
result.conceptQuery_ = conceptQuery_;
} else {
result.conceptQuery_ = conceptQueryBuilder_.build();
}
if (extraInfoBuilder_ == null) {
result.extraInfo_ = extraInfo_;
} else {
result.extraInfo_ = extraInfoBuilder_.build();
}
if (paginationBuilder_ == null) {
result.pagination_ = pagination_;
} else {
result.pagination_ = paginationBuilder_.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.PostConceptsSearchesRequest) {
return mergeFrom((com.clarifai.grpc.api.PostConceptsSearchesRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.clarifai.grpc.api.PostConceptsSearchesRequest other) {
if (other == com.clarifai.grpc.api.PostConceptsSearchesRequest.getDefaultInstance()) return this;
if (other.hasUserAppId()) {
mergeUserAppId(other.getUserAppId());
}
if (other.hasConceptQuery()) {
mergeConceptQuery(other.getConceptQuery());
}
if (other.hasExtraInfo()) {
mergeExtraInfo(other.getExtraInfo());
}
if (other.hasPagination()) {
mergePagination(other.getPagination());
}
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.PostConceptsSearchesRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.clarifai.grpc.api.PostConceptsSearchesRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
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_;
/**
*
* Ids present in the url of the request.
*
*
* .clarifai.api.UserAppIDSet user_app_id = 1;
* @return Whether the userAppId field is set.
*/
public boolean hasUserAppId() {
return userAppIdBuilder_ != null || userAppId_ != null;
}
/**
*
* Ids present in the url of the request.
*
*
* .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();
}
}
/**
*
* Ids present in the url of the request.
*
*
* .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;
}
/**
*
* Ids present in the url of the request.
*
*
* .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;
}
/**
*
* Ids present in the url of the request.
*
*
* .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;
}
/**
*
* Ids present in the url of the request.
*
*
* .clarifai.api.UserAppIDSet user_app_id = 1;
*/
public Builder clearUserAppId() {
if (userAppIdBuilder_ == null) {
userAppId_ = null;
onChanged();
} else {
userAppId_ = null;
userAppIdBuilder_ = null;
}
return this;
}
/**
*
* Ids present in the url of the request.
*
*
* .clarifai.api.UserAppIDSet user_app_id = 1;
*/
public com.clarifai.grpc.api.UserAppIDSet.Builder getUserAppIdBuilder() {
onChanged();
return getUserAppIdFieldBuilder().getBuilder();
}
/**
*
* Ids present in the url of the request.
*
*
* .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_;
}
}
/**
*
* Ids present in the url of the request.
*
*
* .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 com.clarifai.grpc.api.ConceptQuery conceptQuery_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.ConceptQuery, com.clarifai.grpc.api.ConceptQuery.Builder, com.clarifai.grpc.api.ConceptQueryOrBuilder> conceptQueryBuilder_;
/**
*
* The body of the request.
*
*
* .clarifai.api.ConceptQuery concept_query = 2;
* @return Whether the conceptQuery field is set.
*/
public boolean hasConceptQuery() {
return conceptQueryBuilder_ != null || conceptQuery_ != null;
}
/**
*
* The body of the request.
*
*
* .clarifai.api.ConceptQuery concept_query = 2;
* @return The conceptQuery.
*/
public com.clarifai.grpc.api.ConceptQuery getConceptQuery() {
if (conceptQueryBuilder_ == null) {
return conceptQuery_ == null ? com.clarifai.grpc.api.ConceptQuery.getDefaultInstance() : conceptQuery_;
} else {
return conceptQueryBuilder_.getMessage();
}
}
/**
*
* The body of the request.
*
*
* .clarifai.api.ConceptQuery concept_query = 2;
*/
public Builder setConceptQuery(com.clarifai.grpc.api.ConceptQuery value) {
if (conceptQueryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
conceptQuery_ = value;
onChanged();
} else {
conceptQueryBuilder_.setMessage(value);
}
return this;
}
/**
*
* The body of the request.
*
*
* .clarifai.api.ConceptQuery concept_query = 2;
*/
public Builder setConceptQuery(
com.clarifai.grpc.api.ConceptQuery.Builder builderForValue) {
if (conceptQueryBuilder_ == null) {
conceptQuery_ = builderForValue.build();
onChanged();
} else {
conceptQueryBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The body of the request.
*
*
* .clarifai.api.ConceptQuery concept_query = 2;
*/
public Builder mergeConceptQuery(com.clarifai.grpc.api.ConceptQuery value) {
if (conceptQueryBuilder_ == null) {
if (conceptQuery_ != null) {
conceptQuery_ =
com.clarifai.grpc.api.ConceptQuery.newBuilder(conceptQuery_).mergeFrom(value).buildPartial();
} else {
conceptQuery_ = value;
}
onChanged();
} else {
conceptQueryBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The body of the request.
*
*
* .clarifai.api.ConceptQuery concept_query = 2;
*/
public Builder clearConceptQuery() {
if (conceptQueryBuilder_ == null) {
conceptQuery_ = null;
onChanged();
} else {
conceptQuery_ = null;
conceptQueryBuilder_ = null;
}
return this;
}
/**
*
* The body of the request.
*
*
* .clarifai.api.ConceptQuery concept_query = 2;
*/
public com.clarifai.grpc.api.ConceptQuery.Builder getConceptQueryBuilder() {
onChanged();
return getConceptQueryFieldBuilder().getBuilder();
}
/**
*
* The body of the request.
*
*
* .clarifai.api.ConceptQuery concept_query = 2;
*/
public com.clarifai.grpc.api.ConceptQueryOrBuilder getConceptQueryOrBuilder() {
if (conceptQueryBuilder_ != null) {
return conceptQueryBuilder_.getMessageOrBuilder();
} else {
return conceptQuery_ == null ?
com.clarifai.grpc.api.ConceptQuery.getDefaultInstance() : conceptQuery_;
}
}
/**
*
* The body of the request.
*
*
* .clarifai.api.ConceptQuery concept_query = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.ConceptQuery, com.clarifai.grpc.api.ConceptQuery.Builder, com.clarifai.grpc.api.ConceptQueryOrBuilder>
getConceptQueryFieldBuilder() {
if (conceptQueryBuilder_ == null) {
conceptQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.ConceptQuery, com.clarifai.grpc.api.ConceptQuery.Builder, com.clarifai.grpc.api.ConceptQueryOrBuilder>(
getConceptQuery(),
getParentForChildren(),
isClean());
conceptQuery_ = null;
}
return conceptQueryBuilder_;
}
private com.clarifai.grpc.api.ConceptExtraInfoRequest extraInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.ConceptExtraInfoRequest, com.clarifai.grpc.api.ConceptExtraInfoRequest.Builder, com.clarifai.grpc.api.ConceptExtraInfoRequestOrBuilder> extraInfoBuilder_;
/**
*
* Request additional info to be retrieved for each concept in the response.
*
*
* .clarifai.api.ConceptExtraInfoRequest extra_info = 4;
* @return Whether the extraInfo field is set.
*/
public boolean hasExtraInfo() {
return extraInfoBuilder_ != null || extraInfo_ != null;
}
/**
*
* Request additional info to be retrieved for each concept in the response.
*
*
* .clarifai.api.ConceptExtraInfoRequest extra_info = 4;
* @return The extraInfo.
*/
public com.clarifai.grpc.api.ConceptExtraInfoRequest getExtraInfo() {
if (extraInfoBuilder_ == null) {
return extraInfo_ == null ? com.clarifai.grpc.api.ConceptExtraInfoRequest.getDefaultInstance() : extraInfo_;
} else {
return extraInfoBuilder_.getMessage();
}
}
/**
*
* Request additional info to be retrieved for each concept in the response.
*
*
* .clarifai.api.ConceptExtraInfoRequest extra_info = 4;
*/
public Builder setExtraInfo(com.clarifai.grpc.api.ConceptExtraInfoRequest value) {
if (extraInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
extraInfo_ = value;
onChanged();
} else {
extraInfoBuilder_.setMessage(value);
}
return this;
}
/**
*
* Request additional info to be retrieved for each concept in the response.
*
*
* .clarifai.api.ConceptExtraInfoRequest extra_info = 4;
*/
public Builder setExtraInfo(
com.clarifai.grpc.api.ConceptExtraInfoRequest.Builder builderForValue) {
if (extraInfoBuilder_ == null) {
extraInfo_ = builderForValue.build();
onChanged();
} else {
extraInfoBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Request additional info to be retrieved for each concept in the response.
*
*
* .clarifai.api.ConceptExtraInfoRequest extra_info = 4;
*/
public Builder mergeExtraInfo(com.clarifai.grpc.api.ConceptExtraInfoRequest value) {
if (extraInfoBuilder_ == null) {
if (extraInfo_ != null) {
extraInfo_ =
com.clarifai.grpc.api.ConceptExtraInfoRequest.newBuilder(extraInfo_).mergeFrom(value).buildPartial();
} else {
extraInfo_ = value;
}
onChanged();
} else {
extraInfoBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Request additional info to be retrieved for each concept in the response.
*
*
* .clarifai.api.ConceptExtraInfoRequest extra_info = 4;
*/
public Builder clearExtraInfo() {
if (extraInfoBuilder_ == null) {
extraInfo_ = null;
onChanged();
} else {
extraInfo_ = null;
extraInfoBuilder_ = null;
}
return this;
}
/**
*
* Request additional info to be retrieved for each concept in the response.
*
*
* .clarifai.api.ConceptExtraInfoRequest extra_info = 4;
*/
public com.clarifai.grpc.api.ConceptExtraInfoRequest.Builder getExtraInfoBuilder() {
onChanged();
return getExtraInfoFieldBuilder().getBuilder();
}
/**
*
* Request additional info to be retrieved for each concept in the response.
*
*
* .clarifai.api.ConceptExtraInfoRequest extra_info = 4;
*/
public com.clarifai.grpc.api.ConceptExtraInfoRequestOrBuilder getExtraInfoOrBuilder() {
if (extraInfoBuilder_ != null) {
return extraInfoBuilder_.getMessageOrBuilder();
} else {
return extraInfo_ == null ?
com.clarifai.grpc.api.ConceptExtraInfoRequest.getDefaultInstance() : extraInfo_;
}
}
/**
*
* Request additional info to be retrieved for each concept in the response.
*
*
* .clarifai.api.ConceptExtraInfoRequest extra_info = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.ConceptExtraInfoRequest, com.clarifai.grpc.api.ConceptExtraInfoRequest.Builder, com.clarifai.grpc.api.ConceptExtraInfoRequestOrBuilder>
getExtraInfoFieldBuilder() {
if (extraInfoBuilder_ == null) {
extraInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.ConceptExtraInfoRequest, com.clarifai.grpc.api.ConceptExtraInfoRequest.Builder, com.clarifai.grpc.api.ConceptExtraInfoRequestOrBuilder>(
getExtraInfo(),
getParentForChildren(),
isClean());
extraInfo_ = null;
}
return extraInfoBuilder_;
}
private com.clarifai.grpc.api.Pagination pagination_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.Pagination, com.clarifai.grpc.api.Pagination.Builder, com.clarifai.grpc.api.PaginationOrBuilder> paginationBuilder_;
/**
*
* Pagination parameters here since there are no url args in this
* POST request.
*
*
* .clarifai.api.Pagination pagination = 3;
* @return Whether the pagination field is set.
*/
public boolean hasPagination() {
return paginationBuilder_ != null || pagination_ != null;
}
/**
*
* Pagination parameters here since there are no url args in this
* POST request.
*
*
* .clarifai.api.Pagination pagination = 3;
* @return The pagination.
*/
public com.clarifai.grpc.api.Pagination getPagination() {
if (paginationBuilder_ == null) {
return pagination_ == null ? com.clarifai.grpc.api.Pagination.getDefaultInstance() : pagination_;
} else {
return paginationBuilder_.getMessage();
}
}
/**
*
* Pagination parameters here since there are no url args in this
* POST request.
*
*
* .clarifai.api.Pagination pagination = 3;
*/
public Builder setPagination(com.clarifai.grpc.api.Pagination value) {
if (paginationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
pagination_ = value;
onChanged();
} else {
paginationBuilder_.setMessage(value);
}
return this;
}
/**
*
* Pagination parameters here since there are no url args in this
* POST request.
*
*
* .clarifai.api.Pagination pagination = 3;
*/
public Builder setPagination(
com.clarifai.grpc.api.Pagination.Builder builderForValue) {
if (paginationBuilder_ == null) {
pagination_ = builderForValue.build();
onChanged();
} else {
paginationBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Pagination parameters here since there are no url args in this
* POST request.
*
*
* .clarifai.api.Pagination pagination = 3;
*/
public Builder mergePagination(com.clarifai.grpc.api.Pagination value) {
if (paginationBuilder_ == null) {
if (pagination_ != null) {
pagination_ =
com.clarifai.grpc.api.Pagination.newBuilder(pagination_).mergeFrom(value).buildPartial();
} else {
pagination_ = value;
}
onChanged();
} else {
paginationBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Pagination parameters here since there are no url args in this
* POST request.
*
*
* .clarifai.api.Pagination pagination = 3;
*/
public Builder clearPagination() {
if (paginationBuilder_ == null) {
pagination_ = null;
onChanged();
} else {
pagination_ = null;
paginationBuilder_ = null;
}
return this;
}
/**
*
* Pagination parameters here since there are no url args in this
* POST request.
*
*
* .clarifai.api.Pagination pagination = 3;
*/
public com.clarifai.grpc.api.Pagination.Builder getPaginationBuilder() {
onChanged();
return getPaginationFieldBuilder().getBuilder();
}
/**
*
* Pagination parameters here since there are no url args in this
* POST request.
*
*
* .clarifai.api.Pagination pagination = 3;
*/
public com.clarifai.grpc.api.PaginationOrBuilder getPaginationOrBuilder() {
if (paginationBuilder_ != null) {
return paginationBuilder_.getMessageOrBuilder();
} else {
return pagination_ == null ?
com.clarifai.grpc.api.Pagination.getDefaultInstance() : pagination_;
}
}
/**
*
* Pagination parameters here since there are no url args in this
* POST request.
*
*
* .clarifai.api.Pagination pagination = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.Pagination, com.clarifai.grpc.api.Pagination.Builder, com.clarifai.grpc.api.PaginationOrBuilder>
getPaginationFieldBuilder() {
if (paginationBuilder_ == null) {
paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.Pagination, com.clarifai.grpc.api.Pagination.Builder, com.clarifai.grpc.api.PaginationOrBuilder>(
getPagination(),
getParentForChildren(),
isClean());
pagination_ = null;
}
return paginationBuilder_;
}
@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.PostConceptsSearchesRequest)
}
// @@protoc_insertion_point(class_scope:clarifai.api.PostConceptsSearchesRequest)
private static final com.clarifai.grpc.api.PostConceptsSearchesRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.clarifai.grpc.api.PostConceptsSearchesRequest();
}
public static com.clarifai.grpc.api.PostConceptsSearchesRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PostConceptsSearchesRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PostConceptsSearchesRequest(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.PostConceptsSearchesRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}