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

com.clarifai.grpc.api.Concept Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: proto/clarifai/api/resources.proto

package com.clarifai.grpc.api;

/**
 * 
 * Concept or tag
 * 
* * Protobuf type {@code clarifai.api.Concept} */ public final class Concept extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:clarifai.api.Concept) ConceptOrBuilder { private static final long serialVersionUID = 0L; // Use Concept.newBuilder() to construct. private Concept(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Concept() { id_ = ""; name_ = ""; language_ = ""; appId_ = ""; definition_ = ""; vocabId_ = ""; userId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Concept(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Concept( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); id_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 29: { value_ = input.readFloat(); break; } case 34: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (createdAt_ != null) { subBuilder = createdAt_.toBuilder(); } createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(createdAt_); createdAt_ = subBuilder.buildPartial(); } break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); language_ = s; break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); appId_ = s; break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); definition_ = s; break; } case 66: { java.lang.String s = input.readStringRequireUtf8(); vocabId_ = s; break; } case 74: { com.clarifai.grpc.api.Visibility.Builder subBuilder = null; if (visibility_ != null) { subBuilder = visibility_.toBuilder(); } visibility_ = input.readMessage(com.clarifai.grpc.api.Visibility.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(visibility_); visibility_ = subBuilder.buildPartial(); } break; } case 82: { java.lang.String s = input.readStringRequireUtf8(); userId_ = s; break; } case 90: { com.clarifai.grpc.api.KeypointInfo.Builder subBuilder = null; if (keypointInfo_ != null) { subBuilder = keypointInfo_.toBuilder(); } keypointInfo_ = input.readMessage(com.clarifai.grpc.api.KeypointInfo.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(keypointInfo_); keypointInfo_ = subBuilder.buildPartial(); } break; } case 98: { com.clarifai.grpc.api.ConceptExtraInfo.Builder subBuilder = null; if (extraInfo_ != null) { subBuilder = extraInfo_.toBuilder(); } extraInfo_ = input.readMessage(com.clarifai.grpc.api.ConceptExtraInfo.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.Resources.internal_static_clarifai_api_Concept_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Concept_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clarifai.grpc.api.Concept.class, com.clarifai.grpc.api.Concept.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
   * The concept's unique id.
   * 
* * string id = 1; * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** *
   * The concept's unique id.
   * 
* * string id = 1; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** *
   * The name of the concept in the given language.
   * 
* * string name = 2; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
   * The name of the concept in the given language.
   * 
* * string name = 2; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALUE_FIELD_NUMBER = 3; private float value_; /** *
   * Used to indicate presence (1.0) or not (0.0) of this concept when making a request.
   * This is also the prediction probability when returning predictions from our API.
   * For convenience we use the default of 1.0 when making requests so the concept you provide is
   * is treated as a positive (1.0) and not a negative (which would be value == 0.0).
   * 
* * float value = 3 [(.clarifai.api.utils.cl_show_if_empty) = true, (.clarifai.api.utils.cl_default_float) = 1]; * @return The value. */ @java.lang.Override public float getValue() { return value_; } public static final int CREATED_AT_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp createdAt_; /** *
   * When the concept was created. The format is https://www.ietf.org/rfc/rfc3339.txt .
   * Example: "2006-01-02T15:04:05.999999Z". This field is used only in a response.
   * 
* * .google.protobuf.Timestamp created_at = 4; * @return Whether the createdAt field is set. */ @java.lang.Override public boolean hasCreatedAt() { return createdAt_ != null; } /** *
   * When the concept was created. The format is https://www.ietf.org/rfc/rfc3339.txt .
   * Example: "2006-01-02T15:04:05.999999Z". This field is used only in a response.
   * 
* * .google.protobuf.Timestamp created_at = 4; * @return The createdAt. */ @java.lang.Override public com.google.protobuf.Timestamp getCreatedAt() { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } /** *
   * When the concept was created. The format is https://www.ietf.org/rfc/rfc3339.txt .
   * Example: "2006-01-02T15:04:05.999999Z". This field is used only in a response.
   * 
* * .google.protobuf.Timestamp created_at = 4; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { return getCreatedAt(); } public static final int LANGUAGE_FIELD_NUMBER = 5; private volatile java.lang.Object language_; /** *
   * The language in which the concept name is in. This is *ONLY* used in the response and setting
   * it in a request is ignored since the default language of your app is used when creating
   * or patching a Concept. To set other languages for your concept use the ConceptLanguage object
   * and its corresponding endpoints.
   * 
* * string language = 5; * @return The language. */ @java.lang.Override public java.lang.String getLanguage() { java.lang.Object ref = language_; 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(); language_ = s; return s; } } /** *
   * The language in which the concept name is in. This is *ONLY* used in the response and setting
   * it in a request is ignored since the default language of your app is used when creating
   * or patching a Concept. To set other languages for your concept use the ConceptLanguage object
   * and its corresponding endpoints.
   * 
* * string language = 5; * @return The bytes for language. */ @java.lang.Override public com.google.protobuf.ByteString getLanguageBytes() { java.lang.Object ref = language_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); language_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int APP_ID_FIELD_NUMBER = 6; private volatile java.lang.Object appId_; /** *
   * The application id that this concept is within. This can be ignored by most users.
   * 
* * string app_id = 6; * @return The appId. */ @java.lang.Override public java.lang.String getAppId() { java.lang.Object ref = appId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); appId_ = s; return s; } } /** *
   * The application id that this concept is within. This can be ignored by most users.
   * 
* * string app_id = 6; * @return The bytes for appId. */ @java.lang.Override public com.google.protobuf.ByteString getAppIdBytes() { java.lang.Object ref = appId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); appId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DEFINITION_FIELD_NUMBER = 7; private volatile java.lang.Object definition_; /** *
   * The definition for the concept. Similar to name. This can be ignored by most users.
   * 
* * string definition = 7; * @return The definition. */ @java.lang.Override public java.lang.String getDefinition() { java.lang.Object ref = definition_; 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(); definition_ = s; return s; } } /** *
   * The definition for the concept. Similar to name. This can be ignored by most users.
   * 
* * string definition = 7; * @return The bytes for definition. */ @java.lang.Override public com.google.protobuf.ByteString getDefinitionBytes() { java.lang.Object ref = definition_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); definition_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VOCAB_ID_FIELD_NUMBER = 8; private volatile java.lang.Object vocabId_; /** *
   * The vocabulary that this concept belongs to. This is useful if you have different unique sets
   * of concepts that you can separate out based on this field. For example "age_appearance" vs
   * "gender_appearance" in a list of concept returned from the demographics model.
   * 
* * string vocab_id = 8; * @return The vocabId. */ @java.lang.Override public java.lang.String getVocabId() { java.lang.Object ref = vocabId_; 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(); vocabId_ = s; return s; } } /** *
   * The vocabulary that this concept belongs to. This is useful if you have different unique sets
   * of concepts that you can separate out based on this field. For example "age_appearance" vs
   * "gender_appearance" in a list of concept returned from the demographics model.
   * 
* * string vocab_id = 8; * @return The bytes for vocabId. */ @java.lang.Override public com.google.protobuf.ByteString getVocabIdBytes() { java.lang.Object ref = vocabId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); vocabId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VISIBILITY_FIELD_NUMBER = 9; private com.clarifai.grpc.api.Visibility visibility_; /** *
   * The visibility field represents whether this message is privately/publicly visible.
   * To be visible to the public the App that contains it AND the User that contains the App must
   * also be publicly visible.
   * 
* * .clarifai.api.Visibility visibility = 9; * @return Whether the visibility field is set. */ @java.lang.Override public boolean hasVisibility() { return visibility_ != null; } /** *
   * The visibility field represents whether this message is privately/publicly visible.
   * To be visible to the public the App that contains it AND the User that contains the App must
   * also be publicly visible.
   * 
* * .clarifai.api.Visibility visibility = 9; * @return The visibility. */ @java.lang.Override public com.clarifai.grpc.api.Visibility getVisibility() { return visibility_ == null ? com.clarifai.grpc.api.Visibility.getDefaultInstance() : visibility_; } /** *
   * The visibility field represents whether this message is privately/publicly visible.
   * To be visible to the public the App that contains it AND the User that contains the App must
   * also be publicly visible.
   * 
* * .clarifai.api.Visibility visibility = 9; */ @java.lang.Override public com.clarifai.grpc.api.VisibilityOrBuilder getVisibilityOrBuilder() { return getVisibility(); } public static final int USER_ID_FIELD_NUMBER = 10; private volatile java.lang.Object userId_; /** *
   * The user the concept belongs to.
   * 
* * string user_id = 10; * @return The userId. */ @java.lang.Override public java.lang.String getUserId() { java.lang.Object ref = userId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userId_ = s; return s; } } /** *
   * The user the concept belongs to.
   * 
* * string user_id = 10; * @return The bytes for userId. */ @java.lang.Override public com.google.protobuf.ByteString getUserIdBytes() { java.lang.Object ref = userId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); userId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int KEYPOINT_INFO_FIELD_NUMBER = 11; private com.clarifai.grpc.api.KeypointInfo keypointInfo_; /** *
   * Information about keypoints for this concept
   * 
* * .clarifai.api.KeypointInfo keypoint_info = 11; * @return Whether the keypointInfo field is set. */ @java.lang.Override public boolean hasKeypointInfo() { return keypointInfo_ != null; } /** *
   * Information about keypoints for this concept
   * 
* * .clarifai.api.KeypointInfo keypoint_info = 11; * @return The keypointInfo. */ @java.lang.Override public com.clarifai.grpc.api.KeypointInfo getKeypointInfo() { return keypointInfo_ == null ? com.clarifai.grpc.api.KeypointInfo.getDefaultInstance() : keypointInfo_; } /** *
   * Information about keypoints for this concept
   * 
* * .clarifai.api.KeypointInfo keypoint_info = 11; */ @java.lang.Override public com.clarifai.grpc.api.KeypointInfoOrBuilder getKeypointInfoOrBuilder() { return getKeypointInfo(); } public static final int EXTRA_INFO_FIELD_NUMBER = 12; private com.clarifai.grpc.api.ConceptExtraInfo extraInfo_; /** *
   * Optional extra info.
   * 
* * .clarifai.api.ConceptExtraInfo extra_info = 12; * @return Whether the extraInfo field is set. */ @java.lang.Override public boolean hasExtraInfo() { return extraInfo_ != null; } /** *
   * Optional extra info.
   * 
* * .clarifai.api.ConceptExtraInfo extra_info = 12; * @return The extraInfo. */ @java.lang.Override public com.clarifai.grpc.api.ConceptExtraInfo getExtraInfo() { return extraInfo_ == null ? com.clarifai.grpc.api.ConceptExtraInfo.getDefaultInstance() : extraInfo_; } /** *
   * Optional extra info.
   * 
* * .clarifai.api.ConceptExtraInfo extra_info = 12; */ @java.lang.Override public com.clarifai.grpc.api.ConceptExtraInfoOrBuilder getExtraInfoOrBuilder() { return getExtraInfo(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } if (java.lang.Float.floatToRawIntBits(value_) != 0) { output.writeFloat(3, value_); } if (createdAt_ != null) { output.writeMessage(4, getCreatedAt()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(language_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, language_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(appId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, appId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(definition_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, definition_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vocabId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, vocabId_); } if (visibility_ != null) { output.writeMessage(9, getVisibility()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, userId_); } if (keypointInfo_ != null) { output.writeMessage(11, getKeypointInfo()); } if (extraInfo_ != null) { output.writeMessage(12, getExtraInfo()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } if (java.lang.Float.floatToRawIntBits(value_) != 0) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(3, value_); } if (createdAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getCreatedAt()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(language_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, language_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(appId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, appId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(definition_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, definition_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vocabId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, vocabId_); } if (visibility_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getVisibility()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, userId_); } if (keypointInfo_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getKeypointInfo()); } if (extraInfo_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, 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.Concept)) { return super.equals(obj); } com.clarifai.grpc.api.Concept other = (com.clarifai.grpc.api.Concept) obj; if (!getId() .equals(other.getId())) return false; if (!getName() .equals(other.getName())) return false; if (java.lang.Float.floatToIntBits(getValue()) != java.lang.Float.floatToIntBits( other.getValue())) return false; if (hasCreatedAt() != other.hasCreatedAt()) return false; if (hasCreatedAt()) { if (!getCreatedAt() .equals(other.getCreatedAt())) return false; } if (!getLanguage() .equals(other.getLanguage())) return false; if (!getAppId() .equals(other.getAppId())) return false; if (!getDefinition() .equals(other.getDefinition())) return false; if (!getVocabId() .equals(other.getVocabId())) return false; if (hasVisibility() != other.hasVisibility()) return false; if (hasVisibility()) { if (!getVisibility() .equals(other.getVisibility())) return false; } if (!getUserId() .equals(other.getUserId())) return false; if (hasKeypointInfo() != other.hasKeypointInfo()) return false; if (hasKeypointInfo()) { if (!getKeypointInfo() .equals(other.getKeypointInfo())) return false; } if (hasExtraInfo() != other.hasExtraInfo()) return false; if (hasExtraInfo()) { if (!getExtraInfo() .equals(other.getExtraInfo())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getValue()); if (hasCreatedAt()) { hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; hash = (53 * hash) + getCreatedAt().hashCode(); } hash = (37 * hash) + LANGUAGE_FIELD_NUMBER; hash = (53 * hash) + getLanguage().hashCode(); hash = (37 * hash) + APP_ID_FIELD_NUMBER; hash = (53 * hash) + getAppId().hashCode(); hash = (37 * hash) + DEFINITION_FIELD_NUMBER; hash = (53 * hash) + getDefinition().hashCode(); hash = (37 * hash) + VOCAB_ID_FIELD_NUMBER; hash = (53 * hash) + getVocabId().hashCode(); if (hasVisibility()) { hash = (37 * hash) + VISIBILITY_FIELD_NUMBER; hash = (53 * hash) + getVisibility().hashCode(); } hash = (37 * hash) + USER_ID_FIELD_NUMBER; hash = (53 * hash) + getUserId().hashCode(); if (hasKeypointInfo()) { hash = (37 * hash) + KEYPOINT_INFO_FIELD_NUMBER; hash = (53 * hash) + getKeypointInfo().hashCode(); } if (hasExtraInfo()) { hash = (37 * hash) + EXTRA_INFO_FIELD_NUMBER; hash = (53 * hash) + getExtraInfo().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.clarifai.grpc.api.Concept parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.Concept 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.Concept parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.Concept 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.Concept parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.Concept parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clarifai.grpc.api.Concept parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clarifai.grpc.api.Concept 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.Concept parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.clarifai.grpc.api.Concept 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.Concept parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clarifai.grpc.api.Concept 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.Concept 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; } /** *
   * Concept or tag
   * 
* * Protobuf type {@code clarifai.api.Concept} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:clarifai.api.Concept) com.clarifai.grpc.api.ConceptOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Concept_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Concept_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clarifai.grpc.api.Concept.class, com.clarifai.grpc.api.Concept.Builder.class); } // Construct using com.clarifai.grpc.api.Concept.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); id_ = ""; name_ = ""; value_ = 0F; if (createdAtBuilder_ == null) { createdAt_ = null; } else { createdAt_ = null; createdAtBuilder_ = null; } language_ = ""; appId_ = ""; definition_ = ""; vocabId_ = ""; if (visibilityBuilder_ == null) { visibility_ = null; } else { visibility_ = null; visibilityBuilder_ = null; } userId_ = ""; if (keypointInfoBuilder_ == null) { keypointInfo_ = null; } else { keypointInfo_ = null; keypointInfoBuilder_ = null; } if (extraInfoBuilder_ == null) { extraInfo_ = null; } else { extraInfo_ = null; extraInfoBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Concept_descriptor; } @java.lang.Override public com.clarifai.grpc.api.Concept getDefaultInstanceForType() { return com.clarifai.grpc.api.Concept.getDefaultInstance(); } @java.lang.Override public com.clarifai.grpc.api.Concept build() { com.clarifai.grpc.api.Concept result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.clarifai.grpc.api.Concept buildPartial() { com.clarifai.grpc.api.Concept result = new com.clarifai.grpc.api.Concept(this); result.id_ = id_; result.name_ = name_; result.value_ = value_; if (createdAtBuilder_ == null) { result.createdAt_ = createdAt_; } else { result.createdAt_ = createdAtBuilder_.build(); } result.language_ = language_; result.appId_ = appId_; result.definition_ = definition_; result.vocabId_ = vocabId_; if (visibilityBuilder_ == null) { result.visibility_ = visibility_; } else { result.visibility_ = visibilityBuilder_.build(); } result.userId_ = userId_; if (keypointInfoBuilder_ == null) { result.keypointInfo_ = keypointInfo_; } else { result.keypointInfo_ = keypointInfoBuilder_.build(); } if (extraInfoBuilder_ == null) { result.extraInfo_ = extraInfo_; } else { result.extraInfo_ = extraInfoBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.clarifai.grpc.api.Concept) { return mergeFrom((com.clarifai.grpc.api.Concept)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.clarifai.grpc.api.Concept other) { if (other == com.clarifai.grpc.api.Concept.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.getValue() != 0F) { setValue(other.getValue()); } if (other.hasCreatedAt()) { mergeCreatedAt(other.getCreatedAt()); } if (!other.getLanguage().isEmpty()) { language_ = other.language_; onChanged(); } if (!other.getAppId().isEmpty()) { appId_ = other.appId_; onChanged(); } if (!other.getDefinition().isEmpty()) { definition_ = other.definition_; onChanged(); } if (!other.getVocabId().isEmpty()) { vocabId_ = other.vocabId_; onChanged(); } if (other.hasVisibility()) { mergeVisibility(other.getVisibility()); } if (!other.getUserId().isEmpty()) { userId_ = other.userId_; onChanged(); } if (other.hasKeypointInfo()) { mergeKeypointInfo(other.getKeypointInfo()); } if (other.hasExtraInfo()) { mergeExtraInfo(other.getExtraInfo()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.clarifai.grpc.api.Concept parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.clarifai.grpc.api.Concept) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object id_ = ""; /** *
     * The concept's unique id.
     * 
* * string id = 1; * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The concept's unique id.
     * 
* * string id = 1; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The concept's unique id.
     * 
* * string id = 1; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** *
     * The concept's unique id.
     * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
     * The concept's unique id.
     * 
* * string id = 1; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; onChanged(); return this; } private java.lang.Object name_ = ""; /** *
     * The name of the concept in the given language.
     * 
* * string name = 2; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The name of the concept in the given language.
     * 
* * string name = 2; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The name of the concept in the given language.
     * 
* * string name = 2; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
     * The name of the concept in the given language.
     * 
* * string name = 2; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
     * The name of the concept in the given language.
     * 
* * string name = 2; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private float value_ ; /** *
     * Used to indicate presence (1.0) or not (0.0) of this concept when making a request.
     * This is also the prediction probability when returning predictions from our API.
     * For convenience we use the default of 1.0 when making requests so the concept you provide is
     * is treated as a positive (1.0) and not a negative (which would be value == 0.0).
     * 
* * float value = 3 [(.clarifai.api.utils.cl_show_if_empty) = true, (.clarifai.api.utils.cl_default_float) = 1]; * @return The value. */ @java.lang.Override public float getValue() { return value_; } /** *
     * Used to indicate presence (1.0) or not (0.0) of this concept when making a request.
     * This is also the prediction probability when returning predictions from our API.
     * For convenience we use the default of 1.0 when making requests so the concept you provide is
     * is treated as a positive (1.0) and not a negative (which would be value == 0.0).
     * 
* * float value = 3 [(.clarifai.api.utils.cl_show_if_empty) = true, (.clarifai.api.utils.cl_default_float) = 1]; * @param value The value to set. * @return This builder for chaining. */ public Builder setValue(float value) { value_ = value; onChanged(); return this; } /** *
     * Used to indicate presence (1.0) or not (0.0) of this concept when making a request.
     * This is also the prediction probability when returning predictions from our API.
     * For convenience we use the default of 1.0 when making requests so the concept you provide is
     * is treated as a positive (1.0) and not a negative (which would be value == 0.0).
     * 
* * float value = 3 [(.clarifai.api.utils.cl_show_if_empty) = true, (.clarifai.api.utils.cl_default_float) = 1]; * @return This builder for chaining. */ public Builder clearValue() { value_ = 0F; onChanged(); return this; } private com.google.protobuf.Timestamp createdAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; /** *
     * When the concept was created. The format is https://www.ietf.org/rfc/rfc3339.txt .
     * Example: "2006-01-02T15:04:05.999999Z". This field is used only in a response.
     * 
* * .google.protobuf.Timestamp created_at = 4; * @return Whether the createdAt field is set. */ public boolean hasCreatedAt() { return createdAtBuilder_ != null || createdAt_ != null; } /** *
     * When the concept was created. The format is https://www.ietf.org/rfc/rfc3339.txt .
     * Example: "2006-01-02T15:04:05.999999Z". This field is used only in a response.
     * 
* * .google.protobuf.Timestamp created_at = 4; * @return The createdAt. */ public com.google.protobuf.Timestamp getCreatedAt() { if (createdAtBuilder_ == null) { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } else { return createdAtBuilder_.getMessage(); } } /** *
     * When the concept was created. The format is https://www.ietf.org/rfc/rfc3339.txt .
     * Example: "2006-01-02T15:04:05.999999Z". This field is used only in a response.
     * 
* * .google.protobuf.Timestamp created_at = 4; */ public Builder setCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createdAt_ = value; onChanged(); } else { createdAtBuilder_.setMessage(value); } return this; } /** *
     * When the concept was created. The format is https://www.ietf.org/rfc/rfc3339.txt .
     * Example: "2006-01-02T15:04:05.999999Z". This field is used only in a response.
     * 
* * .google.protobuf.Timestamp created_at = 4; */ public Builder setCreatedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (createdAtBuilder_ == null) { createdAt_ = builderForValue.build(); onChanged(); } else { createdAtBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * When the concept was created. The format is https://www.ietf.org/rfc/rfc3339.txt .
     * Example: "2006-01-02T15:04:05.999999Z". This field is used only in a response.
     * 
* * .google.protobuf.Timestamp created_at = 4; */ public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (createdAt_ != null) { createdAt_ = com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial(); } else { createdAt_ = value; } onChanged(); } else { createdAtBuilder_.mergeFrom(value); } return this; } /** *
     * When the concept was created. The format is https://www.ietf.org/rfc/rfc3339.txt .
     * Example: "2006-01-02T15:04:05.999999Z". This field is used only in a response.
     * 
* * .google.protobuf.Timestamp created_at = 4; */ public Builder clearCreatedAt() { if (createdAtBuilder_ == null) { createdAt_ = null; onChanged(); } else { createdAt_ = null; createdAtBuilder_ = null; } return this; } /** *
     * When the concept was created. The format is https://www.ietf.org/rfc/rfc3339.txt .
     * Example: "2006-01-02T15:04:05.999999Z". This field is used only in a response.
     * 
* * .google.protobuf.Timestamp created_at = 4; */ public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { onChanged(); return getCreatedAtFieldBuilder().getBuilder(); } /** *
     * When the concept was created. The format is https://www.ietf.org/rfc/rfc3339.txt .
     * Example: "2006-01-02T15:04:05.999999Z". This field is used only in a response.
     * 
* * .google.protobuf.Timestamp created_at = 4; */ public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { if (createdAtBuilder_ != null) { return createdAtBuilder_.getMessageOrBuilder(); } else { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } } /** *
     * When the concept was created. The format is https://www.ietf.org/rfc/rfc3339.txt .
     * Example: "2006-01-02T15:04:05.999999Z". This field is used only in a response.
     * 
* * .google.protobuf.Timestamp created_at = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreatedAtFieldBuilder() { if (createdAtBuilder_ == null) { createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCreatedAt(), getParentForChildren(), isClean()); createdAt_ = null; } return createdAtBuilder_; } private java.lang.Object language_ = ""; /** *
     * The language in which the concept name is in. This is *ONLY* used in the response and setting
     * it in a request is ignored since the default language of your app is used when creating
     * or patching a Concept. To set other languages for your concept use the ConceptLanguage object
     * and its corresponding endpoints.
     * 
* * string language = 5; * @return The language. */ public java.lang.String getLanguage() { java.lang.Object ref = language_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); language_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The language in which the concept name is in. This is *ONLY* used in the response and setting
     * it in a request is ignored since the default language of your app is used when creating
     * or patching a Concept. To set other languages for your concept use the ConceptLanguage object
     * and its corresponding endpoints.
     * 
* * string language = 5; * @return The bytes for language. */ public com.google.protobuf.ByteString getLanguageBytes() { java.lang.Object ref = language_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); language_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The language in which the concept name is in. This is *ONLY* used in the response and setting
     * it in a request is ignored since the default language of your app is used when creating
     * or patching a Concept. To set other languages for your concept use the ConceptLanguage object
     * and its corresponding endpoints.
     * 
* * string language = 5; * @param value The language to set. * @return This builder for chaining. */ public Builder setLanguage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } language_ = value; onChanged(); return this; } /** *
     * The language in which the concept name is in. This is *ONLY* used in the response and setting
     * it in a request is ignored since the default language of your app is used when creating
     * or patching a Concept. To set other languages for your concept use the ConceptLanguage object
     * and its corresponding endpoints.
     * 
* * string language = 5; * @return This builder for chaining. */ public Builder clearLanguage() { language_ = getDefaultInstance().getLanguage(); onChanged(); return this; } /** *
     * The language in which the concept name is in. This is *ONLY* used in the response and setting
     * it in a request is ignored since the default language of your app is used when creating
     * or patching a Concept. To set other languages for your concept use the ConceptLanguage object
     * and its corresponding endpoints.
     * 
* * string language = 5; * @param value The bytes for language to set. * @return This builder for chaining. */ public Builder setLanguageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); language_ = value; onChanged(); return this; } private java.lang.Object appId_ = ""; /** *
     * The application id that this concept is within. This can be ignored by most users.
     * 
* * string app_id = 6; * @return The appId. */ public java.lang.String getAppId() { java.lang.Object ref = appId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); appId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The application id that this concept is within. This can be ignored by most users.
     * 
* * string app_id = 6; * @return The bytes for appId. */ public com.google.protobuf.ByteString getAppIdBytes() { java.lang.Object ref = appId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); appId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The application id that this concept is within. This can be ignored by most users.
     * 
* * string app_id = 6; * @param value The appId to set. * @return This builder for chaining. */ public Builder setAppId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } appId_ = value; onChanged(); return this; } /** *
     * The application id that this concept is within. This can be ignored by most users.
     * 
* * string app_id = 6; * @return This builder for chaining. */ public Builder clearAppId() { appId_ = getDefaultInstance().getAppId(); onChanged(); return this; } /** *
     * The application id that this concept is within. This can be ignored by most users.
     * 
* * string app_id = 6; * @param value The bytes for appId to set. * @return This builder for chaining. */ public Builder setAppIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); appId_ = value; onChanged(); return this; } private java.lang.Object definition_ = ""; /** *
     * The definition for the concept. Similar to name. This can be ignored by most users.
     * 
* * string definition = 7; * @return The definition. */ public java.lang.String getDefinition() { java.lang.Object ref = definition_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); definition_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The definition for the concept. Similar to name. This can be ignored by most users.
     * 
* * string definition = 7; * @return The bytes for definition. */ public com.google.protobuf.ByteString getDefinitionBytes() { java.lang.Object ref = definition_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); definition_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The definition for the concept. Similar to name. This can be ignored by most users.
     * 
* * string definition = 7; * @param value The definition to set. * @return This builder for chaining. */ public Builder setDefinition( java.lang.String value) { if (value == null) { throw new NullPointerException(); } definition_ = value; onChanged(); return this; } /** *
     * The definition for the concept. Similar to name. This can be ignored by most users.
     * 
* * string definition = 7; * @return This builder for chaining. */ public Builder clearDefinition() { definition_ = getDefaultInstance().getDefinition(); onChanged(); return this; } /** *
     * The definition for the concept. Similar to name. This can be ignored by most users.
     * 
* * string definition = 7; * @param value The bytes for definition to set. * @return This builder for chaining. */ public Builder setDefinitionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); definition_ = value; onChanged(); return this; } private java.lang.Object vocabId_ = ""; /** *
     * The vocabulary that this concept belongs to. This is useful if you have different unique sets
     * of concepts that you can separate out based on this field. For example "age_appearance" vs
     * "gender_appearance" in a list of concept returned from the demographics model.
     * 
* * string vocab_id = 8; * @return The vocabId. */ public java.lang.String getVocabId() { java.lang.Object ref = vocabId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vocabId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The vocabulary that this concept belongs to. This is useful if you have different unique sets
     * of concepts that you can separate out based on this field. For example "age_appearance" vs
     * "gender_appearance" in a list of concept returned from the demographics model.
     * 
* * string vocab_id = 8; * @return The bytes for vocabId. */ public com.google.protobuf.ByteString getVocabIdBytes() { java.lang.Object ref = vocabId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); vocabId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The vocabulary that this concept belongs to. This is useful if you have different unique sets
     * of concepts that you can separate out based on this field. For example "age_appearance" vs
     * "gender_appearance" in a list of concept returned from the demographics model.
     * 
* * string vocab_id = 8; * @param value The vocabId to set. * @return This builder for chaining. */ public Builder setVocabId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } vocabId_ = value; onChanged(); return this; } /** *
     * The vocabulary that this concept belongs to. This is useful if you have different unique sets
     * of concepts that you can separate out based on this field. For example "age_appearance" vs
     * "gender_appearance" in a list of concept returned from the demographics model.
     * 
* * string vocab_id = 8; * @return This builder for chaining. */ public Builder clearVocabId() { vocabId_ = getDefaultInstance().getVocabId(); onChanged(); return this; } /** *
     * The vocabulary that this concept belongs to. This is useful if you have different unique sets
     * of concepts that you can separate out based on this field. For example "age_appearance" vs
     * "gender_appearance" in a list of concept returned from the demographics model.
     * 
* * string vocab_id = 8; * @param value The bytes for vocabId to set. * @return This builder for chaining. */ public Builder setVocabIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); vocabId_ = value; onChanged(); return this; } private com.clarifai.grpc.api.Visibility visibility_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Visibility, com.clarifai.grpc.api.Visibility.Builder, com.clarifai.grpc.api.VisibilityOrBuilder> visibilityBuilder_; /** *
     * The visibility field represents whether this message is privately/publicly visible.
     * To be visible to the public the App that contains it AND the User that contains the App must
     * also be publicly visible.
     * 
* * .clarifai.api.Visibility visibility = 9; * @return Whether the visibility field is set. */ public boolean hasVisibility() { return visibilityBuilder_ != null || visibility_ != null; } /** *
     * The visibility field represents whether this message is privately/publicly visible.
     * To be visible to the public the App that contains it AND the User that contains the App must
     * also be publicly visible.
     * 
* * .clarifai.api.Visibility visibility = 9; * @return The visibility. */ public com.clarifai.grpc.api.Visibility getVisibility() { if (visibilityBuilder_ == null) { return visibility_ == null ? com.clarifai.grpc.api.Visibility.getDefaultInstance() : visibility_; } else { return visibilityBuilder_.getMessage(); } } /** *
     * The visibility field represents whether this message is privately/publicly visible.
     * To be visible to the public the App that contains it AND the User that contains the App must
     * also be publicly visible.
     * 
* * .clarifai.api.Visibility visibility = 9; */ public Builder setVisibility(com.clarifai.grpc.api.Visibility value) { if (visibilityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } visibility_ = value; onChanged(); } else { visibilityBuilder_.setMessage(value); } return this; } /** *
     * The visibility field represents whether this message is privately/publicly visible.
     * To be visible to the public the App that contains it AND the User that contains the App must
     * also be publicly visible.
     * 
* * .clarifai.api.Visibility visibility = 9; */ public Builder setVisibility( com.clarifai.grpc.api.Visibility.Builder builderForValue) { if (visibilityBuilder_ == null) { visibility_ = builderForValue.build(); onChanged(); } else { visibilityBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The visibility field represents whether this message is privately/publicly visible.
     * To be visible to the public the App that contains it AND the User that contains the App must
     * also be publicly visible.
     * 
* * .clarifai.api.Visibility visibility = 9; */ public Builder mergeVisibility(com.clarifai.grpc.api.Visibility value) { if (visibilityBuilder_ == null) { if (visibility_ != null) { visibility_ = com.clarifai.grpc.api.Visibility.newBuilder(visibility_).mergeFrom(value).buildPartial(); } else { visibility_ = value; } onChanged(); } else { visibilityBuilder_.mergeFrom(value); } return this; } /** *
     * The visibility field represents whether this message is privately/publicly visible.
     * To be visible to the public the App that contains it AND the User that contains the App must
     * also be publicly visible.
     * 
* * .clarifai.api.Visibility visibility = 9; */ public Builder clearVisibility() { if (visibilityBuilder_ == null) { visibility_ = null; onChanged(); } else { visibility_ = null; visibilityBuilder_ = null; } return this; } /** *
     * The visibility field represents whether this message is privately/publicly visible.
     * To be visible to the public the App that contains it AND the User that contains the App must
     * also be publicly visible.
     * 
* * .clarifai.api.Visibility visibility = 9; */ public com.clarifai.grpc.api.Visibility.Builder getVisibilityBuilder() { onChanged(); return getVisibilityFieldBuilder().getBuilder(); } /** *
     * The visibility field represents whether this message is privately/publicly visible.
     * To be visible to the public the App that contains it AND the User that contains the App must
     * also be publicly visible.
     * 
* * .clarifai.api.Visibility visibility = 9; */ public com.clarifai.grpc.api.VisibilityOrBuilder getVisibilityOrBuilder() { if (visibilityBuilder_ != null) { return visibilityBuilder_.getMessageOrBuilder(); } else { return visibility_ == null ? com.clarifai.grpc.api.Visibility.getDefaultInstance() : visibility_; } } /** *
     * The visibility field represents whether this message is privately/publicly visible.
     * To be visible to the public the App that contains it AND the User that contains the App must
     * also be publicly visible.
     * 
* * .clarifai.api.Visibility visibility = 9; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Visibility, com.clarifai.grpc.api.Visibility.Builder, com.clarifai.grpc.api.VisibilityOrBuilder> getVisibilityFieldBuilder() { if (visibilityBuilder_ == null) { visibilityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Visibility, com.clarifai.grpc.api.Visibility.Builder, com.clarifai.grpc.api.VisibilityOrBuilder>( getVisibility(), getParentForChildren(), isClean()); visibility_ = null; } return visibilityBuilder_; } private java.lang.Object userId_ = ""; /** *
     * The user the concept belongs to.
     * 
* * string user_id = 10; * @return The userId. */ public java.lang.String getUserId() { java.lang.Object ref = userId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The user the concept belongs to.
     * 
* * string user_id = 10; * @return The bytes for userId. */ public com.google.protobuf.ByteString getUserIdBytes() { java.lang.Object ref = userId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); userId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The user the concept belongs to.
     * 
* * string user_id = 10; * @param value The userId to set. * @return This builder for chaining. */ public Builder setUserId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } userId_ = value; onChanged(); return this; } /** *
     * The user the concept belongs to.
     * 
* * string user_id = 10; * @return This builder for chaining. */ public Builder clearUserId() { userId_ = getDefaultInstance().getUserId(); onChanged(); return this; } /** *
     * The user the concept belongs to.
     * 
* * string user_id = 10; * @param value The bytes for userId to set. * @return This builder for chaining. */ public Builder setUserIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); userId_ = value; onChanged(); return this; } private com.clarifai.grpc.api.KeypointInfo keypointInfo_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.KeypointInfo, com.clarifai.grpc.api.KeypointInfo.Builder, com.clarifai.grpc.api.KeypointInfoOrBuilder> keypointInfoBuilder_; /** *
     * Information about keypoints for this concept
     * 
* * .clarifai.api.KeypointInfo keypoint_info = 11; * @return Whether the keypointInfo field is set. */ public boolean hasKeypointInfo() { return keypointInfoBuilder_ != null || keypointInfo_ != null; } /** *
     * Information about keypoints for this concept
     * 
* * .clarifai.api.KeypointInfo keypoint_info = 11; * @return The keypointInfo. */ public com.clarifai.grpc.api.KeypointInfo getKeypointInfo() { if (keypointInfoBuilder_ == null) { return keypointInfo_ == null ? com.clarifai.grpc.api.KeypointInfo.getDefaultInstance() : keypointInfo_; } else { return keypointInfoBuilder_.getMessage(); } } /** *
     * Information about keypoints for this concept
     * 
* * .clarifai.api.KeypointInfo keypoint_info = 11; */ public Builder setKeypointInfo(com.clarifai.grpc.api.KeypointInfo value) { if (keypointInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } keypointInfo_ = value; onChanged(); } else { keypointInfoBuilder_.setMessage(value); } return this; } /** *
     * Information about keypoints for this concept
     * 
* * .clarifai.api.KeypointInfo keypoint_info = 11; */ public Builder setKeypointInfo( com.clarifai.grpc.api.KeypointInfo.Builder builderForValue) { if (keypointInfoBuilder_ == null) { keypointInfo_ = builderForValue.build(); onChanged(); } else { keypointInfoBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Information about keypoints for this concept
     * 
* * .clarifai.api.KeypointInfo keypoint_info = 11; */ public Builder mergeKeypointInfo(com.clarifai.grpc.api.KeypointInfo value) { if (keypointInfoBuilder_ == null) { if (keypointInfo_ != null) { keypointInfo_ = com.clarifai.grpc.api.KeypointInfo.newBuilder(keypointInfo_).mergeFrom(value).buildPartial(); } else { keypointInfo_ = value; } onChanged(); } else { keypointInfoBuilder_.mergeFrom(value); } return this; } /** *
     * Information about keypoints for this concept
     * 
* * .clarifai.api.KeypointInfo keypoint_info = 11; */ public Builder clearKeypointInfo() { if (keypointInfoBuilder_ == null) { keypointInfo_ = null; onChanged(); } else { keypointInfo_ = null; keypointInfoBuilder_ = null; } return this; } /** *
     * Information about keypoints for this concept
     * 
* * .clarifai.api.KeypointInfo keypoint_info = 11; */ public com.clarifai.grpc.api.KeypointInfo.Builder getKeypointInfoBuilder() { onChanged(); return getKeypointInfoFieldBuilder().getBuilder(); } /** *
     * Information about keypoints for this concept
     * 
* * .clarifai.api.KeypointInfo keypoint_info = 11; */ public com.clarifai.grpc.api.KeypointInfoOrBuilder getKeypointInfoOrBuilder() { if (keypointInfoBuilder_ != null) { return keypointInfoBuilder_.getMessageOrBuilder(); } else { return keypointInfo_ == null ? com.clarifai.grpc.api.KeypointInfo.getDefaultInstance() : keypointInfo_; } } /** *
     * Information about keypoints for this concept
     * 
* * .clarifai.api.KeypointInfo keypoint_info = 11; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.KeypointInfo, com.clarifai.grpc.api.KeypointInfo.Builder, com.clarifai.grpc.api.KeypointInfoOrBuilder> getKeypointInfoFieldBuilder() { if (keypointInfoBuilder_ == null) { keypointInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.KeypointInfo, com.clarifai.grpc.api.KeypointInfo.Builder, com.clarifai.grpc.api.KeypointInfoOrBuilder>( getKeypointInfo(), getParentForChildren(), isClean()); keypointInfo_ = null; } return keypointInfoBuilder_; } private com.clarifai.grpc.api.ConceptExtraInfo extraInfo_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.ConceptExtraInfo, com.clarifai.grpc.api.ConceptExtraInfo.Builder, com.clarifai.grpc.api.ConceptExtraInfoOrBuilder> extraInfoBuilder_; /** *
     * Optional extra info.
     * 
* * .clarifai.api.ConceptExtraInfo extra_info = 12; * @return Whether the extraInfo field is set. */ public boolean hasExtraInfo() { return extraInfoBuilder_ != null || extraInfo_ != null; } /** *
     * Optional extra info.
     * 
* * .clarifai.api.ConceptExtraInfo extra_info = 12; * @return The extraInfo. */ public com.clarifai.grpc.api.ConceptExtraInfo getExtraInfo() { if (extraInfoBuilder_ == null) { return extraInfo_ == null ? com.clarifai.grpc.api.ConceptExtraInfo.getDefaultInstance() : extraInfo_; } else { return extraInfoBuilder_.getMessage(); } } /** *
     * Optional extra info.
     * 
* * .clarifai.api.ConceptExtraInfo extra_info = 12; */ public Builder setExtraInfo(com.clarifai.grpc.api.ConceptExtraInfo value) { if (extraInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } extraInfo_ = value; onChanged(); } else { extraInfoBuilder_.setMessage(value); } return this; } /** *
     * Optional extra info.
     * 
* * .clarifai.api.ConceptExtraInfo extra_info = 12; */ public Builder setExtraInfo( com.clarifai.grpc.api.ConceptExtraInfo.Builder builderForValue) { if (extraInfoBuilder_ == null) { extraInfo_ = builderForValue.build(); onChanged(); } else { extraInfoBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Optional extra info.
     * 
* * .clarifai.api.ConceptExtraInfo extra_info = 12; */ public Builder mergeExtraInfo(com.clarifai.grpc.api.ConceptExtraInfo value) { if (extraInfoBuilder_ == null) { if (extraInfo_ != null) { extraInfo_ = com.clarifai.grpc.api.ConceptExtraInfo.newBuilder(extraInfo_).mergeFrom(value).buildPartial(); } else { extraInfo_ = value; } onChanged(); } else { extraInfoBuilder_.mergeFrom(value); } return this; } /** *
     * Optional extra info.
     * 
* * .clarifai.api.ConceptExtraInfo extra_info = 12; */ public Builder clearExtraInfo() { if (extraInfoBuilder_ == null) { extraInfo_ = null; onChanged(); } else { extraInfo_ = null; extraInfoBuilder_ = null; } return this; } /** *
     * Optional extra info.
     * 
* * .clarifai.api.ConceptExtraInfo extra_info = 12; */ public com.clarifai.grpc.api.ConceptExtraInfo.Builder getExtraInfoBuilder() { onChanged(); return getExtraInfoFieldBuilder().getBuilder(); } /** *
     * Optional extra info.
     * 
* * .clarifai.api.ConceptExtraInfo extra_info = 12; */ public com.clarifai.grpc.api.ConceptExtraInfoOrBuilder getExtraInfoOrBuilder() { if (extraInfoBuilder_ != null) { return extraInfoBuilder_.getMessageOrBuilder(); } else { return extraInfo_ == null ? com.clarifai.grpc.api.ConceptExtraInfo.getDefaultInstance() : extraInfo_; } } /** *
     * Optional extra info.
     * 
* * .clarifai.api.ConceptExtraInfo extra_info = 12; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.ConceptExtraInfo, com.clarifai.grpc.api.ConceptExtraInfo.Builder, com.clarifai.grpc.api.ConceptExtraInfoOrBuilder> getExtraInfoFieldBuilder() { if (extraInfoBuilder_ == null) { extraInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.ConceptExtraInfo, com.clarifai.grpc.api.ConceptExtraInfo.Builder, com.clarifai.grpc.api.ConceptExtraInfoOrBuilder>( getExtraInfo(), getParentForChildren(), isClean()); extraInfo_ = null; } return extraInfoBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:clarifai.api.Concept) } // @@protoc_insertion_point(class_scope:clarifai.api.Concept) private static final com.clarifai.grpc.api.Concept DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.clarifai.grpc.api.Concept(); } public static com.clarifai.grpc.api.Concept getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Concept parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Concept(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.Concept getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy