org.tensorflow.metadata.v0.StructDomain Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow_metadata/proto/v0/schema.proto
// Protobuf Java Version: 3.25.4
package org.tensorflow.metadata.v0;
/**
*
* Domain for a recursive struct.
* NOTE: If a feature with a StructDomain is deprecated, then all the
* child features (features and sparse_features of the StructDomain) are also
* considered to be deprecated. Similarly child features can only be in
* environments of the parent feature.
*
*
* Protobuf type {@code tensorflow.metadata.v0.StructDomain}
*/
public final class StructDomain extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.metadata.v0.StructDomain)
StructDomainOrBuilder {
private static final long serialVersionUID = 0L;
// Use StructDomain.newBuilder() to construct.
private StructDomain(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StructDomain() {
feature_ = java.util.Collections.emptyList();
sparseFeature_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StructDomain();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.metadata.v0.SchemaOuterClass.internal_static_tensorflow_metadata_v0_StructDomain_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.metadata.v0.SchemaOuterClass.internal_static_tensorflow_metadata_v0_StructDomain_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.metadata.v0.StructDomain.class, org.tensorflow.metadata.v0.StructDomain.Builder.class);
}
public static final int FEATURE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List feature_;
/**
* repeated .tensorflow.metadata.v0.Feature feature = 1;
*/
@java.lang.Override
public java.util.List getFeatureList() {
return feature_;
}
/**
* repeated .tensorflow.metadata.v0.Feature feature = 1;
*/
@java.lang.Override
public java.util.List extends org.tensorflow.metadata.v0.FeatureOrBuilder>
getFeatureOrBuilderList() {
return feature_;
}
/**
* repeated .tensorflow.metadata.v0.Feature feature = 1;
*/
@java.lang.Override
public int getFeatureCount() {
return feature_.size();
}
/**
* repeated .tensorflow.metadata.v0.Feature feature = 1;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.Feature getFeature(int index) {
return feature_.get(index);
}
/**
* repeated .tensorflow.metadata.v0.Feature feature = 1;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.FeatureOrBuilder getFeatureOrBuilder(
int index) {
return feature_.get(index);
}
public static final int SPARSE_FEATURE_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List sparseFeature_;
/**
* repeated .tensorflow.metadata.v0.SparseFeature sparse_feature = 2;
*/
@java.lang.Override
public java.util.List getSparseFeatureList() {
return sparseFeature_;
}
/**
* repeated .tensorflow.metadata.v0.SparseFeature sparse_feature = 2;
*/
@java.lang.Override
public java.util.List extends org.tensorflow.metadata.v0.SparseFeatureOrBuilder>
getSparseFeatureOrBuilderList() {
return sparseFeature_;
}
/**
* repeated .tensorflow.metadata.v0.SparseFeature sparse_feature = 2;
*/
@java.lang.Override
public int getSparseFeatureCount() {
return sparseFeature_.size();
}
/**
* repeated .tensorflow.metadata.v0.SparseFeature sparse_feature = 2;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.SparseFeature getSparseFeature(int index) {
return sparseFeature_.get(index);
}
/**
* repeated .tensorflow.metadata.v0.SparseFeature sparse_feature = 2;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.SparseFeatureOrBuilder getSparseFeatureOrBuilder(
int index) {
return sparseFeature_.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 < feature_.size(); i++) {
output.writeMessage(1, feature_.get(i));
}
for (int i = 0; i < sparseFeature_.size(); i++) {
output.writeMessage(2, sparseFeature_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < feature_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, feature_.get(i));
}
for (int i = 0; i < sparseFeature_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, sparseFeature_.get(i));
}
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.StructDomain)) {
return super.equals(obj);
}
org.tensorflow.metadata.v0.StructDomain other = (org.tensorflow.metadata.v0.StructDomain) obj;
if (!getFeatureList()
.equals(other.getFeatureList())) return false;
if (!getSparseFeatureList()
.equals(other.getSparseFeatureList())) 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();
if (getFeatureCount() > 0) {
hash = (37 * hash) + FEATURE_FIELD_NUMBER;
hash = (53 * hash) + getFeatureList().hashCode();
}
if (getSparseFeatureCount() > 0) {
hash = (37 * hash) + SPARSE_FEATURE_FIELD_NUMBER;
hash = (53 * hash) + getSparseFeatureList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.metadata.v0.StructDomain parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.metadata.v0.StructDomain 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.StructDomain parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.metadata.v0.StructDomain 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.StructDomain parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.metadata.v0.StructDomain parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.metadata.v0.StructDomain parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.metadata.v0.StructDomain 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.StructDomain parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.metadata.v0.StructDomain 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.StructDomain parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.metadata.v0.StructDomain 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.StructDomain 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;
}
/**
*
* Domain for a recursive struct.
* NOTE: If a feature with a StructDomain is deprecated, then all the
* child features (features and sparse_features of the StructDomain) are also
* considered to be deprecated. Similarly child features can only be in
* environments of the parent feature.
*
*
* Protobuf type {@code tensorflow.metadata.v0.StructDomain}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.metadata.v0.StructDomain)
org.tensorflow.metadata.v0.StructDomainOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.metadata.v0.SchemaOuterClass.internal_static_tensorflow_metadata_v0_StructDomain_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.metadata.v0.SchemaOuterClass.internal_static_tensorflow_metadata_v0_StructDomain_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.metadata.v0.StructDomain.class, org.tensorflow.metadata.v0.StructDomain.Builder.class);
}
// Construct using org.tensorflow.metadata.v0.StructDomain.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (featureBuilder_ == null) {
feature_ = java.util.Collections.emptyList();
} else {
feature_ = null;
featureBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (sparseFeatureBuilder_ == null) {
sparseFeature_ = java.util.Collections.emptyList();
} else {
sparseFeature_ = null;
sparseFeatureBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.metadata.v0.SchemaOuterClass.internal_static_tensorflow_metadata_v0_StructDomain_descriptor;
}
@java.lang.Override
public org.tensorflow.metadata.v0.StructDomain getDefaultInstanceForType() {
return org.tensorflow.metadata.v0.StructDomain.getDefaultInstance();
}
@java.lang.Override
public org.tensorflow.metadata.v0.StructDomain build() {
org.tensorflow.metadata.v0.StructDomain result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.tensorflow.metadata.v0.StructDomain buildPartial() {
org.tensorflow.metadata.v0.StructDomain result = new org.tensorflow.metadata.v0.StructDomain(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(org.tensorflow.metadata.v0.StructDomain result) {
if (featureBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
feature_ = java.util.Collections.unmodifiableList(feature_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.feature_ = feature_;
} else {
result.feature_ = featureBuilder_.build();
}
if (sparseFeatureBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
sparseFeature_ = java.util.Collections.unmodifiableList(sparseFeature_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.sparseFeature_ = sparseFeature_;
} else {
result.sparseFeature_ = sparseFeatureBuilder_.build();
}
}
private void buildPartial0(org.tensorflow.metadata.v0.StructDomain result) {
int from_bitField0_ = 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.StructDomain) {
return mergeFrom((org.tensorflow.metadata.v0.StructDomain)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tensorflow.metadata.v0.StructDomain other) {
if (other == org.tensorflow.metadata.v0.StructDomain.getDefaultInstance()) return this;
if (featureBuilder_ == null) {
if (!other.feature_.isEmpty()) {
if (feature_.isEmpty()) {
feature_ = other.feature_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureFeatureIsMutable();
feature_.addAll(other.feature_);
}
onChanged();
}
} else {
if (!other.feature_.isEmpty()) {
if (featureBuilder_.isEmpty()) {
featureBuilder_.dispose();
featureBuilder_ = null;
feature_ = other.feature_;
bitField0_ = (bitField0_ & ~0x00000001);
featureBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getFeatureFieldBuilder() : null;
} else {
featureBuilder_.addAllMessages(other.feature_);
}
}
}
if (sparseFeatureBuilder_ == null) {
if (!other.sparseFeature_.isEmpty()) {
if (sparseFeature_.isEmpty()) {
sparseFeature_ = other.sparseFeature_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureSparseFeatureIsMutable();
sparseFeature_.addAll(other.sparseFeature_);
}
onChanged();
}
} else {
if (!other.sparseFeature_.isEmpty()) {
if (sparseFeatureBuilder_.isEmpty()) {
sparseFeatureBuilder_.dispose();
sparseFeatureBuilder_ = null;
sparseFeature_ = other.sparseFeature_;
bitField0_ = (bitField0_ & ~0x00000002);
sparseFeatureBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSparseFeatureFieldBuilder() : null;
} else {
sparseFeatureBuilder_.addAllMessages(other.sparseFeature_);
}
}
}
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: {
org.tensorflow.metadata.v0.Feature m =
input.readMessage(
org.tensorflow.metadata.v0.Feature.PARSER,
extensionRegistry);
if (featureBuilder_ == null) {
ensureFeatureIsMutable();
feature_.add(m);
} else {
featureBuilder_.addMessage(m);
}
break;
} // case 10
case 18: {
org.tensorflow.metadata.v0.SparseFeature m =
input.readMessage(
org.tensorflow.metadata.v0.SparseFeature.PARSER,
extensionRegistry);
if (sparseFeatureBuilder_ == null) {
ensureSparseFeatureIsMutable();
sparseFeature_.add(m);
} else {
sparseFeatureBuilder_.addMessage(m);
}
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.util.List feature_ =
java.util.Collections.emptyList();
private void ensureFeatureIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
feature_ = new java.util.ArrayList(feature_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.metadata.v0.Feature, org.tensorflow.metadata.v0.Feature.Builder, org.tensorflow.metadata.v0.FeatureOrBuilder> featureBuilder_;
/**
* repeated .tensorflow.metadata.v0.Feature feature = 1;
*/
public java.util.List getFeatureList() {
if (featureBuilder_ == null) {
return java.util.Collections.unmodifiableList(feature_);
} else {
return featureBuilder_.getMessageList();
}
}
/**
* repeated .tensorflow.metadata.v0.Feature feature = 1;
*/
public int getFeatureCount() {
if (featureBuilder_ == null) {
return feature_.size();
} else {
return featureBuilder_.getCount();
}
}
/**
* repeated .tensorflow.metadata.v0.Feature feature = 1;
*/
public org.tensorflow.metadata.v0.Feature getFeature(int index) {
if (featureBuilder_ == null) {
return feature_.get(index);
} else {
return featureBuilder_.getMessage(index);
}
}
/**
* repeated .tensorflow.metadata.v0.Feature feature = 1;
*/
public Builder setFeature(
int index, org.tensorflow.metadata.v0.Feature value) {
if (featureBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFeatureIsMutable();
feature_.set(index, value);
onChanged();
} else {
featureBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .tensorflow.metadata.v0.Feature feature = 1;
*/
public Builder setFeature(
int index, org.tensorflow.metadata.v0.Feature.Builder builderForValue) {
if (featureBuilder_ == null) {
ensureFeatureIsMutable();
feature_.set(index, builderForValue.build());
onChanged();
} else {
featureBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tensorflow.metadata.v0.Feature feature = 1;
*/
public Builder addFeature(org.tensorflow.metadata.v0.Feature value) {
if (featureBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFeatureIsMutable();
feature_.add(value);
onChanged();
} else {
featureBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .tensorflow.metadata.v0.Feature feature = 1;
*/
public Builder addFeature(
int index, org.tensorflow.metadata.v0.Feature value) {
if (featureBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFeatureIsMutable();
feature_.add(index, value);
onChanged();
} else {
featureBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .tensorflow.metadata.v0.Feature feature = 1;
*/
public Builder addFeature(
org.tensorflow.metadata.v0.Feature.Builder builderForValue) {
if (featureBuilder_ == null) {
ensureFeatureIsMutable();
feature_.add(builderForValue.build());
onChanged();
} else {
featureBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .tensorflow.metadata.v0.Feature feature = 1;
*/
public Builder addFeature(
int index, org.tensorflow.metadata.v0.Feature.Builder builderForValue) {
if (featureBuilder_ == null) {
ensureFeatureIsMutable();
feature_.add(index, builderForValue.build());
onChanged();
} else {
featureBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tensorflow.metadata.v0.Feature feature = 1;
*/
public Builder addAllFeature(
java.lang.Iterable extends org.tensorflow.metadata.v0.Feature> values) {
if (featureBuilder_ == null) {
ensureFeatureIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, feature_);
onChanged();
} else {
featureBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .tensorflow.metadata.v0.Feature feature = 1;
*/
public Builder clearFeature() {
if (featureBuilder_ == null) {
feature_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
featureBuilder_.clear();
}
return this;
}
/**
* repeated .tensorflow.metadata.v0.Feature feature = 1;
*/
public Builder removeFeature(int index) {
if (featureBuilder_ == null) {
ensureFeatureIsMutable();
feature_.remove(index);
onChanged();
} else {
featureBuilder_.remove(index);
}
return this;
}
/**
* repeated .tensorflow.metadata.v0.Feature feature = 1;
*/
public org.tensorflow.metadata.v0.Feature.Builder getFeatureBuilder(
int index) {
return getFeatureFieldBuilder().getBuilder(index);
}
/**
* repeated .tensorflow.metadata.v0.Feature feature = 1;
*/
public org.tensorflow.metadata.v0.FeatureOrBuilder getFeatureOrBuilder(
int index) {
if (featureBuilder_ == null) {
return feature_.get(index); } else {
return featureBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .tensorflow.metadata.v0.Feature feature = 1;
*/
public java.util.List extends org.tensorflow.metadata.v0.FeatureOrBuilder>
getFeatureOrBuilderList() {
if (featureBuilder_ != null) {
return featureBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(feature_);
}
}
/**
* repeated .tensorflow.metadata.v0.Feature feature = 1;
*/
public org.tensorflow.metadata.v0.Feature.Builder addFeatureBuilder() {
return getFeatureFieldBuilder().addBuilder(
org.tensorflow.metadata.v0.Feature.getDefaultInstance());
}
/**
* repeated .tensorflow.metadata.v0.Feature feature = 1;
*/
public org.tensorflow.metadata.v0.Feature.Builder addFeatureBuilder(
int index) {
return getFeatureFieldBuilder().addBuilder(
index, org.tensorflow.metadata.v0.Feature.getDefaultInstance());
}
/**
* repeated .tensorflow.metadata.v0.Feature feature = 1;
*/
public java.util.List
getFeatureBuilderList() {
return getFeatureFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.metadata.v0.Feature, org.tensorflow.metadata.v0.Feature.Builder, org.tensorflow.metadata.v0.FeatureOrBuilder>
getFeatureFieldBuilder() {
if (featureBuilder_ == null) {
featureBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.metadata.v0.Feature, org.tensorflow.metadata.v0.Feature.Builder, org.tensorflow.metadata.v0.FeatureOrBuilder>(
feature_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
feature_ = null;
}
return featureBuilder_;
}
private java.util.List sparseFeature_ =
java.util.Collections.emptyList();
private void ensureSparseFeatureIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
sparseFeature_ = new java.util.ArrayList(sparseFeature_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.metadata.v0.SparseFeature, org.tensorflow.metadata.v0.SparseFeature.Builder, org.tensorflow.metadata.v0.SparseFeatureOrBuilder> sparseFeatureBuilder_;
/**
* repeated .tensorflow.metadata.v0.SparseFeature sparse_feature = 2;
*/
public java.util.List getSparseFeatureList() {
if (sparseFeatureBuilder_ == null) {
return java.util.Collections.unmodifiableList(sparseFeature_);
} else {
return sparseFeatureBuilder_.getMessageList();
}
}
/**
* repeated .tensorflow.metadata.v0.SparseFeature sparse_feature = 2;
*/
public int getSparseFeatureCount() {
if (sparseFeatureBuilder_ == null) {
return sparseFeature_.size();
} else {
return sparseFeatureBuilder_.getCount();
}
}
/**
* repeated .tensorflow.metadata.v0.SparseFeature sparse_feature = 2;
*/
public org.tensorflow.metadata.v0.SparseFeature getSparseFeature(int index) {
if (sparseFeatureBuilder_ == null) {
return sparseFeature_.get(index);
} else {
return sparseFeatureBuilder_.getMessage(index);
}
}
/**
* repeated .tensorflow.metadata.v0.SparseFeature sparse_feature = 2;
*/
public Builder setSparseFeature(
int index, org.tensorflow.metadata.v0.SparseFeature value) {
if (sparseFeatureBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSparseFeatureIsMutable();
sparseFeature_.set(index, value);
onChanged();
} else {
sparseFeatureBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .tensorflow.metadata.v0.SparseFeature sparse_feature = 2;
*/
public Builder setSparseFeature(
int index, org.tensorflow.metadata.v0.SparseFeature.Builder builderForValue) {
if (sparseFeatureBuilder_ == null) {
ensureSparseFeatureIsMutable();
sparseFeature_.set(index, builderForValue.build());
onChanged();
} else {
sparseFeatureBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tensorflow.metadata.v0.SparseFeature sparse_feature = 2;
*/
public Builder addSparseFeature(org.tensorflow.metadata.v0.SparseFeature value) {
if (sparseFeatureBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSparseFeatureIsMutable();
sparseFeature_.add(value);
onChanged();
} else {
sparseFeatureBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .tensorflow.metadata.v0.SparseFeature sparse_feature = 2;
*/
public Builder addSparseFeature(
int index, org.tensorflow.metadata.v0.SparseFeature value) {
if (sparseFeatureBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSparseFeatureIsMutable();
sparseFeature_.add(index, value);
onChanged();
} else {
sparseFeatureBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .tensorflow.metadata.v0.SparseFeature sparse_feature = 2;
*/
public Builder addSparseFeature(
org.tensorflow.metadata.v0.SparseFeature.Builder builderForValue) {
if (sparseFeatureBuilder_ == null) {
ensureSparseFeatureIsMutable();
sparseFeature_.add(builderForValue.build());
onChanged();
} else {
sparseFeatureBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .tensorflow.metadata.v0.SparseFeature sparse_feature = 2;
*/
public Builder addSparseFeature(
int index, org.tensorflow.metadata.v0.SparseFeature.Builder builderForValue) {
if (sparseFeatureBuilder_ == null) {
ensureSparseFeatureIsMutable();
sparseFeature_.add(index, builderForValue.build());
onChanged();
} else {
sparseFeatureBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tensorflow.metadata.v0.SparseFeature sparse_feature = 2;
*/
public Builder addAllSparseFeature(
java.lang.Iterable extends org.tensorflow.metadata.v0.SparseFeature> values) {
if (sparseFeatureBuilder_ == null) {
ensureSparseFeatureIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, sparseFeature_);
onChanged();
} else {
sparseFeatureBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .tensorflow.metadata.v0.SparseFeature sparse_feature = 2;
*/
public Builder clearSparseFeature() {
if (sparseFeatureBuilder_ == null) {
sparseFeature_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
sparseFeatureBuilder_.clear();
}
return this;
}
/**
* repeated .tensorflow.metadata.v0.SparseFeature sparse_feature = 2;
*/
public Builder removeSparseFeature(int index) {
if (sparseFeatureBuilder_ == null) {
ensureSparseFeatureIsMutable();
sparseFeature_.remove(index);
onChanged();
} else {
sparseFeatureBuilder_.remove(index);
}
return this;
}
/**
* repeated .tensorflow.metadata.v0.SparseFeature sparse_feature = 2;
*/
public org.tensorflow.metadata.v0.SparseFeature.Builder getSparseFeatureBuilder(
int index) {
return getSparseFeatureFieldBuilder().getBuilder(index);
}
/**
* repeated .tensorflow.metadata.v0.SparseFeature sparse_feature = 2;
*/
public org.tensorflow.metadata.v0.SparseFeatureOrBuilder getSparseFeatureOrBuilder(
int index) {
if (sparseFeatureBuilder_ == null) {
return sparseFeature_.get(index); } else {
return sparseFeatureBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .tensorflow.metadata.v0.SparseFeature sparse_feature = 2;
*/
public java.util.List extends org.tensorflow.metadata.v0.SparseFeatureOrBuilder>
getSparseFeatureOrBuilderList() {
if (sparseFeatureBuilder_ != null) {
return sparseFeatureBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(sparseFeature_);
}
}
/**
* repeated .tensorflow.metadata.v0.SparseFeature sparse_feature = 2;
*/
public org.tensorflow.metadata.v0.SparseFeature.Builder addSparseFeatureBuilder() {
return getSparseFeatureFieldBuilder().addBuilder(
org.tensorflow.metadata.v0.SparseFeature.getDefaultInstance());
}
/**
* repeated .tensorflow.metadata.v0.SparseFeature sparse_feature = 2;
*/
public org.tensorflow.metadata.v0.SparseFeature.Builder addSparseFeatureBuilder(
int index) {
return getSparseFeatureFieldBuilder().addBuilder(
index, org.tensorflow.metadata.v0.SparseFeature.getDefaultInstance());
}
/**
* repeated .tensorflow.metadata.v0.SparseFeature sparse_feature = 2;
*/
public java.util.List
getSparseFeatureBuilderList() {
return getSparseFeatureFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.metadata.v0.SparseFeature, org.tensorflow.metadata.v0.SparseFeature.Builder, org.tensorflow.metadata.v0.SparseFeatureOrBuilder>
getSparseFeatureFieldBuilder() {
if (sparseFeatureBuilder_ == null) {
sparseFeatureBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.metadata.v0.SparseFeature, org.tensorflow.metadata.v0.SparseFeature.Builder, org.tensorflow.metadata.v0.SparseFeatureOrBuilder>(
sparseFeature_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
sparseFeature_ = null;
}
return sparseFeatureBuilder_;
}
@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.StructDomain)
}
// @@protoc_insertion_point(class_scope:tensorflow.metadata.v0.StructDomain)
private static final org.tensorflow.metadata.v0.StructDomain DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tensorflow.metadata.v0.StructDomain();
}
public static org.tensorflow.metadata.v0.StructDomain getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StructDomain 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.StructDomain getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy