Class ListBoundMembershipsRequest.Builder

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

public static final class ListBoundMembershipsRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListBoundMembershipsRequest.Builder> implements ListBoundMembershipsRequestOrBuilder
 Request to list Memberships bound to a Scope.
 
Protobuf type google.cloud.gkehub.v1.ListBoundMembershipsRequest
  • 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<ListBoundMembershipsRequest.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<ListBoundMembershipsRequest.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<ListBoundMembershipsRequest.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public ListBoundMembershipsRequest.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<ListBoundMembershipsRequest.Builder>
      Throws:
      IOException
    • getScopeName

      public String getScopeName()
       Required. Name of the Scope, in the format
       `projects/*/locations/global/scopes/*`, to which the Memberships are bound.
       
      string scope_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getScopeName in interface ListBoundMembershipsRequestOrBuilder
      Returns:
      The scopeName.
    • getScopeNameBytes

      public com.google.protobuf.ByteString getScopeNameBytes()
       Required. Name of the Scope, in the format
       `projects/*/locations/global/scopes/*`, to which the Memberships are bound.
       
      string scope_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getScopeNameBytes in interface ListBoundMembershipsRequestOrBuilder
      Returns:
      The bytes for scopeName.
    • setScopeName

      public ListBoundMembershipsRequest.Builder setScopeName(String value)
       Required. Name of the Scope, in the format
       `projects/*/locations/global/scopes/*`, to which the Memberships are bound.
       
      string scope_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The scopeName to set.
      Returns:
      This builder for chaining.
    • clearScopeName

      public ListBoundMembershipsRequest.Builder clearScopeName()
       Required. Name of the Scope, in the format
       `projects/*/locations/global/scopes/*`, to which the Memberships are bound.
       
      string scope_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setScopeNameBytes

      public ListBoundMembershipsRequest.Builder setScopeNameBytes(com.google.protobuf.ByteString value)
       Required. Name of the Scope, in the format
       `projects/*/locations/global/scopes/*`, to which the Memberships are bound.
       
      string scope_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for scopeName 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. Currently, filtering
       can be done only based on Memberships's `name`, `labels`, `create_time`,
       `update_time`, and `unique_id`.
       
      string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFilter in interface ListBoundMembershipsRequestOrBuilder
      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. Currently, filtering
       can be done only based on Memberships's `name`, `labels`, `create_time`,
       `update_time`, and `unique_id`.
       
      string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFilterBytes in interface ListBoundMembershipsRequestOrBuilder
      Returns:
      The bytes for filter.
    • setFilter

      public ListBoundMembershipsRequest.Builder setFilter(String value)
       Optional. Lists Memberships that match the filter expression, following the
       syntax outlined in https://google.aip.dev/160. Currently, filtering
       can be done only based on Memberships's `name`, `labels`, `create_time`,
       `update_time`, and `unique_id`.
       
      string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The filter to set.
      Returns:
      This builder for chaining.
    • clearFilter

       Optional. Lists Memberships that match the filter expression, following the
       syntax outlined in https://google.aip.dev/160. Currently, filtering
       can be done only based on Memberships's `name`, `labels`, `create_time`,
       `update_time`, and `unique_id`.
       
      string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setFilterBytes

      public ListBoundMembershipsRequest.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. Currently, filtering
       can be done only based on Memberships's `name`, `labels`, `create_time`,
       `update_time`, and `unique_id`.
       
      string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for filter 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. Pagination is currently not supported; therefore, setting
       this field does not have any impact for now.
       
      int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPageSize in interface ListBoundMembershipsRequestOrBuilder
      Returns:
      The pageSize.
    • setPageSize

      public ListBoundMembershipsRequest.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. Pagination is currently not supported; therefore, setting
       this field does not have any impact for now.
       
      int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The pageSize to set.
      Returns:
      This builder for chaining.
    • clearPageSize

      public ListBoundMembershipsRequest.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. Pagination is currently not supported; therefore, setting
       this field does not have any impact for now.
       
      int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getPageToken

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

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

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

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

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