Package org.yamcs.protobuf
Class ObjectInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<ObjectInfo.Builder>
org.yamcs.protobuf.ObjectInfo.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,ObjectInfoOrBuilder
- Enclosing class:
- ObjectInfo
public static final class ObjectInfo.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<ObjectInfo.Builder>
implements ObjectInfoOrBuilder
Protobuf type
yamcs.protobuf.buckets.ObjectInfo
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
Creation timeclearField
(com.google.protobuf.Descriptors.FieldDescriptor field) Object nameclearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) Size in bytesclone()
boolean
containsMetadata
(String key) map<string, string> metadata = 4;
com.google.protobuf.Timestamp
Creation timecom.google.protobuf.Timestamp.Builder
Creation timecom.google.protobuf.TimestampOrBuilder
Creation timestatic final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
Deprecated.int
map<string, string> metadata = 4;
map<string, string> metadata = 4;
getMetadataOrDefault
(String key, String defaultValue) map<string, string> metadata = 4;
getMetadataOrThrow
(String key) map<string, string> metadata = 4;
Deprecated.getName()
Object namecom.google.protobuf.ByteString
Object namelong
getSize()
Size in bytesboolean
Creation timeboolean
hasName()
Object nameboolean
hasSize()
Size in bytesprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
protected com.google.protobuf.MapField
internalGetMapField
(int number) protected com.google.protobuf.MapField
internalGetMutableMapField
(int number) final boolean
mergeCreated
(com.google.protobuf.Timestamp value) Creation timemergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(ObjectInfo other) final ObjectInfo.Builder
mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) putAllMetadata
(Map<String, String> values) map<string, string> metadata = 4;
putMetadata
(String key, String value) map<string, string> metadata = 4;
removeMetadata
(String key) map<string, string> metadata = 4;
setCreated
(com.google.protobuf.Timestamp value) Creation timesetCreated
(com.google.protobuf.Timestamp.Builder builderForValue) Creation timeObject namesetNameBytes
(com.google.protobuf.ByteString value) Object namesetRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSize
(long value) Size in bytesfinal ObjectInfo.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, 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() -
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number) - Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ObjectInfo.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number) - Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ObjectInfo.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ObjectInfo.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<ObjectInfo.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<ObjectInfo.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<ObjectInfo.Builder>
-
setField
public ObjectInfo.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<ObjectInfo.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ObjectInfo.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ObjectInfo.Builder>
-
setRepeatedField
public ObjectInfo.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<ObjectInfo.Builder>
-
addRepeatedField
public ObjectInfo.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<ObjectInfo.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ObjectInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ObjectInfo.Builder>
-
mergeFrom
public ObjectInfo.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<ObjectInfo.Builder>
- Throws:
IOException
-
hasName
public boolean hasName()Object name
optional string name = 1;
- Specified by:
hasName
in interfaceObjectInfoOrBuilder
- Returns:
- Whether the name field is set.
-
getName
Object name
optional string name = 1;
- Specified by:
getName
in interfaceObjectInfoOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Object name
optional string name = 1;
- Specified by:
getNameBytes
in interfaceObjectInfoOrBuilder
- Returns:
- The bytes for name.
-
setName
Object name
optional string name = 1;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
Object name
optional string name = 1;
- Returns:
- This builder for chaining.
-
setNameBytes
Object name
optional string name = 1;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasCreated
public boolean hasCreated()Creation time
optional .google.protobuf.Timestamp created = 2;
- Specified by:
hasCreated
in interfaceObjectInfoOrBuilder
- Returns:
- Whether the created field is set.
-
getCreated
public com.google.protobuf.Timestamp getCreated()Creation time
optional .google.protobuf.Timestamp created = 2;
- Specified by:
getCreated
in interfaceObjectInfoOrBuilder
- Returns:
- The created.
-
setCreated
Creation time
optional .google.protobuf.Timestamp created = 2;
-
setCreated
Creation time
optional .google.protobuf.Timestamp created = 2;
-
mergeCreated
Creation time
optional .google.protobuf.Timestamp created = 2;
-
clearCreated
Creation time
optional .google.protobuf.Timestamp created = 2;
-
getCreatedBuilder
public com.google.protobuf.Timestamp.Builder getCreatedBuilder()Creation time
optional .google.protobuf.Timestamp created = 2;
-
getCreatedOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreatedOrBuilder()Creation time
optional .google.protobuf.Timestamp created = 2;
- Specified by:
getCreatedOrBuilder
in interfaceObjectInfoOrBuilder
-
hasSize
public boolean hasSize()Size in bytes
optional uint64 size = 3;
- Specified by:
hasSize
in interfaceObjectInfoOrBuilder
- Returns:
- Whether the size field is set.
-
getSize
public long getSize()Size in bytes
optional uint64 size = 3;
- Specified by:
getSize
in interfaceObjectInfoOrBuilder
- Returns:
- The size.
-
setSize
Size in bytes
optional uint64 size = 3;
- Parameters:
value
- The size to set.- Returns:
- This builder for chaining.
-
clearSize
Size in bytes
optional uint64 size = 3;
- Returns:
- This builder for chaining.
-
getMetadataCount
public int getMetadataCount()Description copied from interface:ObjectInfoOrBuilder
map<string, string> metadata = 4;
- Specified by:
getMetadataCount
in interfaceObjectInfoOrBuilder
-
containsMetadata
map<string, string> metadata = 4;
- Specified by:
containsMetadata
in interfaceObjectInfoOrBuilder
-
getMetadata
Deprecated.UsegetMetadataMap()
instead.- Specified by:
getMetadata
in interfaceObjectInfoOrBuilder
-
getMetadataMap
map<string, string> metadata = 4;
- Specified by:
getMetadataMap
in interfaceObjectInfoOrBuilder
-
getMetadataOrDefault
map<string, string> metadata = 4;
- Specified by:
getMetadataOrDefault
in interfaceObjectInfoOrBuilder
-
getMetadataOrThrow
map<string, string> metadata = 4;
- Specified by:
getMetadataOrThrow
in interfaceObjectInfoOrBuilder
-
clearMetadata
-
removeMetadata
map<string, string> metadata = 4;
-
getMutableMetadata
Deprecated.Use alternate mutation accessors instead. -
putMetadata
map<string, string> metadata = 4;
-
putAllMetadata
map<string, string> metadata = 4;
-
setUnknownFields
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ObjectInfo.Builder>
-
mergeUnknownFields
public final ObjectInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ObjectInfo.Builder>
-