Class ListGroupsRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ListGroupsRequest.Builder>
com.google.monitoring.v3.ListGroupsRequest.Builder
All Implemented Interfaces:
ListGroupsRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ListGroupsRequest

public static final class ListGroupsRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListGroupsRequest.Builder> implements ListGroupsRequestOrBuilder
 The `ListGroup` request.
 
Protobuf type google.monitoring.v3.ListGroupsRequest
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ListGroupsRequest.Builder>
    • clear

      public ListGroupsRequest.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ListGroupsRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ListGroupsRequest.Builder>
    • getDefaultInstanceForType

      public ListGroupsRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ListGroupsRequest build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ListGroupsRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ListGroupsRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ListGroupsRequest.Builder>
    • mergeFrom

      public ListGroupsRequest.Builder mergeFrom(ListGroupsRequest other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ListGroupsRequest.Builder>
    • mergeFrom

      public ListGroupsRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ListGroupsRequest.Builder>
      Throws:
      IOException
    • getFilterCase

      public ListGroupsRequest.FilterCase getFilterCase()
      Specified by:
      getFilterCase in interface ListGroupsRequestOrBuilder
    • clearFilter

      public ListGroupsRequest.Builder clearFilter()
    • getName

      public String getName()
       Required. The
       [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
       groups are to be listed. The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]
       
      string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getName in interface ListGroupsRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. The
       [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
       groups are to be listed. The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]
       
      string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getNameBytes in interface ListGroupsRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

      public ListGroupsRequest.Builder setName(String value)
       Required. The
       [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
       groups are to be listed. The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]
       
      string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public ListGroupsRequest.Builder clearName()
       Required. The
       [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
       groups are to be listed. The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]
       
      string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setNameBytes

      public ListGroupsRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. The
       [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
       groups are to be listed. The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]
       
      string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasChildrenOfGroup

      public boolean hasChildrenOfGroup()
       A group name. The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
      
       Returns groups whose `parent_name` field contains the group
       name.  If no groups have this parent, the results are empty.
       
      string children_of_group = 2 [(.google.api.resource_reference) = { ... }
      Specified by:
      hasChildrenOfGroup in interface ListGroupsRequestOrBuilder
      Returns:
      Whether the childrenOfGroup field is set.
    • getChildrenOfGroup

      public String getChildrenOfGroup()
       A group name. The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
      
       Returns groups whose `parent_name` field contains the group
       name.  If no groups have this parent, the results are empty.
       
      string children_of_group = 2 [(.google.api.resource_reference) = { ... }
      Specified by:
      getChildrenOfGroup in interface ListGroupsRequestOrBuilder
      Returns:
      The childrenOfGroup.
    • getChildrenOfGroupBytes

      public com.google.protobuf.ByteString getChildrenOfGroupBytes()
       A group name. The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
      
       Returns groups whose `parent_name` field contains the group
       name.  If no groups have this parent, the results are empty.
       
      string children_of_group = 2 [(.google.api.resource_reference) = { ... }
      Specified by:
      getChildrenOfGroupBytes in interface ListGroupsRequestOrBuilder
      Returns:
      The bytes for childrenOfGroup.
    • setChildrenOfGroup

      public ListGroupsRequest.Builder setChildrenOfGroup(String value)
       A group name. The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
      
       Returns groups whose `parent_name` field contains the group
       name.  If no groups have this parent, the results are empty.
       
      string children_of_group = 2 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The childrenOfGroup to set.
      Returns:
      This builder for chaining.
    • clearChildrenOfGroup

      public ListGroupsRequest.Builder clearChildrenOfGroup()
       A group name. The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
      
       Returns groups whose `parent_name` field contains the group
       name.  If no groups have this parent, the results are empty.
       
      string children_of_group = 2 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setChildrenOfGroupBytes

      public ListGroupsRequest.Builder setChildrenOfGroupBytes(com.google.protobuf.ByteString value)
       A group name. The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
      
       Returns groups whose `parent_name` field contains the group
       name.  If no groups have this parent, the results are empty.
       
      string children_of_group = 2 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for childrenOfGroup to set.
      Returns:
      This builder for chaining.
    • hasAncestorsOfGroup

      public boolean hasAncestorsOfGroup()
       A group name. The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
      
       Returns groups that are ancestors of the specified group.
       The groups are returned in order, starting with the immediate parent and
       ending with the most distant ancestor.  If the specified group has no
       immediate parent, the results are empty.
       
      string ancestors_of_group = 3 [(.google.api.resource_reference) = { ... }
      Specified by:
      hasAncestorsOfGroup in interface ListGroupsRequestOrBuilder
      Returns:
      Whether the ancestorsOfGroup field is set.
    • getAncestorsOfGroup

      public String getAncestorsOfGroup()
       A group name. The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
      
       Returns groups that are ancestors of the specified group.
       The groups are returned in order, starting with the immediate parent and
       ending with the most distant ancestor.  If the specified group has no
       immediate parent, the results are empty.
       
      string ancestors_of_group = 3 [(.google.api.resource_reference) = { ... }
      Specified by:
      getAncestorsOfGroup in interface ListGroupsRequestOrBuilder
      Returns:
      The ancestorsOfGroup.
    • getAncestorsOfGroupBytes

      public com.google.protobuf.ByteString getAncestorsOfGroupBytes()
       A group name. The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
      
       Returns groups that are ancestors of the specified group.
       The groups are returned in order, starting with the immediate parent and
       ending with the most distant ancestor.  If the specified group has no
       immediate parent, the results are empty.
       
      string ancestors_of_group = 3 [(.google.api.resource_reference) = { ... }
      Specified by:
      getAncestorsOfGroupBytes in interface ListGroupsRequestOrBuilder
      Returns:
      The bytes for ancestorsOfGroup.
    • setAncestorsOfGroup

      public ListGroupsRequest.Builder setAncestorsOfGroup(String value)
       A group name. The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
      
       Returns groups that are ancestors of the specified group.
       The groups are returned in order, starting with the immediate parent and
       ending with the most distant ancestor.  If the specified group has no
       immediate parent, the results are empty.
       
      string ancestors_of_group = 3 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The ancestorsOfGroup to set.
      Returns:
      This builder for chaining.
    • clearAncestorsOfGroup

      public ListGroupsRequest.Builder clearAncestorsOfGroup()
       A group name. The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
      
       Returns groups that are ancestors of the specified group.
       The groups are returned in order, starting with the immediate parent and
       ending with the most distant ancestor.  If the specified group has no
       immediate parent, the results are empty.
       
      string ancestors_of_group = 3 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setAncestorsOfGroupBytes

      public ListGroupsRequest.Builder setAncestorsOfGroupBytes(com.google.protobuf.ByteString value)
       A group name. The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
      
       Returns groups that are ancestors of the specified group.
       The groups are returned in order, starting with the immediate parent and
       ending with the most distant ancestor.  If the specified group has no
       immediate parent, the results are empty.
       
      string ancestors_of_group = 3 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for ancestorsOfGroup to set.
      Returns:
      This builder for chaining.
    • hasDescendantsOfGroup

      public boolean hasDescendantsOfGroup()
       A group name. The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
      
       Returns the descendants of the specified group.  This is a superset of
       the results returned by the `children_of_group` filter, and includes
       children-of-children, and so forth.
       
      string descendants_of_group = 4 [(.google.api.resource_reference) = { ... }
      Specified by:
      hasDescendantsOfGroup in interface ListGroupsRequestOrBuilder
      Returns:
      Whether the descendantsOfGroup field is set.
    • getDescendantsOfGroup

      public String getDescendantsOfGroup()
       A group name. The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
      
       Returns the descendants of the specified group.  This is a superset of
       the results returned by the `children_of_group` filter, and includes
       children-of-children, and so forth.
       
      string descendants_of_group = 4 [(.google.api.resource_reference) = { ... }
      Specified by:
      getDescendantsOfGroup in interface ListGroupsRequestOrBuilder
      Returns:
      The descendantsOfGroup.
    • getDescendantsOfGroupBytes

      public com.google.protobuf.ByteString getDescendantsOfGroupBytes()
       A group name. The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
      
       Returns the descendants of the specified group.  This is a superset of
       the results returned by the `children_of_group` filter, and includes
       children-of-children, and so forth.
       
      string descendants_of_group = 4 [(.google.api.resource_reference) = { ... }
      Specified by:
      getDescendantsOfGroupBytes in interface ListGroupsRequestOrBuilder
      Returns:
      The bytes for descendantsOfGroup.
    • setDescendantsOfGroup

      public ListGroupsRequest.Builder setDescendantsOfGroup(String value)
       A group name. The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
      
       Returns the descendants of the specified group.  This is a superset of
       the results returned by the `children_of_group` filter, and includes
       children-of-children, and so forth.
       
      string descendants_of_group = 4 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The descendantsOfGroup to set.
      Returns:
      This builder for chaining.
    • clearDescendantsOfGroup

      public ListGroupsRequest.Builder clearDescendantsOfGroup()
       A group name. The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
      
       Returns the descendants of the specified group.  This is a superset of
       the results returned by the `children_of_group` filter, and includes
       children-of-children, and so forth.
       
      string descendants_of_group = 4 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setDescendantsOfGroupBytes

      public ListGroupsRequest.Builder setDescendantsOfGroupBytes(com.google.protobuf.ByteString value)
       A group name. The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
      
       Returns the descendants of the specified group.  This is a superset of
       the results returned by the `children_of_group` filter, and includes
       children-of-children, and so forth.
       
      string descendants_of_group = 4 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for descendantsOfGroup to set.
      Returns:
      This builder for chaining.
    • getPageSize

      public int getPageSize()
       A positive number that is the maximum number of results to return.
       
      int32 page_size = 5;
      Specified by:
      getPageSize in interface ListGroupsRequestOrBuilder
      Returns:
      The pageSize.
    • setPageSize

      public ListGroupsRequest.Builder setPageSize(int value)
       A positive number that is the maximum number of results to return.
       
      int32 page_size = 5;
      Parameters:
      value - The pageSize to set.
      Returns:
      This builder for chaining.
    • clearPageSize

      public ListGroupsRequest.Builder clearPageSize()
       A positive number that is the maximum number of results to return.
       
      int32 page_size = 5;
      Returns:
      This builder for chaining.
    • getPageToken

      public String getPageToken()
       If this field is not empty then it must contain the `next_page_token` value
       returned by a previous call to this method.  Using this field causes the
       method to return additional results from the previous method call.
       
      string page_token = 6;
      Specified by:
      getPageToken in interface ListGroupsRequestOrBuilder
      Returns:
      The pageToken.
    • getPageTokenBytes

      public com.google.protobuf.ByteString getPageTokenBytes()
       If this field is not empty then it must contain the `next_page_token` value
       returned by a previous call to this method.  Using this field causes the
       method to return additional results from the previous method call.
       
      string page_token = 6;
      Specified by:
      getPageTokenBytes in interface ListGroupsRequestOrBuilder
      Returns:
      The bytes for pageToken.
    • setPageToken

      public ListGroupsRequest.Builder setPageToken(String value)
       If this field is not empty then it must contain the `next_page_token` value
       returned by a previous call to this method.  Using this field causes the
       method to return additional results from the previous method call.
       
      string page_token = 6;
      Parameters:
      value - The pageToken to set.
      Returns:
      This builder for chaining.
    • clearPageToken

      public ListGroupsRequest.Builder clearPageToken()
       If this field is not empty then it must contain the `next_page_token` value
       returned by a previous call to this method.  Using this field causes the
       method to return additional results from the previous method call.
       
      string page_token = 6;
      Returns:
      This builder for chaining.
    • setPageTokenBytes

      public ListGroupsRequest.Builder setPageTokenBytes(com.google.protobuf.ByteString value)
       If this field is not empty then it must contain the `next_page_token` value
       returned by a previous call to this method.  Using this field causes the
       method to return additional results from the previous method call.
       
      string page_token = 6;
      Parameters:
      value - The bytes for pageToken to set.
      Returns:
      This builder for chaining.