Class MonitorDProto.Unit.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<MonitorDProto.Unit.Builder>
de.serosystems.proto.v3.grx.monitord.MonitorDProto.Unit.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,MonitorDProto.UnitOrBuilder
,Cloneable
- Enclosing class:
- MonitorDProto.Unit
public static final class MonitorDProto.Unit.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<MonitorDProto.Unit.Builder>
implements MonitorDProto.UnitOrBuilder
Representation of a systemd unit.Protobuf type
serosystems.proto.v3.grx.monitord.Unit
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
Active state, e.g.Description of the unit.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) string following = 6;
clearId()
ID/name of the unit.uint32 job_id = 8;
string job_path = 10;
string job_type = 9;
Load state, e.g.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) Sub-state, e.g.SD-Bus path of the unit.clone()
Active state, e.g.com.google.protobuf.ByteString
Active state, e.g.Description of the unit.com.google.protobuf.ByteString
Description of the unit.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
string following = 6;
com.google.protobuf.ByteString
string following = 6;
getId()
ID/name of the unit.com.google.protobuf.ByteString
ID/name of the unit.int
getJobId()
uint32 job_id = 8;
string job_path = 10;
com.google.protobuf.ByteString
string job_path = 10;
string job_type = 9;
com.google.protobuf.ByteString
string job_type = 9;
Load state, e.g.com.google.protobuf.ByteString
Load state, e.g.Sub-state, e.g.com.google.protobuf.ByteString
Sub-state, e.g.SD-Bus path of the unit.com.google.protobuf.ByteString
SD-Bus path of the unit.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(MonitorDProto.Unit other) mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setActiveState
(String value) Active state, e.g.setActiveStateBytes
(com.google.protobuf.ByteString value) Active state, e.g.setDescription
(String value) Description of the unit.setDescriptionBytes
(com.google.protobuf.ByteString value) Description of the unit.setFollowing
(String value) string following = 6;
setFollowingBytes
(com.google.protobuf.ByteString value) string following = 6;
ID/name of the unit.setIdBytes
(com.google.protobuf.ByteString value) ID/name of the unit.setJobId
(int value) uint32 job_id = 8;
setJobPath
(String value) string job_path = 10;
setJobPathBytes
(com.google.protobuf.ByteString value) string job_path = 10;
setJobType
(String value) string job_type = 9;
setJobTypeBytes
(com.google.protobuf.ByteString value) string job_type = 9;
setLoadState
(String value) Load state, e.g.setLoadStateBytes
(com.google.protobuf.ByteString value) Load state, e.g.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSubState
(String value) Sub-state, e.g.setSubStateBytes
(com.google.protobuf.ByteString value) Sub-state, e.g.setUnitPath
(String value) SD-Bus path of the unit.setUnitPathBytes
(com.google.protobuf.ByteString value) SD-Bus path of the unit.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, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, 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.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
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<MonitorDProto.Unit.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<MonitorDProto.Unit.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<MonitorDProto.Unit.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<MonitorDProto.Unit.Builder>
-
setField
public MonitorDProto.Unit.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<MonitorDProto.Unit.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MonitorDProto.Unit.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<MonitorDProto.Unit.Builder>
-
setRepeatedField
public MonitorDProto.Unit.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<MonitorDProto.Unit.Builder>
-
addRepeatedField
public MonitorDProto.Unit.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<MonitorDProto.Unit.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<MonitorDProto.Unit.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<MonitorDProto.Unit.Builder>
-
mergeFrom
public MonitorDProto.Unit.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<MonitorDProto.Unit.Builder>
- Throws:
IOException
-
getId
ID/name of the unit.
string id = 1;
- Specified by:
getId
in interfaceMonitorDProto.UnitOrBuilder
- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()ID/name of the unit.
string id = 1;
- Specified by:
getIdBytes
in interfaceMonitorDProto.UnitOrBuilder
- Returns:
- The bytes for id.
-
setId
ID/name of the unit.
string id = 1;
- Parameters:
value
- The id to set.- Returns:
- This builder for chaining.
-
clearId
ID/name of the unit.
string id = 1;
- Returns:
- This builder for chaining.
-
setIdBytes
ID/name of the unit.
string id = 1;
- Parameters:
value
- The bytes for id to set.- Returns:
- This builder for chaining.
-
getDescription
Description of the unit.
string description = 2;
- Specified by:
getDescription
in interfaceMonitorDProto.UnitOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()Description of the unit.
string description = 2;
- Specified by:
getDescriptionBytes
in interfaceMonitorDProto.UnitOrBuilder
- Returns:
- The bytes for description.
-
setDescription
Description of the unit.
string description = 2;
- Parameters:
value
- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
Description of the unit.
string description = 2;
- Returns:
- This builder for chaining.
-
setDescriptionBytes
Description of the unit.
string description = 2;
- Parameters:
value
- The bytes for description to set.- Returns:
- This builder for chaining.
-
getLoadState
Load state, e.g. "loaded", "not-found",etc.
string load_state = 3;
- Specified by:
getLoadState
in interfaceMonitorDProto.UnitOrBuilder
- Returns:
- The loadState.
-
getLoadStateBytes
public com.google.protobuf.ByteString getLoadStateBytes()Load state, e.g. "loaded", "not-found",etc.
string load_state = 3;
- Specified by:
getLoadStateBytes
in interfaceMonitorDProto.UnitOrBuilder
- Returns:
- The bytes for loadState.
-
setLoadState
Load state, e.g. "loaded", "not-found",etc.
string load_state = 3;
- Parameters:
value
- The loadState to set.- Returns:
- This builder for chaining.
-
clearLoadState
Load state, e.g. "loaded", "not-found",etc.
string load_state = 3;
- Returns:
- This builder for chaining.
-
setLoadStateBytes
Load state, e.g. "loaded", "not-found",etc.
string load_state = 3;
- Parameters:
value
- The bytes for loadState to set.- Returns:
- This builder for chaining.
-
getActiveState
Active state, e.g. "active", "inactive", etc.
string active_state = 4;
- Specified by:
getActiveState
in interfaceMonitorDProto.UnitOrBuilder
- Returns:
- The activeState.
-
getActiveStateBytes
public com.google.protobuf.ByteString getActiveStateBytes()Active state, e.g. "active", "inactive", etc.
string active_state = 4;
- Specified by:
getActiveStateBytes
in interfaceMonitorDProto.UnitOrBuilder
- Returns:
- The bytes for activeState.
-
setActiveState
Active state, e.g. "active", "inactive", etc.
string active_state = 4;
- Parameters:
value
- The activeState to set.- Returns:
- This builder for chaining.
-
clearActiveState
Active state, e.g. "active", "inactive", etc.
string active_state = 4;
- Returns:
- This builder for chaining.
-
setActiveStateBytes
Active state, e.g. "active", "inactive", etc.
string active_state = 4;
- Parameters:
value
- The bytes for activeState to set.- Returns:
- This builder for chaining.
-
getSubState
Sub-state, e.g. "running", "exited", etc.
string sub_state = 5;
- Specified by:
getSubState
in interfaceMonitorDProto.UnitOrBuilder
- Returns:
- The subState.
-
getSubStateBytes
public com.google.protobuf.ByteString getSubStateBytes()Sub-state, e.g. "running", "exited", etc.
string sub_state = 5;
- Specified by:
getSubStateBytes
in interfaceMonitorDProto.UnitOrBuilder
- Returns:
- The bytes for subState.
-
setSubState
Sub-state, e.g. "running", "exited", etc.
string sub_state = 5;
- Parameters:
value
- The subState to set.- Returns:
- This builder for chaining.
-
clearSubState
Sub-state, e.g. "running", "exited", etc.
string sub_state = 5;
- Returns:
- This builder for chaining.
-
setSubStateBytes
Sub-state, e.g. "running", "exited", etc.
string sub_state = 5;
- Parameters:
value
- The bytes for subState to set.- Returns:
- This builder for chaining.
-
getFollowing
string following = 6;
- Specified by:
getFollowing
in interfaceMonitorDProto.UnitOrBuilder
- Returns:
- The following.
-
getFollowingBytes
public com.google.protobuf.ByteString getFollowingBytes()string following = 6;
- Specified by:
getFollowingBytes
in interfaceMonitorDProto.UnitOrBuilder
- Returns:
- The bytes for following.
-
setFollowing
string following = 6;
- Parameters:
value
- The following to set.- Returns:
- This builder for chaining.
-
clearFollowing
string following = 6;
- Returns:
- This builder for chaining.
-
setFollowingBytes
string following = 6;
- Parameters:
value
- The bytes for following to set.- Returns:
- This builder for chaining.
-
getUnitPath
SD-Bus path of the unit.
string unit_path = 7;
- Specified by:
getUnitPath
in interfaceMonitorDProto.UnitOrBuilder
- Returns:
- The unitPath.
-
getUnitPathBytes
public com.google.protobuf.ByteString getUnitPathBytes()SD-Bus path of the unit.
string unit_path = 7;
- Specified by:
getUnitPathBytes
in interfaceMonitorDProto.UnitOrBuilder
- Returns:
- The bytes for unitPath.
-
setUnitPath
SD-Bus path of the unit.
string unit_path = 7;
- Parameters:
value
- The unitPath to set.- Returns:
- This builder for chaining.
-
clearUnitPath
SD-Bus path of the unit.
string unit_path = 7;
- Returns:
- This builder for chaining.
-
setUnitPathBytes
SD-Bus path of the unit.
string unit_path = 7;
- Parameters:
value
- The bytes for unitPath to set.- Returns:
- This builder for chaining.
-
getJobId
public int getJobId()uint32 job_id = 8;
- Specified by:
getJobId
in interfaceMonitorDProto.UnitOrBuilder
- Returns:
- The jobId.
-
setJobId
uint32 job_id = 8;
- Parameters:
value
- The jobId to set.- Returns:
- This builder for chaining.
-
clearJobId
uint32 job_id = 8;
- Returns:
- This builder for chaining.
-
getJobType
string job_type = 9;
- Specified by:
getJobType
in interfaceMonitorDProto.UnitOrBuilder
- Returns:
- The jobType.
-
getJobTypeBytes
public com.google.protobuf.ByteString getJobTypeBytes()string job_type = 9;
- Specified by:
getJobTypeBytes
in interfaceMonitorDProto.UnitOrBuilder
- Returns:
- The bytes for jobType.
-
setJobType
string job_type = 9;
- Parameters:
value
- The jobType to set.- Returns:
- This builder for chaining.
-
clearJobType
string job_type = 9;
- Returns:
- This builder for chaining.
-
setJobTypeBytes
string job_type = 9;
- Parameters:
value
- The bytes for jobType to set.- Returns:
- This builder for chaining.
-
getJobPath
string job_path = 10;
- Specified by:
getJobPath
in interfaceMonitorDProto.UnitOrBuilder
- Returns:
- The jobPath.
-
getJobPathBytes
public com.google.protobuf.ByteString getJobPathBytes()string job_path = 10;
- Specified by:
getJobPathBytes
in interfaceMonitorDProto.UnitOrBuilder
- Returns:
- The bytes for jobPath.
-
setJobPath
string job_path = 10;
- Parameters:
value
- The jobPath to set.- Returns:
- This builder for chaining.
-
clearJobPath
string job_path = 10;
- Returns:
- This builder for chaining.
-
setJobPathBytes
string job_path = 10;
- Parameters:
value
- The bytes for jobPath to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final MonitorDProto.Unit.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<MonitorDProto.Unit.Builder>
-
mergeUnknownFields
public final MonitorDProto.Unit.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<MonitorDProto.Unit.Builder>
-