public static final class Group.Builder extends GeneratedMessageV3.Builder<Group.Builder> implements GroupOrBuilder
The description of a dynamic collection of monitored resources. Each group has a filter that is matched against monitored resources and their associated metadata. If a group's filter matches an available monitored resource, then that resource is a member of that group. Groups can contain any number of monitored resources, and each monitored resource can be a member of any number of groups. Groups can be nested in parent-child hierarchies. The `parentName` field identifies an optional parent for each group. If a group has a parent, then the only monitored resources available to be matched by the group's filter are the resources contained in the parent group. In other words, a group contains the monitored resources that match its filter and the filters of all the group's ancestors. A group without a parent can contain any monitored resource. For example, consider an infrastructure running a set of instances with two user-defined tags: `"environment"` and `"role"`. A parent group has a filter, `environment="production"`. A child of that parent group has a filter, `role="transcoder"`. The parent group contains all instances in the production environment, regardless of their roles. The child group contains instances that have the transcoder role *and* are in the production environment. The monitored resources contained in a group can change at any moment, depending on what resources exist and what filters are associated with the group and its ancestors.Protobuf type
google.monitoring.v3.Group| Modifier and Type | Method and Description |
|---|---|
Group.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
Group |
build() |
Group |
buildPartial() |
Group.Builder |
clear() |
Group.Builder |
clearDisplayName()
A user-assigned name for this group, used only for display purposes.
|
Group.Builder |
clearField(Descriptors.FieldDescriptor field) |
Group.Builder |
clearFilter()
The filter used to determine which monitored resources belong to this group.
|
Group.Builder |
clearIsCluster()
If true, the members of this group are considered to be a cluster.
|
Group.Builder |
clearName()
Output only.
|
Group.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
Group.Builder |
clearParentName()
The name of the group's parent, if it has one.
|
Group.Builder |
clone() |
Group |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getDisplayName()
A user-assigned name for this group, used only for display purposes.
|
ByteString |
getDisplayNameBytes()
A user-assigned name for this group, used only for display purposes.
|
java.lang.String |
getFilter()
The filter used to determine which monitored resources belong to this group.
|
ByteString |
getFilterBytes()
The filter used to determine which monitored resources belong to this group.
|
boolean |
getIsCluster()
If true, the members of this group are considered to be a cluster.
|
java.lang.String |
getName()
Output only.
|
ByteString |
getNameBytes()
Output only.
|
java.lang.String |
getParentName()
The name of the group's parent, if it has one.
|
ByteString |
getParentNameBytes()
The name of the group's parent, if it has one.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Group.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
Group.Builder |
mergeFrom(Group other) |
Group.Builder |
mergeFrom(Message other) |
Group.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
Group.Builder |
setDisplayName(java.lang.String value)
A user-assigned name for this group, used only for display purposes.
|
Group.Builder |
setDisplayNameBytes(ByteString value)
A user-assigned name for this group, used only for display purposes.
|
Group.Builder |
setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
Group.Builder |
setFilter(java.lang.String value)
The filter used to determine which monitored resources belong to this group.
|
Group.Builder |
setFilterBytes(ByteString value)
The filter used to determine which monitored resources belong to this group.
|
Group.Builder |
setIsCluster(boolean value)
If true, the members of this group are considered to be a cluster.
|
Group.Builder |
setName(java.lang.String value)
Output only.
|
Group.Builder |
setNameBytes(ByteString value)
Output only.
|
Group.Builder |
setParentName(java.lang.String value)
The name of the group's parent, if it has one.
|
Group.Builder |
setParentNameBytes(ByteString value)
The name of the group's parent, if it has one.
|
Group.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Group.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<Group.Builder>public Group.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<Group.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<Group.Builder>public Group getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic Group build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic Group buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic Group.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<Group.Builder>public Group.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<Group.Builder>public Group.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<Group.Builder>public Group.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<Group.Builder>public Group.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<Group.Builder>public Group.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<Group.Builder>public Group.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<Group.Builder>public Group.Builder mergeFrom(Group other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<Group.Builder>public Group.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<Group.Builder>java.io.IOExceptionpublic java.lang.String getName()
Output only. The name of this group. The format is
`"projects/{project_id_or_number}/groups/{group_id}"`.
When creating a group, this field is ignored and a new name is created
consisting of the project specified in the call to `CreateGroup`
and a unique `{group_id}` that is generated automatically.
string name = 1;getName in interface GroupOrBuilderpublic ByteString getNameBytes()
Output only. The name of this group. The format is
`"projects/{project_id_or_number}/groups/{group_id}"`.
When creating a group, this field is ignored and a new name is created
consisting of the project specified in the call to `CreateGroup`
and a unique `{group_id}` that is generated automatically.
string name = 1;getNameBytes in interface GroupOrBuilderpublic Group.Builder setName(java.lang.String value)
Output only. The name of this group. The format is
`"projects/{project_id_or_number}/groups/{group_id}"`.
When creating a group, this field is ignored and a new name is created
consisting of the project specified in the call to `CreateGroup`
and a unique `{group_id}` that is generated automatically.
string name = 1;public Group.Builder clearName()
Output only. The name of this group. The format is
`"projects/{project_id_or_number}/groups/{group_id}"`.
When creating a group, this field is ignored and a new name is created
consisting of the project specified in the call to `CreateGroup`
and a unique `{group_id}` that is generated automatically.
string name = 1;public Group.Builder setNameBytes(ByteString value)
Output only. The name of this group. The format is
`"projects/{project_id_or_number}/groups/{group_id}"`.
When creating a group, this field is ignored and a new name is created
consisting of the project specified in the call to `CreateGroup`
and a unique `{group_id}` that is generated automatically.
string name = 1;public java.lang.String getDisplayName()
A user-assigned name for this group, used only for display purposes.
string display_name = 2;getDisplayName in interface GroupOrBuilderpublic ByteString getDisplayNameBytes()
A user-assigned name for this group, used only for display purposes.
string display_name = 2;getDisplayNameBytes in interface GroupOrBuilderpublic Group.Builder setDisplayName(java.lang.String value)
A user-assigned name for this group, used only for display purposes.
string display_name = 2;public Group.Builder clearDisplayName()
A user-assigned name for this group, used only for display purposes.
string display_name = 2;public Group.Builder setDisplayNameBytes(ByteString value)
A user-assigned name for this group, used only for display purposes.
string display_name = 2;public java.lang.String getParentName()
The name of the group's parent, if it has one.
The format is `"projects/{project_id_or_number}/groups/{group_id}"`.
For groups with no parent, `parentName` is the empty string, `""`.
string parent_name = 3;getParentName in interface GroupOrBuilderpublic ByteString getParentNameBytes()
The name of the group's parent, if it has one.
The format is `"projects/{project_id_or_number}/groups/{group_id}"`.
For groups with no parent, `parentName` is the empty string, `""`.
string parent_name = 3;getParentNameBytes in interface GroupOrBuilderpublic Group.Builder setParentName(java.lang.String value)
The name of the group's parent, if it has one.
The format is `"projects/{project_id_or_number}/groups/{group_id}"`.
For groups with no parent, `parentName` is the empty string, `""`.
string parent_name = 3;public Group.Builder clearParentName()
The name of the group's parent, if it has one.
The format is `"projects/{project_id_or_number}/groups/{group_id}"`.
For groups with no parent, `parentName` is the empty string, `""`.
string parent_name = 3;public Group.Builder setParentNameBytes(ByteString value)
The name of the group's parent, if it has one.
The format is `"projects/{project_id_or_number}/groups/{group_id}"`.
For groups with no parent, `parentName` is the empty string, `""`.
string parent_name = 3;public java.lang.String getFilter()
The filter used to determine which monitored resources belong to this group.
string filter = 5;getFilter in interface GroupOrBuilderpublic ByteString getFilterBytes()
The filter used to determine which monitored resources belong to this group.
string filter = 5;getFilterBytes in interface GroupOrBuilderpublic Group.Builder setFilter(java.lang.String value)
The filter used to determine which monitored resources belong to this group.
string filter = 5;public Group.Builder clearFilter()
The filter used to determine which monitored resources belong to this group.
string filter = 5;public Group.Builder setFilterBytes(ByteString value)
The filter used to determine which monitored resources belong to this group.
string filter = 5;public boolean getIsCluster()
If true, the members of this group are considered to be a cluster. The system can perform additional analysis on groups that are clusters.
bool is_cluster = 6;getIsCluster in interface GroupOrBuilderpublic Group.Builder setIsCluster(boolean value)
If true, the members of this group are considered to be a cluster. The system can perform additional analysis on groups that are clusters.
bool is_cluster = 6;public Group.Builder clearIsCluster()
If true, the members of this group are considered to be a cluster. The system can perform additional analysis on groups that are clusters.
bool is_cluster = 6;public final Group.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<Group.Builder>public final Group.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<Group.Builder>