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

org.tensorflow.metadata.v0.CustomMetric Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: tensorflow_metadata/proto/v0/metric.proto

// Protobuf Java Version: 3.25.4
package org.tensorflow.metadata.v0;

/**
 * 
 * A custom metric.
 * Prefer using or adding an explicit metric message
 * and only use this generic message as a last resort.
 * NEXT_TAG: 4
 * 
* * Protobuf type {@code tensorflow.metadata.v0.CustomMetric} */ public final class CustomMetric extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.metadata.v0.CustomMetric) CustomMetricOrBuilder { private static final long serialVersionUID = 0L; // Use CustomMetric.newBuilder() to construct. private CustomMetric(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CustomMetric() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CustomMetric(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.metadata.v0.Metric.internal_static_tensorflow_metadata_v0_CustomMetric_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.metadata.v0.Metric.internal_static_tensorflow_metadata_v0_CustomMetric_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.metadata.v0.CustomMetric.class, org.tensorflow.metadata.v0.CustomMetric.Builder.class); } public interface RegistrySpecOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.metadata.v0.CustomMetric.RegistrySpec) com.google.protobuf.MessageOrBuilder { /** *
     * Identifier of the metric class in the metric registry of the binary.
     * 
* * string key = 1; * @return The key. */ java.lang.String getKey(); /** *
     * Identifier of the metric class in the metric registry of the binary.
     * 
* * string key = 1; * @return The bytes for key. */ com.google.protobuf.ByteString getKeyBytes(); /** *
     * Generic proto describing the configuration for the metric to be computed.
     * It's upto the implementer of the metric to parse this configuration.
     * 
* * .google.protobuf.Any config = 2; * @return Whether the config field is set. */ boolean hasConfig(); /** *
     * Generic proto describing the configuration for the metric to be computed.
     * It's upto the implementer of the metric to parse this configuration.
     * 
* * .google.protobuf.Any config = 2; * @return The config. */ com.google.protobuf.Any getConfig(); /** *
     * Generic proto describing the configuration for the metric to be computed.
     * It's upto the implementer of the metric to parse this configuration.
     * 
* * .google.protobuf.Any config = 2; */ com.google.protobuf.AnyOrBuilder getConfigOrBuilder(); } /** *
   * RegistrySpec is a full specification of the custom metric and its
   * construction based on the binary’s metric registry. New custom metrics must
   * be linked to the binary and registered in its metric registry to be
   * identifiable via this specification.
   * 
* * Protobuf type {@code tensorflow.metadata.v0.CustomMetric.RegistrySpec} */ public static final class RegistrySpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.metadata.v0.CustomMetric.RegistrySpec) RegistrySpecOrBuilder { private static final long serialVersionUID = 0L; // Use RegistrySpec.newBuilder() to construct. private RegistrySpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RegistrySpec() { key_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RegistrySpec(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.metadata.v0.Metric.internal_static_tensorflow_metadata_v0_CustomMetric_RegistrySpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.metadata.v0.Metric.internal_static_tensorflow_metadata_v0_CustomMetric_RegistrySpec_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.metadata.v0.CustomMetric.RegistrySpec.class, org.tensorflow.metadata.v0.CustomMetric.RegistrySpec.Builder.class); } private int bitField0_; public static final int KEY_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object key_ = ""; /** *
     * Identifier of the metric class in the metric registry of the binary.
     * 
* * string key = 1; * @return The key. */ @java.lang.Override public java.lang.String getKey() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } } /** *
     * Identifier of the metric class in the metric registry of the binary.
     * 
* * string key = 1; * @return The bytes for key. */ @java.lang.Override public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONFIG_FIELD_NUMBER = 2; private com.google.protobuf.Any config_; /** *
     * Generic proto describing the configuration for the metric to be computed.
     * It's upto the implementer of the metric to parse this configuration.
     * 
* * .google.protobuf.Any config = 2; * @return Whether the config field is set. */ @java.lang.Override public boolean hasConfig() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Generic proto describing the configuration for the metric to be computed.
     * It's upto the implementer of the metric to parse this configuration.
     * 
* * .google.protobuf.Any config = 2; * @return The config. */ @java.lang.Override public com.google.protobuf.Any getConfig() { return config_ == null ? com.google.protobuf.Any.getDefaultInstance() : config_; } /** *
     * Generic proto describing the configuration for the metric to be computed.
     * It's upto the implementer of the metric to parse this configuration.
     * 
* * .google.protobuf.Any config = 2; */ @java.lang.Override public com.google.protobuf.AnyOrBuilder getConfigOrBuilder() { return config_ == null ? com.google.protobuf.Any.getDefaultInstance() : config_; } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getConfig()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tensorflow.metadata.v0.CustomMetric.RegistrySpec)) { return super.equals(obj); } org.tensorflow.metadata.v0.CustomMetric.RegistrySpec other = (org.tensorflow.metadata.v0.CustomMetric.RegistrySpec) obj; if (!getKey() .equals(other.getKey())) return false; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { if (!getConfig() .equals(other.getConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); if (hasConfig()) { hash = (37 * hash) + CONFIG_FIELD_NUMBER; hash = (53 * hash) + getConfig().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tensorflow.metadata.v0.CustomMetric.RegistrySpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.metadata.v0.CustomMetric.RegistrySpec parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.metadata.v0.CustomMetric.RegistrySpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.metadata.v0.CustomMetric.RegistrySpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.metadata.v0.CustomMetric.RegistrySpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.metadata.v0.CustomMetric.RegistrySpec parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.metadata.v0.CustomMetric.RegistrySpec parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.metadata.v0.CustomMetric.RegistrySpec 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 org.tensorflow.metadata.v0.CustomMetric.RegistrySpec parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tensorflow.metadata.v0.CustomMetric.RegistrySpec 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 org.tensorflow.metadata.v0.CustomMetric.RegistrySpec parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.metadata.v0.CustomMetric.RegistrySpec 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(org.tensorflow.metadata.v0.CustomMetric.RegistrySpec 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; } /** *
     * RegistrySpec is a full specification of the custom metric and its
     * construction based on the binary’s metric registry. New custom metrics must
     * be linked to the binary and registered in its metric registry to be
     * identifiable via this specification.
     * 
* * Protobuf type {@code tensorflow.metadata.v0.CustomMetric.RegistrySpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.metadata.v0.CustomMetric.RegistrySpec) org.tensorflow.metadata.v0.CustomMetric.RegistrySpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.metadata.v0.Metric.internal_static_tensorflow_metadata_v0_CustomMetric_RegistrySpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.metadata.v0.Metric.internal_static_tensorflow_metadata_v0_CustomMetric_RegistrySpec_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.metadata.v0.CustomMetric.RegistrySpec.class, org.tensorflow.metadata.v0.CustomMetric.RegistrySpec.Builder.class); } // Construct using org.tensorflow.metadata.v0.CustomMetric.RegistrySpec.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getConfigFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; key_ = ""; config_ = null; if (configBuilder_ != null) { configBuilder_.dispose(); configBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tensorflow.metadata.v0.Metric.internal_static_tensorflow_metadata_v0_CustomMetric_RegistrySpec_descriptor; } @java.lang.Override public org.tensorflow.metadata.v0.CustomMetric.RegistrySpec getDefaultInstanceForType() { return org.tensorflow.metadata.v0.CustomMetric.RegistrySpec.getDefaultInstance(); } @java.lang.Override public org.tensorflow.metadata.v0.CustomMetric.RegistrySpec build() { org.tensorflow.metadata.v0.CustomMetric.RegistrySpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tensorflow.metadata.v0.CustomMetric.RegistrySpec buildPartial() { org.tensorflow.metadata.v0.CustomMetric.RegistrySpec result = new org.tensorflow.metadata.v0.CustomMetric.RegistrySpec(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tensorflow.metadata.v0.CustomMetric.RegistrySpec result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.key_ = key_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.config_ = configBuilder_ == null ? config_ : configBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @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 org.tensorflow.metadata.v0.CustomMetric.RegistrySpec) { return mergeFrom((org.tensorflow.metadata.v0.CustomMetric.RegistrySpec)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tensorflow.metadata.v0.CustomMetric.RegistrySpec other) { if (other == org.tensorflow.metadata.v0.CustomMetric.RegistrySpec.getDefaultInstance()) return this; if (!other.getKey().isEmpty()) { key_ = other.key_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasConfig()) { mergeConfig(other.getConfig()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { key_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getConfigFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object key_ = ""; /** *
       * Identifier of the metric class in the metric registry of the binary.
       * 
* * string key = 1; * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Identifier of the metric class in the metric registry of the binary.
       * 
* * string key = 1; * @return The bytes for key. */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Identifier of the metric class in the metric registry of the binary.
       * 
* * string key = 1; * @param value The key to set. * @return This builder for chaining. */ public Builder setKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } key_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Identifier of the metric class in the metric registry of the binary.
       * 
* * string key = 1; * @return This builder for chaining. */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * Identifier of the metric class in the metric registry of the binary.
       * 
* * string key = 1; * @param value The bytes for key to set. * @return This builder for chaining. */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); key_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.protobuf.Any config_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> configBuilder_; /** *
       * Generic proto describing the configuration for the metric to be computed.
       * It's upto the implementer of the metric to parse this configuration.
       * 
* * .google.protobuf.Any config = 2; * @return Whether the config field is set. */ public boolean hasConfig() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Generic proto describing the configuration for the metric to be computed.
       * It's upto the implementer of the metric to parse this configuration.
       * 
* * .google.protobuf.Any config = 2; * @return The config. */ public com.google.protobuf.Any getConfig() { if (configBuilder_ == null) { return config_ == null ? com.google.protobuf.Any.getDefaultInstance() : config_; } else { return configBuilder_.getMessage(); } } /** *
       * Generic proto describing the configuration for the metric to be computed.
       * It's upto the implementer of the metric to parse this configuration.
       * 
* * .google.protobuf.Any config = 2; */ public Builder setConfig(com.google.protobuf.Any value) { if (configBuilder_ == null) { if (value == null) { throw new NullPointerException(); } config_ = value; } else { configBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Generic proto describing the configuration for the metric to be computed.
       * It's upto the implementer of the metric to parse this configuration.
       * 
* * .google.protobuf.Any config = 2; */ public Builder setConfig( com.google.protobuf.Any.Builder builderForValue) { if (configBuilder_ == null) { config_ = builderForValue.build(); } else { configBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Generic proto describing the configuration for the metric to be computed.
       * It's upto the implementer of the metric to parse this configuration.
       * 
* * .google.protobuf.Any config = 2; */ public Builder mergeConfig(com.google.protobuf.Any value) { if (configBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && config_ != null && config_ != com.google.protobuf.Any.getDefaultInstance()) { getConfigBuilder().mergeFrom(value); } else { config_ = value; } } else { configBuilder_.mergeFrom(value); } if (config_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
       * Generic proto describing the configuration for the metric to be computed.
       * It's upto the implementer of the metric to parse this configuration.
       * 
* * .google.protobuf.Any config = 2; */ public Builder clearConfig() { bitField0_ = (bitField0_ & ~0x00000002); config_ = null; if (configBuilder_ != null) { configBuilder_.dispose(); configBuilder_ = null; } onChanged(); return this; } /** *
       * Generic proto describing the configuration for the metric to be computed.
       * It's upto the implementer of the metric to parse this configuration.
       * 
* * .google.protobuf.Any config = 2; */ public com.google.protobuf.Any.Builder getConfigBuilder() { bitField0_ |= 0x00000002; onChanged(); return getConfigFieldBuilder().getBuilder(); } /** *
       * Generic proto describing the configuration for the metric to be computed.
       * It's upto the implementer of the metric to parse this configuration.
       * 
* * .google.protobuf.Any config = 2; */ public com.google.protobuf.AnyOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { return config_ == null ? com.google.protobuf.Any.getDefaultInstance() : config_; } } /** *
       * Generic proto describing the configuration for the metric to be computed.
       * It's upto the implementer of the metric to parse this configuration.
       * 
* * .google.protobuf.Any config = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( getConfig(), getParentForChildren(), isClean()); config_ = null; } return configBuilder_; } @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:tensorflow.metadata.v0.CustomMetric.RegistrySpec) } // @@protoc_insertion_point(class_scope:tensorflow.metadata.v0.CustomMetric.RegistrySpec) private static final org.tensorflow.metadata.v0.CustomMetric.RegistrySpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tensorflow.metadata.v0.CustomMetric.RegistrySpec(); } public static org.tensorflow.metadata.v0.CustomMetric.RegistrySpec getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RegistrySpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tensorflow.metadata.v0.CustomMetric.RegistrySpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** *
   * The display name of a metric computed by the model. The name should match
   * ^[a-zA-Z0-9\s]{1,25}$ and must be unique across all performance metrics.
   * Trailing and leading spaces will be truncated before matching.
   * 
* * string name = 1; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
   * The display name of a metric computed by the model. The name should match
   * ^[a-zA-Z0-9\s]{1,25}$ and must be unique across all performance metrics.
   * Trailing and leading spaces will be truncated before matching.
   * 
* * string name = 1; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int IS_MAXIMIZED_FIELD_NUMBER = 2; private boolean isMaximized_ = false; /** *
   * True if the metric is maximized: false if it is minimized.
   * Must be specified if the CustomMetric is used as an objective.
   * 
* * bool is_maximized = 2; * @return The isMaximized. */ @java.lang.Override public boolean getIsMaximized() { return isMaximized_; } public static final int REGISTRY_SPEC_FIELD_NUMBER = 3; private org.tensorflow.metadata.v0.CustomMetric.RegistrySpec registrySpec_; /** *
   * Specification of the metric in the binary’s metric registry.
   * 
* * .tensorflow.metadata.v0.CustomMetric.RegistrySpec registry_spec = 3; * @return Whether the registrySpec field is set. */ @java.lang.Override public boolean hasRegistrySpec() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Specification of the metric in the binary’s metric registry.
   * 
* * .tensorflow.metadata.v0.CustomMetric.RegistrySpec registry_spec = 3; * @return The registrySpec. */ @java.lang.Override public org.tensorflow.metadata.v0.CustomMetric.RegistrySpec getRegistrySpec() { return registrySpec_ == null ? org.tensorflow.metadata.v0.CustomMetric.RegistrySpec.getDefaultInstance() : registrySpec_; } /** *
   * Specification of the metric in the binary’s metric registry.
   * 
* * .tensorflow.metadata.v0.CustomMetric.RegistrySpec registry_spec = 3; */ @java.lang.Override public org.tensorflow.metadata.v0.CustomMetric.RegistrySpecOrBuilder getRegistrySpecOrBuilder() { return registrySpec_ == null ? org.tensorflow.metadata.v0.CustomMetric.RegistrySpec.getDefaultInstance() : registrySpec_; } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (isMaximized_ != false) { output.writeBool(2, isMaximized_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getRegistrySpec()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (isMaximized_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, isMaximized_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getRegistrySpec()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tensorflow.metadata.v0.CustomMetric)) { return super.equals(obj); } org.tensorflow.metadata.v0.CustomMetric other = (org.tensorflow.metadata.v0.CustomMetric) obj; if (!getName() .equals(other.getName())) return false; if (getIsMaximized() != other.getIsMaximized()) return false; if (hasRegistrySpec() != other.hasRegistrySpec()) return false; if (hasRegistrySpec()) { if (!getRegistrySpec() .equals(other.getRegistrySpec())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + IS_MAXIMIZED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsMaximized()); if (hasRegistrySpec()) { hash = (37 * hash) + REGISTRY_SPEC_FIELD_NUMBER; hash = (53 * hash) + getRegistrySpec().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tensorflow.metadata.v0.CustomMetric parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.metadata.v0.CustomMetric parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.metadata.v0.CustomMetric parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.metadata.v0.CustomMetric parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.metadata.v0.CustomMetric parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.metadata.v0.CustomMetric parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.metadata.v0.CustomMetric parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.metadata.v0.CustomMetric 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 org.tensorflow.metadata.v0.CustomMetric parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tensorflow.metadata.v0.CustomMetric 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 org.tensorflow.metadata.v0.CustomMetric parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.metadata.v0.CustomMetric 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(org.tensorflow.metadata.v0.CustomMetric 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; } /** *
   * A custom metric.
   * Prefer using or adding an explicit metric message
   * and only use this generic message as a last resort.
   * NEXT_TAG: 4
   * 
* * Protobuf type {@code tensorflow.metadata.v0.CustomMetric} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.metadata.v0.CustomMetric) org.tensorflow.metadata.v0.CustomMetricOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.metadata.v0.Metric.internal_static_tensorflow_metadata_v0_CustomMetric_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.metadata.v0.Metric.internal_static_tensorflow_metadata_v0_CustomMetric_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.metadata.v0.CustomMetric.class, org.tensorflow.metadata.v0.CustomMetric.Builder.class); } // Construct using org.tensorflow.metadata.v0.CustomMetric.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getRegistrySpecFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; isMaximized_ = false; registrySpec_ = null; if (registrySpecBuilder_ != null) { registrySpecBuilder_.dispose(); registrySpecBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tensorflow.metadata.v0.Metric.internal_static_tensorflow_metadata_v0_CustomMetric_descriptor; } @java.lang.Override public org.tensorflow.metadata.v0.CustomMetric getDefaultInstanceForType() { return org.tensorflow.metadata.v0.CustomMetric.getDefaultInstance(); } @java.lang.Override public org.tensorflow.metadata.v0.CustomMetric build() { org.tensorflow.metadata.v0.CustomMetric result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tensorflow.metadata.v0.CustomMetric buildPartial() { org.tensorflow.metadata.v0.CustomMetric result = new org.tensorflow.metadata.v0.CustomMetric(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tensorflow.metadata.v0.CustomMetric result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.isMaximized_ = isMaximized_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.registrySpec_ = registrySpecBuilder_ == null ? registrySpec_ : registrySpecBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @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 org.tensorflow.metadata.v0.CustomMetric) { return mergeFrom((org.tensorflow.metadata.v0.CustomMetric)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tensorflow.metadata.v0.CustomMetric other) { if (other == org.tensorflow.metadata.v0.CustomMetric.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (other.getIsMaximized() != false) { setIsMaximized(other.getIsMaximized()); } if (other.hasRegistrySpec()) { mergeRegistrySpec(other.getRegistrySpec()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { isMaximized_ = input.readBool(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { input.readMessage( getRegistrySpecFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object name_ = ""; /** *
     * The display name of a metric computed by the model. The name should match
     * ^[a-zA-Z0-9\s]{1,25}$ and must be unique across all performance metrics.
     * Trailing and leading spaces will be truncated before matching.
     * 
* * string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The display name of a metric computed by the model. The name should match
     * ^[a-zA-Z0-9\s]{1,25}$ and must be unique across all performance metrics.
     * Trailing and leading spaces will be truncated before matching.
     * 
* * string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The display name of a metric computed by the model. The name should match
     * ^[a-zA-Z0-9\s]{1,25}$ and must be unique across all performance metrics.
     * Trailing and leading spaces will be truncated before matching.
     * 
* * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The display name of a metric computed by the model. The name should match
     * ^[a-zA-Z0-9\s]{1,25}$ and must be unique across all performance metrics.
     * Trailing and leading spaces will be truncated before matching.
     * 
* * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * The display name of a metric computed by the model. The name should match
     * ^[a-zA-Z0-9\s]{1,25}$ and must be unique across all performance metrics.
     * Trailing and leading spaces will be truncated before matching.
     * 
* * string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private boolean isMaximized_ ; /** *
     * True if the metric is maximized: false if it is minimized.
     * Must be specified if the CustomMetric is used as an objective.
     * 
* * bool is_maximized = 2; * @return The isMaximized. */ @java.lang.Override public boolean getIsMaximized() { return isMaximized_; } /** *
     * True if the metric is maximized: false if it is minimized.
     * Must be specified if the CustomMetric is used as an objective.
     * 
* * bool is_maximized = 2; * @param value The isMaximized to set. * @return This builder for chaining. */ public Builder setIsMaximized(boolean value) { isMaximized_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * True if the metric is maximized: false if it is minimized.
     * Must be specified if the CustomMetric is used as an objective.
     * 
* * bool is_maximized = 2; * @return This builder for chaining. */ public Builder clearIsMaximized() { bitField0_ = (bitField0_ & ~0x00000002); isMaximized_ = false; onChanged(); return this; } private org.tensorflow.metadata.v0.CustomMetric.RegistrySpec registrySpec_; private com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.metadata.v0.CustomMetric.RegistrySpec, org.tensorflow.metadata.v0.CustomMetric.RegistrySpec.Builder, org.tensorflow.metadata.v0.CustomMetric.RegistrySpecOrBuilder> registrySpecBuilder_; /** *
     * Specification of the metric in the binary’s metric registry.
     * 
* * .tensorflow.metadata.v0.CustomMetric.RegistrySpec registry_spec = 3; * @return Whether the registrySpec field is set. */ public boolean hasRegistrySpec() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Specification of the metric in the binary’s metric registry.
     * 
* * .tensorflow.metadata.v0.CustomMetric.RegistrySpec registry_spec = 3; * @return The registrySpec. */ public org.tensorflow.metadata.v0.CustomMetric.RegistrySpec getRegistrySpec() { if (registrySpecBuilder_ == null) { return registrySpec_ == null ? org.tensorflow.metadata.v0.CustomMetric.RegistrySpec.getDefaultInstance() : registrySpec_; } else { return registrySpecBuilder_.getMessage(); } } /** *
     * Specification of the metric in the binary’s metric registry.
     * 
* * .tensorflow.metadata.v0.CustomMetric.RegistrySpec registry_spec = 3; */ public Builder setRegistrySpec(org.tensorflow.metadata.v0.CustomMetric.RegistrySpec value) { if (registrySpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } registrySpec_ = value; } else { registrySpecBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Specification of the metric in the binary’s metric registry.
     * 
* * .tensorflow.metadata.v0.CustomMetric.RegistrySpec registry_spec = 3; */ public Builder setRegistrySpec( org.tensorflow.metadata.v0.CustomMetric.RegistrySpec.Builder builderForValue) { if (registrySpecBuilder_ == null) { registrySpec_ = builderForValue.build(); } else { registrySpecBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Specification of the metric in the binary’s metric registry.
     * 
* * .tensorflow.metadata.v0.CustomMetric.RegistrySpec registry_spec = 3; */ public Builder mergeRegistrySpec(org.tensorflow.metadata.v0.CustomMetric.RegistrySpec value) { if (registrySpecBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && registrySpec_ != null && registrySpec_ != org.tensorflow.metadata.v0.CustomMetric.RegistrySpec.getDefaultInstance()) { getRegistrySpecBuilder().mergeFrom(value); } else { registrySpec_ = value; } } else { registrySpecBuilder_.mergeFrom(value); } if (registrySpec_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
     * Specification of the metric in the binary’s metric registry.
     * 
* * .tensorflow.metadata.v0.CustomMetric.RegistrySpec registry_spec = 3; */ public Builder clearRegistrySpec() { bitField0_ = (bitField0_ & ~0x00000004); registrySpec_ = null; if (registrySpecBuilder_ != null) { registrySpecBuilder_.dispose(); registrySpecBuilder_ = null; } onChanged(); return this; } /** *
     * Specification of the metric in the binary’s metric registry.
     * 
* * .tensorflow.metadata.v0.CustomMetric.RegistrySpec registry_spec = 3; */ public org.tensorflow.metadata.v0.CustomMetric.RegistrySpec.Builder getRegistrySpecBuilder() { bitField0_ |= 0x00000004; onChanged(); return getRegistrySpecFieldBuilder().getBuilder(); } /** *
     * Specification of the metric in the binary’s metric registry.
     * 
* * .tensorflow.metadata.v0.CustomMetric.RegistrySpec registry_spec = 3; */ public org.tensorflow.metadata.v0.CustomMetric.RegistrySpecOrBuilder getRegistrySpecOrBuilder() { if (registrySpecBuilder_ != null) { return registrySpecBuilder_.getMessageOrBuilder(); } else { return registrySpec_ == null ? org.tensorflow.metadata.v0.CustomMetric.RegistrySpec.getDefaultInstance() : registrySpec_; } } /** *
     * Specification of the metric in the binary’s metric registry.
     * 
* * .tensorflow.metadata.v0.CustomMetric.RegistrySpec registry_spec = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.metadata.v0.CustomMetric.RegistrySpec, org.tensorflow.metadata.v0.CustomMetric.RegistrySpec.Builder, org.tensorflow.metadata.v0.CustomMetric.RegistrySpecOrBuilder> getRegistrySpecFieldBuilder() { if (registrySpecBuilder_ == null) { registrySpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.metadata.v0.CustomMetric.RegistrySpec, org.tensorflow.metadata.v0.CustomMetric.RegistrySpec.Builder, org.tensorflow.metadata.v0.CustomMetric.RegistrySpecOrBuilder>( getRegistrySpec(), getParentForChildren(), isClean()); registrySpec_ = null; } return registrySpecBuilder_; } @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:tensorflow.metadata.v0.CustomMetric) } // @@protoc_insertion_point(class_scope:tensorflow.metadata.v0.CustomMetric) private static final org.tensorflow.metadata.v0.CustomMetric DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tensorflow.metadata.v0.CustomMetric(); } public static org.tensorflow.metadata.v0.CustomMetric getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CustomMetric parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tensorflow.metadata.v0.CustomMetric getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy