Class ListHubSpokesRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ListHubSpokesRequest.Builder>
com.google.cloud.networkconnectivity.v1beta.ListHubSpokesRequest.Builder
All Implemented Interfaces:
ListHubSpokesRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ListHubSpokesRequest

public static final class ListHubSpokesRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListHubSpokesRequest.Builder> implements ListHubSpokesRequestOrBuilder
 The request for
 [HubService.ListHubSpokes][google.cloud.networkconnectivity.v1beta.HubService.ListHubSpokes].
 
Protobuf type google.cloud.networkconnectivity.v1beta.ListHubSpokesRequest
  • 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<ListHubSpokesRequest.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<ListHubSpokesRequest.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<ListHubSpokesRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ListHubSpokesRequest.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<ListHubSpokesRequest.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Required. The name of the hub.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getName in interface ListHubSpokesRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. The name of the hub.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getNameBytes in interface ListHubSpokesRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

      public ListHubSpokesRequest.Builder setName(String value)
       Required. The name of the hub.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public ListHubSpokesRequest.Builder clearName()
       Required. The name of the hub.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setNameBytes

      public ListHubSpokesRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. The name of the hub.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getSpokeLocationsList

      public com.google.protobuf.ProtocolStringList getSpokeLocationsList()
       A list of locations.
       Specify one of the following: `[global]`, a single region (for
       example, `[us-central1]`), or a combination of
       values (for example, `[global, us-central1, us-west1]`).
       If the spoke_locations field is populated, the list of results
       includes only spokes in the specified location.
       If the spoke_locations field is not populated, the list of results
       includes spokes in all locations.
       
      repeated string spoke_locations = 2;
      Specified by:
      getSpokeLocationsList in interface ListHubSpokesRequestOrBuilder
      Returns:
      A list containing the spokeLocations.
    • getSpokeLocationsCount

      public int getSpokeLocationsCount()
       A list of locations.
       Specify one of the following: `[global]`, a single region (for
       example, `[us-central1]`), or a combination of
       values (for example, `[global, us-central1, us-west1]`).
       If the spoke_locations field is populated, the list of results
       includes only spokes in the specified location.
       If the spoke_locations field is not populated, the list of results
       includes spokes in all locations.
       
      repeated string spoke_locations = 2;
      Specified by:
      getSpokeLocationsCount in interface ListHubSpokesRequestOrBuilder
      Returns:
      The count of spokeLocations.
    • getSpokeLocations

      public String getSpokeLocations(int index)
       A list of locations.
       Specify one of the following: `[global]`, a single region (for
       example, `[us-central1]`), or a combination of
       values (for example, `[global, us-central1, us-west1]`).
       If the spoke_locations field is populated, the list of results
       includes only spokes in the specified location.
       If the spoke_locations field is not populated, the list of results
       includes spokes in all locations.
       
      repeated string spoke_locations = 2;
      Specified by:
      getSpokeLocations in interface ListHubSpokesRequestOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The spokeLocations at the given index.
    • getSpokeLocationsBytes

      public com.google.protobuf.ByteString getSpokeLocationsBytes(int index)
       A list of locations.
       Specify one of the following: `[global]`, a single region (for
       example, `[us-central1]`), or a combination of
       values (for example, `[global, us-central1, us-west1]`).
       If the spoke_locations field is populated, the list of results
       includes only spokes in the specified location.
       If the spoke_locations field is not populated, the list of results
       includes spokes in all locations.
       
      repeated string spoke_locations = 2;
      Specified by:
      getSpokeLocationsBytes in interface ListHubSpokesRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the spokeLocations at the given index.
    • setSpokeLocations

      public ListHubSpokesRequest.Builder setSpokeLocations(int index, String value)
       A list of locations.
       Specify one of the following: `[global]`, a single region (for
       example, `[us-central1]`), or a combination of
       values (for example, `[global, us-central1, us-west1]`).
       If the spoke_locations field is populated, the list of results
       includes only spokes in the specified location.
       If the spoke_locations field is not populated, the list of results
       includes spokes in all locations.
       
      repeated string spoke_locations = 2;
      Parameters:
      index - The index to set the value at.
      value - The spokeLocations to set.
      Returns:
      This builder for chaining.
    • addSpokeLocations

      public ListHubSpokesRequest.Builder addSpokeLocations(String value)
       A list of locations.
       Specify one of the following: `[global]`, a single region (for
       example, `[us-central1]`), or a combination of
       values (for example, `[global, us-central1, us-west1]`).
       If the spoke_locations field is populated, the list of results
       includes only spokes in the specified location.
       If the spoke_locations field is not populated, the list of results
       includes spokes in all locations.
       
      repeated string spoke_locations = 2;
      Parameters:
      value - The spokeLocations to add.
      Returns:
      This builder for chaining.
    • addAllSpokeLocations

      public ListHubSpokesRequest.Builder addAllSpokeLocations(Iterable<String> values)
       A list of locations.
       Specify one of the following: `[global]`, a single region (for
       example, `[us-central1]`), or a combination of
       values (for example, `[global, us-central1, us-west1]`).
       If the spoke_locations field is populated, the list of results
       includes only spokes in the specified location.
       If the spoke_locations field is not populated, the list of results
       includes spokes in all locations.
       
      repeated string spoke_locations = 2;
      Parameters:
      values - The spokeLocations to add.
      Returns:
      This builder for chaining.
    • clearSpokeLocations

      public ListHubSpokesRequest.Builder clearSpokeLocations()
       A list of locations.
       Specify one of the following: `[global]`, a single region (for
       example, `[us-central1]`), or a combination of
       values (for example, `[global, us-central1, us-west1]`).
       If the spoke_locations field is populated, the list of results
       includes only spokes in the specified location.
       If the spoke_locations field is not populated, the list of results
       includes spokes in all locations.
       
      repeated string spoke_locations = 2;
      Returns:
      This builder for chaining.
    • addSpokeLocationsBytes

      public ListHubSpokesRequest.Builder addSpokeLocationsBytes(com.google.protobuf.ByteString value)
       A list of locations.
       Specify one of the following: `[global]`, a single region (for
       example, `[us-central1]`), or a combination of
       values (for example, `[global, us-central1, us-west1]`).
       If the spoke_locations field is populated, the list of results
       includes only spokes in the specified location.
       If the spoke_locations field is not populated, the list of results
       includes spokes in all locations.
       
      repeated string spoke_locations = 2;
      Parameters:
      value - The bytes of the spokeLocations to add.
      Returns:
      This builder for chaining.
    • getPageSize

      public int getPageSize()
       The maximum number of results to return per page.
       
      int32 page_size = 3;
      Specified by:
      getPageSize in interface ListHubSpokesRequestOrBuilder
      Returns:
      The pageSize.
    • setPageSize

      public ListHubSpokesRequest.Builder setPageSize(int value)
       The maximum number of results to return per page.
       
      int32 page_size = 3;
      Parameters:
      value - The pageSize to set.
      Returns:
      This builder for chaining.
    • clearPageSize

      public ListHubSpokesRequest.Builder clearPageSize()
       The maximum number of results to return per page.
       
      int32 page_size = 3;
      Returns:
      This builder for chaining.
    • getPageToken

      public String getPageToken()
       The page token.
       
      string page_token = 4;
      Specified by:
      getPageToken in interface ListHubSpokesRequestOrBuilder
      Returns:
      The pageToken.
    • getPageTokenBytes

      public com.google.protobuf.ByteString getPageTokenBytes()
       The page token.
       
      string page_token = 4;
      Specified by:
      getPageTokenBytes in interface ListHubSpokesRequestOrBuilder
      Returns:
      The bytes for pageToken.
    • setPageToken

      public ListHubSpokesRequest.Builder setPageToken(String value)
       The page token.
       
      string page_token = 4;
      Parameters:
      value - The pageToken to set.
      Returns:
      This builder for chaining.
    • clearPageToken

      public ListHubSpokesRequest.Builder clearPageToken()
       The page token.
       
      string page_token = 4;
      Returns:
      This builder for chaining.
    • setPageTokenBytes

      public ListHubSpokesRequest.Builder setPageTokenBytes(com.google.protobuf.ByteString value)
       The page token.
       
      string page_token = 4;
      Parameters:
      value - The bytes for pageToken to set.
      Returns:
      This builder for chaining.
    • getFilter

      public String getFilter()
       An expression that filters the list of results.
       
      string filter = 5;
      Specified by:
      getFilter in interface ListHubSpokesRequestOrBuilder
      Returns:
      The filter.
    • getFilterBytes

      public com.google.protobuf.ByteString getFilterBytes()
       An expression that filters the list of results.
       
      string filter = 5;
      Specified by:
      getFilterBytes in interface ListHubSpokesRequestOrBuilder
      Returns:
      The bytes for filter.
    • setFilter

      public ListHubSpokesRequest.Builder setFilter(String value)
       An expression that filters the list of results.
       
      string filter = 5;
      Parameters:
      value - The filter to set.
      Returns:
      This builder for chaining.
    • clearFilter

      public ListHubSpokesRequest.Builder clearFilter()
       An expression that filters the list of results.
       
      string filter = 5;
      Returns:
      This builder for chaining.
    • setFilterBytes

      public ListHubSpokesRequest.Builder setFilterBytes(com.google.protobuf.ByteString value)
       An expression that filters the list of results.
       
      string filter = 5;
      Parameters:
      value - The bytes for filter to set.
      Returns:
      This builder for chaining.
    • getOrderBy

      public String getOrderBy()
       Sort the results by name or create_time.
       
      string order_by = 6;
      Specified by:
      getOrderBy in interface ListHubSpokesRequestOrBuilder
      Returns:
      The orderBy.
    • getOrderByBytes

      public com.google.protobuf.ByteString getOrderByBytes()
       Sort the results by name or create_time.
       
      string order_by = 6;
      Specified by:
      getOrderByBytes in interface ListHubSpokesRequestOrBuilder
      Returns:
      The bytes for orderBy.
    • setOrderBy

      public ListHubSpokesRequest.Builder setOrderBy(String value)
       Sort the results by name or create_time.
       
      string order_by = 6;
      Parameters:
      value - The orderBy to set.
      Returns:
      This builder for chaining.
    • clearOrderBy

      public ListHubSpokesRequest.Builder clearOrderBy()
       Sort the results by name or create_time.
       
      string order_by = 6;
      Returns:
      This builder for chaining.
    • setOrderByBytes

      public ListHubSpokesRequest.Builder setOrderByBytes(com.google.protobuf.ByteString value)
       Sort the results by name or create_time.
       
      string order_by = 6;
      Parameters:
      value - The bytes for orderBy to set.
      Returns:
      This builder for chaining.
    • getViewValue

      public int getViewValue()
       The view of the spoke to return.
       The view that you use determines which spoke fields are included in the
       response.
       
      .google.cloud.networkconnectivity.v1beta.ListHubSpokesRequest.SpokeView view = 7;
      Specified by:
      getViewValue in interface ListHubSpokesRequestOrBuilder
      Returns:
      The enum numeric value on the wire for view.
    • setViewValue

      public ListHubSpokesRequest.Builder setViewValue(int value)
       The view of the spoke to return.
       The view that you use determines which spoke fields are included in the
       response.
       
      .google.cloud.networkconnectivity.v1beta.ListHubSpokesRequest.SpokeView view = 7;
      Parameters:
      value - The enum numeric value on the wire for view to set.
      Returns:
      This builder for chaining.
    • getView

       The view of the spoke to return.
       The view that you use determines which spoke fields are included in the
       response.
       
      .google.cloud.networkconnectivity.v1beta.ListHubSpokesRequest.SpokeView view = 7;
      Specified by:
      getView in interface ListHubSpokesRequestOrBuilder
      Returns:
      The view.
    • setView

       The view of the spoke to return.
       The view that you use determines which spoke fields are included in the
       response.
       
      .google.cloud.networkconnectivity.v1beta.ListHubSpokesRequest.SpokeView view = 7;
      Parameters:
      value - The view to set.
      Returns:
      This builder for chaining.
    • clearView

      public ListHubSpokesRequest.Builder clearView()
       The view of the spoke to return.
       The view that you use determines which spoke fields are included in the
       response.
       
      .google.cloud.networkconnectivity.v1beta.ListHubSpokesRequest.SpokeView view = 7;
      Returns:
      This builder for chaining.