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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<Group.Builder>
public Group.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<Group.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<Group.Builder>
public Group getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public Group build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public Group buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public Group.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<Group.Builder>
public Group.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<Group.Builder>
public Group.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<Group.Builder>
public Group.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<Group.Builder>
public Group.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Group.Builder>
public Group.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<Group.Builder>
public Group.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<Group.Builder>
public Group.Builder mergeFrom(Group other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<Group.Builder>
public Group.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Group.Builder>
java.io.IOException
public 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 GroupOrBuilder
public 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 GroupOrBuilder
public 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 GroupOrBuilder
public ByteString getDisplayNameBytes()
A user-assigned name for this group, used only for display purposes.
string display_name = 2;
getDisplayNameBytes
in interface GroupOrBuilder
public 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 GroupOrBuilder
public 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 GroupOrBuilder
public 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 GroupOrBuilder
public ByteString getFilterBytes()
The filter used to determine which monitored resources belong to this group.
string filter = 5;
getFilterBytes
in interface GroupOrBuilder
public 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 GroupOrBuilder
public 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.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<Group.Builder>
public final Group.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<Group.Builder>