Class ListTenantsResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ListTenantsResponse.Builder>
com.google.cloud.talent.v4.ListTenantsResponse.Builder
All Implemented Interfaces:
ListTenantsResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ListTenantsResponse

public static final class ListTenantsResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListTenantsResponse.Builder> implements ListTenantsResponseOrBuilder
 The List tenants response object.
 
Protobuf type google.cloud.talent.v4.ListTenantsResponse
  • 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<ListTenantsResponse.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<ListTenantsResponse.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<ListTenantsResponse.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ListTenantsResponse.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<ListTenantsResponse.Builder>
      Throws:
      IOException
    • getTenantsList

      public List<Tenant> getTenantsList()
       Tenants for the current client.
       
      repeated .google.cloud.talent.v4.Tenant tenants = 1;
      Specified by:
      getTenantsList in interface ListTenantsResponseOrBuilder
    • getTenantsCount

      public int getTenantsCount()
       Tenants for the current client.
       
      repeated .google.cloud.talent.v4.Tenant tenants = 1;
      Specified by:
      getTenantsCount in interface ListTenantsResponseOrBuilder
    • getTenants

      public Tenant getTenants(int index)
       Tenants for the current client.
       
      repeated .google.cloud.talent.v4.Tenant tenants = 1;
      Specified by:
      getTenants in interface ListTenantsResponseOrBuilder
    • setTenants

      public ListTenantsResponse.Builder setTenants(int index, Tenant value)
       Tenants for the current client.
       
      repeated .google.cloud.talent.v4.Tenant tenants = 1;
    • setTenants

      public ListTenantsResponse.Builder setTenants(int index, Tenant.Builder builderForValue)
       Tenants for the current client.
       
      repeated .google.cloud.talent.v4.Tenant tenants = 1;
    • addTenants

      public ListTenantsResponse.Builder addTenants(Tenant value)
       Tenants for the current client.
       
      repeated .google.cloud.talent.v4.Tenant tenants = 1;
    • addTenants

      public ListTenantsResponse.Builder addTenants(int index, Tenant value)
       Tenants for the current client.
       
      repeated .google.cloud.talent.v4.Tenant tenants = 1;
    • addTenants

      public ListTenantsResponse.Builder addTenants(Tenant.Builder builderForValue)
       Tenants for the current client.
       
      repeated .google.cloud.talent.v4.Tenant tenants = 1;
    • addTenants

      public ListTenantsResponse.Builder addTenants(int index, Tenant.Builder builderForValue)
       Tenants for the current client.
       
      repeated .google.cloud.talent.v4.Tenant tenants = 1;
    • addAllTenants

      public ListTenantsResponse.Builder addAllTenants(Iterable<? extends Tenant> values)
       Tenants for the current client.
       
      repeated .google.cloud.talent.v4.Tenant tenants = 1;
    • clearTenants

      public ListTenantsResponse.Builder clearTenants()
       Tenants for the current client.
       
      repeated .google.cloud.talent.v4.Tenant tenants = 1;
    • removeTenants

      public ListTenantsResponse.Builder removeTenants(int index)
       Tenants for the current client.
       
      repeated .google.cloud.talent.v4.Tenant tenants = 1;
    • getTenantsBuilder

      public Tenant.Builder getTenantsBuilder(int index)
       Tenants for the current client.
       
      repeated .google.cloud.talent.v4.Tenant tenants = 1;
    • getTenantsOrBuilder

      public TenantOrBuilder getTenantsOrBuilder(int index)
       Tenants for the current client.
       
      repeated .google.cloud.talent.v4.Tenant tenants = 1;
      Specified by:
      getTenantsOrBuilder in interface ListTenantsResponseOrBuilder
    • getTenantsOrBuilderList

      public List<? extends TenantOrBuilder> getTenantsOrBuilderList()
       Tenants for the current client.
       
      repeated .google.cloud.talent.v4.Tenant tenants = 1;
      Specified by:
      getTenantsOrBuilderList in interface ListTenantsResponseOrBuilder
    • addTenantsBuilder

      public Tenant.Builder addTenantsBuilder()
       Tenants for the current client.
       
      repeated .google.cloud.talent.v4.Tenant tenants = 1;
    • addTenantsBuilder

      public Tenant.Builder addTenantsBuilder(int index)
       Tenants for the current client.
       
      repeated .google.cloud.talent.v4.Tenant tenants = 1;
    • getTenantsBuilderList

      public List<Tenant.Builder> getTenantsBuilderList()
       Tenants for the current client.
       
      repeated .google.cloud.talent.v4.Tenant tenants = 1;
    • getNextPageToken

      public String getNextPageToken()
       A token to retrieve the next page of results.
       
      string next_page_token = 2;
      Specified by:
      getNextPageToken in interface ListTenantsResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       A token to retrieve the next page of results.
       
      string next_page_token = 2;
      Specified by:
      getNextPageTokenBytes in interface ListTenantsResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public ListTenantsResponse.Builder setNextPageToken(String value)
       A token to retrieve the next page of results.
       
      string next_page_token = 2;
      Parameters:
      value - The nextPageToken to set.
      Returns:
      This builder for chaining.
    • clearNextPageToken

      public ListTenantsResponse.Builder clearNextPageToken()
       A token to retrieve the next page of results.
       
      string next_page_token = 2;
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

      public ListTenantsResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       A token to retrieve the next page of results.
       
      string next_page_token = 2;
      Parameters:
      value - The bytes for nextPageToken to set.
      Returns:
      This builder for chaining.
    • hasMetadata

      public boolean hasMetadata()
       Additional information for the API invocation, such as the request
       tracking id.
       
      .google.cloud.talent.v4.ResponseMetadata metadata = 3;
      Specified by:
      hasMetadata in interface ListTenantsResponseOrBuilder
      Returns:
      Whether the metadata field is set.
    • getMetadata

      public ResponseMetadata getMetadata()
       Additional information for the API invocation, such as the request
       tracking id.
       
      .google.cloud.talent.v4.ResponseMetadata metadata = 3;
      Specified by:
      getMetadata in interface ListTenantsResponseOrBuilder
      Returns:
      The metadata.
    • setMetadata

      public ListTenantsResponse.Builder setMetadata(ResponseMetadata value)
       Additional information for the API invocation, such as the request
       tracking id.
       
      .google.cloud.talent.v4.ResponseMetadata metadata = 3;
    • setMetadata

      public ListTenantsResponse.Builder setMetadata(ResponseMetadata.Builder builderForValue)
       Additional information for the API invocation, such as the request
       tracking id.
       
      .google.cloud.talent.v4.ResponseMetadata metadata = 3;
    • mergeMetadata

      public ListTenantsResponse.Builder mergeMetadata(ResponseMetadata value)
       Additional information for the API invocation, such as the request
       tracking id.
       
      .google.cloud.talent.v4.ResponseMetadata metadata = 3;
    • clearMetadata

      public ListTenantsResponse.Builder clearMetadata()
       Additional information for the API invocation, such as the request
       tracking id.
       
      .google.cloud.talent.v4.ResponseMetadata metadata = 3;
    • getMetadataBuilder

      public ResponseMetadata.Builder getMetadataBuilder()
       Additional information for the API invocation, such as the request
       tracking id.
       
      .google.cloud.talent.v4.ResponseMetadata metadata = 3;
    • getMetadataOrBuilder

      public ResponseMetadataOrBuilder getMetadataOrBuilder()
       Additional information for the API invocation, such as the request
       tracking id.
       
      .google.cloud.talent.v4.ResponseMetadata metadata = 3;
      Specified by:
      getMetadataOrBuilder in interface ListTenantsResponseOrBuilder