com.clarifai.grpc.api.LabelDistribution Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: proto/clarifai/api/resources.proto
package com.clarifai.grpc.api;
/**
*
* LabelDistribution
*
*
* Protobuf type {@code clarifai.api.LabelDistribution}
*/
public final class LabelDistribution extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:clarifai.api.LabelDistribution)
LabelDistributionOrBuilder {
private static final long serialVersionUID = 0L;
// Use LabelDistribution.newBuilder() to construct.
private LabelDistribution(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LabelDistribution() {
positiveLabelCounts_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LabelDistribution();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LabelDistribution(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
positiveLabelCounts_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
positiveLabelCounts_.add(
input.readMessage(com.clarifai.grpc.api.LabelCount.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
positiveLabelCounts_ = java.util.Collections.unmodifiableList(positiveLabelCounts_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_LabelDistribution_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_LabelDistribution_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.clarifai.grpc.api.LabelDistribution.class, com.clarifai.grpc.api.LabelDistribution.Builder.class);
}
public static final int POSITIVE_LABEL_COUNTS_FIELD_NUMBER = 1;
private java.util.List positiveLabelCounts_;
/**
* repeated .clarifai.api.LabelCount positive_label_counts = 1;
*/
@java.lang.Override
public java.util.List getPositiveLabelCountsList() {
return positiveLabelCounts_;
}
/**
* repeated .clarifai.api.LabelCount positive_label_counts = 1;
*/
@java.lang.Override
public java.util.List extends com.clarifai.grpc.api.LabelCountOrBuilder>
getPositiveLabelCountsOrBuilderList() {
return positiveLabelCounts_;
}
/**
* repeated .clarifai.api.LabelCount positive_label_counts = 1;
*/
@java.lang.Override
public int getPositiveLabelCountsCount() {
return positiveLabelCounts_.size();
}
/**
* repeated .clarifai.api.LabelCount positive_label_counts = 1;
*/
@java.lang.Override
public com.clarifai.grpc.api.LabelCount getPositiveLabelCounts(int index) {
return positiveLabelCounts_.get(index);
}
/**
* repeated .clarifai.api.LabelCount positive_label_counts = 1;
*/
@java.lang.Override
public com.clarifai.grpc.api.LabelCountOrBuilder getPositiveLabelCountsOrBuilder(
int index) {
return positiveLabelCounts_.get(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 {
for (int i = 0; i < positiveLabelCounts_.size(); i++) {
output.writeMessage(1, positiveLabelCounts_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < positiveLabelCounts_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, positiveLabelCounts_.get(i));
}
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.LabelDistribution)) {
return super.equals(obj);
}
com.clarifai.grpc.api.LabelDistribution other = (com.clarifai.grpc.api.LabelDistribution) obj;
if (!getPositiveLabelCountsList()
.equals(other.getPositiveLabelCountsList())) 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 (getPositiveLabelCountsCount() > 0) {
hash = (37 * hash) + POSITIVE_LABEL_COUNTS_FIELD_NUMBER;
hash = (53 * hash) + getPositiveLabelCountsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.clarifai.grpc.api.LabelDistribution parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.LabelDistribution 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.LabelDistribution parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.LabelDistribution 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.LabelDistribution parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.LabelDistribution parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.clarifai.grpc.api.LabelDistribution parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.LabelDistribution 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.LabelDistribution parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.LabelDistribution 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.LabelDistribution parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.LabelDistribution 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.LabelDistribution 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;
}
/**
*
* LabelDistribution
*
*
* Protobuf type {@code clarifai.api.LabelDistribution}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:clarifai.api.LabelDistribution)
com.clarifai.grpc.api.LabelDistributionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_LabelDistribution_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_LabelDistribution_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.clarifai.grpc.api.LabelDistribution.class, com.clarifai.grpc.api.LabelDistribution.Builder.class);
}
// Construct using com.clarifai.grpc.api.LabelDistribution.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getPositiveLabelCountsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (positiveLabelCountsBuilder_ == null) {
positiveLabelCounts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
positiveLabelCountsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_LabelDistribution_descriptor;
}
@java.lang.Override
public com.clarifai.grpc.api.LabelDistribution getDefaultInstanceForType() {
return com.clarifai.grpc.api.LabelDistribution.getDefaultInstance();
}
@java.lang.Override
public com.clarifai.grpc.api.LabelDistribution build() {
com.clarifai.grpc.api.LabelDistribution result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.clarifai.grpc.api.LabelDistribution buildPartial() {
com.clarifai.grpc.api.LabelDistribution result = new com.clarifai.grpc.api.LabelDistribution(this);
int from_bitField0_ = bitField0_;
if (positiveLabelCountsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
positiveLabelCounts_ = java.util.Collections.unmodifiableList(positiveLabelCounts_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.positiveLabelCounts_ = positiveLabelCounts_;
} else {
result.positiveLabelCounts_ = positiveLabelCountsBuilder_.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.LabelDistribution) {
return mergeFrom((com.clarifai.grpc.api.LabelDistribution)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.clarifai.grpc.api.LabelDistribution other) {
if (other == com.clarifai.grpc.api.LabelDistribution.getDefaultInstance()) return this;
if (positiveLabelCountsBuilder_ == null) {
if (!other.positiveLabelCounts_.isEmpty()) {
if (positiveLabelCounts_.isEmpty()) {
positiveLabelCounts_ = other.positiveLabelCounts_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensurePositiveLabelCountsIsMutable();
positiveLabelCounts_.addAll(other.positiveLabelCounts_);
}
onChanged();
}
} else {
if (!other.positiveLabelCounts_.isEmpty()) {
if (positiveLabelCountsBuilder_.isEmpty()) {
positiveLabelCountsBuilder_.dispose();
positiveLabelCountsBuilder_ = null;
positiveLabelCounts_ = other.positiveLabelCounts_;
bitField0_ = (bitField0_ & ~0x00000001);
positiveLabelCountsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getPositiveLabelCountsFieldBuilder() : null;
} else {
positiveLabelCountsBuilder_.addAllMessages(other.positiveLabelCounts_);
}
}
}
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.LabelDistribution parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.clarifai.grpc.api.LabelDistribution) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List positiveLabelCounts_ =
java.util.Collections.emptyList();
private void ensurePositiveLabelCountsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
positiveLabelCounts_ = new java.util.ArrayList(positiveLabelCounts_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.clarifai.grpc.api.LabelCount, com.clarifai.grpc.api.LabelCount.Builder, com.clarifai.grpc.api.LabelCountOrBuilder> positiveLabelCountsBuilder_;
/**
* repeated .clarifai.api.LabelCount positive_label_counts = 1;
*/
public java.util.List getPositiveLabelCountsList() {
if (positiveLabelCountsBuilder_ == null) {
return java.util.Collections.unmodifiableList(positiveLabelCounts_);
} else {
return positiveLabelCountsBuilder_.getMessageList();
}
}
/**
* repeated .clarifai.api.LabelCount positive_label_counts = 1;
*/
public int getPositiveLabelCountsCount() {
if (positiveLabelCountsBuilder_ == null) {
return positiveLabelCounts_.size();
} else {
return positiveLabelCountsBuilder_.getCount();
}
}
/**
* repeated .clarifai.api.LabelCount positive_label_counts = 1;
*/
public com.clarifai.grpc.api.LabelCount getPositiveLabelCounts(int index) {
if (positiveLabelCountsBuilder_ == null) {
return positiveLabelCounts_.get(index);
} else {
return positiveLabelCountsBuilder_.getMessage(index);
}
}
/**
* repeated .clarifai.api.LabelCount positive_label_counts = 1;
*/
public Builder setPositiveLabelCounts(
int index, com.clarifai.grpc.api.LabelCount value) {
if (positiveLabelCountsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePositiveLabelCountsIsMutable();
positiveLabelCounts_.set(index, value);
onChanged();
} else {
positiveLabelCountsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .clarifai.api.LabelCount positive_label_counts = 1;
*/
public Builder setPositiveLabelCounts(
int index, com.clarifai.grpc.api.LabelCount.Builder builderForValue) {
if (positiveLabelCountsBuilder_ == null) {
ensurePositiveLabelCountsIsMutable();
positiveLabelCounts_.set(index, builderForValue.build());
onChanged();
} else {
positiveLabelCountsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .clarifai.api.LabelCount positive_label_counts = 1;
*/
public Builder addPositiveLabelCounts(com.clarifai.grpc.api.LabelCount value) {
if (positiveLabelCountsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePositiveLabelCountsIsMutable();
positiveLabelCounts_.add(value);
onChanged();
} else {
positiveLabelCountsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .clarifai.api.LabelCount positive_label_counts = 1;
*/
public Builder addPositiveLabelCounts(
int index, com.clarifai.grpc.api.LabelCount value) {
if (positiveLabelCountsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePositiveLabelCountsIsMutable();
positiveLabelCounts_.add(index, value);
onChanged();
} else {
positiveLabelCountsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .clarifai.api.LabelCount positive_label_counts = 1;
*/
public Builder addPositiveLabelCounts(
com.clarifai.grpc.api.LabelCount.Builder builderForValue) {
if (positiveLabelCountsBuilder_ == null) {
ensurePositiveLabelCountsIsMutable();
positiveLabelCounts_.add(builderForValue.build());
onChanged();
} else {
positiveLabelCountsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .clarifai.api.LabelCount positive_label_counts = 1;
*/
public Builder addPositiveLabelCounts(
int index, com.clarifai.grpc.api.LabelCount.Builder builderForValue) {
if (positiveLabelCountsBuilder_ == null) {
ensurePositiveLabelCountsIsMutable();
positiveLabelCounts_.add(index, builderForValue.build());
onChanged();
} else {
positiveLabelCountsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .clarifai.api.LabelCount positive_label_counts = 1;
*/
public Builder addAllPositiveLabelCounts(
java.lang.Iterable extends com.clarifai.grpc.api.LabelCount> values) {
if (positiveLabelCountsBuilder_ == null) {
ensurePositiveLabelCountsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, positiveLabelCounts_);
onChanged();
} else {
positiveLabelCountsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .clarifai.api.LabelCount positive_label_counts = 1;
*/
public Builder clearPositiveLabelCounts() {
if (positiveLabelCountsBuilder_ == null) {
positiveLabelCounts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
positiveLabelCountsBuilder_.clear();
}
return this;
}
/**
* repeated .clarifai.api.LabelCount positive_label_counts = 1;
*/
public Builder removePositiveLabelCounts(int index) {
if (positiveLabelCountsBuilder_ == null) {
ensurePositiveLabelCountsIsMutable();
positiveLabelCounts_.remove(index);
onChanged();
} else {
positiveLabelCountsBuilder_.remove(index);
}
return this;
}
/**
* repeated .clarifai.api.LabelCount positive_label_counts = 1;
*/
public com.clarifai.grpc.api.LabelCount.Builder getPositiveLabelCountsBuilder(
int index) {
return getPositiveLabelCountsFieldBuilder().getBuilder(index);
}
/**
* repeated .clarifai.api.LabelCount positive_label_counts = 1;
*/
public com.clarifai.grpc.api.LabelCountOrBuilder getPositiveLabelCountsOrBuilder(
int index) {
if (positiveLabelCountsBuilder_ == null) {
return positiveLabelCounts_.get(index); } else {
return positiveLabelCountsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .clarifai.api.LabelCount positive_label_counts = 1;
*/
public java.util.List extends com.clarifai.grpc.api.LabelCountOrBuilder>
getPositiveLabelCountsOrBuilderList() {
if (positiveLabelCountsBuilder_ != null) {
return positiveLabelCountsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(positiveLabelCounts_);
}
}
/**
* repeated .clarifai.api.LabelCount positive_label_counts = 1;
*/
public com.clarifai.grpc.api.LabelCount.Builder addPositiveLabelCountsBuilder() {
return getPositiveLabelCountsFieldBuilder().addBuilder(
com.clarifai.grpc.api.LabelCount.getDefaultInstance());
}
/**
* repeated .clarifai.api.LabelCount positive_label_counts = 1;
*/
public com.clarifai.grpc.api.LabelCount.Builder addPositiveLabelCountsBuilder(
int index) {
return getPositiveLabelCountsFieldBuilder().addBuilder(
index, com.clarifai.grpc.api.LabelCount.getDefaultInstance());
}
/**
* repeated .clarifai.api.LabelCount positive_label_counts = 1;
*/
public java.util.List
getPositiveLabelCountsBuilderList() {
return getPositiveLabelCountsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.clarifai.grpc.api.LabelCount, com.clarifai.grpc.api.LabelCount.Builder, com.clarifai.grpc.api.LabelCountOrBuilder>
getPositiveLabelCountsFieldBuilder() {
if (positiveLabelCountsBuilder_ == null) {
positiveLabelCountsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.clarifai.grpc.api.LabelCount, com.clarifai.grpc.api.LabelCount.Builder, com.clarifai.grpc.api.LabelCountOrBuilder>(
positiveLabelCounts_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
positiveLabelCounts_ = null;
}
return positiveLabelCountsBuilder_;
}
@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.LabelDistribution)
}
// @@protoc_insertion_point(class_scope:clarifai.api.LabelDistribution)
private static final com.clarifai.grpc.api.LabelDistribution DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.clarifai.grpc.api.LabelDistribution();
}
public static com.clarifai.grpc.api.LabelDistribution getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LabelDistribution parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new LabelDistribution(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.LabelDistribution getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}