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 Summary
Modifier and TypeMethodDescriptionaddAllSpokeLocations(Iterable<String> values) A list of locations.addSpokeLocations(String value) A list of locations.addSpokeLocationsBytes(com.google.protobuf.ByteString value) A list of locations.build()clear()An expression that filters the list of results.Required.Sort the results by name or create_time.The maximum number of results to return per page.The page token.A list of locations.The view of the spoke to return.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorAn expression that filters the list of results.com.google.protobuf.ByteStringAn expression that filters the list of results.getName()Required.com.google.protobuf.ByteStringRequired.Sort the results by name or create_time.com.google.protobuf.ByteStringSort the results by name or create_time.intThe maximum number of results to return per page.The page token.com.google.protobuf.ByteStringThe page token.getSpokeLocations(int index) A list of locations.com.google.protobuf.ByteStringgetSpokeLocationsBytes(int index) A list of locations.intA list of locations.com.google.protobuf.ProtocolStringListA list of locations.getView()The view of the spoke to return.intThe view of the spoke to return.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(ListHubSpokesRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) An expression that filters the list of results.setFilterBytes(com.google.protobuf.ByteString value) An expression that filters the list of results.Required.setNameBytes(com.google.protobuf.ByteString value) Required.setOrderBy(String value) Sort the results by name or create_time.setOrderByBytes(com.google.protobuf.ByteString value) Sort the results by name or create_time.setPageSize(int value) The maximum number of results to return per page.setPageToken(String value) The page token.setPageTokenBytes(com.google.protobuf.ByteString value) The page token.setSpokeLocations(int index, String value) A list of locations.The view of the spoke to return.setViewValue(int value) The view of the spoke to return.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ListHubSpokesRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ListHubSpokesRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ListHubSpokesRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ListHubSpokesRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ListHubSpokesRequest.Builder>- Throws:
IOException
-
getName
Required. The name of the hub.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getNamein interfaceListHubSpokesRequestOrBuilder- 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:
getNameBytesin interfaceListHubSpokesRequestOrBuilder- Returns:
- The bytes for name.
-
setName
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
Required. The name of the hub.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setNameBytes
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:
getSpokeLocationsListin interfaceListHubSpokesRequestOrBuilder- 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:
getSpokeLocationsCountin interfaceListHubSpokesRequestOrBuilder- Returns:
- The count of spokeLocations.
-
getSpokeLocations
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:
getSpokeLocationsin interfaceListHubSpokesRequestOrBuilder- 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:
getSpokeLocationsBytesin interfaceListHubSpokesRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the spokeLocations at the given index.
-
setSpokeLocations
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
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
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
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
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:
getPageSizein interfaceListHubSpokesRequestOrBuilder- Returns:
- The pageSize.
-
setPageSize
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
The maximum number of results to return per page.
int32 page_size = 3;- Returns:
- This builder for chaining.
-
getPageToken
The page token.
string page_token = 4;- Specified by:
getPageTokenin interfaceListHubSpokesRequestOrBuilder- Returns:
- The pageToken.
-
getPageTokenBytes
public com.google.protobuf.ByteString getPageTokenBytes()The page token.
string page_token = 4;- Specified by:
getPageTokenBytesin interfaceListHubSpokesRequestOrBuilder- Returns:
- The bytes for pageToken.
-
setPageToken
The page token.
string page_token = 4;- Parameters:
value- The pageToken to set.- Returns:
- This builder for chaining.
-
clearPageToken
The page token.
string page_token = 4;- Returns:
- This builder for chaining.
-
setPageTokenBytes
The page token.
string page_token = 4;- Parameters:
value- The bytes for pageToken to set.- Returns:
- This builder for chaining.
-
getFilter
An expression that filters the list of results.
string filter = 5;- Specified by:
getFilterin interfaceListHubSpokesRequestOrBuilder- Returns:
- The filter.
-
getFilterBytes
public com.google.protobuf.ByteString getFilterBytes()An expression that filters the list of results.
string filter = 5;- Specified by:
getFilterBytesin interfaceListHubSpokesRequestOrBuilder- Returns:
- The bytes for filter.
-
setFilter
An expression that filters the list of results.
string filter = 5;- Parameters:
value- The filter to set.- Returns:
- This builder for chaining.
-
clearFilter
An expression that filters the list of results.
string filter = 5;- Returns:
- This builder for chaining.
-
setFilterBytes
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
Sort the results by name or create_time.
string order_by = 6;- Specified by:
getOrderByin interfaceListHubSpokesRequestOrBuilder- Returns:
- The orderBy.
-
getOrderByBytes
public com.google.protobuf.ByteString getOrderByBytes()Sort the results by name or create_time.
string order_by = 6;- Specified by:
getOrderByBytesin interfaceListHubSpokesRequestOrBuilder- Returns:
- The bytes for orderBy.
-
setOrderBy
Sort the results by name or create_time.
string order_by = 6;- Parameters:
value- The orderBy to set.- Returns:
- This builder for chaining.
-
clearOrderBy
Sort the results by name or create_time.
string order_by = 6;- Returns:
- This builder for chaining.
-
setOrderByBytes
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:
getViewValuein interfaceListHubSpokesRequestOrBuilder- Returns:
- The enum numeric value on the wire for view.
-
setViewValue
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:
getViewin interfaceListHubSpokesRequestOrBuilder- 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
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.
-