Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: feature.proto
package org.tensorflow.example;
/**
*
* Containers for sequential data.
* A FeatureList contains lists of Features. These may hold zero or more
* Feature values.
* FeatureLists are organized into categories by name. The FeatureLists message
* contains the mapping from name to FeatureList.
*
*
* Protobuf type {@code tensorflow.FeatureList}
*/
public final class FeatureList extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.FeatureList)
FeatureListOrBuilder {
private static final long serialVersionUID = 0L;
// Use FeatureList.newBuilder() to construct.
private FeatureList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FeatureList() {
feature_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FeatureList(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
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;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
feature_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
feature_.add(
input.readMessage(org.tensorflow.example.Feature.parser(), extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
feature_ = java.util.Collections.unmodifiableList(feature_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.example.FeatureProtos.internal_static_tensorflow_FeatureList_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.example.FeatureProtos.internal_static_tensorflow_FeatureList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.example.FeatureList.class, org.tensorflow.example.FeatureList.Builder.class);
}
public static final int FEATURE_FIELD_NUMBER = 1;
private java.util.List feature_;
/**
* repeated .tensorflow.Feature feature = 1;
*/
public java.util.List getFeatureList() {
return feature_;
}
/**
* repeated .tensorflow.Feature feature = 1;
*/
public java.util.List extends org.tensorflow.example.FeatureOrBuilder>
getFeatureOrBuilderList() {
return feature_;
}
/**
* repeated .tensorflow.Feature feature = 1;
*/
public int getFeatureCount() {
return feature_.size();
}
/**
* repeated .tensorflow.Feature feature = 1;
*/
public org.tensorflow.example.Feature getFeature(int index) {
return feature_.get(index);
}
/**
* repeated .tensorflow.Feature feature = 1;
*/
public org.tensorflow.example.FeatureOrBuilder getFeatureOrBuilder(
int index) {
return feature_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
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));
}
unknownFields.writeTo(output);
}
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));
}
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 org.tensorflow.example.FeatureList)) {
return super.equals(obj);
}
org.tensorflow.example.FeatureList other = (org.tensorflow.example.FeatureList) obj;
boolean result = true;
result = result && getFeatureList()
.equals(other.getFeatureList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@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();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.example.FeatureList parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.example.FeatureList parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.example.FeatureList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.example.FeatureList 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.example.FeatureList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.example.FeatureList parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.example.FeatureList parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.example.FeatureList 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.example.FeatureList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.example.FeatureList 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.example.FeatureList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.example.FeatureList parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tensorflow.example.FeatureList prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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;
}
/**
*
* Containers for sequential data.
* A FeatureList contains lists of Features. These may hold zero or more
* Feature values.
* FeatureLists are organized into categories by name. The FeatureLists message
* contains the mapping from name to FeatureList.
*
*
* Protobuf type {@code tensorflow.FeatureList}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.FeatureList)
org.tensorflow.example.FeatureListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.example.FeatureProtos.internal_static_tensorflow_FeatureList_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.example.FeatureProtos.internal_static_tensorflow_FeatureList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.example.FeatureList.class, org.tensorflow.example.FeatureList.Builder.class);
}
// Construct using org.tensorflow.example.FeatureList.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getFeatureFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (featureBuilder_ == null) {
feature_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
featureBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.example.FeatureProtos.internal_static_tensorflow_FeatureList_descriptor;
}
public org.tensorflow.example.FeatureList getDefaultInstanceForType() {
return org.tensorflow.example.FeatureList.getDefaultInstance();
}
public org.tensorflow.example.FeatureList build() {
org.tensorflow.example.FeatureList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tensorflow.example.FeatureList buildPartial() {
org.tensorflow.example.FeatureList result = new org.tensorflow.example.FeatureList(this);
int from_bitField0_ = bitField0_;
if (featureBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
feature_ = java.util.Collections.unmodifiableList(feature_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.feature_ = feature_;
} else {
result.feature_ = featureBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tensorflow.example.FeatureList) {
return mergeFrom((org.tensorflow.example.FeatureList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tensorflow.example.FeatureList other) {
if (other == org.tensorflow.example.FeatureList.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_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tensorflow.example.FeatureList parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tensorflow.example.FeatureList) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List feature_ =
java.util.Collections.emptyList();
private void ensureFeatureIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
feature_ = new java.util.ArrayList(feature_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.example.Feature, org.tensorflow.example.Feature.Builder, org.tensorflow.example.FeatureOrBuilder> featureBuilder_;
/**
* repeated .tensorflow.Feature feature = 1;
*/
public java.util.List getFeatureList() {
if (featureBuilder_ == null) {
return java.util.Collections.unmodifiableList(feature_);
} else {
return featureBuilder_.getMessageList();
}
}
/**
* repeated .tensorflow.Feature feature = 1;
*/
public int getFeatureCount() {
if (featureBuilder_ == null) {
return feature_.size();
} else {
return featureBuilder_.getCount();
}
}
/**
* repeated .tensorflow.Feature feature = 1;
*/
public org.tensorflow.example.Feature getFeature(int index) {
if (featureBuilder_ == null) {
return feature_.get(index);
} else {
return featureBuilder_.getMessage(index);
}
}
/**
* repeated .tensorflow.Feature feature = 1;
*/
public Builder setFeature(
int index, org.tensorflow.example.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.Feature feature = 1;
*/
public Builder setFeature(
int index, org.tensorflow.example.Feature.Builder builderForValue) {
if (featureBuilder_ == null) {
ensureFeatureIsMutable();
feature_.set(index, builderForValue.build());
onChanged();
} else {
featureBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tensorflow.Feature feature = 1;
*/
public Builder addFeature(org.tensorflow.example.Feature value) {
if (featureBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFeatureIsMutable();
feature_.add(value);
onChanged();
} else {
featureBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .tensorflow.Feature feature = 1;
*/
public Builder addFeature(
int index, org.tensorflow.example.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.Feature feature = 1;
*/
public Builder addFeature(
org.tensorflow.example.Feature.Builder builderForValue) {
if (featureBuilder_ == null) {
ensureFeatureIsMutable();
feature_.add(builderForValue.build());
onChanged();
} else {
featureBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .tensorflow.Feature feature = 1;
*/
public Builder addFeature(
int index, org.tensorflow.example.Feature.Builder builderForValue) {
if (featureBuilder_ == null) {
ensureFeatureIsMutable();
feature_.add(index, builderForValue.build());
onChanged();
} else {
featureBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tensorflow.Feature feature = 1;
*/
public Builder addAllFeature(
java.lang.Iterable extends org.tensorflow.example.Feature> values) {
if (featureBuilder_ == null) {
ensureFeatureIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, feature_);
onChanged();
} else {
featureBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .tensorflow.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.Feature feature = 1;
*/
public Builder removeFeature(int index) {
if (featureBuilder_ == null) {
ensureFeatureIsMutable();
feature_.remove(index);
onChanged();
} else {
featureBuilder_.remove(index);
}
return this;
}
/**
* repeated .tensorflow.Feature feature = 1;
*/
public org.tensorflow.example.Feature.Builder getFeatureBuilder(
int index) {
return getFeatureFieldBuilder().getBuilder(index);
}
/**
* repeated .tensorflow.Feature feature = 1;
*/
public org.tensorflow.example.FeatureOrBuilder getFeatureOrBuilder(
int index) {
if (featureBuilder_ == null) {
return feature_.get(index); } else {
return featureBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .tensorflow.Feature feature = 1;
*/
public java.util.List extends org.tensorflow.example.FeatureOrBuilder>
getFeatureOrBuilderList() {
if (featureBuilder_ != null) {
return featureBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(feature_);
}
}
/**
* repeated .tensorflow.Feature feature = 1;
*/
public org.tensorflow.example.Feature.Builder addFeatureBuilder() {
return getFeatureFieldBuilder().addBuilder(
org.tensorflow.example.Feature.getDefaultInstance());
}
/**
* repeated .tensorflow.Feature feature = 1;
*/
public org.tensorflow.example.Feature.Builder addFeatureBuilder(
int index) {
return getFeatureFieldBuilder().addBuilder(
index, org.tensorflow.example.Feature.getDefaultInstance());
}
/**
* repeated .tensorflow.Feature feature = 1;
*/
public java.util.List
getFeatureBuilderList() {
return getFeatureFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.example.Feature, org.tensorflow.example.Feature.Builder, org.tensorflow.example.FeatureOrBuilder>
getFeatureFieldBuilder() {
if (featureBuilder_ == null) {
featureBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.example.Feature, org.tensorflow.example.Feature.Builder, org.tensorflow.example.FeatureOrBuilder>(
feature_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
feature_ = null;
}
return featureBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.FeatureList)
}
// @@protoc_insertion_point(class_scope:tensorflow.FeatureList)
private static final org.tensorflow.example.FeatureList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tensorflow.example.FeatureList();
}
public static org.tensorflow.example.FeatureList getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public FeatureList parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new FeatureList(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.tensorflow.example.FeatureList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}