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.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: proto/clarifai/api/resources.proto
package com.clarifai.grpc.api;
/**
*
* DatasetVersionExportInfo contains information about all exports of a dataset version.
* If the dataset version has not been exported in a format, then the DatasetVersionExport
* field for that format is empty instead of having a "not exported" status.
*
*
* Protobuf type {@code clarifai.api.DatasetVersionExportInfo}
*/
public final class DatasetVersionExportInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:clarifai.api.DatasetVersionExportInfo)
DatasetVersionExportInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use DatasetVersionExportInfo.newBuilder() to construct.
private DatasetVersionExportInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DatasetVersionExportInfo() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DatasetVersionExportInfo();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DatasetVersionExportInfo(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.clarifai.grpc.api.DatasetVersionExport.Builder subBuilder = null;
if (clarifaiDataProtobuf_ != null) {
subBuilder = clarifaiDataProtobuf_.toBuilder();
}
clarifaiDataProtobuf_ = input.readMessage(com.clarifai.grpc.api.DatasetVersionExport.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(clarifaiDataProtobuf_);
clarifaiDataProtobuf_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.clarifai.grpc.api.DatasetVersionExport.Builder subBuilder = null;
if (coco_ != null) {
subBuilder = coco_.toBuilder();
}
coco_ = input.readMessage(com.clarifai.grpc.api.DatasetVersionExport.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(coco_);
coco_ = subBuilder.buildPartial();
}
break;
}
case 26: {
com.clarifai.grpc.api.DatasetVersionExport.Builder subBuilder = null;
if (clarifaiDataJson_ != null) {
subBuilder = clarifaiDataJson_.toBuilder();
}
clarifaiDataJson_ = input.readMessage(com.clarifai.grpc.api.DatasetVersionExport.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(clarifaiDataJson_);
clarifaiDataJson_ = 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_DatasetVersionExportInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_DatasetVersionExportInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.clarifai.grpc.api.DatasetVersionExportInfo.class, com.clarifai.grpc.api.DatasetVersionExportInfo.Builder.class);
}
public static final int CLARIFAI_DATA_PROTOBUF_FIELD_NUMBER = 1;
private com.clarifai.grpc.api.DatasetVersionExport clarifaiDataProtobuf_;
/**
*
* clarifai_data_protobuf is a CLARIFAI_DATA_PROTOBUF export of the dataset version.
*
*
* .clarifai.api.DatasetVersionExport clarifai_data_protobuf = 1;
* @return Whether the clarifaiDataProtobuf field is set.
*/
@java.lang.Override
public boolean hasClarifaiDataProtobuf() {
return clarifaiDataProtobuf_ != null;
}
/**
*
* clarifai_data_protobuf is a CLARIFAI_DATA_PROTOBUF export of the dataset version.
*
*
* .clarifai.api.DatasetVersionExport coco = 2;
*/
@java.lang.Override
public com.clarifai.grpc.api.DatasetVersionExportOrBuilder getCocoOrBuilder() {
return getCoco();
}
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 (clarifaiDataProtobuf_ != null) {
output.writeMessage(1, getClarifaiDataProtobuf());
}
if (coco_ != null) {
output.writeMessage(2, getCoco());
}
if (clarifaiDataJson_ != null) {
output.writeMessage(3, getClarifaiDataJson());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (clarifaiDataProtobuf_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getClarifaiDataProtobuf());
}
if (coco_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getCoco());
}
if (clarifaiDataJson_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getClarifaiDataJson());
}
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.DatasetVersionExportInfo)) {
return super.equals(obj);
}
com.clarifai.grpc.api.DatasetVersionExportInfo other = (com.clarifai.grpc.api.DatasetVersionExportInfo) obj;
if (hasClarifaiDataProtobuf() != other.hasClarifaiDataProtobuf()) return false;
if (hasClarifaiDataProtobuf()) {
if (!getClarifaiDataProtobuf()
.equals(other.getClarifaiDataProtobuf())) return false;
}
if (hasClarifaiDataJson() != other.hasClarifaiDataJson()) return false;
if (hasClarifaiDataJson()) {
if (!getClarifaiDataJson()
.equals(other.getClarifaiDataJson())) return false;
}
if (hasCoco() != other.hasCoco()) return false;
if (hasCoco()) {
if (!getCoco()
.equals(other.getCoco())) 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 (hasClarifaiDataProtobuf()) {
hash = (37 * hash) + CLARIFAI_DATA_PROTOBUF_FIELD_NUMBER;
hash = (53 * hash) + getClarifaiDataProtobuf().hashCode();
}
if (hasClarifaiDataJson()) {
hash = (37 * hash) + CLARIFAI_DATA_JSON_FIELD_NUMBER;
hash = (53 * hash) + getClarifaiDataJson().hashCode();
}
if (hasCoco()) {
hash = (37 * hash) + COCO_FIELD_NUMBER;
hash = (53 * hash) + getCoco().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.clarifai.grpc.api.DatasetVersionExportInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.DatasetVersionExportInfo 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.DatasetVersionExportInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.DatasetVersionExportInfo 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.DatasetVersionExportInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.DatasetVersionExportInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.clarifai.grpc.api.DatasetVersionExportInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.DatasetVersionExportInfo 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.DatasetVersionExportInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.DatasetVersionExportInfo 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.DatasetVersionExportInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.DatasetVersionExportInfo 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.DatasetVersionExportInfo 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;
}
/**
*
* DatasetVersionExportInfo contains information about all exports of a dataset version.
* If the dataset version has not been exported in a format, then the DatasetVersionExport
* field for that format is empty instead of having a "not exported" status.
*
*
* Protobuf type {@code clarifai.api.DatasetVersionExportInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:clarifai.api.DatasetVersionExportInfo)
com.clarifai.grpc.api.DatasetVersionExportInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_DatasetVersionExportInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_DatasetVersionExportInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.clarifai.grpc.api.DatasetVersionExportInfo.class, com.clarifai.grpc.api.DatasetVersionExportInfo.Builder.class);
}
// Construct using com.clarifai.grpc.api.DatasetVersionExportInfo.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 (clarifaiDataProtobufBuilder_ == null) {
clarifaiDataProtobuf_ = null;
} else {
clarifaiDataProtobuf_ = null;
clarifaiDataProtobufBuilder_ = null;
}
if (clarifaiDataJsonBuilder_ == null) {
clarifaiDataJson_ = null;
} else {
clarifaiDataJson_ = null;
clarifaiDataJsonBuilder_ = null;
}
if (cocoBuilder_ == null) {
coco_ = null;
} else {
coco_ = null;
cocoBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_DatasetVersionExportInfo_descriptor;
}
@java.lang.Override
public com.clarifai.grpc.api.DatasetVersionExportInfo getDefaultInstanceForType() {
return com.clarifai.grpc.api.DatasetVersionExportInfo.getDefaultInstance();
}
@java.lang.Override
public com.clarifai.grpc.api.DatasetVersionExportInfo build() {
com.clarifai.grpc.api.DatasetVersionExportInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.clarifai.grpc.api.DatasetVersionExportInfo buildPartial() {
com.clarifai.grpc.api.DatasetVersionExportInfo result = new com.clarifai.grpc.api.DatasetVersionExportInfo(this);
if (clarifaiDataProtobufBuilder_ == null) {
result.clarifaiDataProtobuf_ = clarifaiDataProtobuf_;
} else {
result.clarifaiDataProtobuf_ = clarifaiDataProtobufBuilder_.build();
}
if (clarifaiDataJsonBuilder_ == null) {
result.clarifaiDataJson_ = clarifaiDataJson_;
} else {
result.clarifaiDataJson_ = clarifaiDataJsonBuilder_.build();
}
if (cocoBuilder_ == null) {
result.coco_ = coco_;
} else {
result.coco_ = cocoBuilder_.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.DatasetVersionExportInfo) {
return mergeFrom((com.clarifai.grpc.api.DatasetVersionExportInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.clarifai.grpc.api.DatasetVersionExportInfo other) {
if (other == com.clarifai.grpc.api.DatasetVersionExportInfo.getDefaultInstance()) return this;
if (other.hasClarifaiDataProtobuf()) {
mergeClarifaiDataProtobuf(other.getClarifaiDataProtobuf());
}
if (other.hasClarifaiDataJson()) {
mergeClarifaiDataJson(other.getClarifaiDataJson());
}
if (other.hasCoco()) {
mergeCoco(other.getCoco());
}
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.DatasetVersionExportInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.clarifai.grpc.api.DatasetVersionExportInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.clarifai.grpc.api.DatasetVersionExport clarifaiDataProtobuf_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.DatasetVersionExport, com.clarifai.grpc.api.DatasetVersionExport.Builder, com.clarifai.grpc.api.DatasetVersionExportOrBuilder> clarifaiDataProtobufBuilder_;
/**
*
* clarifai_data_protobuf is a CLARIFAI_DATA_PROTOBUF export of the dataset version.
*
*
* .clarifai.api.DatasetVersionExport clarifai_data_protobuf = 1;
* @return Whether the clarifaiDataProtobuf field is set.
*/
public boolean hasClarifaiDataProtobuf() {
return clarifaiDataProtobufBuilder_ != null || clarifaiDataProtobuf_ != null;
}
/**
*
* clarifai_data_protobuf is a CLARIFAI_DATA_PROTOBUF export of the dataset version.
*