Package org.yamcs.protobuf
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 Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
Creation time of this bucketBucket root directory.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) Maximum allowed number of objectsMaximum allowed total size of all objectsBucket nameNumber of objects in the bucketclearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) Total size in bytes of all objects in the bucket (metadata is not counted)clone()
com.google.protobuf.Timestamp
Creation time of this bucketcom.google.protobuf.Timestamp.Builder
Creation time of this bucketcom.google.protobuf.TimestampOrBuilder
Creation time of this bucketstatic final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
Bucket root directory.com.google.protobuf.ByteString
Bucket root directory.int
Maximum allowed number of objectslong
Maximum allowed total size of all objectsgetName()
Bucket namecom.google.protobuf.ByteString
Bucket nameint
Number of objects in the bucketlong
getSize()
Total size in bytes of all objects in the bucket (metadata is not counted)boolean
Creation time of this bucketboolean
Bucket root directory.boolean
Maximum allowed number of objectsboolean
Maximum allowed total size of all objectsboolean
hasName()
Bucket nameboolean
Number of objects in the bucketboolean
hasSize()
Total size in bytes of all objects in the bucket (metadata is not counted)protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeCreated
(com.google.protobuf.Timestamp value) Creation time of this bucketmergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(BucketInfo other) final BucketInfo.Builder
mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setCreated
(com.google.protobuf.Timestamp value) Creation time of this bucketsetCreated
(com.google.protobuf.Timestamp.Builder builderForValue) Creation time of this bucketsetDirectory
(String value) Bucket root directory.setDirectoryBytes
(com.google.protobuf.ByteString value) Bucket root directory.setMaxObjects
(int value) Maximum allowed number of objectssetMaxSize
(long value) Maximum allowed total size of all objectsBucket namesetNameBytes
(com.google.protobuf.ByteString value) Bucket namesetNumObjects
(int value) Number of objects in the bucketsetRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSize
(long value) Total size in bytes of all objects in the bucket (metadata is not counted)final BucketInfo.Builder
setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<BucketInfo.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<BucketInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<BucketInfo.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<BucketInfo.Builder>
-
setField
public BucketInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BucketInfo.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BucketInfo.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BucketInfo.Builder>
-
addRepeatedField
public BucketInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BucketInfo.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<BucketInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<BucketInfo.Builder>
- Throws:
IOException
-
hasName
public boolean hasName()Bucket name
optional string name = 1;
- Specified by:
hasName
in interfaceBucketInfoOrBuilder
- Returns:
- Whether the name field is set.
-
getName
Bucket name
optional string name = 1;
- Specified by:
getName
in interfaceBucketInfoOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Bucket name
optional string name = 1;
- Specified by:
getNameBytes
in interfaceBucketInfoOrBuilder
- Returns:
- The bytes for name.
-
setName
Bucket name
optional string name = 1;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
Bucket name
optional string name = 1;
- Returns:
- This builder for chaining.
-
setNameBytes
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 interfaceBucketInfoOrBuilder
- 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 interfaceBucketInfoOrBuilder
- Returns:
- The size.
-
setSize
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
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 interfaceBucketInfoOrBuilder
- 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 interfaceBucketInfoOrBuilder
- Returns:
- The numObjects.
-
setNumObjects
Number of objects in the bucket
optional uint32 numObjects = 3;
- Parameters:
value
- The numObjects to set.- Returns:
- This builder for chaining.
-
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 interfaceBucketInfoOrBuilder
- 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 interfaceBucketInfoOrBuilder
- Returns:
- The maxSize.
-
setMaxSize
Maximum allowed total size of all objects
optional uint64 maxSize = 4;
- Parameters:
value
- The maxSize to set.- Returns:
- This builder for chaining.
-
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 interfaceBucketInfoOrBuilder
- Returns:
- Whether the maxObjects field is set.
-
getMaxObjects
public int getMaxObjects()Maximum allowed number of objects
optional uint32 maxObjects = 5;
- Specified by:
getMaxObjects
in interfaceBucketInfoOrBuilder
- Returns:
- The maxObjects.
-
setMaxObjects
Maximum allowed number of objects
optional uint32 maxObjects = 5;
- Parameters:
value
- The maxObjects to set.- Returns:
- This builder for chaining.
-
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 interfaceBucketInfoOrBuilder
- 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 interfaceBucketInfoOrBuilder
- Returns:
- The created.
-
setCreated
Creation time of this bucket
optional .google.protobuf.Timestamp created = 6;
-
setCreated
Creation time of this bucket
optional .google.protobuf.Timestamp created = 6;
-
mergeCreated
Creation time of this bucket
optional .google.protobuf.Timestamp created = 6;
-
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 interfaceBucketInfoOrBuilder
-
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 interfaceBucketInfoOrBuilder
- Returns:
- Whether the directory field is set.
-
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 interfaceBucketInfoOrBuilder
- 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 interfaceBucketInfoOrBuilder
- Returns:
- The bytes for directory.
-
setDirectory
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
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
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
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<BucketInfo.Builder>
-
mergeUnknownFields
public final BucketInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<BucketInfo.Builder>
-