public static final class Group.Builder extends com.google.protobuf.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(com.google.protobuf.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(com.google.protobuf.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(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Group.Builder |
clearParentName()
The name of the group's parent, if it has one.
|
Group.Builder |
clone() |
Group |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getDisplayName()
A user-assigned name for this group, used only for display purposes.
|
com.google.protobuf.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.
|
com.google.protobuf.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.
|
GroupName |
getNameAsGroupName() |
com.google.protobuf.ByteString |
getNameBytes()
Output only.
|
java.lang.String |
getParentName()
The name of the group's parent, if it has one.
|
GroupName |
getParentNameAsGroupName() |
com.google.protobuf.ByteString |
getParentNameBytes()
The name of the group's parent, if it has one.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Group.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Group.Builder |
mergeFrom(Group other) |
Group.Builder |
mergeFrom(com.google.protobuf.Message other) |
Group.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Group.Builder |
setDisplayName(java.lang.String value)
A user-assigned name for this group, used only for display purposes.
|
Group.Builder |
setDisplayNameBytes(com.google.protobuf.ByteString value)
A user-assigned name for this group, used only for display purposes.
|
Group.Builder |
setField(com.google.protobuf.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(com.google.protobuf.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(com.google.protobuf.ByteString value)
Output only.
|
Group.Builder |
setNameWithGroupName(GroupName value) |
Group.Builder |
setParentName(java.lang.String value)
The name of the group's parent, if it has one.
|
Group.Builder |
setParentNameBytes(com.google.protobuf.ByteString value)
The name of the group's parent, if it has one.
|
Group.Builder |
setParentNameWithGroupName(GroupName value) |
Group.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Group.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, parseUnknownFieldfindInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Group.Builder>public Group.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Group.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<Group.Builder>public Group getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Group build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Group buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Group.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Group.Builder>public Group.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Group.Builder>public Group.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Group.Builder>public Group.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Group.Builder>public Group.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Group.Builder>public Group.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Group.Builder>public Group.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Group.Builder>public Group.Builder mergeFrom(Group other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Group.Builder>public Group.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.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 com.google.protobuf.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(com.google.protobuf.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 com.google.protobuf.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(com.google.protobuf.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 com.google.protobuf.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(com.google.protobuf.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 com.google.protobuf.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(com.google.protobuf.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(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Group.Builder>public final Group.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Group.Builder>public final Group.Builder setNameWithGroupName(GroupName value)
public final GroupName getNameAsGroupName()
public final Group.Builder setParentNameWithGroupName(GroupName value)
public final GroupName getParentNameAsGroupName()