Class BucketInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<BucketInfo.Builder>
org.yamcs.protobuf.BucketInfo.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, BucketInfoOrBuilder
Enclosing class:
BucketInfo

public static final class BucketInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BucketInfo.Builder> implements BucketInfoOrBuilder
Protobuf type yamcs.protobuf.buckets.BucketInfo
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<BucketInfo.Builder>
    • clear

      public BucketInfo.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<BucketInfo.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<BucketInfo.Builder>
    • getDefaultInstanceForType

      public BucketInfo getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public BucketInfo build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public BucketInfo buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public BucketInfo.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<BucketInfo.Builder>
    • setField

      public BucketInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<BucketInfo.Builder>
    • clearField

      public BucketInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<BucketInfo.Builder>
    • clearOneof

      public BucketInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<BucketInfo.Builder>
    • setRepeatedField

      public BucketInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BucketInfo.Builder>
    • addRepeatedField

      public BucketInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BucketInfo.Builder>
    • mergeFrom

      public BucketInfo.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<BucketInfo.Builder>
    • mergeFrom

      public BucketInfo.Builder mergeFrom(BucketInfo other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<BucketInfo.Builder>
    • mergeFrom

      public BucketInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<BucketInfo.Builder>
      Throws:
      IOException
    • hasName

      public boolean hasName()
       Bucket name
       
      optional string name = 1;
      Specified by:
      hasName in interface BucketInfoOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       Bucket name
       
      optional string name = 1;
      Specified by:
      getName in interface BucketInfoOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Bucket name
       
      optional string name = 1;
      Specified by:
      getNameBytes in interface BucketInfoOrBuilder
      Returns:
      The bytes for name.
    • setName

      public BucketInfo.Builder setName(String value)
       Bucket name
       
      optional string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public BucketInfo.Builder clearName()
       Bucket name
       
      optional string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public BucketInfo.Builder setNameBytes(com.google.protobuf.ByteString value)
       Bucket name
       
      optional string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasSize

      public boolean hasSize()
       Total size in bytes of all objects in the bucket (metadata is not counted)
       
      optional uint64 size = 2;
      Specified by:
      hasSize in interface BucketInfoOrBuilder
      Returns:
      Whether the size field is set.
    • getSize

      public long getSize()
       Total size in bytes of all objects in the bucket (metadata is not counted)
       
      optional uint64 size = 2;
      Specified by:
      getSize in interface BucketInfoOrBuilder
      Returns:
      The size.
    • setSize

      public BucketInfo.Builder setSize(long value)
       Total size in bytes of all objects in the bucket (metadata is not counted)
       
      optional uint64 size = 2;
      Parameters:
      value - The size to set.
      Returns:
      This builder for chaining.
    • clearSize

      public BucketInfo.Builder clearSize()
       Total size in bytes of all objects in the bucket (metadata is not counted)
       
      optional uint64 size = 2;
      Returns:
      This builder for chaining.
    • hasNumObjects

      public boolean hasNumObjects()
       Number of objects in the bucket
       
      optional uint32 numObjects = 3;
      Specified by:
      hasNumObjects in interface BucketInfoOrBuilder
      Returns:
      Whether the numObjects field is set.
    • getNumObjects

      public int getNumObjects()
       Number of objects in the bucket
       
      optional uint32 numObjects = 3;
      Specified by:
      getNumObjects in interface BucketInfoOrBuilder
      Returns:
      The numObjects.
    • setNumObjects

      public BucketInfo.Builder setNumObjects(int value)
       Number of objects in the bucket
       
      optional uint32 numObjects = 3;
      Parameters:
      value - The numObjects to set.
      Returns:
      This builder for chaining.
    • clearNumObjects

      public BucketInfo.Builder clearNumObjects()
       Number of objects in the bucket
       
      optional uint32 numObjects = 3;
      Returns:
      This builder for chaining.
    • hasMaxSize

      public boolean hasMaxSize()
       Maximum allowed total size of all objects
       
      optional uint64 maxSize = 4;
      Specified by:
      hasMaxSize in interface BucketInfoOrBuilder
      Returns:
      Whether the maxSize field is set.
    • getMaxSize

      public long getMaxSize()
       Maximum allowed total size of all objects
       
      optional uint64 maxSize = 4;
      Specified by:
      getMaxSize in interface BucketInfoOrBuilder
      Returns:
      The maxSize.
    • setMaxSize

      public BucketInfo.Builder setMaxSize(long value)
       Maximum allowed total size of all objects
       
      optional uint64 maxSize = 4;
      Parameters:
      value - The maxSize to set.
      Returns:
      This builder for chaining.
    • clearMaxSize

      public BucketInfo.Builder clearMaxSize()
       Maximum allowed total size of all objects
       
      optional uint64 maxSize = 4;
      Returns:
      This builder for chaining.
    • hasMaxObjects

      public boolean hasMaxObjects()
       Maximum allowed number of objects
       
      optional uint32 maxObjects = 5;
      Specified by:
      hasMaxObjects in interface BucketInfoOrBuilder
      Returns:
      Whether the maxObjects field is set.
    • getMaxObjects

      public int getMaxObjects()
       Maximum allowed number of objects
       
      optional uint32 maxObjects = 5;
      Specified by:
      getMaxObjects in interface BucketInfoOrBuilder
      Returns:
      The maxObjects.
    • setMaxObjects

      public BucketInfo.Builder setMaxObjects(int value)
       Maximum allowed number of objects
       
      optional uint32 maxObjects = 5;
      Parameters:
      value - The maxObjects to set.
      Returns:
      This builder for chaining.
    • clearMaxObjects

      public BucketInfo.Builder clearMaxObjects()
       Maximum allowed number of objects
       
      optional uint32 maxObjects = 5;
      Returns:
      This builder for chaining.
    • hasCreated

      public boolean hasCreated()
       Creation time of this bucket
       
      optional .google.protobuf.Timestamp created = 6;
      Specified by:
      hasCreated in interface BucketInfoOrBuilder
      Returns:
      Whether the created field is set.
    • getCreated

      public com.google.protobuf.Timestamp getCreated()
       Creation time of this bucket
       
      optional .google.protobuf.Timestamp created = 6;
      Specified by:
      getCreated in interface BucketInfoOrBuilder
      Returns:
      The created.
    • setCreated

      public BucketInfo.Builder setCreated(com.google.protobuf.Timestamp value)
       Creation time of this bucket
       
      optional .google.protobuf.Timestamp created = 6;
    • setCreated

      public BucketInfo.Builder setCreated(com.google.protobuf.Timestamp.Builder builderForValue)
       Creation time of this bucket
       
      optional .google.protobuf.Timestamp created = 6;
    • mergeCreated

      public BucketInfo.Builder mergeCreated(com.google.protobuf.Timestamp value)
       Creation time of this bucket
       
      optional .google.protobuf.Timestamp created = 6;
    • clearCreated

      public BucketInfo.Builder clearCreated()
       Creation time of this bucket
       
      optional .google.protobuf.Timestamp created = 6;
    • getCreatedBuilder

      public com.google.protobuf.Timestamp.Builder getCreatedBuilder()
       Creation time of this bucket
       
      optional .google.protobuf.Timestamp created = 6;
    • getCreatedOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreatedOrBuilder()
       Creation time of this bucket
       
      optional .google.protobuf.Timestamp created = 6;
      Specified by:
      getCreatedOrBuilder in interface BucketInfoOrBuilder
    • hasDirectory

      public boolean hasDirectory()
       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;
      Specified by:
      hasDirectory in interface BucketInfoOrBuilder
      Returns:
      Whether the directory field is set.
    • getDirectory

      public String getDirectory()
       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;
      Specified by:
      getDirectory in interface BucketInfoOrBuilder
      Returns:
      The directory.
    • getDirectoryBytes

      public com.google.protobuf.ByteString getDirectoryBytes()
       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;
      Specified by:
      getDirectoryBytes in interface BucketInfoOrBuilder
      Returns:
      The bytes for directory.
    • setDirectory

      public BucketInfo.Builder setDirectory(String value)
       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;
      Parameters:
      value - The directory to set.
      Returns:
      This builder for chaining.
    • clearDirectory

      public BucketInfo.Builder clearDirectory()
       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;
      Returns:
      This builder for chaining.
    • setDirectoryBytes

      public BucketInfo.Builder setDirectoryBytes(com.google.protobuf.ByteString value)
       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;
      Parameters:
      value - The bytes for directory to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final BucketInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BucketInfo.Builder>
    • mergeUnknownFields

      public final BucketInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BucketInfo.Builder>