thredds.filesystem.FileSystemProto Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of netcdf Show documentation
Show all versions of netcdf Show documentation
The NetCDF-Java Library is a Java interface to NetCDF files,
as well as to many other types of scientific data formats.
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: thredds/filesystem/FileSystem.proto
package thredds.filesystem;
public final class FileSystemProto {
private FileSystemProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface DirectoryOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required string path = 1;
boolean hasPath();
String getPath();
// optional uint64 lastModified = 2;
boolean hasLastModified();
long getLastModified();
// repeated .filesystem.File files = 3;
java.util.List
getFilesList();
thredds.filesystem.FileSystemProto.File getFiles(int index);
int getFilesCount();
java.util.List extends thredds.filesystem.FileSystemProto.FileOrBuilder>
getFilesOrBuilderList();
thredds.filesystem.FileSystemProto.FileOrBuilder getFilesOrBuilder(
int index);
// repeated .filesystem.Attribute atts = 5;
java.util.List
getAttsList();
thredds.filesystem.FileSystemProto.Attribute getAtts(int index);
int getAttsCount();
java.util.List extends thredds.filesystem.FileSystemProto.AttributeOrBuilder>
getAttsOrBuilderList();
thredds.filesystem.FileSystemProto.AttributeOrBuilder getAttsOrBuilder(
int index);
}
public static final class Directory extends
com.google.protobuf.GeneratedMessage
implements DirectoryOrBuilder {
// Use Directory.newBuilder() to construct.
private Directory(Builder builder) {
super(builder);
}
private Directory(boolean noInit) {}
private static final Directory defaultInstance;
public static Directory getDefaultInstance() {
return defaultInstance;
}
public Directory getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return thredds.filesystem.FileSystemProto.internal_static_filesystem_Directory_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return thredds.filesystem.FileSystemProto.internal_static_filesystem_Directory_fieldAccessorTable;
}
private int bitField0_;
// required string path = 1;
public static final int PATH_FIELD_NUMBER = 1;
private Object path_;
public boolean hasPath() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
public String getPath() {
Object ref = path_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
if (com.google.protobuf.Internal.isValidUtf8(bs)) {
path_ = s;
}
return s;
}
}
private com.google.protobuf.ByteString getPathBytes() {
Object ref = path_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional uint64 lastModified = 2;
public static final int LASTMODIFIED_FIELD_NUMBER = 2;
private long lastModified_;
public boolean hasLastModified() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
public long getLastModified() {
return lastModified_;
}
// repeated .filesystem.File files = 3;
public static final int FILES_FIELD_NUMBER = 3;
private java.util.List files_;
public java.util.List getFilesList() {
return files_;
}
public java.util.List extends thredds.filesystem.FileSystemProto.FileOrBuilder>
getFilesOrBuilderList() {
return files_;
}
public int getFilesCount() {
return files_.size();
}
public thredds.filesystem.FileSystemProto.File getFiles(int index) {
return files_.get(index);
}
public thredds.filesystem.FileSystemProto.FileOrBuilder getFilesOrBuilder(
int index) {
return files_.get(index);
}
// repeated .filesystem.Attribute atts = 5;
public static final int ATTS_FIELD_NUMBER = 5;
private java.util.List atts_;
public java.util.List getAttsList() {
return atts_;
}
public java.util.List extends thredds.filesystem.FileSystemProto.AttributeOrBuilder>
getAttsOrBuilderList() {
return atts_;
}
public int getAttsCount() {
return atts_.size();
}
public thredds.filesystem.FileSystemProto.Attribute getAtts(int index) {
return atts_.get(index);
}
public thredds.filesystem.FileSystemProto.AttributeOrBuilder getAttsOrBuilder(
int index) {
return atts_.get(index);
}
private void initFields() {
path_ = "";
lastModified_ = 0L;
files_ = java.util.Collections.emptyList();
atts_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasPath()) {
memoizedIsInitialized = 0;
return false;
}
for (int i = 0; i < getFilesCount(); i++) {
if (!getFiles(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getAttsCount(); i++) {
if (!getAtts(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getPathBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeUInt64(2, lastModified_);
}
for (int i = 0; i < files_.size(); i++) {
output.writeMessage(3, files_.get(i));
}
for (int i = 0; i < atts_.size(); i++) {
output.writeMessage(5, atts_.get(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getPathBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, lastModified_);
}
for (int i = 0; i < files_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, files_.get(i));
}
for (int i = 0; i < atts_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, atts_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
@java.lang.Override
protected Object writeReplace() throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static thredds.filesystem.FileSystemProto.Directory parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static thredds.filesystem.FileSystemProto.Directory parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static thredds.filesystem.FileSystemProto.Directory parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static thredds.filesystem.FileSystemProto.Directory parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static thredds.filesystem.FileSystemProto.Directory parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static thredds.filesystem.FileSystemProto.Directory parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static thredds.filesystem.FileSystemProto.Directory parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input)) {
return builder.buildParsed();
} else {
return null;
}
}
public static thredds.filesystem.FileSystemProto.Directory parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
return builder.buildParsed();
} else {
return null;
}
}
public static thredds.filesystem.FileSystemProto.Directory parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static thredds.filesystem.FileSystemProto.Directory parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(thredds.filesystem.FileSystemProto.Directory prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements thredds.filesystem.FileSystemProto.DirectoryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return thredds.filesystem.FileSystemProto.internal_static_filesystem_Directory_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return thredds.filesystem.FileSystemProto.internal_static_filesystem_Directory_fieldAccessorTable;
}
// Construct using thredds.filesystem.FileSystemProto.Directory.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getFilesFieldBuilder();
getAttsFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
path_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
lastModified_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
if (filesBuilder_ == null) {
files_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
filesBuilder_.clear();
}
if (attsBuilder_ == null) {
atts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
attsBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return thredds.filesystem.FileSystemProto.Directory.getDescriptor();
}
public thredds.filesystem.FileSystemProto.Directory getDefaultInstanceForType() {
return thredds.filesystem.FileSystemProto.Directory.getDefaultInstance();
}
public thredds.filesystem.FileSystemProto.Directory build() {
thredds.filesystem.FileSystemProto.Directory result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
private thredds.filesystem.FileSystemProto.Directory buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
thredds.filesystem.FileSystemProto.Directory result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
return result;
}
public thredds.filesystem.FileSystemProto.Directory buildPartial() {
thredds.filesystem.FileSystemProto.Directory result = new thredds.filesystem.FileSystemProto.Directory(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.path_ = path_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.lastModified_ = lastModified_;
if (filesBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
files_ = java.util.Collections.unmodifiableList(files_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.files_ = files_;
} else {
result.files_ = filesBuilder_.build();
}
if (attsBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008)) {
atts_ = java.util.Collections.unmodifiableList(atts_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.atts_ = atts_;
} else {
result.atts_ = attsBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof thredds.filesystem.FileSystemProto.Directory) {
return mergeFrom((thredds.filesystem.FileSystemProto.Directory)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(thredds.filesystem.FileSystemProto.Directory other) {
if (other == thredds.filesystem.FileSystemProto.Directory.getDefaultInstance()) return this;
if (other.hasPath()) {
setPath(other.getPath());
}
if (other.hasLastModified()) {
setLastModified(other.getLastModified());
}
if (filesBuilder_ == null) {
if (!other.files_.isEmpty()) {
if (files_.isEmpty()) {
files_ = other.files_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureFilesIsMutable();
files_.addAll(other.files_);
}
onChanged();
}
} else {
if (!other.files_.isEmpty()) {
if (filesBuilder_.isEmpty()) {
filesBuilder_.dispose();
filesBuilder_ = null;
files_ = other.files_;
bitField0_ = (bitField0_ & ~0x00000004);
filesBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getFilesFieldBuilder() : null;
} else {
filesBuilder_.addAllMessages(other.files_);
}
}
}
if (attsBuilder_ == null) {
if (!other.atts_.isEmpty()) {
if (atts_.isEmpty()) {
atts_ = other.atts_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureAttsIsMutable();
atts_.addAll(other.atts_);
}
onChanged();
}
} else {
if (!other.atts_.isEmpty()) {
if (attsBuilder_.isEmpty()) {
attsBuilder_.dispose();
attsBuilder_ = null;
atts_ = other.atts_;
bitField0_ = (bitField0_ & ~0x00000008);
attsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getAttsFieldBuilder() : null;
} else {
attsBuilder_.addAllMessages(other.atts_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasPath()) {
return false;
}
for (int i = 0; i < getFilesCount(); i++) {
if (!getFiles(i).isInitialized()) {
return false;
}
}
for (int i = 0; i < getAttsCount(); i++) {
if (!getAtts(i).isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder(
this.getUnknownFields());
while (true) {
int tag = input.readTag();
switch (tag) {
case 0:
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
path_ = input.readBytes();
break;
}
case 16: {
bitField0_ |= 0x00000002;
lastModified_ = input.readUInt64();
break;
}
case 26: {
thredds.filesystem.FileSystemProto.File.Builder subBuilder = thredds.filesystem.FileSystemProto.File.newBuilder();
input.readMessage(subBuilder, extensionRegistry);
addFiles(subBuilder.buildPartial());
break;
}
case 42: {
thredds.filesystem.FileSystemProto.Attribute.Builder subBuilder = thredds.filesystem.FileSystemProto.Attribute.newBuilder();
input.readMessage(subBuilder, extensionRegistry);
addAtts(subBuilder.buildPartial());
break;
}
}
}
}
private int bitField0_;
// required string path = 1;
private Object path_ = "";
public boolean hasPath() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
public String getPath() {
Object ref = path_;
if (!(ref instanceof String)) {
String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
path_ = s;
return s;
} else {
return (String) ref;
}
}
public Builder setPath(String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
path_ = value;
onChanged();
return this;
}
public Builder clearPath() {
bitField0_ = (bitField0_ & ~0x00000001);
path_ = getDefaultInstance().getPath();
onChanged();
return this;
}
void setPath(com.google.protobuf.ByteString value) {
bitField0_ |= 0x00000001;
path_ = value;
onChanged();
}
// optional uint64 lastModified = 2;
private long lastModified_ ;
public boolean hasLastModified() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
public long getLastModified() {
return lastModified_;
}
public Builder setLastModified(long value) {
bitField0_ |= 0x00000002;
lastModified_ = value;
onChanged();
return this;
}
public Builder clearLastModified() {
bitField0_ = (bitField0_ & ~0x00000002);
lastModified_ = 0L;
onChanged();
return this;
}
// repeated .filesystem.File files = 3;
private java.util.List files_ =
java.util.Collections.emptyList();
private void ensureFilesIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
files_ = new java.util.ArrayList(files_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
thredds.filesystem.FileSystemProto.File, thredds.filesystem.FileSystemProto.File.Builder, thredds.filesystem.FileSystemProto.FileOrBuilder> filesBuilder_;
public java.util.List getFilesList() {
if (filesBuilder_ == null) {
return java.util.Collections.unmodifiableList(files_);
} else {
return filesBuilder_.getMessageList();
}
}
public int getFilesCount() {
if (filesBuilder_ == null) {
return files_.size();
} else {
return filesBuilder_.getCount();
}
}
public thredds.filesystem.FileSystemProto.File getFiles(int index) {
if (filesBuilder_ == null) {
return files_.get(index);
} else {
return filesBuilder_.getMessage(index);
}
}
public Builder setFiles(
int index, thredds.filesystem.FileSystemProto.File value) {
if (filesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFilesIsMutable();
files_.set(index, value);
onChanged();
} else {
filesBuilder_.setMessage(index, value);
}
return this;
}
public Builder setFiles(
int index, thredds.filesystem.FileSystemProto.File.Builder builderForValue) {
if (filesBuilder_ == null) {
ensureFilesIsMutable();
files_.set(index, builderForValue.build());
onChanged();
} else {
filesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
public Builder addFiles(thredds.filesystem.FileSystemProto.File value) {
if (filesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFilesIsMutable();
files_.add(value);
onChanged();
} else {
filesBuilder_.addMessage(value);
}
return this;
}
public Builder addFiles(
int index, thredds.filesystem.FileSystemProto.File value) {
if (filesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFilesIsMutable();
files_.add(index, value);
onChanged();
} else {
filesBuilder_.addMessage(index, value);
}
return this;
}
public Builder addFiles(
thredds.filesystem.FileSystemProto.File.Builder builderForValue) {
if (filesBuilder_ == null) {
ensureFilesIsMutable();
files_.add(builderForValue.build());
onChanged();
} else {
filesBuilder_.addMessage(builderForValue.build());
}
return this;
}
public Builder addFiles(
int index, thredds.filesystem.FileSystemProto.File.Builder builderForValue) {
if (filesBuilder_ == null) {
ensureFilesIsMutable();
files_.add(index, builderForValue.build());
onChanged();
} else {
filesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
public Builder addAllFiles(
java.lang.Iterable extends thredds.filesystem.FileSystemProto.File> values) {
if (filesBuilder_ == null) {
ensureFilesIsMutable();
super.addAll(values, files_);
onChanged();
} else {
filesBuilder_.addAllMessages(values);
}
return this;
}
public Builder clearFiles() {
if (filesBuilder_ == null) {
files_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
filesBuilder_.clear();
}
return this;
}
public Builder removeFiles(int index) {
if (filesBuilder_ == null) {
ensureFilesIsMutable();
files_.remove(index);
onChanged();
} else {
filesBuilder_.remove(index);
}
return this;
}
public thredds.filesystem.FileSystemProto.File.Builder getFilesBuilder(
int index) {
return getFilesFieldBuilder().getBuilder(index);
}
public thredds.filesystem.FileSystemProto.FileOrBuilder getFilesOrBuilder(
int index) {
if (filesBuilder_ == null) {
return files_.get(index); } else {
return filesBuilder_.getMessageOrBuilder(index);
}
}
public java.util.List extends thredds.filesystem.FileSystemProto.FileOrBuilder>
getFilesOrBuilderList() {
if (filesBuilder_ != null) {
return filesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(files_);
}
}
public thredds.filesystem.FileSystemProto.File.Builder addFilesBuilder() {
return getFilesFieldBuilder().addBuilder(
thredds.filesystem.FileSystemProto.File.getDefaultInstance());
}
public thredds.filesystem.FileSystemProto.File.Builder addFilesBuilder(
int index) {
return getFilesFieldBuilder().addBuilder(
index, thredds.filesystem.FileSystemProto.File.getDefaultInstance());
}
public java.util.List
getFilesBuilderList() {
return getFilesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
thredds.filesystem.FileSystemProto.File, thredds.filesystem.FileSystemProto.File.Builder, thredds.filesystem.FileSystemProto.FileOrBuilder>
getFilesFieldBuilder() {
if (filesBuilder_ == null) {
filesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
thredds.filesystem.FileSystemProto.File, thredds.filesystem.FileSystemProto.File.Builder, thredds.filesystem.FileSystemProto.FileOrBuilder>(
files_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
files_ = null;
}
return filesBuilder_;
}
// repeated .filesystem.Attribute atts = 5;
private java.util.List atts_ =
java.util.Collections.emptyList();
private void ensureAttsIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
atts_ = new java.util.ArrayList(atts_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
thredds.filesystem.FileSystemProto.Attribute, thredds.filesystem.FileSystemProto.Attribute.Builder, thredds.filesystem.FileSystemProto.AttributeOrBuilder> attsBuilder_;
public java.util.List getAttsList() {
if (attsBuilder_ == null) {
return java.util.Collections.unmodifiableList(atts_);
} else {
return attsBuilder_.getMessageList();
}
}
public int getAttsCount() {
if (attsBuilder_ == null) {
return atts_.size();
} else {
return attsBuilder_.getCount();
}
}
public thredds.filesystem.FileSystemProto.Attribute getAtts(int index) {
if (attsBuilder_ == null) {
return atts_.get(index);
} else {
return attsBuilder_.getMessage(index);
}
}
public Builder setAtts(
int index, thredds.filesystem.FileSystemProto.Attribute value) {
if (attsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAttsIsMutable();
atts_.set(index, value);
onChanged();
} else {
attsBuilder_.setMessage(index, value);
}
return this;
}
public Builder setAtts(
int index, thredds.filesystem.FileSystemProto.Attribute.Builder builderForValue) {
if (attsBuilder_ == null) {
ensureAttsIsMutable();
atts_.set(index, builderForValue.build());
onChanged();
} else {
attsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
public Builder addAtts(thredds.filesystem.FileSystemProto.Attribute value) {
if (attsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAttsIsMutable();
atts_.add(value);
onChanged();
} else {
attsBuilder_.addMessage(value);
}
return this;
}
public Builder addAtts(
int index, thredds.filesystem.FileSystemProto.Attribute value) {
if (attsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAttsIsMutable();
atts_.add(index, value);
onChanged();
} else {
attsBuilder_.addMessage(index, value);
}
return this;
}
public Builder addAtts(
thredds.filesystem.FileSystemProto.Attribute.Builder builderForValue) {
if (attsBuilder_ == null) {
ensureAttsIsMutable();
atts_.add(builderForValue.build());
onChanged();
} else {
attsBuilder_.addMessage(builderForValue.build());
}
return this;
}
public Builder addAtts(
int index, thredds.filesystem.FileSystemProto.Attribute.Builder builderForValue) {
if (attsBuilder_ == null) {
ensureAttsIsMutable();
atts_.add(index, builderForValue.build());
onChanged();
} else {
attsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
public Builder addAllAtts(
java.lang.Iterable extends thredds.filesystem.FileSystemProto.Attribute> values) {
if (attsBuilder_ == null) {
ensureAttsIsMutable();
super.addAll(values, atts_);
onChanged();
} else {
attsBuilder_.addAllMessages(values);
}
return this;
}
public Builder clearAtts() {
if (attsBuilder_ == null) {
atts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
attsBuilder_.clear();
}
return this;
}
public Builder removeAtts(int index) {
if (attsBuilder_ == null) {
ensureAttsIsMutable();
atts_.remove(index);
onChanged();
} else {
attsBuilder_.remove(index);
}
return this;
}
public thredds.filesystem.FileSystemProto.Attribute.Builder getAttsBuilder(
int index) {
return getAttsFieldBuilder().getBuilder(index);
}
public thredds.filesystem.FileSystemProto.AttributeOrBuilder getAttsOrBuilder(
int index) {
if (attsBuilder_ == null) {
return atts_.get(index); } else {
return attsBuilder_.getMessageOrBuilder(index);
}
}
public java.util.List extends thredds.filesystem.FileSystemProto.AttributeOrBuilder>
getAttsOrBuilderList() {
if (attsBuilder_ != null) {
return attsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(atts_);
}
}
public thredds.filesystem.FileSystemProto.Attribute.Builder addAttsBuilder() {
return getAttsFieldBuilder().addBuilder(
thredds.filesystem.FileSystemProto.Attribute.getDefaultInstance());
}
public thredds.filesystem.FileSystemProto.Attribute.Builder addAttsBuilder(
int index) {
return getAttsFieldBuilder().addBuilder(
index, thredds.filesystem.FileSystemProto.Attribute.getDefaultInstance());
}
public java.util.List
getAttsBuilderList() {
return getAttsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
thredds.filesystem.FileSystemProto.Attribute, thredds.filesystem.FileSystemProto.Attribute.Builder, thredds.filesystem.FileSystemProto.AttributeOrBuilder>
getAttsFieldBuilder() {
if (attsBuilder_ == null) {
attsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
thredds.filesystem.FileSystemProto.Attribute, thredds.filesystem.FileSystemProto.Attribute.Builder, thredds.filesystem.FileSystemProto.AttributeOrBuilder>(
atts_,
((bitField0_ & 0x00000008) == 0x00000008),
getParentForChildren(),
isClean());
atts_ = null;
}
return attsBuilder_;
}
// @@protoc_insertion_point(builder_scope:filesystem.Directory)
}
static {
defaultInstance = new Directory(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:filesystem.Directory)
}
public interface FileOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required string name = 1;
boolean hasName();
String getName();
// optional uint64 lastModified = 2;
boolean hasLastModified();
long getLastModified();
// optional uint64 length = 3;
boolean hasLength();
long getLength();
// required bool isDirectory = 4;
boolean hasIsDirectory();
boolean getIsDirectory();
// repeated .filesystem.Attribute atts = 5;
java.util.List
getAttsList();
thredds.filesystem.FileSystemProto.Attribute getAtts(int index);
int getAttsCount();
java.util.List extends thredds.filesystem.FileSystemProto.AttributeOrBuilder>
getAttsOrBuilderList();
thredds.filesystem.FileSystemProto.AttributeOrBuilder getAttsOrBuilder(
int index);
}
public static final class File extends
com.google.protobuf.GeneratedMessage
implements FileOrBuilder {
// Use File.newBuilder() to construct.
private File(Builder builder) {
super(builder);
}
private File(boolean noInit) {}
private static final File defaultInstance;
public static File getDefaultInstance() {
return defaultInstance;
}
public File getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return thredds.filesystem.FileSystemProto.internal_static_filesystem_File_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return thredds.filesystem.FileSystemProto.internal_static_filesystem_File_fieldAccessorTable;
}
private int bitField0_;
// required string name = 1;
public static final int NAME_FIELD_NUMBER = 1;
private Object name_;
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
public String getName() {
Object ref = name_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
if (com.google.protobuf.Internal.isValidUtf8(bs)) {
name_ = s;
}
return s;
}
}
private com.google.protobuf.ByteString getNameBytes() {
Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional uint64 lastModified = 2;
public static final int LASTMODIFIED_FIELD_NUMBER = 2;
private long lastModified_;
public boolean hasLastModified() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
public long getLastModified() {
return lastModified_;
}
// optional uint64 length = 3;
public static final int LENGTH_FIELD_NUMBER = 3;
private long length_;
public boolean hasLength() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
public long getLength() {
return length_;
}
// required bool isDirectory = 4;
public static final int ISDIRECTORY_FIELD_NUMBER = 4;
private boolean isDirectory_;
public boolean hasIsDirectory() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
public boolean getIsDirectory() {
return isDirectory_;
}
// repeated .filesystem.Attribute atts = 5;
public static final int ATTS_FIELD_NUMBER = 5;
private java.util.List atts_;
public java.util.List getAttsList() {
return atts_;
}
public java.util.List extends thredds.filesystem.FileSystemProto.AttributeOrBuilder>
getAttsOrBuilderList() {
return atts_;
}
public int getAttsCount() {
return atts_.size();
}
public thredds.filesystem.FileSystemProto.Attribute getAtts(int index) {
return atts_.get(index);
}
public thredds.filesystem.FileSystemProto.AttributeOrBuilder getAttsOrBuilder(
int index) {
return atts_.get(index);
}
private void initFields() {
name_ = "";
lastModified_ = 0L;
length_ = 0L;
isDirectory_ = false;
atts_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasName()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasIsDirectory()) {
memoizedIsInitialized = 0;
return false;
}
for (int i = 0; i < getAttsCount(); i++) {
if (!getAtts(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeUInt64(2, lastModified_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeUInt64(3, length_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBool(4, isDirectory_);
}
for (int i = 0; i < atts_.size(); i++) {
output.writeMessage(5, atts_.get(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, lastModified_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, length_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, isDirectory_);
}
for (int i = 0; i < atts_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, atts_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
@java.lang.Override
protected Object writeReplace() throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static thredds.filesystem.FileSystemProto.File parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static thredds.filesystem.FileSystemProto.File parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static thredds.filesystem.FileSystemProto.File parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static thredds.filesystem.FileSystemProto.File parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static thredds.filesystem.FileSystemProto.File parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static thredds.filesystem.FileSystemProto.File parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static thredds.filesystem.FileSystemProto.File parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input)) {
return builder.buildParsed();
} else {
return null;
}
}
public static thredds.filesystem.FileSystemProto.File parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
return builder.buildParsed();
} else {
return null;
}
}
public static thredds.filesystem.FileSystemProto.File parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static thredds.filesystem.FileSystemProto.File parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(thredds.filesystem.FileSystemProto.File prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements thredds.filesystem.FileSystemProto.FileOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return thredds.filesystem.FileSystemProto.internal_static_filesystem_File_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return thredds.filesystem.FileSystemProto.internal_static_filesystem_File_fieldAccessorTable;
}
// Construct using thredds.filesystem.FileSystemProto.File.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getAttsFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
name_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
lastModified_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
length_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
isDirectory_ = false;
bitField0_ = (bitField0_ & ~0x00000008);
if (attsBuilder_ == null) {
atts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
} else {
attsBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return thredds.filesystem.FileSystemProto.File.getDescriptor();
}
public thredds.filesystem.FileSystemProto.File getDefaultInstanceForType() {
return thredds.filesystem.FileSystemProto.File.getDefaultInstance();
}
public thredds.filesystem.FileSystemProto.File build() {
thredds.filesystem.FileSystemProto.File result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
private thredds.filesystem.FileSystemProto.File buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
thredds.filesystem.FileSystemProto.File result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
return result;
}
public thredds.filesystem.FileSystemProto.File buildPartial() {
thredds.filesystem.FileSystemProto.File result = new thredds.filesystem.FileSystemProto.File(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.lastModified_ = lastModified_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.length_ = length_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.isDirectory_ = isDirectory_;
if (attsBuilder_ == null) {
if (((bitField0_ & 0x00000010) == 0x00000010)) {
atts_ = java.util.Collections.unmodifiableList(atts_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.atts_ = atts_;
} else {
result.atts_ = attsBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof thredds.filesystem.FileSystemProto.File) {
return mergeFrom((thredds.filesystem.FileSystemProto.File)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(thredds.filesystem.FileSystemProto.File other) {
if (other == thredds.filesystem.FileSystemProto.File.getDefaultInstance()) return this;
if (other.hasName()) {
setName(other.getName());
}
if (other.hasLastModified()) {
setLastModified(other.getLastModified());
}
if (other.hasLength()) {
setLength(other.getLength());
}
if (other.hasIsDirectory()) {
setIsDirectory(other.getIsDirectory());
}
if (attsBuilder_ == null) {
if (!other.atts_.isEmpty()) {
if (atts_.isEmpty()) {
atts_ = other.atts_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureAttsIsMutable();
atts_.addAll(other.atts_);
}
onChanged();
}
} else {
if (!other.atts_.isEmpty()) {
if (attsBuilder_.isEmpty()) {
attsBuilder_.dispose();
attsBuilder_ = null;
atts_ = other.atts_;
bitField0_ = (bitField0_ & ~0x00000010);
attsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getAttsFieldBuilder() : null;
} else {
attsBuilder_.addAllMessages(other.atts_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasName()) {
return false;
}
if (!hasIsDirectory()) {
return false;
}
for (int i = 0; i < getAttsCount(); i++) {
if (!getAtts(i).isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder(
this.getUnknownFields());
while (true) {
int tag = input.readTag();
switch (tag) {
case 0:
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
name_ = input.readBytes();
break;
}
case 16: {
bitField0_ |= 0x00000002;
lastModified_ = input.readUInt64();
break;
}
case 24: {
bitField0_ |= 0x00000004;
length_ = input.readUInt64();
break;
}
case 32: {
bitField0_ |= 0x00000008;
isDirectory_ = input.readBool();
break;
}
case 42: {
thredds.filesystem.FileSystemProto.Attribute.Builder subBuilder = thredds.filesystem.FileSystemProto.Attribute.newBuilder();
input.readMessage(subBuilder, extensionRegistry);
addAtts(subBuilder.buildPartial());
break;
}
}
}
}
private int bitField0_;
// required string name = 1;
private Object name_ = "";
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
public String getName() {
Object ref = name_;
if (!(ref instanceof String)) {
String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
name_ = s;
return s;
} else {
return (String) ref;
}
}
public Builder setName(String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
void setName(com.google.protobuf.ByteString value) {
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
}
// optional uint64 lastModified = 2;
private long lastModified_ ;
public boolean hasLastModified() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
public long getLastModified() {
return lastModified_;
}
public Builder setLastModified(long value) {
bitField0_ |= 0x00000002;
lastModified_ = value;
onChanged();
return this;
}
public Builder clearLastModified() {
bitField0_ = (bitField0_ & ~0x00000002);
lastModified_ = 0L;
onChanged();
return this;
}
// optional uint64 length = 3;
private long length_ ;
public boolean hasLength() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
public long getLength() {
return length_;
}
public Builder setLength(long value) {
bitField0_ |= 0x00000004;
length_ = value;
onChanged();
return this;
}
public Builder clearLength() {
bitField0_ = (bitField0_ & ~0x00000004);
length_ = 0L;
onChanged();
return this;
}
// required bool isDirectory = 4;
private boolean isDirectory_ ;
public boolean hasIsDirectory() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
public boolean getIsDirectory() {
return isDirectory_;
}
public Builder setIsDirectory(boolean value) {
bitField0_ |= 0x00000008;
isDirectory_ = value;
onChanged();
return this;
}
public Builder clearIsDirectory() {
bitField0_ = (bitField0_ & ~0x00000008);
isDirectory_ = false;
onChanged();
return this;
}
// repeated .filesystem.Attribute atts = 5;
private java.util.List atts_ =
java.util.Collections.emptyList();
private void ensureAttsIsMutable() {
if (!((bitField0_ & 0x00000010) == 0x00000010)) {
atts_ = new java.util.ArrayList(atts_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
thredds.filesystem.FileSystemProto.Attribute, thredds.filesystem.FileSystemProto.Attribute.Builder, thredds.filesystem.FileSystemProto.AttributeOrBuilder> attsBuilder_;
public java.util.List getAttsList() {
if (attsBuilder_ == null) {
return java.util.Collections.unmodifiableList(atts_);
} else {
return attsBuilder_.getMessageList();
}
}
public int getAttsCount() {
if (attsBuilder_ == null) {
return atts_.size();
} else {
return attsBuilder_.getCount();
}
}
public thredds.filesystem.FileSystemProto.Attribute getAtts(int index) {
if (attsBuilder_ == null) {
return atts_.get(index);
} else {
return attsBuilder_.getMessage(index);
}
}
public Builder setAtts(
int index, thredds.filesystem.FileSystemProto.Attribute value) {
if (attsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAttsIsMutable();
atts_.set(index, value);
onChanged();
} else {
attsBuilder_.setMessage(index, value);
}
return this;
}
public Builder setAtts(
int index, thredds.filesystem.FileSystemProto.Attribute.Builder builderForValue) {
if (attsBuilder_ == null) {
ensureAttsIsMutable();
atts_.set(index, builderForValue.build());
onChanged();
} else {
attsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
public Builder addAtts(thredds.filesystem.FileSystemProto.Attribute value) {
if (attsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAttsIsMutable();
atts_.add(value);
onChanged();
} else {
attsBuilder_.addMessage(value);
}
return this;
}
public Builder addAtts(
int index, thredds.filesystem.FileSystemProto.Attribute value) {
if (attsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAttsIsMutable();
atts_.add(index, value);
onChanged();
} else {
attsBuilder_.addMessage(index, value);
}
return this;
}
public Builder addAtts(
thredds.filesystem.FileSystemProto.Attribute.Builder builderForValue) {
if (attsBuilder_ == null) {
ensureAttsIsMutable();
atts_.add(builderForValue.build());
onChanged();
} else {
attsBuilder_.addMessage(builderForValue.build());
}
return this;
}
public Builder addAtts(
int index, thredds.filesystem.FileSystemProto.Attribute.Builder builderForValue) {
if (attsBuilder_ == null) {
ensureAttsIsMutable();
atts_.add(index, builderForValue.build());
onChanged();
} else {
attsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
public Builder addAllAtts(
java.lang.Iterable extends thredds.filesystem.FileSystemProto.Attribute> values) {
if (attsBuilder_ == null) {
ensureAttsIsMutable();
super.addAll(values, atts_);
onChanged();
} else {
attsBuilder_.addAllMessages(values);
}
return this;
}
public Builder clearAtts() {
if (attsBuilder_ == null) {
atts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
attsBuilder_.clear();
}
return this;
}
public Builder removeAtts(int index) {
if (attsBuilder_ == null) {
ensureAttsIsMutable();
atts_.remove(index);
onChanged();
} else {
attsBuilder_.remove(index);
}
return this;
}
public thredds.filesystem.FileSystemProto.Attribute.Builder getAttsBuilder(
int index) {
return getAttsFieldBuilder().getBuilder(index);
}
public thredds.filesystem.FileSystemProto.AttributeOrBuilder getAttsOrBuilder(
int index) {
if (attsBuilder_ == null) {
return atts_.get(index); } else {
return attsBuilder_.getMessageOrBuilder(index);
}
}
public java.util.List extends thredds.filesystem.FileSystemProto.AttributeOrBuilder>
getAttsOrBuilderList() {
if (attsBuilder_ != null) {
return attsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(atts_);
}
}
public thredds.filesystem.FileSystemProto.Attribute.Builder addAttsBuilder() {
return getAttsFieldBuilder().addBuilder(
thredds.filesystem.FileSystemProto.Attribute.getDefaultInstance());
}
public thredds.filesystem.FileSystemProto.Attribute.Builder addAttsBuilder(
int index) {
return getAttsFieldBuilder().addBuilder(
index, thredds.filesystem.FileSystemProto.Attribute.getDefaultInstance());
}
public java.util.List
getAttsBuilderList() {
return getAttsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
thredds.filesystem.FileSystemProto.Attribute, thredds.filesystem.FileSystemProto.Attribute.Builder, thredds.filesystem.FileSystemProto.AttributeOrBuilder>
getAttsFieldBuilder() {
if (attsBuilder_ == null) {
attsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
thredds.filesystem.FileSystemProto.Attribute, thredds.filesystem.FileSystemProto.Attribute.Builder, thredds.filesystem.FileSystemProto.AttributeOrBuilder>(
atts_,
((bitField0_ & 0x00000010) == 0x00000010),
getParentForChildren(),
isClean());
atts_ = null;
}
return attsBuilder_;
}
// @@protoc_insertion_point(builder_scope:filesystem.File)
}
static {
defaultInstance = new File(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:filesystem.File)
}
public interface AttributeOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required string name = 1;
boolean hasName();
String getName();
// required .filesystem.Attribute.Type type = 2;
boolean hasType();
thredds.filesystem.FileSystemProto.Attribute.Type getType();
// required uint32 len = 3;
boolean hasLen();
int getLen();
// required bytes data = 4;
boolean hasData();
com.google.protobuf.ByteString getData();
}
public static final class Attribute extends
com.google.protobuf.GeneratedMessage
implements AttributeOrBuilder {
// Use Attribute.newBuilder() to construct.
private Attribute(Builder builder) {
super(builder);
}
private Attribute(boolean noInit) {}
private static final Attribute defaultInstance;
public static Attribute getDefaultInstance() {
return defaultInstance;
}
public Attribute getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return thredds.filesystem.FileSystemProto.internal_static_filesystem_Attribute_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return thredds.filesystem.FileSystemProto.internal_static_filesystem_Attribute_fieldAccessorTable;
}
public enum Type
implements com.google.protobuf.ProtocolMessageEnum {
STRING(0, 0),
BYTE(1, 1),
SHORT(2, 2),
INT(3, 3),
LONG(4, 4),
FLOAT(5, 5),
DOUBLE(6, 6),
;
public static final int STRING_VALUE = 0;
public static final int BYTE_VALUE = 1;
public static final int SHORT_VALUE = 2;
public static final int INT_VALUE = 3;
public static final int LONG_VALUE = 4;
public static final int FLOAT_VALUE = 5;
public static final int DOUBLE_VALUE = 6;
public final int getNumber() { return value; }
public static Type valueOf(int value) {
switch (value) {
case 0: return STRING;
case 1: return BYTE;
case 2: return SHORT;
case 3: return INT;
case 4: return LONG;
case 5: return FLOAT;
case 6: return DOUBLE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Type findValueByNumber(int number) {
return Type.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return thredds.filesystem.FileSystemProto.Attribute.getDescriptor().getEnumTypes().get(0);
}
private static final Type[] VALUES = {
STRING, BYTE, SHORT, INT, LONG, FLOAT, DOUBLE,
};
public static Type valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private Type(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:filesystem.Attribute.Type)
}
private int bitField0_;
// required string name = 1;
public static final int NAME_FIELD_NUMBER = 1;
private Object name_;
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
public String getName() {
Object ref = name_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
if (com.google.protobuf.Internal.isValidUtf8(bs)) {
name_ = s;
}
return s;
}
}
private com.google.protobuf.ByteString getNameBytes() {
Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required .filesystem.Attribute.Type type = 2;
public static final int TYPE_FIELD_NUMBER = 2;
private thredds.filesystem.FileSystemProto.Attribute.Type type_;
public boolean hasType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
public thredds.filesystem.FileSystemProto.Attribute.Type getType() {
return type_;
}
// required uint32 len = 3;
public static final int LEN_FIELD_NUMBER = 3;
private int len_;
public boolean hasLen() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
public int getLen() {
return len_;
}
// required bytes data = 4;
public static final int DATA_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString data_;
public boolean hasData() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
public com.google.protobuf.ByteString getData() {
return data_;
}
private void initFields() {
name_ = "";
type_ = thredds.filesystem.FileSystemProto.Attribute.Type.STRING;
len_ = 0;
data_ = com.google.protobuf.ByteString.EMPTY;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasName()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasType()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasLen()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasData()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeEnum(2, type_.getNumber());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeUInt32(3, len_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBytes(4, data_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, type_.getNumber());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, len_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, data_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
@java.lang.Override
protected Object writeReplace() throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static thredds.filesystem.FileSystemProto.Attribute parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static thredds.filesystem.FileSystemProto.Attribute parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static thredds.filesystem.FileSystemProto.Attribute parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static thredds.filesystem.FileSystemProto.Attribute parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static thredds.filesystem.FileSystemProto.Attribute parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static thredds.filesystem.FileSystemProto.Attribute parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static thredds.filesystem.FileSystemProto.Attribute parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input)) {
return builder.buildParsed();
} else {
return null;
}
}
public static thredds.filesystem.FileSystemProto.Attribute parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
return builder.buildParsed();
} else {
return null;
}
}
public static thredds.filesystem.FileSystemProto.Attribute parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static thredds.filesystem.FileSystemProto.Attribute parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(thredds.filesystem.FileSystemProto.Attribute prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements thredds.filesystem.FileSystemProto.AttributeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return thredds.filesystem.FileSystemProto.internal_static_filesystem_Attribute_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return thredds.filesystem.FileSystemProto.internal_static_filesystem_Attribute_fieldAccessorTable;
}
// Construct using thredds.filesystem.FileSystemProto.Attribute.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
name_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
type_ = thredds.filesystem.FileSystemProto.Attribute.Type.STRING;
bitField0_ = (bitField0_ & ~0x00000002);
len_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
data_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return thredds.filesystem.FileSystemProto.Attribute.getDescriptor();
}
public thredds.filesystem.FileSystemProto.Attribute getDefaultInstanceForType() {
return thredds.filesystem.FileSystemProto.Attribute.getDefaultInstance();
}
public thredds.filesystem.FileSystemProto.Attribute build() {
thredds.filesystem.FileSystemProto.Attribute result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
private thredds.filesystem.FileSystemProto.Attribute buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
thredds.filesystem.FileSystemProto.Attribute result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
return result;
}
public thredds.filesystem.FileSystemProto.Attribute buildPartial() {
thredds.filesystem.FileSystemProto.Attribute result = new thredds.filesystem.FileSystemProto.Attribute(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.type_ = type_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.len_ = len_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.data_ = data_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof thredds.filesystem.FileSystemProto.Attribute) {
return mergeFrom((thredds.filesystem.FileSystemProto.Attribute)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(thredds.filesystem.FileSystemProto.Attribute other) {
if (other == thredds.filesystem.FileSystemProto.Attribute.getDefaultInstance()) return this;
if (other.hasName()) {
setName(other.getName());
}
if (other.hasType()) {
setType(other.getType());
}
if (other.hasLen()) {
setLen(other.getLen());
}
if (other.hasData()) {
setData(other.getData());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasName()) {
return false;
}
if (!hasType()) {
return false;
}
if (!hasLen()) {
return false;
}
if (!hasData()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder(
this.getUnknownFields());
while (true) {
int tag = input.readTag();
switch (tag) {
case 0:
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
name_ = input.readBytes();
break;
}
case 16: {
int rawValue = input.readEnum();
thredds.filesystem.FileSystemProto.Attribute.Type value = thredds.filesystem.FileSystemProto.Attribute.Type.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(2, rawValue);
} else {
bitField0_ |= 0x00000002;
type_ = value;
}
break;
}
case 24: {
bitField0_ |= 0x00000004;
len_ = input.readUInt32();
break;
}
case 34: {
bitField0_ |= 0x00000008;
data_ = input.readBytes();
break;
}
}
}
}
private int bitField0_;
// required string name = 1;
private Object name_ = "";
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
public String getName() {
Object ref = name_;
if (!(ref instanceof String)) {
String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
name_ = s;
return s;
} else {
return (String) ref;
}
}
public Builder setName(String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
void setName(com.google.protobuf.ByteString value) {
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
}
// required .filesystem.Attribute.Type type = 2;
private thredds.filesystem.FileSystemProto.Attribute.Type type_ = thredds.filesystem.FileSystemProto.Attribute.Type.STRING;
public boolean hasType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
public thredds.filesystem.FileSystemProto.Attribute.Type getType() {
return type_;
}
public Builder setType(thredds.filesystem.FileSystemProto.Attribute.Type value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
type_ = value;
onChanged();
return this;
}
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000002);
type_ = thredds.filesystem.FileSystemProto.Attribute.Type.STRING;
onChanged();
return this;
}
// required uint32 len = 3;
private int len_ ;
public boolean hasLen() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
public int getLen() {
return len_;
}
public Builder setLen(int value) {
bitField0_ |= 0x00000004;
len_ = value;
onChanged();
return this;
}
public Builder clearLen() {
bitField0_ = (bitField0_ & ~0x00000004);
len_ = 0;
onChanged();
return this;
}
// required bytes data = 4;
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
public boolean hasData() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
public com.google.protobuf.ByteString getData() {
return data_;
}
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
data_ = value;
onChanged();
return this;
}
public Builder clearData() {
bitField0_ = (bitField0_ & ~0x00000008);
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:filesystem.Attribute)
}
static {
defaultInstance = new Attribute(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:filesystem.Attribute)
}
private static com.google.protobuf.Descriptors.Descriptor
internal_static_filesystem_Directory_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_filesystem_Directory_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_filesystem_File_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_filesystem_File_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_filesystem_Attribute_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_filesystem_Attribute_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n#thredds/filesystem/FileSystem.proto\022\nf" +
"ilesystem\"u\n\tDirectory\022\014\n\004path\030\001 \002(\t\022\024\n\014" +
"lastModified\030\002 \001(\004\022\037\n\005files\030\003 \003(\0132\020.file" +
"system.File\022#\n\004atts\030\005 \003(\0132\025.filesystem.A" +
"ttribute\"t\n\004File\022\014\n\004name\030\001 \002(\t\022\024\n\014lastMo" +
"dified\030\002 \001(\004\022\016\n\006length\030\003 \001(\004\022\023\n\013isDirect" +
"ory\030\004 \002(\010\022#\n\004atts\030\005 \003(\0132\025.filesystem.Att" +
"ribute\"\261\001\n\tAttribute\022\014\n\004name\030\001 \002(\t\022(\n\004ty" +
"pe\030\002 \002(\0162\032.filesystem.Attribute.Type\022\013\n\003" +
"len\030\003 \002(\r\022\014\n\004data\030\004 \002(\014\"Q\n\004Type\022\n\n\006STRIN",
"G\020\000\022\010\n\004BYTE\020\001\022\t\n\005SHORT\020\002\022\007\n\003INT\020\003\022\010\n\004LON" +
"G\020\004\022\t\n\005FLOAT\020\005\022\n\n\006DOUBLE\020\006B%\n\022thredds.fi" +
"lesystemB\017FileSystemProto"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
internal_static_filesystem_Directory_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_filesystem_Directory_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_filesystem_Directory_descriptor,
new java.lang.String[] { "Path", "LastModified", "Files", "Atts", },
thredds.filesystem.FileSystemProto.Directory.class,
thredds.filesystem.FileSystemProto.Directory.Builder.class);
internal_static_filesystem_File_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_filesystem_File_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_filesystem_File_descriptor,
new java.lang.String[] { "Name", "LastModified", "Length", "IsDirectory", "Atts", },
thredds.filesystem.FileSystemProto.File.class,
thredds.filesystem.FileSystemProto.File.Builder.class);
internal_static_filesystem_Attribute_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_filesystem_Attribute_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_filesystem_Attribute_descriptor,
new java.lang.String[] { "Name", "Type", "Len", "Data", },
thredds.filesystem.FileSystemProto.Attribute.class,
thredds.filesystem.FileSystemProto.Attribute.Builder.class);
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
}, assigner);
}
// @@protoc_insertion_point(outer_class_scope)
}