com.clarifai.grpc.api.TaskMetrics 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;
/**
* Protobuf type {@code clarifai.api.TaskMetrics}
*/
public final class TaskMetrics extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:clarifai.api.TaskMetrics)
TaskMetricsOrBuilder {
private static final long serialVersionUID = 0L;
// Use TaskMetrics.newBuilder() to construct.
private TaskMetrics(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TaskMetrics() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TaskMetrics();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TaskMetrics(
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 18: {
com.clarifai.grpc.api.TaskWorkMetrics.Builder subBuilder = null;
if (work_ != null) {
subBuilder = work_.toBuilder();
}
work_ = input.readMessage(com.clarifai.grpc.api.TaskWorkMetrics.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(work_);
work_ = subBuilder.buildPartial();
}
break;
}
case 26: {
com.clarifai.grpc.api.TaskReviewMetrics.Builder subBuilder = null;
if (review_ != null) {
subBuilder = review_.toBuilder();
}
review_ = input.readMessage(com.clarifai.grpc.api.TaskReviewMetrics.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(review_);
review_ = subBuilder.buildPartial();
}
break;
}
case 34: {
com.clarifai.grpc.api.TaskInputSourceMetrics.Builder subBuilder = null;
if (inputSource_ != null) {
subBuilder = inputSource_.toBuilder();
}
inputSource_ = input.readMessage(com.clarifai.grpc.api.TaskInputSourceMetrics.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(inputSource_);
inputSource_ = 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_TaskMetrics_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_TaskMetrics_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.clarifai.grpc.api.TaskMetrics.class, com.clarifai.grpc.api.TaskMetrics.Builder.class);
}
public static final int WORK_FIELD_NUMBER = 2;
private com.clarifai.grpc.api.TaskWorkMetrics work_;
/**
* .clarifai.api.TaskWorkMetrics work = 2;
* @return Whether the work field is set.
*/
@java.lang.Override
public boolean hasWork() {
return work_ != null;
}
/**
* .clarifai.api.TaskWorkMetrics work = 2;
* @return The work.
*/
@java.lang.Override
public com.clarifai.grpc.api.TaskWorkMetrics getWork() {
return work_ == null ? com.clarifai.grpc.api.TaskWorkMetrics.getDefaultInstance() : work_;
}
/**
* .clarifai.api.TaskWorkMetrics work = 2;
*/
@java.lang.Override
public com.clarifai.grpc.api.TaskWorkMetricsOrBuilder getWorkOrBuilder() {
return getWork();
}
public static final int REVIEW_FIELD_NUMBER = 3;
private com.clarifai.grpc.api.TaskReviewMetrics review_;
/**
* .clarifai.api.TaskReviewMetrics review = 3;
* @return Whether the review field is set.
*/
@java.lang.Override
public boolean hasReview() {
return review_ != null;
}
/**
* .clarifai.api.TaskReviewMetrics review = 3;
* @return The review.
*/
@java.lang.Override
public com.clarifai.grpc.api.TaskReviewMetrics getReview() {
return review_ == null ? com.clarifai.grpc.api.TaskReviewMetrics.getDefaultInstance() : review_;
}
/**
* .clarifai.api.TaskReviewMetrics review = 3;
*/
@java.lang.Override
public com.clarifai.grpc.api.TaskReviewMetricsOrBuilder getReviewOrBuilder() {
return getReview();
}
public static final int INPUT_SOURCE_FIELD_NUMBER = 4;
private com.clarifai.grpc.api.TaskInputSourceMetrics inputSource_;
/**
* .clarifai.api.TaskInputSourceMetrics input_source = 4;
* @return Whether the inputSource field is set.
*/
@java.lang.Override
public boolean hasInputSource() {
return inputSource_ != null;
}
/**
* .clarifai.api.TaskInputSourceMetrics input_source = 4;
* @return The inputSource.
*/
@java.lang.Override
public com.clarifai.grpc.api.TaskInputSourceMetrics getInputSource() {
return inputSource_ == null ? com.clarifai.grpc.api.TaskInputSourceMetrics.getDefaultInstance() : inputSource_;
}
/**
* .clarifai.api.TaskInputSourceMetrics input_source = 4;
*/
@java.lang.Override
public com.clarifai.grpc.api.TaskInputSourceMetricsOrBuilder getInputSourceOrBuilder() {
return getInputSource();
}
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 (work_ != null) {
output.writeMessage(2, getWork());
}
if (review_ != null) {
output.writeMessage(3, getReview());
}
if (inputSource_ != null) {
output.writeMessage(4, getInputSource());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (work_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getWork());
}
if (review_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getReview());
}
if (inputSource_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getInputSource());
}
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.TaskMetrics)) {
return super.equals(obj);
}
com.clarifai.grpc.api.TaskMetrics other = (com.clarifai.grpc.api.TaskMetrics) obj;
if (hasWork() != other.hasWork()) return false;
if (hasWork()) {
if (!getWork()
.equals(other.getWork())) return false;
}
if (hasReview() != other.hasReview()) return false;
if (hasReview()) {
if (!getReview()
.equals(other.getReview())) return false;
}
if (hasInputSource() != other.hasInputSource()) return false;
if (hasInputSource()) {
if (!getInputSource()
.equals(other.getInputSource())) 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 (hasWork()) {
hash = (37 * hash) + WORK_FIELD_NUMBER;
hash = (53 * hash) + getWork().hashCode();
}
if (hasReview()) {
hash = (37 * hash) + REVIEW_FIELD_NUMBER;
hash = (53 * hash) + getReview().hashCode();
}
if (hasInputSource()) {
hash = (37 * hash) + INPUT_SOURCE_FIELD_NUMBER;
hash = (53 * hash) + getInputSource().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.clarifai.grpc.api.TaskMetrics parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.TaskMetrics 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.TaskMetrics parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.TaskMetrics 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.TaskMetrics parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.TaskMetrics parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.clarifai.grpc.api.TaskMetrics parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.TaskMetrics 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.TaskMetrics parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.TaskMetrics 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.TaskMetrics parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.TaskMetrics 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.TaskMetrics 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;
}
/**
* Protobuf type {@code clarifai.api.TaskMetrics}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:clarifai.api.TaskMetrics)
com.clarifai.grpc.api.TaskMetricsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_TaskMetrics_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_TaskMetrics_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.clarifai.grpc.api.TaskMetrics.class, com.clarifai.grpc.api.TaskMetrics.Builder.class);
}
// Construct using com.clarifai.grpc.api.TaskMetrics.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (workBuilder_ == null) {
work_ = null;
} else {
work_ = null;
workBuilder_ = null;
}
if (reviewBuilder_ == null) {
review_ = null;
} else {
review_ = null;
reviewBuilder_ = null;
}
if (inputSourceBuilder_ == null) {
inputSource_ = null;
} else {
inputSource_ = null;
inputSourceBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_TaskMetrics_descriptor;
}
@java.lang.Override
public com.clarifai.grpc.api.TaskMetrics getDefaultInstanceForType() {
return com.clarifai.grpc.api.TaskMetrics.getDefaultInstance();
}
@java.lang.Override
public com.clarifai.grpc.api.TaskMetrics build() {
com.clarifai.grpc.api.TaskMetrics result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.clarifai.grpc.api.TaskMetrics buildPartial() {
com.clarifai.grpc.api.TaskMetrics result = new com.clarifai.grpc.api.TaskMetrics(this);
if (workBuilder_ == null) {
result.work_ = work_;
} else {
result.work_ = workBuilder_.build();
}
if (reviewBuilder_ == null) {
result.review_ = review_;
} else {
result.review_ = reviewBuilder_.build();
}
if (inputSourceBuilder_ == null) {
result.inputSource_ = inputSource_;
} else {
result.inputSource_ = inputSourceBuilder_.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.TaskMetrics) {
return mergeFrom((com.clarifai.grpc.api.TaskMetrics)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.clarifai.grpc.api.TaskMetrics other) {
if (other == com.clarifai.grpc.api.TaskMetrics.getDefaultInstance()) return this;
if (other.hasWork()) {
mergeWork(other.getWork());
}
if (other.hasReview()) {
mergeReview(other.getReview());
}
if (other.hasInputSource()) {
mergeInputSource(other.getInputSource());
}
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.TaskMetrics parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.clarifai.grpc.api.TaskMetrics) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.clarifai.grpc.api.TaskWorkMetrics work_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.TaskWorkMetrics, com.clarifai.grpc.api.TaskWorkMetrics.Builder, com.clarifai.grpc.api.TaskWorkMetricsOrBuilder> workBuilder_;
/**
* .clarifai.api.TaskWorkMetrics work = 2;
* @return Whether the work field is set.
*/
public boolean hasWork() {
return workBuilder_ != null || work_ != null;
}
/**
* .clarifai.api.TaskWorkMetrics work = 2;
* @return The work.
*/
public com.clarifai.grpc.api.TaskWorkMetrics getWork() {
if (workBuilder_ == null) {
return work_ == null ? com.clarifai.grpc.api.TaskWorkMetrics.getDefaultInstance() : work_;
} else {
return workBuilder_.getMessage();
}
}
/**
* .clarifai.api.TaskWorkMetrics work = 2;
*/
public Builder setWork(com.clarifai.grpc.api.TaskWorkMetrics value) {
if (workBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
work_ = value;
onChanged();
} else {
workBuilder_.setMessage(value);
}
return this;
}
/**
* .clarifai.api.TaskWorkMetrics work = 2;
*/
public Builder setWork(
com.clarifai.grpc.api.TaskWorkMetrics.Builder builderForValue) {
if (workBuilder_ == null) {
work_ = builderForValue.build();
onChanged();
} else {
workBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .clarifai.api.TaskWorkMetrics work = 2;
*/
public Builder mergeWork(com.clarifai.grpc.api.TaskWorkMetrics value) {
if (workBuilder_ == null) {
if (work_ != null) {
work_ =
com.clarifai.grpc.api.TaskWorkMetrics.newBuilder(work_).mergeFrom(value).buildPartial();
} else {
work_ = value;
}
onChanged();
} else {
workBuilder_.mergeFrom(value);
}
return this;
}
/**
* .clarifai.api.TaskWorkMetrics work = 2;
*/
public Builder clearWork() {
if (workBuilder_ == null) {
work_ = null;
onChanged();
} else {
work_ = null;
workBuilder_ = null;
}
return this;
}
/**
* .clarifai.api.TaskWorkMetrics work = 2;
*/
public com.clarifai.grpc.api.TaskWorkMetrics.Builder getWorkBuilder() {
onChanged();
return getWorkFieldBuilder().getBuilder();
}
/**
* .clarifai.api.TaskWorkMetrics work = 2;
*/
public com.clarifai.grpc.api.TaskWorkMetricsOrBuilder getWorkOrBuilder() {
if (workBuilder_ != null) {
return workBuilder_.getMessageOrBuilder();
} else {
return work_ == null ?
com.clarifai.grpc.api.TaskWorkMetrics.getDefaultInstance() : work_;
}
}
/**
* .clarifai.api.TaskWorkMetrics work = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.TaskWorkMetrics, com.clarifai.grpc.api.TaskWorkMetrics.Builder, com.clarifai.grpc.api.TaskWorkMetricsOrBuilder>
getWorkFieldBuilder() {
if (workBuilder_ == null) {
workBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.TaskWorkMetrics, com.clarifai.grpc.api.TaskWorkMetrics.Builder, com.clarifai.grpc.api.TaskWorkMetricsOrBuilder>(
getWork(),
getParentForChildren(),
isClean());
work_ = null;
}
return workBuilder_;
}
private com.clarifai.grpc.api.TaskReviewMetrics review_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.TaskReviewMetrics, com.clarifai.grpc.api.TaskReviewMetrics.Builder, com.clarifai.grpc.api.TaskReviewMetricsOrBuilder> reviewBuilder_;
/**
* .clarifai.api.TaskReviewMetrics review = 3;
* @return Whether the review field is set.
*/
public boolean hasReview() {
return reviewBuilder_ != null || review_ != null;
}
/**
* .clarifai.api.TaskReviewMetrics review = 3;
* @return The review.
*/
public com.clarifai.grpc.api.TaskReviewMetrics getReview() {
if (reviewBuilder_ == null) {
return review_ == null ? com.clarifai.grpc.api.TaskReviewMetrics.getDefaultInstance() : review_;
} else {
return reviewBuilder_.getMessage();
}
}
/**
* .clarifai.api.TaskReviewMetrics review = 3;
*/
public Builder setReview(com.clarifai.grpc.api.TaskReviewMetrics value) {
if (reviewBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
review_ = value;
onChanged();
} else {
reviewBuilder_.setMessage(value);
}
return this;
}
/**
* .clarifai.api.TaskReviewMetrics review = 3;
*/
public Builder setReview(
com.clarifai.grpc.api.TaskReviewMetrics.Builder builderForValue) {
if (reviewBuilder_ == null) {
review_ = builderForValue.build();
onChanged();
} else {
reviewBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .clarifai.api.TaskReviewMetrics review = 3;
*/
public Builder mergeReview(com.clarifai.grpc.api.TaskReviewMetrics value) {
if (reviewBuilder_ == null) {
if (review_ != null) {
review_ =
com.clarifai.grpc.api.TaskReviewMetrics.newBuilder(review_).mergeFrom(value).buildPartial();
} else {
review_ = value;
}
onChanged();
} else {
reviewBuilder_.mergeFrom(value);
}
return this;
}
/**
* .clarifai.api.TaskReviewMetrics review = 3;
*/
public Builder clearReview() {
if (reviewBuilder_ == null) {
review_ = null;
onChanged();
} else {
review_ = null;
reviewBuilder_ = null;
}
return this;
}
/**
* .clarifai.api.TaskReviewMetrics review = 3;
*/
public com.clarifai.grpc.api.TaskReviewMetrics.Builder getReviewBuilder() {
onChanged();
return getReviewFieldBuilder().getBuilder();
}
/**
* .clarifai.api.TaskReviewMetrics review = 3;
*/
public com.clarifai.grpc.api.TaskReviewMetricsOrBuilder getReviewOrBuilder() {
if (reviewBuilder_ != null) {
return reviewBuilder_.getMessageOrBuilder();
} else {
return review_ == null ?
com.clarifai.grpc.api.TaskReviewMetrics.getDefaultInstance() : review_;
}
}
/**
* .clarifai.api.TaskReviewMetrics review = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.TaskReviewMetrics, com.clarifai.grpc.api.TaskReviewMetrics.Builder, com.clarifai.grpc.api.TaskReviewMetricsOrBuilder>
getReviewFieldBuilder() {
if (reviewBuilder_ == null) {
reviewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.TaskReviewMetrics, com.clarifai.grpc.api.TaskReviewMetrics.Builder, com.clarifai.grpc.api.TaskReviewMetricsOrBuilder>(
getReview(),
getParentForChildren(),
isClean());
review_ = null;
}
return reviewBuilder_;
}
private com.clarifai.grpc.api.TaskInputSourceMetrics inputSource_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.TaskInputSourceMetrics, com.clarifai.grpc.api.TaskInputSourceMetrics.Builder, com.clarifai.grpc.api.TaskInputSourceMetricsOrBuilder> inputSourceBuilder_;
/**
* .clarifai.api.TaskInputSourceMetrics input_source = 4;
* @return Whether the inputSource field is set.
*/
public boolean hasInputSource() {
return inputSourceBuilder_ != null || inputSource_ != null;
}
/**
* .clarifai.api.TaskInputSourceMetrics input_source = 4;
* @return The inputSource.
*/
public com.clarifai.grpc.api.TaskInputSourceMetrics getInputSource() {
if (inputSourceBuilder_ == null) {
return inputSource_ == null ? com.clarifai.grpc.api.TaskInputSourceMetrics.getDefaultInstance() : inputSource_;
} else {
return inputSourceBuilder_.getMessage();
}
}
/**
* .clarifai.api.TaskInputSourceMetrics input_source = 4;
*/
public Builder setInputSource(com.clarifai.grpc.api.TaskInputSourceMetrics value) {
if (inputSourceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
inputSource_ = value;
onChanged();
} else {
inputSourceBuilder_.setMessage(value);
}
return this;
}
/**
* .clarifai.api.TaskInputSourceMetrics input_source = 4;
*/
public Builder setInputSource(
com.clarifai.grpc.api.TaskInputSourceMetrics.Builder builderForValue) {
if (inputSourceBuilder_ == null) {
inputSource_ = builderForValue.build();
onChanged();
} else {
inputSourceBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .clarifai.api.TaskInputSourceMetrics input_source = 4;
*/
public Builder mergeInputSource(com.clarifai.grpc.api.TaskInputSourceMetrics value) {
if (inputSourceBuilder_ == null) {
if (inputSource_ != null) {
inputSource_ =
com.clarifai.grpc.api.TaskInputSourceMetrics.newBuilder(inputSource_).mergeFrom(value).buildPartial();
} else {
inputSource_ = value;
}
onChanged();
} else {
inputSourceBuilder_.mergeFrom(value);
}
return this;
}
/**
* .clarifai.api.TaskInputSourceMetrics input_source = 4;
*/
public Builder clearInputSource() {
if (inputSourceBuilder_ == null) {
inputSource_ = null;
onChanged();
} else {
inputSource_ = null;
inputSourceBuilder_ = null;
}
return this;
}
/**
* .clarifai.api.TaskInputSourceMetrics input_source = 4;
*/
public com.clarifai.grpc.api.TaskInputSourceMetrics.Builder getInputSourceBuilder() {
onChanged();
return getInputSourceFieldBuilder().getBuilder();
}
/**
* .clarifai.api.TaskInputSourceMetrics input_source = 4;
*/
public com.clarifai.grpc.api.TaskInputSourceMetricsOrBuilder getInputSourceOrBuilder() {
if (inputSourceBuilder_ != null) {
return inputSourceBuilder_.getMessageOrBuilder();
} else {
return inputSource_ == null ?
com.clarifai.grpc.api.TaskInputSourceMetrics.getDefaultInstance() : inputSource_;
}
}
/**
* .clarifai.api.TaskInputSourceMetrics input_source = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.TaskInputSourceMetrics, com.clarifai.grpc.api.TaskInputSourceMetrics.Builder, com.clarifai.grpc.api.TaskInputSourceMetricsOrBuilder>
getInputSourceFieldBuilder() {
if (inputSourceBuilder_ == null) {
inputSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.TaskInputSourceMetrics, com.clarifai.grpc.api.TaskInputSourceMetrics.Builder, com.clarifai.grpc.api.TaskInputSourceMetricsOrBuilder>(
getInputSource(),
getParentForChildren(),
isClean());
inputSource_ = null;
}
return inputSourceBuilder_;
}
@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.TaskMetrics)
}
// @@protoc_insertion_point(class_scope:clarifai.api.TaskMetrics)
private static final com.clarifai.grpc.api.TaskMetrics DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.clarifai.grpc.api.TaskMetrics();
}
public static com.clarifai.grpc.api.TaskMetrics getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TaskMetrics parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TaskMetrics(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.TaskMetrics getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}