Package org.yamcs.protobuf.config
Class WhenConditionInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<WhenConditionInfo.Builder>
org.yamcs.protobuf.config.WhenConditionInfo.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,WhenConditionInfoOrBuilder
- Enclosing class:
- WhenConditionInfo
public static final class WhenConditionInfo.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<WhenConditionInfo.Builder>
implements WhenConditionInfoOrBuilder
Protobuf type
yamcs.protobuf.config.WhenConditionInfo
-
Method Summary
Modifier and TypeMethodDescriptionaddAllRequiredKeys
(Iterable<String> values) Option keys that must be specified, if the condition is satisfiedaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addRequiredKeys
(String value) Option keys that must be specified, if the condition is satisfiedaddRequiredKeysBytes
(com.google.protobuf.ByteString value) Option keys that must be specified, if the condition is satisfiedbuild()
clear()
clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) clearKey()
Option key for checking the conditionclearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) Option keys that must be specified, if the condition is satisfiedValue to compare withclone()
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getKey()
Option key for checking the conditioncom.google.protobuf.ByteString
Option key for checking the conditiongetRequiredKeys
(int index) Option keys that must be specified, if the condition is satisfiedcom.google.protobuf.ByteString
getRequiredKeysBytes
(int index) Option keys that must be specified, if the condition is satisfiedint
Option keys that must be specified, if the condition is satisfiedcom.google.protobuf.ProtocolStringList
Option keys that must be specified, if the condition is satisfiedcom.google.protobuf.Value
getValue()
Value to compare withcom.google.protobuf.Value.Builder
Value to compare withcom.google.protobuf.ValueOrBuilder
Value to compare withboolean
hasKey()
Option key for checking the conditionboolean
hasValue()
Value to compare withprotected 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
(WhenConditionInfo other) mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) mergeValue
(com.google.protobuf.Value value) Value to compare withOption key for checking the conditionsetKeyBytes
(com.google.protobuf.ByteString value) Option key for checking the conditionsetRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setRequiredKeys
(int index, String value) Option keys that must be specified, if the condition is satisfiedsetUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setValue
(com.google.protobuf.Value value) Value to compare withsetValue
(com.google.protobuf.Value.Builder builderForValue) Value to compare withMethods 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<WhenConditionInfo.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<WhenConditionInfo.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<WhenConditionInfo.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<WhenConditionInfo.Builder>
-
setField
public WhenConditionInfo.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<WhenConditionInfo.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<WhenConditionInfo.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<WhenConditionInfo.Builder>
-
setRepeatedField
public WhenConditionInfo.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<WhenConditionInfo.Builder>
-
addRepeatedField
public WhenConditionInfo.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<WhenConditionInfo.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<WhenConditionInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<WhenConditionInfo.Builder>
-
mergeFrom
public WhenConditionInfo.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<WhenConditionInfo.Builder>
- Throws:
IOException
-
hasKey
public boolean hasKey()Option key for checking the condition
optional string key = 1;
- Specified by:
hasKey
in interfaceWhenConditionInfoOrBuilder
- Returns:
- Whether the key field is set.
-
getKey
Option key for checking the condition
optional string key = 1;
- Specified by:
getKey
in interfaceWhenConditionInfoOrBuilder
- Returns:
- The key.
-
getKeyBytes
public com.google.protobuf.ByteString getKeyBytes()Option key for checking the condition
optional string key = 1;
- Specified by:
getKeyBytes
in interfaceWhenConditionInfoOrBuilder
- Returns:
- The bytes for key.
-
setKey
Option key for checking the condition
optional string key = 1;
- Parameters:
value
- The key to set.- Returns:
- This builder for chaining.
-
clearKey
Option key for checking the condition
optional string key = 1;
- Returns:
- This builder for chaining.
-
setKeyBytes
Option key for checking the condition
optional string key = 1;
- Parameters:
value
- The bytes for key to set.- Returns:
- This builder for chaining.
-
hasValue
public boolean hasValue()Value to compare with
optional .google.protobuf.Value value = 2;
- Specified by:
hasValue
in interfaceWhenConditionInfoOrBuilder
- Returns:
- Whether the value field is set.
-
getValue
public com.google.protobuf.Value getValue()Value to compare with
optional .google.protobuf.Value value = 2;
- Specified by:
getValue
in interfaceWhenConditionInfoOrBuilder
- Returns:
- The value.
-
setValue
Value to compare with
optional .google.protobuf.Value value = 2;
-
setValue
Value to compare with
optional .google.protobuf.Value value = 2;
-
mergeValue
Value to compare with
optional .google.protobuf.Value value = 2;
-
clearValue
Value to compare with
optional .google.protobuf.Value value = 2;
-
getValueBuilder
public com.google.protobuf.Value.Builder getValueBuilder()Value to compare with
optional .google.protobuf.Value value = 2;
-
getValueOrBuilder
public com.google.protobuf.ValueOrBuilder getValueOrBuilder()Value to compare with
optional .google.protobuf.Value value = 2;
- Specified by:
getValueOrBuilder
in interfaceWhenConditionInfoOrBuilder
-
getRequiredKeysList
public com.google.protobuf.ProtocolStringList getRequiredKeysList()Option keys that must be specified, if the condition is satisfied
repeated string requiredKeys = 3;
- Specified by:
getRequiredKeysList
in interfaceWhenConditionInfoOrBuilder
- Returns:
- A list containing the requiredKeys.
-
getRequiredKeysCount
public int getRequiredKeysCount()Option keys that must be specified, if the condition is satisfied
repeated string requiredKeys = 3;
- Specified by:
getRequiredKeysCount
in interfaceWhenConditionInfoOrBuilder
- Returns:
- The count of requiredKeys.
-
getRequiredKeys
Option keys that must be specified, if the condition is satisfied
repeated string requiredKeys = 3;
- Specified by:
getRequiredKeys
in interfaceWhenConditionInfoOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The requiredKeys at the given index.
-
getRequiredKeysBytes
public com.google.protobuf.ByteString getRequiredKeysBytes(int index) Option keys that must be specified, if the condition is satisfied
repeated string requiredKeys = 3;
- Specified by:
getRequiredKeysBytes
in interfaceWhenConditionInfoOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the requiredKeys at the given index.
-
setRequiredKeys
Option keys that must be specified, if the condition is satisfied
repeated string requiredKeys = 3;
- Parameters:
index
- The index to set the value at.value
- The requiredKeys to set.- Returns:
- This builder for chaining.
-
addRequiredKeys
Option keys that must be specified, if the condition is satisfied
repeated string requiredKeys = 3;
- Parameters:
value
- The requiredKeys to add.- Returns:
- This builder for chaining.
-
addAllRequiredKeys
Option keys that must be specified, if the condition is satisfied
repeated string requiredKeys = 3;
- Parameters:
values
- The requiredKeys to add.- Returns:
- This builder for chaining.
-
clearRequiredKeys
Option keys that must be specified, if the condition is satisfied
repeated string requiredKeys = 3;
- Returns:
- This builder for chaining.
-
addRequiredKeysBytes
Option keys that must be specified, if the condition is satisfied
repeated string requiredKeys = 3;
- Parameters:
value
- The bytes of the requiredKeys to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final WhenConditionInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<WhenConditionInfo.Builder>
-
mergeUnknownFields
public final WhenConditionInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<WhenConditionInfo.Builder>
-