Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
* The id of the knowledge graph being used for this concept mapping job
*
*
* string knowledge_graph_id = 1;
* @return The bytes for knowledgeGraphId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getKnowledgeGraphIdBytes() {
java.lang.Object ref = knowledgeGraphId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
knowledgeGraphId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CONCEPT_IDS_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList conceptIds_;
/**
*
* The ids of the concepts being mapped
*
*
* repeated string concept_ids = 2;
* @return A list containing the conceptIds.
*/
public com.google.protobuf.ProtocolStringList
getConceptIdsList() {
return conceptIds_;
}
/**
*
* The ids of the concepts being mapped
*
*
* repeated string concept_ids = 2;
* @return The count of conceptIds.
*/
public int getConceptIdsCount() {
return conceptIds_.size();
}
/**
*
* The ids of the concepts being mapped
*
*
* repeated string concept_ids = 2;
* @param index The index of the element to return.
* @return The conceptIds at the given index.
*/
public java.lang.String getConceptIds(int index) {
return conceptIds_.get(index);
}
/**
*
* The ids of the concepts being mapped
*
*
* repeated string concept_ids = 2;
* @param index The index of the value to return.
* @return The bytes of the conceptIds at the given index.
*/
public com.google.protobuf.ByteString
getConceptIdsBytes(int index) {
return conceptIds_.getByteString(index);
}
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(knowledgeGraphId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, knowledgeGraphId_);
}
for (int i = 0; i < conceptIds_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, conceptIds_.getRaw(i));
}
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(knowledgeGraphId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, knowledgeGraphId_);
}
{
int dataSize = 0;
for (int i = 0; i < conceptIds_.size(); i++) {
dataSize += computeStringSizeNoTag(conceptIds_.getRaw(i));
}
size += dataSize;
size += 1 * getConceptIdsList().size();
}
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.ConceptMappingJob)) {
return super.equals(obj);
}
com.clarifai.grpc.api.ConceptMappingJob other = (com.clarifai.grpc.api.ConceptMappingJob) obj;
if (!getKnowledgeGraphId()
.equals(other.getKnowledgeGraphId())) return false;
if (!getConceptIdsList()
.equals(other.getConceptIdsList())) 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) + KNOWLEDGE_GRAPH_ID_FIELD_NUMBER;
hash = (53 * hash) + getKnowledgeGraphId().hashCode();
if (getConceptIdsCount() > 0) {
hash = (37 * hash) + CONCEPT_IDS_FIELD_NUMBER;
hash = (53 * hash) + getConceptIdsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.clarifai.grpc.api.ConceptMappingJob parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.ConceptMappingJob 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.ConceptMappingJob parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.ConceptMappingJob 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.ConceptMappingJob parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.ConceptMappingJob parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.clarifai.grpc.api.ConceptMappingJob parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.ConceptMappingJob 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.ConceptMappingJob parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.ConceptMappingJob 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.ConceptMappingJob parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.ConceptMappingJob 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.ConceptMappingJob 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;
}
/**
*
* ConceptMappingJob
*
*
* Protobuf type {@code clarifai.api.ConceptMappingJob}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:clarifai.api.ConceptMappingJob)
com.clarifai.grpc.api.ConceptMappingJobOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_ConceptMappingJob_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_ConceptMappingJob_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.clarifai.grpc.api.ConceptMappingJob.class, com.clarifai.grpc.api.ConceptMappingJob.Builder.class);
}
// Construct using com.clarifai.grpc.api.ConceptMappingJob.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();
knowledgeGraphId_ = "";
conceptIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_ConceptMappingJob_descriptor;
}
@java.lang.Override
public com.clarifai.grpc.api.ConceptMappingJob getDefaultInstanceForType() {
return com.clarifai.grpc.api.ConceptMappingJob.getDefaultInstance();
}
@java.lang.Override
public com.clarifai.grpc.api.ConceptMappingJob build() {
com.clarifai.grpc.api.ConceptMappingJob result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.clarifai.grpc.api.ConceptMappingJob buildPartial() {
com.clarifai.grpc.api.ConceptMappingJob result = new com.clarifai.grpc.api.ConceptMappingJob(this);
int from_bitField0_ = bitField0_;
result.knowledgeGraphId_ = knowledgeGraphId_;
if (((bitField0_ & 0x00000001) != 0)) {
conceptIds_ = conceptIds_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.conceptIds_ = conceptIds_;
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.ConceptMappingJob) {
return mergeFrom((com.clarifai.grpc.api.ConceptMappingJob)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.clarifai.grpc.api.ConceptMappingJob other) {
if (other == com.clarifai.grpc.api.ConceptMappingJob.getDefaultInstance()) return this;
if (!other.getKnowledgeGraphId().isEmpty()) {
knowledgeGraphId_ = other.knowledgeGraphId_;
onChanged();
}
if (!other.conceptIds_.isEmpty()) {
if (conceptIds_.isEmpty()) {
conceptIds_ = other.conceptIds_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureConceptIdsIsMutable();
conceptIds_.addAll(other.conceptIds_);
}
onChanged();
}
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.ConceptMappingJob parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.clarifai.grpc.api.ConceptMappingJob) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object knowledgeGraphId_ = "";
/**
*
* The id of the knowledge graph being used for this concept mapping job
*
* The id of the knowledge graph being used for this concept mapping job
*
*
* string knowledge_graph_id = 1;
* @return The bytes for knowledgeGraphId.
*/
public com.google.protobuf.ByteString
getKnowledgeGraphIdBytes() {
java.lang.Object ref = knowledgeGraphId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
knowledgeGraphId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The id of the knowledge graph being used for this concept mapping job
*
*
* string knowledge_graph_id = 1;
* @param value The knowledgeGraphId to set.
* @return This builder for chaining.
*/
public Builder setKnowledgeGraphId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
knowledgeGraphId_ = value;
onChanged();
return this;
}
/**
*
* The id of the knowledge graph being used for this concept mapping job
*
*
* string knowledge_graph_id = 1;
* @return This builder for chaining.
*/
public Builder clearKnowledgeGraphId() {
knowledgeGraphId_ = getDefaultInstance().getKnowledgeGraphId();
onChanged();
return this;
}
/**
*
* The id of the knowledge graph being used for this concept mapping job
*
*
* string knowledge_graph_id = 1;
* @param value The bytes for knowledgeGraphId to set.
* @return This builder for chaining.
*/
public Builder setKnowledgeGraphIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
knowledgeGraphId_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList conceptIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureConceptIdsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
conceptIds_ = new com.google.protobuf.LazyStringArrayList(conceptIds_);
bitField0_ |= 0x00000001;
}
}
/**
*
* The ids of the concepts being mapped
*
*
* repeated string concept_ids = 2;
* @return A list containing the conceptIds.
*/
public com.google.protobuf.ProtocolStringList
getConceptIdsList() {
return conceptIds_.getUnmodifiableView();
}
/**
*
* The ids of the concepts being mapped
*
*
* repeated string concept_ids = 2;
* @return The count of conceptIds.
*/
public int getConceptIdsCount() {
return conceptIds_.size();
}
/**
*
* The ids of the concepts being mapped
*
*
* repeated string concept_ids = 2;
* @param index The index of the element to return.
* @return The conceptIds at the given index.
*/
public java.lang.String getConceptIds(int index) {
return conceptIds_.get(index);
}
/**
*
* The ids of the concepts being mapped
*
*
* repeated string concept_ids = 2;
* @param index The index of the value to return.
* @return The bytes of the conceptIds at the given index.
*/
public com.google.protobuf.ByteString
getConceptIdsBytes(int index) {
return conceptIds_.getByteString(index);
}
/**
*
* The ids of the concepts being mapped
*
*
* repeated string concept_ids = 2;
* @param index The index to set the value at.
* @param value The conceptIds to set.
* @return This builder for chaining.
*/
public Builder setConceptIds(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureConceptIdsIsMutable();
conceptIds_.set(index, value);
onChanged();
return this;
}
/**
*
* The ids of the concepts being mapped
*
*
* repeated string concept_ids = 2;
* @param value The conceptIds to add.
* @return This builder for chaining.
*/
public Builder addConceptIds(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureConceptIdsIsMutable();
conceptIds_.add(value);
onChanged();
return this;
}
/**
*
* The ids of the concepts being mapped
*
*
* repeated string concept_ids = 2;
* @param values The conceptIds to add.
* @return This builder for chaining.
*/
public Builder addAllConceptIds(
java.lang.Iterable values) {
ensureConceptIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, conceptIds_);
onChanged();
return this;
}
/**
*