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

org.yamcs.protobuf.BucketInfo Maven / Gradle / Ivy

There is a newer version: 5.10.9
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: yamcs/protobuf/buckets/buckets.proto

package org.yamcs.protobuf;

/**
 * Protobuf type {@code yamcs.protobuf.buckets.BucketInfo}
 */
public final class BucketInfo extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:yamcs.protobuf.buckets.BucketInfo)
    BucketInfoOrBuilder {
private static final long serialVersionUID = 0L;
  // Use BucketInfo.newBuilder() to construct.
  private BucketInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private BucketInfo() {
    name_ = "";
    directory_ = "";
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new BucketInfo();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private BucketInfo(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 10: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000001;
            name_ = bs;
            break;
          }
          case 16: {
            bitField0_ |= 0x00000002;
            size_ = input.readUInt64();
            break;
          }
          case 24: {
            bitField0_ |= 0x00000004;
            numObjects_ = input.readUInt32();
            break;
          }
          case 32: {
            bitField0_ |= 0x00000008;
            maxSize_ = input.readUInt64();
            break;
          }
          case 40: {
            bitField0_ |= 0x00000010;
            maxObjects_ = input.readUInt32();
            break;
          }
          case 50: {
            com.google.protobuf.Timestamp.Builder subBuilder = null;
            if (((bitField0_ & 0x00000020) != 0)) {
              subBuilder = created_.toBuilder();
            }
            created_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(created_);
              created_ = subBuilder.buildPartial();
            }
            bitField0_ |= 0x00000020;
            break;
          }
          case 58: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000040;
            directory_ = bs;
            break;
          }
          case 66: {
            org.yamcs.protobuf.BucketLocation.Builder subBuilder = null;
            if (((bitField0_ & 0x00000080) != 0)) {
              subBuilder = location_.toBuilder();
            }
            location_ = input.readMessage(org.yamcs.protobuf.BucketLocation.PARSER, extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(location_);
              location_ = subBuilder.buildPartial();
            }
            bitField0_ |= 0x00000080;
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            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 {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return org.yamcs.protobuf.BucketsProto.internal_static_yamcs_protobuf_buckets_BucketInfo_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return org.yamcs.protobuf.BucketsProto.internal_static_yamcs_protobuf_buckets_BucketInfo_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            org.yamcs.protobuf.BucketInfo.class, org.yamcs.protobuf.BucketInfo.Builder.class);
  }

  private int bitField0_;
  public static final int NAME_FIELD_NUMBER = 1;
  private volatile java.lang.Object name_;
  /**
   * 
   * Bucket name
   * 
* * optional string name = 1; * @return Whether the name field is set. */ @java.lang.Override public boolean hasName() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Bucket name
   * 
* * optional string name = 1; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } } /** *
   * Bucket name
   * 
* * optional string name = 1; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SIZE_FIELD_NUMBER = 2; private long size_; /** *
   * Total size in bytes of all objects in the bucket (metadata is not counted)
   * 
* * optional uint64 size = 2; * @return Whether the size field is set. */ @java.lang.Override public boolean hasSize() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * Total size in bytes of all objects in the bucket (metadata is not counted)
   * 
* * optional uint64 size = 2; * @return The size. */ @java.lang.Override public long getSize() { return size_; } public static final int NUMOBJECTS_FIELD_NUMBER = 3; private int numObjects_; /** *
   * Number of objects in the bucket
   * 
* * optional uint32 numObjects = 3; * @return Whether the numObjects field is set. */ @java.lang.Override public boolean hasNumObjects() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * Number of objects in the bucket
   * 
* * optional uint32 numObjects = 3; * @return The numObjects. */ @java.lang.Override public int getNumObjects() { return numObjects_; } public static final int MAXSIZE_FIELD_NUMBER = 4; private long maxSize_; /** *
   * Maximum allowed total size of all objects
   * 
* * optional uint64 maxSize = 4; * @return Whether the maxSize field is set. */ @java.lang.Override public boolean hasMaxSize() { return ((bitField0_ & 0x00000008) != 0); } /** *
   * Maximum allowed total size of all objects
   * 
* * optional uint64 maxSize = 4; * @return The maxSize. */ @java.lang.Override public long getMaxSize() { return maxSize_; } public static final int MAXOBJECTS_FIELD_NUMBER = 5; private int maxObjects_; /** *
   * Maximum allowed number of objects
   * 
* * optional uint32 maxObjects = 5; * @return Whether the maxObjects field is set. */ @java.lang.Override public boolean hasMaxObjects() { return ((bitField0_ & 0x00000010) != 0); } /** *
   * Maximum allowed number of objects
   * 
* * optional uint32 maxObjects = 5; * @return The maxObjects. */ @java.lang.Override public int getMaxObjects() { return maxObjects_; } public static final int CREATED_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp created_; /** *
   * Creation time of this bucket
   * 
* * optional .google.protobuf.Timestamp created = 6; * @return Whether the created field is set. */ @java.lang.Override public boolean hasCreated() { return ((bitField0_ & 0x00000020) != 0); } /** *
   * Creation time of this bucket
   * 
* * optional .google.protobuf.Timestamp created = 6; * @return The created. */ @java.lang.Override public com.google.protobuf.Timestamp getCreated() { return created_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : created_; } /** *
   * Creation time of this bucket
   * 
* * optional .google.protobuf.Timestamp created = 6; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreatedOrBuilder() { return created_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : created_; } public static final int DIRECTORY_FIELD_NUMBER = 7; private volatile java.lang.Object directory_; /** *
   * Bucket root directory. This field is only set when the
   * bucket is mapped to the file system. Therefore it is not
   * set for buckets that store objects in RocksDB.
   * 
* * optional string directory = 7; * @return Whether the directory field is set. */ @java.lang.Override public boolean hasDirectory() { return ((bitField0_ & 0x00000040) != 0); } /** *
   * Bucket root directory. This field is only set when the
   * bucket is mapped to the file system. Therefore it is not
   * set for buckets that store objects in RocksDB.
   * 
* * optional string directory = 7; * @return The directory. */ @java.lang.Override public java.lang.String getDirectory() { java.lang.Object ref = directory_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { directory_ = s; } return s; } } /** *
   * Bucket root directory. This field is only set when the
   * bucket is mapped to the file system. Therefore it is not
   * set for buckets that store objects in RocksDB.
   * 
* * optional string directory = 7; * @return The bytes for directory. */ @java.lang.Override public com.google.protobuf.ByteString getDirectoryBytes() { java.lang.Object ref = directory_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); directory_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LOCATION_FIELD_NUMBER = 8; private org.yamcs.protobuf.BucketLocation location_; /** *
   * Bucket location
   * 
* * optional .yamcs.protobuf.buckets.BucketLocation location = 8; * @return Whether the location field is set. */ @java.lang.Override public boolean hasLocation() { return ((bitField0_ & 0x00000080) != 0); } /** *
   * Bucket location
   * 
* * optional .yamcs.protobuf.buckets.BucketLocation location = 8; * @return The location. */ @java.lang.Override public org.yamcs.protobuf.BucketLocation getLocation() { return location_ == null ? org.yamcs.protobuf.BucketLocation.getDefaultInstance() : location_; } /** *
   * Bucket location
   * 
* * optional .yamcs.protobuf.buckets.BucketLocation location = 8; */ @java.lang.Override public org.yamcs.protobuf.BucketLocationOrBuilder getLocationOrBuilder() { return location_ == null ? org.yamcs.protobuf.BucketLocation.getDefaultInstance() : location_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt64(2, size_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeUInt32(3, numObjects_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeUInt64(4, maxSize_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeUInt32(5, maxObjects_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(6, getCreated()); } if (((bitField0_ & 0x00000040) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, directory_); } if (((bitField0_ & 0x00000080) != 0)) { output.writeMessage(8, getLocation()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, size_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, numObjects_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, maxSize_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, maxObjects_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getCreated()); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, directory_); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getLocation()); } 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.yamcs.protobuf.BucketInfo)) { return super.equals(obj); } org.yamcs.protobuf.BucketInfo other = (org.yamcs.protobuf.BucketInfo) obj; if (hasName() != other.hasName()) return false; if (hasName()) { if (!getName() .equals(other.getName())) return false; } if (hasSize() != other.hasSize()) return false; if (hasSize()) { if (getSize() != other.getSize()) return false; } if (hasNumObjects() != other.hasNumObjects()) return false; if (hasNumObjects()) { if (getNumObjects() != other.getNumObjects()) return false; } if (hasMaxSize() != other.hasMaxSize()) return false; if (hasMaxSize()) { if (getMaxSize() != other.getMaxSize()) return false; } if (hasMaxObjects() != other.hasMaxObjects()) return false; if (hasMaxObjects()) { if (getMaxObjects() != other.getMaxObjects()) return false; } if (hasCreated() != other.hasCreated()) return false; if (hasCreated()) { if (!getCreated() .equals(other.getCreated())) return false; } if (hasDirectory() != other.hasDirectory()) return false; if (hasDirectory()) { if (!getDirectory() .equals(other.getDirectory())) return false; } if (hasLocation() != other.hasLocation()) return false; if (hasLocation()) { if (!getLocation() .equals(other.getLocation())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasSize()) { hash = (37 * hash) + SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSize()); } if (hasNumObjects()) { hash = (37 * hash) + NUMOBJECTS_FIELD_NUMBER; hash = (53 * hash) + getNumObjects(); } if (hasMaxSize()) { hash = (37 * hash) + MAXSIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxSize()); } if (hasMaxObjects()) { hash = (37 * hash) + MAXOBJECTS_FIELD_NUMBER; hash = (53 * hash) + getMaxObjects(); } if (hasCreated()) { hash = (37 * hash) + CREATED_FIELD_NUMBER; hash = (53 * hash) + getCreated().hashCode(); } if (hasDirectory()) { hash = (37 * hash) + DIRECTORY_FIELD_NUMBER; hash = (53 * hash) + getDirectory().hashCode(); } if (hasLocation()) { hash = (37 * hash) + LOCATION_FIELD_NUMBER; hash = (53 * hash) + getLocation().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.yamcs.protobuf.BucketInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.BucketInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.yamcs.protobuf.BucketInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.BucketInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.yamcs.protobuf.BucketInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.BucketInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.yamcs.protobuf.BucketInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.BucketInfo 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.yamcs.protobuf.BucketInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.yamcs.protobuf.BucketInfo 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.yamcs.protobuf.BucketInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.BucketInfo 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.yamcs.protobuf.BucketInfo 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; } /** * Protobuf type {@code yamcs.protobuf.buckets.BucketInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yamcs.protobuf.buckets.BucketInfo) org.yamcs.protobuf.BucketInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.yamcs.protobuf.BucketsProto.internal_static_yamcs_protobuf_buckets_BucketInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.yamcs.protobuf.BucketsProto.internal_static_yamcs_protobuf_buckets_BucketInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.yamcs.protobuf.BucketInfo.class, org.yamcs.protobuf.BucketInfo.Builder.class); } // Construct using org.yamcs.protobuf.BucketInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCreatedFieldBuilder(); getLocationFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); size_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); numObjects_ = 0; bitField0_ = (bitField0_ & ~0x00000004); maxSize_ = 0L; bitField0_ = (bitField0_ & ~0x00000008); maxObjects_ = 0; bitField0_ = (bitField0_ & ~0x00000010); if (createdBuilder_ == null) { created_ = null; } else { createdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); directory_ = ""; bitField0_ = (bitField0_ & ~0x00000040); if (locationBuilder_ == null) { location_ = null; } else { locationBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.yamcs.protobuf.BucketsProto.internal_static_yamcs_protobuf_buckets_BucketInfo_descriptor; } @java.lang.Override public org.yamcs.protobuf.BucketInfo getDefaultInstanceForType() { return org.yamcs.protobuf.BucketInfo.getDefaultInstance(); } @java.lang.Override public org.yamcs.protobuf.BucketInfo build() { org.yamcs.protobuf.BucketInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.yamcs.protobuf.BucketInfo buildPartial() { org.yamcs.protobuf.BucketInfo result = new org.yamcs.protobuf.BucketInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) != 0)) { result.size_ = size_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.numObjects_ = numObjects_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.maxSize_ = maxSize_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.maxObjects_ = maxObjects_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { if (createdBuilder_ == null) { result.created_ = created_; } else { result.created_ = createdBuilder_.build(); } to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000040) != 0)) { to_bitField0_ |= 0x00000040; } result.directory_ = directory_; if (((from_bitField0_ & 0x00000080) != 0)) { if (locationBuilder_ == null) { result.location_ = location_; } else { result.location_ = locationBuilder_.build(); } to_bitField0_ |= 0x00000080; } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.yamcs.protobuf.BucketInfo) { return mergeFrom((org.yamcs.protobuf.BucketInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.yamcs.protobuf.BucketInfo other) { if (other == org.yamcs.protobuf.BucketInfo.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasSize()) { setSize(other.getSize()); } if (other.hasNumObjects()) { setNumObjects(other.getNumObjects()); } if (other.hasMaxSize()) { setMaxSize(other.getMaxSize()); } if (other.hasMaxObjects()) { setMaxObjects(other.getMaxObjects()); } if (other.hasCreated()) { mergeCreated(other.getCreated()); } if (other.hasDirectory()) { bitField0_ |= 0x00000040; directory_ = other.directory_; onChanged(); } if (other.hasLocation()) { mergeLocation(other.getLocation()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.yamcs.protobuf.BucketInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.yamcs.protobuf.BucketInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** *
     * Bucket name
     * 
* * optional string name = 1; * @return Whether the name field is set. */ public boolean hasName() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Bucket name
     * 
* * optional string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * Bucket name
     * 
* * optional string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Bucket name
     * 
* * optional string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** *
     * Bucket name
     * 
* * optional string name = 1; * @return This builder for chaining. */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
     * Bucket name
     * 
* * optional string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } private long size_ ; /** *
     * Total size in bytes of all objects in the bucket (metadata is not counted)
     * 
* * optional uint64 size = 2; * @return Whether the size field is set. */ @java.lang.Override public boolean hasSize() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Total size in bytes of all objects in the bucket (metadata is not counted)
     * 
* * optional uint64 size = 2; * @return The size. */ @java.lang.Override public long getSize() { return size_; } /** *
     * Total size in bytes of all objects in the bucket (metadata is not counted)
     * 
* * optional uint64 size = 2; * @param value The size to set. * @return This builder for chaining. */ public Builder setSize(long value) { bitField0_ |= 0x00000002; size_ = value; onChanged(); return this; } /** *
     * Total size in bytes of all objects in the bucket (metadata is not counted)
     * 
* * optional uint64 size = 2; * @return This builder for chaining. */ public Builder clearSize() { bitField0_ = (bitField0_ & ~0x00000002); size_ = 0L; onChanged(); return this; } private int numObjects_ ; /** *
     * Number of objects in the bucket
     * 
* * optional uint32 numObjects = 3; * @return Whether the numObjects field is set. */ @java.lang.Override public boolean hasNumObjects() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Number of objects in the bucket
     * 
* * optional uint32 numObjects = 3; * @return The numObjects. */ @java.lang.Override public int getNumObjects() { return numObjects_; } /** *
     * Number of objects in the bucket
     * 
* * optional uint32 numObjects = 3; * @param value The numObjects to set. * @return This builder for chaining. */ public Builder setNumObjects(int value) { bitField0_ |= 0x00000004; numObjects_ = value; onChanged(); return this; } /** *
     * Number of objects in the bucket
     * 
* * optional uint32 numObjects = 3; * @return This builder for chaining. */ public Builder clearNumObjects() { bitField0_ = (bitField0_ & ~0x00000004); numObjects_ = 0; onChanged(); return this; } private long maxSize_ ; /** *
     * Maximum allowed total size of all objects
     * 
* * optional uint64 maxSize = 4; * @return Whether the maxSize field is set. */ @java.lang.Override public boolean hasMaxSize() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * Maximum allowed total size of all objects
     * 
* * optional uint64 maxSize = 4; * @return The maxSize. */ @java.lang.Override public long getMaxSize() { return maxSize_; } /** *
     * Maximum allowed total size of all objects
     * 
* * optional uint64 maxSize = 4; * @param value The maxSize to set. * @return This builder for chaining. */ public Builder setMaxSize(long value) { bitField0_ |= 0x00000008; maxSize_ = value; onChanged(); return this; } /** *
     * Maximum allowed total size of all objects
     * 
* * optional uint64 maxSize = 4; * @return This builder for chaining. */ public Builder clearMaxSize() { bitField0_ = (bitField0_ & ~0x00000008); maxSize_ = 0L; onChanged(); return this; } private int maxObjects_ ; /** *
     * Maximum allowed number of objects
     * 
* * optional uint32 maxObjects = 5; * @return Whether the maxObjects field is set. */ @java.lang.Override public boolean hasMaxObjects() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * Maximum allowed number of objects
     * 
* * optional uint32 maxObjects = 5; * @return The maxObjects. */ @java.lang.Override public int getMaxObjects() { return maxObjects_; } /** *
     * Maximum allowed number of objects
     * 
* * optional uint32 maxObjects = 5; * @param value The maxObjects to set. * @return This builder for chaining. */ public Builder setMaxObjects(int value) { bitField0_ |= 0x00000010; maxObjects_ = value; onChanged(); return this; } /** *
     * Maximum allowed number of objects
     * 
* * optional uint32 maxObjects = 5; * @return This builder for chaining. */ public Builder clearMaxObjects() { bitField0_ = (bitField0_ & ~0x00000010); maxObjects_ = 0; onChanged(); return this; } private com.google.protobuf.Timestamp created_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdBuilder_; /** *
     * Creation time of this bucket
     * 
* * optional .google.protobuf.Timestamp created = 6; * @return Whether the created field is set. */ public boolean hasCreated() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * Creation time of this bucket
     * 
* * optional .google.protobuf.Timestamp created = 6; * @return The created. */ public com.google.protobuf.Timestamp getCreated() { if (createdBuilder_ == null) { return created_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : created_; } else { return createdBuilder_.getMessage(); } } /** *
     * Creation time of this bucket
     * 
* * optional .google.protobuf.Timestamp created = 6; */ public Builder setCreated(com.google.protobuf.Timestamp value) { if (createdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } created_ = value; onChanged(); } else { createdBuilder_.setMessage(value); } bitField0_ |= 0x00000020; return this; } /** *
     * Creation time of this bucket
     * 
* * optional .google.protobuf.Timestamp created = 6; */ public Builder setCreated( com.google.protobuf.Timestamp.Builder builderForValue) { if (createdBuilder_ == null) { created_ = builderForValue.build(); onChanged(); } else { createdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /** *
     * Creation time of this bucket
     * 
* * optional .google.protobuf.Timestamp created = 6; */ public Builder mergeCreated(com.google.protobuf.Timestamp value) { if (createdBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && created_ != null && created_ != com.google.protobuf.Timestamp.getDefaultInstance()) { created_ = com.google.protobuf.Timestamp.newBuilder(created_).mergeFrom(value).buildPartial(); } else { created_ = value; } onChanged(); } else { createdBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /** *
     * Creation time of this bucket
     * 
* * optional .google.protobuf.Timestamp created = 6; */ public Builder clearCreated() { if (createdBuilder_ == null) { created_ = null; onChanged(); } else { createdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** *
     * Creation time of this bucket
     * 
* * optional .google.protobuf.Timestamp created = 6; */ public com.google.protobuf.Timestamp.Builder getCreatedBuilder() { bitField0_ |= 0x00000020; onChanged(); return getCreatedFieldBuilder().getBuilder(); } /** *
     * Creation time of this bucket
     * 
* * optional .google.protobuf.Timestamp created = 6; */ public com.google.protobuf.TimestampOrBuilder getCreatedOrBuilder() { if (createdBuilder_ != null) { return createdBuilder_.getMessageOrBuilder(); } else { return created_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : created_; } } /** *
     * Creation time of this bucket
     * 
* * optional .google.protobuf.Timestamp created = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreatedFieldBuilder() { if (createdBuilder_ == null) { createdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCreated(), getParentForChildren(), isClean()); created_ = null; } return createdBuilder_; } private java.lang.Object directory_ = ""; /** *
     * Bucket root directory. This field is only set when the
     * bucket is mapped to the file system. Therefore it is not
     * set for buckets that store objects in RocksDB.
     * 
* * optional string directory = 7; * @return Whether the directory field is set. */ public boolean hasDirectory() { return ((bitField0_ & 0x00000040) != 0); } /** *
     * Bucket root directory. This field is only set when the
     * bucket is mapped to the file system. Therefore it is not
     * set for buckets that store objects in RocksDB.
     * 
* * optional string directory = 7; * @return The directory. */ public java.lang.String getDirectory() { java.lang.Object ref = directory_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { directory_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * Bucket root directory. This field is only set when the
     * bucket is mapped to the file system. Therefore it is not
     * set for buckets that store objects in RocksDB.
     * 
* * optional string directory = 7; * @return The bytes for directory. */ public com.google.protobuf.ByteString getDirectoryBytes() { java.lang.Object ref = directory_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); directory_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Bucket root directory. This field is only set when the
     * bucket is mapped to the file system. Therefore it is not
     * set for buckets that store objects in RocksDB.
     * 
* * optional string directory = 7; * @param value The directory to set. * @return This builder for chaining. */ public Builder setDirectory( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; directory_ = value; onChanged(); return this; } /** *
     * Bucket root directory. This field is only set when the
     * bucket is mapped to the file system. Therefore it is not
     * set for buckets that store objects in RocksDB.
     * 
* * optional string directory = 7; * @return This builder for chaining. */ public Builder clearDirectory() { bitField0_ = (bitField0_ & ~0x00000040); directory_ = getDefaultInstance().getDirectory(); onChanged(); return this; } /** *
     * Bucket root directory. This field is only set when the
     * bucket is mapped to the file system. Therefore it is not
     * set for buckets that store objects in RocksDB.
     * 
* * optional string directory = 7; * @param value The bytes for directory to set. * @return This builder for chaining. */ public Builder setDirectoryBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; directory_ = value; onChanged(); return this; } private org.yamcs.protobuf.BucketLocation location_; private com.google.protobuf.SingleFieldBuilderV3< org.yamcs.protobuf.BucketLocation, org.yamcs.protobuf.BucketLocation.Builder, org.yamcs.protobuf.BucketLocationOrBuilder> locationBuilder_; /** *
     * Bucket location
     * 
* * optional .yamcs.protobuf.buckets.BucketLocation location = 8; * @return Whether the location field is set. */ public boolean hasLocation() { return ((bitField0_ & 0x00000080) != 0); } /** *
     * Bucket location
     * 
* * optional .yamcs.protobuf.buckets.BucketLocation location = 8; * @return The location. */ public org.yamcs.protobuf.BucketLocation getLocation() { if (locationBuilder_ == null) { return location_ == null ? org.yamcs.protobuf.BucketLocation.getDefaultInstance() : location_; } else { return locationBuilder_.getMessage(); } } /** *
     * Bucket location
     * 
* * optional .yamcs.protobuf.buckets.BucketLocation location = 8; */ public Builder setLocation(org.yamcs.protobuf.BucketLocation value) { if (locationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } location_ = value; onChanged(); } else { locationBuilder_.setMessage(value); } bitField0_ |= 0x00000080; return this; } /** *
     * Bucket location
     * 
* * optional .yamcs.protobuf.buckets.BucketLocation location = 8; */ public Builder setLocation( org.yamcs.protobuf.BucketLocation.Builder builderForValue) { if (locationBuilder_ == null) { location_ = builderForValue.build(); onChanged(); } else { locationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; return this; } /** *
     * Bucket location
     * 
* * optional .yamcs.protobuf.buckets.BucketLocation location = 8; */ public Builder mergeLocation(org.yamcs.protobuf.BucketLocation value) { if (locationBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0) && location_ != null && location_ != org.yamcs.protobuf.BucketLocation.getDefaultInstance()) { location_ = org.yamcs.protobuf.BucketLocation.newBuilder(location_).mergeFrom(value).buildPartial(); } else { location_ = value; } onChanged(); } else { locationBuilder_.mergeFrom(value); } bitField0_ |= 0x00000080; return this; } /** *
     * Bucket location
     * 
* * optional .yamcs.protobuf.buckets.BucketLocation location = 8; */ public Builder clearLocation() { if (locationBuilder_ == null) { location_ = null; onChanged(); } else { locationBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); return this; } /** *
     * Bucket location
     * 
* * optional .yamcs.protobuf.buckets.BucketLocation location = 8; */ public org.yamcs.protobuf.BucketLocation.Builder getLocationBuilder() { bitField0_ |= 0x00000080; onChanged(); return getLocationFieldBuilder().getBuilder(); } /** *
     * Bucket location
     * 
* * optional .yamcs.protobuf.buckets.BucketLocation location = 8; */ public org.yamcs.protobuf.BucketLocationOrBuilder getLocationOrBuilder() { if (locationBuilder_ != null) { return locationBuilder_.getMessageOrBuilder(); } else { return location_ == null ? org.yamcs.protobuf.BucketLocation.getDefaultInstance() : location_; } } /** *
     * Bucket location
     * 
* * optional .yamcs.protobuf.buckets.BucketLocation location = 8; */ private com.google.protobuf.SingleFieldBuilderV3< org.yamcs.protobuf.BucketLocation, org.yamcs.protobuf.BucketLocation.Builder, org.yamcs.protobuf.BucketLocationOrBuilder> getLocationFieldBuilder() { if (locationBuilder_ == null) { locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.yamcs.protobuf.BucketLocation, org.yamcs.protobuf.BucketLocation.Builder, org.yamcs.protobuf.BucketLocationOrBuilder>( getLocation(), getParentForChildren(), isClean()); location_ = null; } return locationBuilder_; } @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:yamcs.protobuf.buckets.BucketInfo) } // @@protoc_insertion_point(class_scope:yamcs.protobuf.buckets.BucketInfo) private static final org.yamcs.protobuf.BucketInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.yamcs.protobuf.BucketInfo(); } public static org.yamcs.protobuf.BucketInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BucketInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BucketInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.yamcs.protobuf.BucketInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy