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

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

/**
 * 
 * TrainStats
 * 
* * Protobuf type {@code clarifai.api.TrainStats} */ public final class TrainStats extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:clarifai.api.TrainStats) TrainStatsOrBuilder { private static final long serialVersionUID = 0L; // Use TrainStats.newBuilder() to construct. private TrainStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TrainStats() { lossCurve_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TrainStats(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TrainStats( 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)) { lossCurve_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } lossCurve_.add( input.readMessage(com.clarifai.grpc.api.LossCurveEntry.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)) { lossCurve_ = java.util.Collections.unmodifiableList(lossCurve_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_TrainStats_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_TrainStats_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clarifai.grpc.api.TrainStats.class, com.clarifai.grpc.api.TrainStats.Builder.class); } public static final int LOSS_CURVE_FIELD_NUMBER = 1; private java.util.List lossCurve_; /** * repeated .clarifai.api.LossCurveEntry loss_curve = 1; */ @java.lang.Override public java.util.List getLossCurveList() { return lossCurve_; } /** * repeated .clarifai.api.LossCurveEntry loss_curve = 1; */ @java.lang.Override public java.util.List getLossCurveOrBuilderList() { return lossCurve_; } /** * repeated .clarifai.api.LossCurveEntry loss_curve = 1; */ @java.lang.Override public int getLossCurveCount() { return lossCurve_.size(); } /** * repeated .clarifai.api.LossCurveEntry loss_curve = 1; */ @java.lang.Override public com.clarifai.grpc.api.LossCurveEntry getLossCurve(int index) { return lossCurve_.get(index); } /** * repeated .clarifai.api.LossCurveEntry loss_curve = 1; */ @java.lang.Override public com.clarifai.grpc.api.LossCurveEntryOrBuilder getLossCurveOrBuilder( int index) { return lossCurve_.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 < lossCurve_.size(); i++) { output.writeMessage(1, lossCurve_.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 < lossCurve_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, lossCurve_.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.TrainStats)) { return super.equals(obj); } com.clarifai.grpc.api.TrainStats other = (com.clarifai.grpc.api.TrainStats) obj; if (!getLossCurveList() .equals(other.getLossCurveList())) 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 (getLossCurveCount() > 0) { hash = (37 * hash) + LOSS_CURVE_FIELD_NUMBER; hash = (53 * hash) + getLossCurveList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.clarifai.grpc.api.TrainStats parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.TrainStats 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.TrainStats parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.TrainStats 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.TrainStats parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.TrainStats parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clarifai.grpc.api.TrainStats parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clarifai.grpc.api.TrainStats 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.TrainStats parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.clarifai.grpc.api.TrainStats 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.TrainStats parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clarifai.grpc.api.TrainStats 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.TrainStats 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; } /** *
   * TrainStats
   * 
* * Protobuf type {@code clarifai.api.TrainStats} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:clarifai.api.TrainStats) com.clarifai.grpc.api.TrainStatsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_TrainStats_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_TrainStats_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clarifai.grpc.api.TrainStats.class, com.clarifai.grpc.api.TrainStats.Builder.class); } // Construct using com.clarifai.grpc.api.TrainStats.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getLossCurveFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (lossCurveBuilder_ == null) { lossCurve_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { lossCurveBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_TrainStats_descriptor; } @java.lang.Override public com.clarifai.grpc.api.TrainStats getDefaultInstanceForType() { return com.clarifai.grpc.api.TrainStats.getDefaultInstance(); } @java.lang.Override public com.clarifai.grpc.api.TrainStats build() { com.clarifai.grpc.api.TrainStats result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.clarifai.grpc.api.TrainStats buildPartial() { com.clarifai.grpc.api.TrainStats result = new com.clarifai.grpc.api.TrainStats(this); int from_bitField0_ = bitField0_; if (lossCurveBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { lossCurve_ = java.util.Collections.unmodifiableList(lossCurve_); bitField0_ = (bitField0_ & ~0x00000001); } result.lossCurve_ = lossCurve_; } else { result.lossCurve_ = lossCurveBuilder_.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.TrainStats) { return mergeFrom((com.clarifai.grpc.api.TrainStats)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.clarifai.grpc.api.TrainStats other) { if (other == com.clarifai.grpc.api.TrainStats.getDefaultInstance()) return this; if (lossCurveBuilder_ == null) { if (!other.lossCurve_.isEmpty()) { if (lossCurve_.isEmpty()) { lossCurve_ = other.lossCurve_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureLossCurveIsMutable(); lossCurve_.addAll(other.lossCurve_); } onChanged(); } } else { if (!other.lossCurve_.isEmpty()) { if (lossCurveBuilder_.isEmpty()) { lossCurveBuilder_.dispose(); lossCurveBuilder_ = null; lossCurve_ = other.lossCurve_; bitField0_ = (bitField0_ & ~0x00000001); lossCurveBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLossCurveFieldBuilder() : null; } else { lossCurveBuilder_.addAllMessages(other.lossCurve_); } } } 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.TrainStats parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.clarifai.grpc.api.TrainStats) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List lossCurve_ = java.util.Collections.emptyList(); private void ensureLossCurveIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { lossCurve_ = new java.util.ArrayList(lossCurve_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.LossCurveEntry, com.clarifai.grpc.api.LossCurveEntry.Builder, com.clarifai.grpc.api.LossCurveEntryOrBuilder> lossCurveBuilder_; /** * repeated .clarifai.api.LossCurveEntry loss_curve = 1; */ public java.util.List getLossCurveList() { if (lossCurveBuilder_ == null) { return java.util.Collections.unmodifiableList(lossCurve_); } else { return lossCurveBuilder_.getMessageList(); } } /** * repeated .clarifai.api.LossCurveEntry loss_curve = 1; */ public int getLossCurveCount() { if (lossCurveBuilder_ == null) { return lossCurve_.size(); } else { return lossCurveBuilder_.getCount(); } } /** * repeated .clarifai.api.LossCurveEntry loss_curve = 1; */ public com.clarifai.grpc.api.LossCurveEntry getLossCurve(int index) { if (lossCurveBuilder_ == null) { return lossCurve_.get(index); } else { return lossCurveBuilder_.getMessage(index); } } /** * repeated .clarifai.api.LossCurveEntry loss_curve = 1; */ public Builder setLossCurve( int index, com.clarifai.grpc.api.LossCurveEntry value) { if (lossCurveBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLossCurveIsMutable(); lossCurve_.set(index, value); onChanged(); } else { lossCurveBuilder_.setMessage(index, value); } return this; } /** * repeated .clarifai.api.LossCurveEntry loss_curve = 1; */ public Builder setLossCurve( int index, com.clarifai.grpc.api.LossCurveEntry.Builder builderForValue) { if (lossCurveBuilder_ == null) { ensureLossCurveIsMutable(); lossCurve_.set(index, builderForValue.build()); onChanged(); } else { lossCurveBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .clarifai.api.LossCurveEntry loss_curve = 1; */ public Builder addLossCurve(com.clarifai.grpc.api.LossCurveEntry value) { if (lossCurveBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLossCurveIsMutable(); lossCurve_.add(value); onChanged(); } else { lossCurveBuilder_.addMessage(value); } return this; } /** * repeated .clarifai.api.LossCurveEntry loss_curve = 1; */ public Builder addLossCurve( int index, com.clarifai.grpc.api.LossCurveEntry value) { if (lossCurveBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLossCurveIsMutable(); lossCurve_.add(index, value); onChanged(); } else { lossCurveBuilder_.addMessage(index, value); } return this; } /** * repeated .clarifai.api.LossCurveEntry loss_curve = 1; */ public Builder addLossCurve( com.clarifai.grpc.api.LossCurveEntry.Builder builderForValue) { if (lossCurveBuilder_ == null) { ensureLossCurveIsMutable(); lossCurve_.add(builderForValue.build()); onChanged(); } else { lossCurveBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .clarifai.api.LossCurveEntry loss_curve = 1; */ public Builder addLossCurve( int index, com.clarifai.grpc.api.LossCurveEntry.Builder builderForValue) { if (lossCurveBuilder_ == null) { ensureLossCurveIsMutable(); lossCurve_.add(index, builderForValue.build()); onChanged(); } else { lossCurveBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .clarifai.api.LossCurveEntry loss_curve = 1; */ public Builder addAllLossCurve( java.lang.Iterable values) { if (lossCurveBuilder_ == null) { ensureLossCurveIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, lossCurve_); onChanged(); } else { lossCurveBuilder_.addAllMessages(values); } return this; } /** * repeated .clarifai.api.LossCurveEntry loss_curve = 1; */ public Builder clearLossCurve() { if (lossCurveBuilder_ == null) { lossCurve_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { lossCurveBuilder_.clear(); } return this; } /** * repeated .clarifai.api.LossCurveEntry loss_curve = 1; */ public Builder removeLossCurve(int index) { if (lossCurveBuilder_ == null) { ensureLossCurveIsMutable(); lossCurve_.remove(index); onChanged(); } else { lossCurveBuilder_.remove(index); } return this; } /** * repeated .clarifai.api.LossCurveEntry loss_curve = 1; */ public com.clarifai.grpc.api.LossCurveEntry.Builder getLossCurveBuilder( int index) { return getLossCurveFieldBuilder().getBuilder(index); } /** * repeated .clarifai.api.LossCurveEntry loss_curve = 1; */ public com.clarifai.grpc.api.LossCurveEntryOrBuilder getLossCurveOrBuilder( int index) { if (lossCurveBuilder_ == null) { return lossCurve_.get(index); } else { return lossCurveBuilder_.getMessageOrBuilder(index); } } /** * repeated .clarifai.api.LossCurveEntry loss_curve = 1; */ public java.util.List getLossCurveOrBuilderList() { if (lossCurveBuilder_ != null) { return lossCurveBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(lossCurve_); } } /** * repeated .clarifai.api.LossCurveEntry loss_curve = 1; */ public com.clarifai.grpc.api.LossCurveEntry.Builder addLossCurveBuilder() { return getLossCurveFieldBuilder().addBuilder( com.clarifai.grpc.api.LossCurveEntry.getDefaultInstance()); } /** * repeated .clarifai.api.LossCurveEntry loss_curve = 1; */ public com.clarifai.grpc.api.LossCurveEntry.Builder addLossCurveBuilder( int index) { return getLossCurveFieldBuilder().addBuilder( index, com.clarifai.grpc.api.LossCurveEntry.getDefaultInstance()); } /** * repeated .clarifai.api.LossCurveEntry loss_curve = 1; */ public java.util.List getLossCurveBuilderList() { return getLossCurveFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.LossCurveEntry, com.clarifai.grpc.api.LossCurveEntry.Builder, com.clarifai.grpc.api.LossCurveEntryOrBuilder> getLossCurveFieldBuilder() { if (lossCurveBuilder_ == null) { lossCurveBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.LossCurveEntry, com.clarifai.grpc.api.LossCurveEntry.Builder, com.clarifai.grpc.api.LossCurveEntryOrBuilder>( lossCurve_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); lossCurve_ = null; } return lossCurveBuilder_; } @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.TrainStats) } // @@protoc_insertion_point(class_scope:clarifai.api.TrainStats) private static final com.clarifai.grpc.api.TrainStats DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.clarifai.grpc.api.TrainStats(); } public static com.clarifai.grpc.api.TrainStats getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TrainStats parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TrainStats(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.TrainStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy