Package com.google.cloud.osconfig.v1
Class PatchJobs.PatchInstanceFilter.GroupLabel.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchInstanceFilter.GroupLabel.Builder>
-
- com.google.cloud.osconfig.v1.PatchJobs.PatchInstanceFilter.GroupLabel.Builder
-
- All Implemented Interfaces:
PatchJobs.PatchInstanceFilter.GroupLabelOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- PatchJobs.PatchInstanceFilter.GroupLabel
public static final class PatchJobs.PatchInstanceFilter.GroupLabel.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchInstanceFilter.GroupLabel.Builder> implements PatchJobs.PatchInstanceFilter.GroupLabelOrBuilder
Targets a group of VM instances by using their [assigned labels](https://cloud.google.com/compute/docs/labeling-resources). Labels are key-value pairs. A `GroupLabel` is a combination of labels that is used to target VMs for a patch job. For example, a patch job can target VMs that have the following `GroupLabel`: `{"env":"test", "app":"web"}`. This means that the patch job is applied to VMs that have both the labels `env=test` and `app=web`.
Protobuf typegoogle.cloud.osconfig.v1.PatchInstanceFilter.GroupLabel
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description PatchJobs.PatchInstanceFilter.GroupLabel.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
PatchJobs.PatchInstanceFilter.GroupLabel
build()
PatchJobs.PatchInstanceFilter.GroupLabel
buildPartial()
PatchJobs.PatchInstanceFilter.GroupLabel.Builder
clear()
PatchJobs.PatchInstanceFilter.GroupLabel.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
PatchJobs.PatchInstanceFilter.GroupLabel.Builder
clearLabels()
PatchJobs.PatchInstanceFilter.GroupLabel.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
PatchJobs.PatchInstanceFilter.GroupLabel.Builder
clone()
boolean
containsLabels(String key)
Compute Engine instance labels that must be present for a VM instance to be targeted by this filter.PatchJobs.PatchInstanceFilter.GroupLabel
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
Compute Engine instance labels that must be present for a VM instance to be targeted by this filter.Map<String,String>
getLabelsMap()
Compute Engine instance labels that must be present for a VM instance to be targeted by this filter.String
getLabelsOrDefault(String key, String defaultValue)
Compute Engine instance labels that must be present for a VM instance to be targeted by this filter.String
getLabelsOrThrow(String key)
Compute Engine instance labels that must be present for a VM instance to be targeted by this filter.Map<String,String>
getMutableLabels()
Deprecated.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
PatchJobs.PatchInstanceFilter.GroupLabel.Builder
mergeFrom(PatchJobs.PatchInstanceFilter.GroupLabel other)
PatchJobs.PatchInstanceFilter.GroupLabel.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
PatchJobs.PatchInstanceFilter.GroupLabel.Builder
mergeFrom(com.google.protobuf.Message other)
PatchJobs.PatchInstanceFilter.GroupLabel.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
PatchJobs.PatchInstanceFilter.GroupLabel.Builder
putAllLabels(Map<String,String> values)
Compute Engine instance labels that must be present for a VM instance to be targeted by this filter.PatchJobs.PatchInstanceFilter.GroupLabel.Builder
putLabels(String key, String value)
Compute Engine instance labels that must be present for a VM instance to be targeted by this filter.PatchJobs.PatchInstanceFilter.GroupLabel.Builder
removeLabels(String key)
Compute Engine instance labels that must be present for a VM instance to be targeted by this filter.PatchJobs.PatchInstanceFilter.GroupLabel.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
PatchJobs.PatchInstanceFilter.GroupLabel.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
PatchJobs.PatchInstanceFilter.GroupLabel.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, 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
-
-
-
-
Method Detail
-
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<PatchJobs.PatchInstanceFilter.GroupLabel.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchInstanceFilter.GroupLabel.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchInstanceFilter.GroupLabel.Builder>
-
clear
public PatchJobs.PatchInstanceFilter.GroupLabel.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<PatchJobs.PatchInstanceFilter.GroupLabel.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<PatchJobs.PatchInstanceFilter.GroupLabel.Builder>
-
getDefaultInstanceForType
public PatchJobs.PatchInstanceFilter.GroupLabel getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public PatchJobs.PatchInstanceFilter.GroupLabel build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public PatchJobs.PatchInstanceFilter.GroupLabel buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public PatchJobs.PatchInstanceFilter.GroupLabel.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<PatchJobs.PatchInstanceFilter.GroupLabel.Builder>
-
setField
public PatchJobs.PatchInstanceFilter.GroupLabel.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<PatchJobs.PatchInstanceFilter.GroupLabel.Builder>
-
clearField
public PatchJobs.PatchInstanceFilter.GroupLabel.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchInstanceFilter.GroupLabel.Builder>
-
clearOneof
public PatchJobs.PatchInstanceFilter.GroupLabel.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchInstanceFilter.GroupLabel.Builder>
-
setRepeatedField
public PatchJobs.PatchInstanceFilter.GroupLabel.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<PatchJobs.PatchInstanceFilter.GroupLabel.Builder>
-
addRepeatedField
public PatchJobs.PatchInstanceFilter.GroupLabel.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<PatchJobs.PatchInstanceFilter.GroupLabel.Builder>
-
mergeFrom
public PatchJobs.PatchInstanceFilter.GroupLabel.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<PatchJobs.PatchInstanceFilter.GroupLabel.Builder>
-
mergeFrom
public PatchJobs.PatchInstanceFilter.GroupLabel.Builder mergeFrom(PatchJobs.PatchInstanceFilter.GroupLabel other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchInstanceFilter.GroupLabel.Builder>
-
mergeFrom
public PatchJobs.PatchInstanceFilter.GroupLabel.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<PatchJobs.PatchInstanceFilter.GroupLabel.Builder>
- Throws:
IOException
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:PatchJobs.PatchInstanceFilter.GroupLabelOrBuilder
Compute Engine instance labels that must be present for a VM instance to be targeted by this filter.
map<string, string> labels = 1;
- Specified by:
getLabelsCount
in interfacePatchJobs.PatchInstanceFilter.GroupLabelOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Compute Engine instance labels that must be present for a VM instance to be targeted by this filter.
map<string, string> labels = 1;
- Specified by:
containsLabels
in interfacePatchJobs.PatchInstanceFilter.GroupLabelOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in interfacePatchJobs.PatchInstanceFilter.GroupLabelOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Compute Engine instance labels that must be present for a VM instance to be targeted by this filter.
map<string, string> labels = 1;
- Specified by:
getLabelsMap
in interfacePatchJobs.PatchInstanceFilter.GroupLabelOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Compute Engine instance labels that must be present for a VM instance to be targeted by this filter.
map<string, string> labels = 1;
- Specified by:
getLabelsOrDefault
in interfacePatchJobs.PatchInstanceFilter.GroupLabelOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Compute Engine instance labels that must be present for a VM instance to be targeted by this filter.
map<string, string> labels = 1;
- Specified by:
getLabelsOrThrow
in interfacePatchJobs.PatchInstanceFilter.GroupLabelOrBuilder
-
clearLabels
public PatchJobs.PatchInstanceFilter.GroupLabel.Builder clearLabels()
-
removeLabels
public PatchJobs.PatchInstanceFilter.GroupLabel.Builder removeLabels(String key)
Compute Engine instance labels that must be present for a VM instance to be targeted by this filter.
map<string, string> labels = 1;
-
getMutableLabels
@Deprecated public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
public PatchJobs.PatchInstanceFilter.GroupLabel.Builder putLabels(String key, String value)
Compute Engine instance labels that must be present for a VM instance to be targeted by this filter.
map<string, string> labels = 1;
-
putAllLabels
public PatchJobs.PatchInstanceFilter.GroupLabel.Builder putAllLabels(Map<String,String> values)
Compute Engine instance labels that must be present for a VM instance to be targeted by this filter.
map<string, string> labels = 1;
-
setUnknownFields
public final PatchJobs.PatchInstanceFilter.GroupLabel.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchInstanceFilter.GroupLabel.Builder>
-
mergeUnknownFields
public final PatchJobs.PatchInstanceFilter.GroupLabel.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchInstanceFilter.GroupLabel.Builder>
-
-