Class ListMembershipsRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ListMembershipsRequest.Builder>
com.google.cloud.gkehub.v1.ListMembershipsRequest.Builder
All Implemented Interfaces:
ListMembershipsRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ListMembershipsRequest

public static final class ListMembershipsRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListMembershipsRequest.Builder> implements ListMembershipsRequestOrBuilder
 Request message for `GkeHub.ListMemberships` method.
 
Protobuf type google.cloud.gkehub.v1.ListMembershipsRequest
  • 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<ListMembershipsRequest.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<ListMembershipsRequest.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<ListMembershipsRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      public ListMembershipsRequest.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<ListMembershipsRequest.Builder>
    • mergeFrom

    • isInitialized

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

      public ListMembershipsRequest.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<ListMembershipsRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. The parent (project and location) where the Memberships will be
       listed. Specified in the format `projects/*/locations/*`.
       `projects/*/locations/-` list memberships in all the regions.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface ListMembershipsRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The parent (project and location) where the Memberships will be
       listed. Specified in the format `projects/*/locations/*`.
       `projects/*/locations/-` list memberships in all the regions.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface ListMembershipsRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public ListMembershipsRequest.Builder setParent(String value)
       Required. The parent (project and location) where the Memberships will be
       listed. Specified in the format `projects/*/locations/*`.
       `projects/*/locations/-` list memberships in all the regions.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public ListMembershipsRequest.Builder clearParent()
       Required. The parent (project and location) where the Memberships will be
       listed. Specified in the format `projects/*/locations/*`.
       `projects/*/locations/-` list memberships in all the regions.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public ListMembershipsRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The parent (project and location) where the Memberships will be
       listed. Specified in the format `projects/*/locations/*`.
       `projects/*/locations/-` list memberships in all the regions.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • getPageSize

      public int getPageSize()
       Optional. When requesting a 'page' of resources, `page_size` specifies
       number of resources to return. If unspecified or set to 0, all resources
       will be returned.
       
      int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPageSize in interface ListMembershipsRequestOrBuilder
      Returns:
      The pageSize.
    • setPageSize

      public ListMembershipsRequest.Builder setPageSize(int value)
       Optional. When requesting a 'page' of resources, `page_size` specifies
       number of resources to return. If unspecified or set to 0, all resources
       will be returned.
       
      int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The pageSize to set.
      Returns:
      This builder for chaining.
    • clearPageSize

      public ListMembershipsRequest.Builder clearPageSize()
       Optional. When requesting a 'page' of resources, `page_size` specifies
       number of resources to return. If unspecified or set to 0, all resources
       will be returned.
       
      int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getPageToken

      public String getPageToken()
       Optional. Token returned by previous call to `ListMemberships` which
       specifies the position in the list from where to continue listing the
       resources.
       
      string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPageToken in interface ListMembershipsRequestOrBuilder
      Returns:
      The pageToken.
    • getPageTokenBytes

      public com.google.protobuf.ByteString getPageTokenBytes()
       Optional. Token returned by previous call to `ListMemberships` which
       specifies the position in the list from where to continue listing the
       resources.
       
      string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPageTokenBytes in interface ListMembershipsRequestOrBuilder
      Returns:
      The bytes for pageToken.
    • setPageToken

      public ListMembershipsRequest.Builder setPageToken(String value)
       Optional. Token returned by previous call to `ListMemberships` which
       specifies the position in the list from where to continue listing the
       resources.
       
      string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The pageToken to set.
      Returns:
      This builder for chaining.
    • clearPageToken

      public ListMembershipsRequest.Builder clearPageToken()
       Optional. Token returned by previous call to `ListMemberships` which
       specifies the position in the list from where to continue listing the
       resources.
       
      string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setPageTokenBytes

      public ListMembershipsRequest.Builder setPageTokenBytes(com.google.protobuf.ByteString value)
       Optional. Token returned by previous call to `ListMemberships` which
       specifies the position in the list from where to continue listing the
       resources.
       
      string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for pageToken to set.
      Returns:
      This builder for chaining.
    • getFilter

      public String getFilter()
       Optional. Lists Memberships that match the filter expression, following the
       syntax outlined in https://google.aip.dev/160.
      
       Examples:
      
       - Name is `bar` in project `foo-proj` and location `global`:
      
       name = "projects/foo-proj/locations/global/membership/bar"
      
       - Memberships that have a label called `foo`:
      
       labels.foo:*
      
       - Memberships that have a label called `foo` whose value is `bar`:
      
       labels.foo = bar
      
       - Memberships in the CREATING state:
      
       state = CREATING
       
      string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFilter in interface ListMembershipsRequestOrBuilder
      Returns:
      The filter.
    • getFilterBytes

      public com.google.protobuf.ByteString getFilterBytes()
       Optional. Lists Memberships that match the filter expression, following the
       syntax outlined in https://google.aip.dev/160.
      
       Examples:
      
       - Name is `bar` in project `foo-proj` and location `global`:
      
       name = "projects/foo-proj/locations/global/membership/bar"
      
       - Memberships that have a label called `foo`:
      
       labels.foo:*
      
       - Memberships that have a label called `foo` whose value is `bar`:
      
       labels.foo = bar
      
       - Memberships in the CREATING state:
      
       state = CREATING
       
      string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFilterBytes in interface ListMembershipsRequestOrBuilder
      Returns:
      The bytes for filter.
    • setFilter

      public ListMembershipsRequest.Builder setFilter(String value)
       Optional. Lists Memberships that match the filter expression, following the
       syntax outlined in https://google.aip.dev/160.
      
       Examples:
      
       - Name is `bar` in project `foo-proj` and location `global`:
      
       name = "projects/foo-proj/locations/global/membership/bar"
      
       - Memberships that have a label called `foo`:
      
       labels.foo:*
      
       - Memberships that have a label called `foo` whose value is `bar`:
      
       labels.foo = bar
      
       - Memberships in the CREATING state:
      
       state = CREATING
       
      string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The filter to set.
      Returns:
      This builder for chaining.
    • clearFilter

      public ListMembershipsRequest.Builder clearFilter()
       Optional. Lists Memberships that match the filter expression, following the
       syntax outlined in https://google.aip.dev/160.
      
       Examples:
      
       - Name is `bar` in project `foo-proj` and location `global`:
      
       name = "projects/foo-proj/locations/global/membership/bar"
      
       - Memberships that have a label called `foo`:
      
       labels.foo:*
      
       - Memberships that have a label called `foo` whose value is `bar`:
      
       labels.foo = bar
      
       - Memberships in the CREATING state:
      
       state = CREATING
       
      string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setFilterBytes

      public ListMembershipsRequest.Builder setFilterBytes(com.google.protobuf.ByteString value)
       Optional. Lists Memberships that match the filter expression, following the
       syntax outlined in https://google.aip.dev/160.
      
       Examples:
      
       - Name is `bar` in project `foo-proj` and location `global`:
      
       name = "projects/foo-proj/locations/global/membership/bar"
      
       - Memberships that have a label called `foo`:
      
       labels.foo:*
      
       - Memberships that have a label called `foo` whose value is `bar`:
      
       labels.foo = bar
      
       - Memberships in the CREATING state:
      
       state = CREATING
       
      string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for filter to set.
      Returns:
      This builder for chaining.
    • getOrderBy

      public String getOrderBy()
       Optional. One or more fields to compare and use to sort the output.
       See https://google.aip.dev/132#ordering.
       
      string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOrderBy in interface ListMembershipsRequestOrBuilder
      Returns:
      The orderBy.
    • getOrderByBytes

      public com.google.protobuf.ByteString getOrderByBytes()
       Optional. One or more fields to compare and use to sort the output.
       See https://google.aip.dev/132#ordering.
       
      string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOrderByBytes in interface ListMembershipsRequestOrBuilder
      Returns:
      The bytes for orderBy.
    • setOrderBy

      public ListMembershipsRequest.Builder setOrderBy(String value)
       Optional. One or more fields to compare and use to sort the output.
       See https://google.aip.dev/132#ordering.
       
      string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The orderBy to set.
      Returns:
      This builder for chaining.
    • clearOrderBy

      public ListMembershipsRequest.Builder clearOrderBy()
       Optional. One or more fields to compare and use to sort the output.
       See https://google.aip.dev/132#ordering.
       
      string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setOrderByBytes

      public ListMembershipsRequest.Builder setOrderByBytes(com.google.protobuf.ByteString value)
       Optional. One or more fields to compare and use to sort the output.
       See https://google.aip.dev/132#ordering.
       
      string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for orderBy to set.
      Returns:
      This builder for chaining.