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

com.clarifai.grpc.api.DatasetVersionExportInfo 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;

/**
 * 
 * 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 clarifai_data_protobuf = 1; * @return The clarifaiDataProtobuf. */ @java.lang.Override public com.clarifai.grpc.api.DatasetVersionExport getClarifaiDataProtobuf() { return clarifaiDataProtobuf_ == null ? com.clarifai.grpc.api.DatasetVersionExport.getDefaultInstance() : clarifaiDataProtobuf_; } /** *
   * clarifai_data_protobuf is a CLARIFAI_DATA_PROTOBUF export of the dataset version.
   * 
* * .clarifai.api.DatasetVersionExport clarifai_data_protobuf = 1; */ @java.lang.Override public com.clarifai.grpc.api.DatasetVersionExportOrBuilder getClarifaiDataProtobufOrBuilder() { return getClarifaiDataProtobuf(); } public static final int CLARIFAI_DATA_JSON_FIELD_NUMBER = 3; private com.clarifai.grpc.api.DatasetVersionExport clarifaiDataJson_; /** *
   * clarifai_data_json is a CLARIFAI_DATA_JSON export of the dataset version.
   * 
* * .clarifai.api.DatasetVersionExport clarifai_data_json = 3; * @return Whether the clarifaiDataJson field is set. */ @java.lang.Override public boolean hasClarifaiDataJson() { return clarifaiDataJson_ != null; } /** *
   * clarifai_data_json is a CLARIFAI_DATA_JSON export of the dataset version.
   * 
* * .clarifai.api.DatasetVersionExport clarifai_data_json = 3; * @return The clarifaiDataJson. */ @java.lang.Override public com.clarifai.grpc.api.DatasetVersionExport getClarifaiDataJson() { return clarifaiDataJson_ == null ? com.clarifai.grpc.api.DatasetVersionExport.getDefaultInstance() : clarifaiDataJson_; } /** *
   * clarifai_data_json is a CLARIFAI_DATA_JSON export of the dataset version.
   * 
* * .clarifai.api.DatasetVersionExport clarifai_data_json = 3; */ @java.lang.Override public com.clarifai.grpc.api.DatasetVersionExportOrBuilder getClarifaiDataJsonOrBuilder() { return getClarifaiDataJson(); } public static final int COCO_FIELD_NUMBER = 2; private com.clarifai.grpc.api.DatasetVersionExport coco_; /** *
   * coco is a COCO export of the dataset version.
   * 
* * .clarifai.api.DatasetVersionExport coco = 2; * @return Whether the coco field is set. */ @java.lang.Override public boolean hasCoco() { return coco_ != null; } /** *
   * coco is a COCO export of the dataset version.
   * 
* * .clarifai.api.DatasetVersionExport coco = 2; * @return The coco. */ @java.lang.Override public com.clarifai.grpc.api.DatasetVersionExport getCoco() { return coco_ == null ? com.clarifai.grpc.api.DatasetVersionExport.getDefaultInstance() : coco_; } /** *
   * coco is a COCO 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.
     * 
* * .clarifai.api.DatasetVersionExport clarifai_data_protobuf = 1; * @return The clarifaiDataProtobuf. */ public com.clarifai.grpc.api.DatasetVersionExport getClarifaiDataProtobuf() { if (clarifaiDataProtobufBuilder_ == null) { return clarifaiDataProtobuf_ == null ? com.clarifai.grpc.api.DatasetVersionExport.getDefaultInstance() : clarifaiDataProtobuf_; } else { return clarifaiDataProtobufBuilder_.getMessage(); } } /** *
     * clarifai_data_protobuf is a CLARIFAI_DATA_PROTOBUF export of the dataset version.
     * 
* * .clarifai.api.DatasetVersionExport clarifai_data_protobuf = 1; */ public Builder setClarifaiDataProtobuf(com.clarifai.grpc.api.DatasetVersionExport value) { if (clarifaiDataProtobufBuilder_ == null) { if (value == null) { throw new NullPointerException(); } clarifaiDataProtobuf_ = value; onChanged(); } else { clarifaiDataProtobufBuilder_.setMessage(value); } return this; } /** *
     * clarifai_data_protobuf is a CLARIFAI_DATA_PROTOBUF export of the dataset version.
     * 
* * .clarifai.api.DatasetVersionExport clarifai_data_protobuf = 1; */ public Builder setClarifaiDataProtobuf( com.clarifai.grpc.api.DatasetVersionExport.Builder builderForValue) { if (clarifaiDataProtobufBuilder_ == null) { clarifaiDataProtobuf_ = builderForValue.build(); onChanged(); } else { clarifaiDataProtobufBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * clarifai_data_protobuf is a CLARIFAI_DATA_PROTOBUF export of the dataset version.
     * 
* * .clarifai.api.DatasetVersionExport clarifai_data_protobuf = 1; */ public Builder mergeClarifaiDataProtobuf(com.clarifai.grpc.api.DatasetVersionExport value) { if (clarifaiDataProtobufBuilder_ == null) { if (clarifaiDataProtobuf_ != null) { clarifaiDataProtobuf_ = com.clarifai.grpc.api.DatasetVersionExport.newBuilder(clarifaiDataProtobuf_).mergeFrom(value).buildPartial(); } else { clarifaiDataProtobuf_ = value; } onChanged(); } else { clarifaiDataProtobufBuilder_.mergeFrom(value); } return this; } /** *
     * clarifai_data_protobuf is a CLARIFAI_DATA_PROTOBUF export of the dataset version.
     * 
* * .clarifai.api.DatasetVersionExport clarifai_data_protobuf = 1; */ public Builder clearClarifaiDataProtobuf() { if (clarifaiDataProtobufBuilder_ == null) { clarifaiDataProtobuf_ = null; onChanged(); } else { clarifaiDataProtobuf_ = null; clarifaiDataProtobufBuilder_ = null; } return this; } /** *
     * clarifai_data_protobuf is a CLARIFAI_DATA_PROTOBUF export of the dataset version.
     * 
* * .clarifai.api.DatasetVersionExport clarifai_data_protobuf = 1; */ public com.clarifai.grpc.api.DatasetVersionExport.Builder getClarifaiDataProtobufBuilder() { onChanged(); return getClarifaiDataProtobufFieldBuilder().getBuilder(); } /** *
     * clarifai_data_protobuf is a CLARIFAI_DATA_PROTOBUF export of the dataset version.
     * 
* * .clarifai.api.DatasetVersionExport clarifai_data_protobuf = 1; */ public com.clarifai.grpc.api.DatasetVersionExportOrBuilder getClarifaiDataProtobufOrBuilder() { if (clarifaiDataProtobufBuilder_ != null) { return clarifaiDataProtobufBuilder_.getMessageOrBuilder(); } else { return clarifaiDataProtobuf_ == null ? com.clarifai.grpc.api.DatasetVersionExport.getDefaultInstance() : clarifaiDataProtobuf_; } } /** *
     * clarifai_data_protobuf is a CLARIFAI_DATA_PROTOBUF export of the dataset version.
     * 
* * .clarifai.api.DatasetVersionExport clarifai_data_protobuf = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.DatasetVersionExport, com.clarifai.grpc.api.DatasetVersionExport.Builder, com.clarifai.grpc.api.DatasetVersionExportOrBuilder> getClarifaiDataProtobufFieldBuilder() { if (clarifaiDataProtobufBuilder_ == null) { clarifaiDataProtobufBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.DatasetVersionExport, com.clarifai.grpc.api.DatasetVersionExport.Builder, com.clarifai.grpc.api.DatasetVersionExportOrBuilder>( getClarifaiDataProtobuf(), getParentForChildren(), isClean()); clarifaiDataProtobuf_ = null; } return clarifaiDataProtobufBuilder_; } private com.clarifai.grpc.api.DatasetVersionExport clarifaiDataJson_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.DatasetVersionExport, com.clarifai.grpc.api.DatasetVersionExport.Builder, com.clarifai.grpc.api.DatasetVersionExportOrBuilder> clarifaiDataJsonBuilder_; /** *
     * clarifai_data_json is a CLARIFAI_DATA_JSON export of the dataset version.
     * 
* * .clarifai.api.DatasetVersionExport clarifai_data_json = 3; * @return Whether the clarifaiDataJson field is set. */ public boolean hasClarifaiDataJson() { return clarifaiDataJsonBuilder_ != null || clarifaiDataJson_ != null; } /** *
     * clarifai_data_json is a CLARIFAI_DATA_JSON export of the dataset version.
     * 
* * .clarifai.api.DatasetVersionExport clarifai_data_json = 3; * @return The clarifaiDataJson. */ public com.clarifai.grpc.api.DatasetVersionExport getClarifaiDataJson() { if (clarifaiDataJsonBuilder_ == null) { return clarifaiDataJson_ == null ? com.clarifai.grpc.api.DatasetVersionExport.getDefaultInstance() : clarifaiDataJson_; } else { return clarifaiDataJsonBuilder_.getMessage(); } } /** *
     * clarifai_data_json is a CLARIFAI_DATA_JSON export of the dataset version.
     * 
* * .clarifai.api.DatasetVersionExport clarifai_data_json = 3; */ public Builder setClarifaiDataJson(com.clarifai.grpc.api.DatasetVersionExport value) { if (clarifaiDataJsonBuilder_ == null) { if (value == null) { throw new NullPointerException(); } clarifaiDataJson_ = value; onChanged(); } else { clarifaiDataJsonBuilder_.setMessage(value); } return this; } /** *
     * clarifai_data_json is a CLARIFAI_DATA_JSON export of the dataset version.
     * 
* * .clarifai.api.DatasetVersionExport clarifai_data_json = 3; */ public Builder setClarifaiDataJson( com.clarifai.grpc.api.DatasetVersionExport.Builder builderForValue) { if (clarifaiDataJsonBuilder_ == null) { clarifaiDataJson_ = builderForValue.build(); onChanged(); } else { clarifaiDataJsonBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * clarifai_data_json is a CLARIFAI_DATA_JSON export of the dataset version.
     * 
* * .clarifai.api.DatasetVersionExport clarifai_data_json = 3; */ public Builder mergeClarifaiDataJson(com.clarifai.grpc.api.DatasetVersionExport value) { if (clarifaiDataJsonBuilder_ == null) { if (clarifaiDataJson_ != null) { clarifaiDataJson_ = com.clarifai.grpc.api.DatasetVersionExport.newBuilder(clarifaiDataJson_).mergeFrom(value).buildPartial(); } else { clarifaiDataJson_ = value; } onChanged(); } else { clarifaiDataJsonBuilder_.mergeFrom(value); } return this; } /** *
     * clarifai_data_json is a CLARIFAI_DATA_JSON export of the dataset version.
     * 
* * .clarifai.api.DatasetVersionExport clarifai_data_json = 3; */ public Builder clearClarifaiDataJson() { if (clarifaiDataJsonBuilder_ == null) { clarifaiDataJson_ = null; onChanged(); } else { clarifaiDataJson_ = null; clarifaiDataJsonBuilder_ = null; } return this; } /** *
     * clarifai_data_json is a CLARIFAI_DATA_JSON export of the dataset version.
     * 
* * .clarifai.api.DatasetVersionExport clarifai_data_json = 3; */ public com.clarifai.grpc.api.DatasetVersionExport.Builder getClarifaiDataJsonBuilder() { onChanged(); return getClarifaiDataJsonFieldBuilder().getBuilder(); } /** *
     * clarifai_data_json is a CLARIFAI_DATA_JSON export of the dataset version.
     * 
* * .clarifai.api.DatasetVersionExport clarifai_data_json = 3; */ public com.clarifai.grpc.api.DatasetVersionExportOrBuilder getClarifaiDataJsonOrBuilder() { if (clarifaiDataJsonBuilder_ != null) { return clarifaiDataJsonBuilder_.getMessageOrBuilder(); } else { return clarifaiDataJson_ == null ? com.clarifai.grpc.api.DatasetVersionExport.getDefaultInstance() : clarifaiDataJson_; } } /** *
     * clarifai_data_json is a CLARIFAI_DATA_JSON export of the dataset version.
     * 
* * .clarifai.api.DatasetVersionExport clarifai_data_json = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.DatasetVersionExport, com.clarifai.grpc.api.DatasetVersionExport.Builder, com.clarifai.grpc.api.DatasetVersionExportOrBuilder> getClarifaiDataJsonFieldBuilder() { if (clarifaiDataJsonBuilder_ == null) { clarifaiDataJsonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.DatasetVersionExport, com.clarifai.grpc.api.DatasetVersionExport.Builder, com.clarifai.grpc.api.DatasetVersionExportOrBuilder>( getClarifaiDataJson(), getParentForChildren(), isClean()); clarifaiDataJson_ = null; } return clarifaiDataJsonBuilder_; } private com.clarifai.grpc.api.DatasetVersionExport coco_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.DatasetVersionExport, com.clarifai.grpc.api.DatasetVersionExport.Builder, com.clarifai.grpc.api.DatasetVersionExportOrBuilder> cocoBuilder_; /** *
     * coco is a COCO export of the dataset version.
     * 
* * .clarifai.api.DatasetVersionExport coco = 2; * @return Whether the coco field is set. */ public boolean hasCoco() { return cocoBuilder_ != null || coco_ != null; } /** *
     * coco is a COCO export of the dataset version.
     * 
* * .clarifai.api.DatasetVersionExport coco = 2; * @return The coco. */ public com.clarifai.grpc.api.DatasetVersionExport getCoco() { if (cocoBuilder_ == null) { return coco_ == null ? com.clarifai.grpc.api.DatasetVersionExport.getDefaultInstance() : coco_; } else { return cocoBuilder_.getMessage(); } } /** *
     * coco is a COCO export of the dataset version.
     * 
* * .clarifai.api.DatasetVersionExport coco = 2; */ public Builder setCoco(com.clarifai.grpc.api.DatasetVersionExport value) { if (cocoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } coco_ = value; onChanged(); } else { cocoBuilder_.setMessage(value); } return this; } /** *
     * coco is a COCO export of the dataset version.
     * 
* * .clarifai.api.DatasetVersionExport coco = 2; */ public Builder setCoco( com.clarifai.grpc.api.DatasetVersionExport.Builder builderForValue) { if (cocoBuilder_ == null) { coco_ = builderForValue.build(); onChanged(); } else { cocoBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * coco is a COCO export of the dataset version.
     * 
* * .clarifai.api.DatasetVersionExport coco = 2; */ public Builder mergeCoco(com.clarifai.grpc.api.DatasetVersionExport value) { if (cocoBuilder_ == null) { if (coco_ != null) { coco_ = com.clarifai.grpc.api.DatasetVersionExport.newBuilder(coco_).mergeFrom(value).buildPartial(); } else { coco_ = value; } onChanged(); } else { cocoBuilder_.mergeFrom(value); } return this; } /** *
     * coco is a COCO export of the dataset version.
     * 
* * .clarifai.api.DatasetVersionExport coco = 2; */ public Builder clearCoco() { if (cocoBuilder_ == null) { coco_ = null; onChanged(); } else { coco_ = null; cocoBuilder_ = null; } return this; } /** *
     * coco is a COCO export of the dataset version.
     * 
* * .clarifai.api.DatasetVersionExport coco = 2; */ public com.clarifai.grpc.api.DatasetVersionExport.Builder getCocoBuilder() { onChanged(); return getCocoFieldBuilder().getBuilder(); } /** *
     * coco is a COCO export of the dataset version.
     * 
* * .clarifai.api.DatasetVersionExport coco = 2; */ public com.clarifai.grpc.api.DatasetVersionExportOrBuilder getCocoOrBuilder() { if (cocoBuilder_ != null) { return cocoBuilder_.getMessageOrBuilder(); } else { return coco_ == null ? com.clarifai.grpc.api.DatasetVersionExport.getDefaultInstance() : coco_; } } /** *
     * coco is a COCO export of the dataset version.
     * 
* * .clarifai.api.DatasetVersionExport coco = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.DatasetVersionExport, com.clarifai.grpc.api.DatasetVersionExport.Builder, com.clarifai.grpc.api.DatasetVersionExportOrBuilder> getCocoFieldBuilder() { if (cocoBuilder_ == null) { cocoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.DatasetVersionExport, com.clarifai.grpc.api.DatasetVersionExport.Builder, com.clarifai.grpc.api.DatasetVersionExportOrBuilder>( getCoco(), getParentForChildren(), isClean()); coco_ = null; } return cocoBuilder_; } @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.DatasetVersionExportInfo) } // @@protoc_insertion_point(class_scope:clarifai.api.DatasetVersionExportInfo) private static final com.clarifai.grpc.api.DatasetVersionExportInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.clarifai.grpc.api.DatasetVersionExportInfo(); } public static com.clarifai.grpc.api.DatasetVersionExportInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DatasetVersionExportInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DatasetVersionExportInfo(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.DatasetVersionExportInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy