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 type google.cloud.osconfig.v1.PatchInstanceFilter.GroupLabel| Modifier and Type | Method and 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(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
PatchJobs.PatchInstanceFilter.GroupLabel.Builder |
mergeFrom(com.google.protobuf.Message other) |
PatchJobs.PatchInstanceFilter.GroupLabel.Builder |
mergeFrom(PatchJobs.PatchInstanceFilter.GroupLabel 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) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapFieldReflection, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchInstanceFilter.GroupLabel.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchInstanceFilter.GroupLabel.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchInstanceFilter.GroupLabel.Builder>public PatchJobs.PatchInstanceFilter.GroupLabel.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchInstanceFilter.GroupLabel.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchInstanceFilter.GroupLabel.Builder>public PatchJobs.PatchInstanceFilter.GroupLabel getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic PatchJobs.PatchInstanceFilter.GroupLabel build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic PatchJobs.PatchInstanceFilter.GroupLabel buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic PatchJobs.PatchInstanceFilter.GroupLabel.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchInstanceFilter.GroupLabel.Builder>public PatchJobs.PatchInstanceFilter.GroupLabel.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchInstanceFilter.GroupLabel.Builder>public PatchJobs.PatchInstanceFilter.GroupLabel.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchInstanceFilter.GroupLabel.Builder>public PatchJobs.PatchInstanceFilter.GroupLabel.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchInstanceFilter.GroupLabel.Builder>public PatchJobs.PatchInstanceFilter.GroupLabel.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchInstanceFilter.GroupLabel.Builder>public PatchJobs.PatchInstanceFilter.GroupLabel.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchInstanceFilter.GroupLabel.Builder>public PatchJobs.PatchInstanceFilter.GroupLabel.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<PatchJobs.PatchInstanceFilter.GroupLabel.Builder>public PatchJobs.PatchInstanceFilter.GroupLabel.Builder mergeFrom(PatchJobs.PatchInstanceFilter.GroupLabel other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchInstanceFilter.GroupLabel.Builder>public PatchJobs.PatchInstanceFilter.GroupLabel.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<PatchJobs.PatchInstanceFilter.GroupLabel.Builder>IOExceptionpublic int getLabelsCount()
PatchJobs.PatchInstanceFilter.GroupLabelOrBuilderCompute Engine instance labels that must be present for a VM instance to be targeted by this filter.
map<string, string> labels = 1;getLabelsCount in interface PatchJobs.PatchInstanceFilter.GroupLabelOrBuilderpublic 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;containsLabels in interface PatchJobs.PatchInstanceFilter.GroupLabelOrBuilder@Deprecated public Map<String,String> getLabels()
getLabelsMap() instead.getLabels in interface PatchJobs.PatchInstanceFilter.GroupLabelOrBuilderpublic 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;getLabelsMap in interface PatchJobs.PatchInstanceFilter.GroupLabelOrBuilderpublic 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;getLabelsOrDefault in interface PatchJobs.PatchInstanceFilter.GroupLabelOrBuilderpublic 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;getLabelsOrThrow in interface PatchJobs.PatchInstanceFilter.GroupLabelOrBuilderpublic PatchJobs.PatchInstanceFilter.GroupLabel.Builder clearLabels()
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;@Deprecated public Map<String,String> getMutableLabels()
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;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;public final PatchJobs.PatchInstanceFilter.GroupLabel.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchInstanceFilter.GroupLabel.Builder>public final PatchJobs.PatchInstanceFilter.GroupLabel.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchInstanceFilter.GroupLabel.Builder>Copyright © 2023 Google LLC. All rights reserved.