Class ListHubSpokesResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ListHubSpokesResponse.Builder>
com.google.cloud.networkconnectivity.v1beta.ListHubSpokesResponse.Builder
- All Implemented Interfaces:
ListHubSpokesResponseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ListHubSpokesResponse
public static final class ListHubSpokesResponse.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ListHubSpokesResponse.Builder>
implements ListHubSpokesResponseOrBuilder
The response for [HubService.ListHubSpokes][google.cloud.networkconnectivity.v1beta.HubService.ListHubSpokes].Protobuf type
google.cloud.networkconnectivity.v1beta.ListHubSpokesResponse-
Method Summary
Modifier and TypeMethodDescriptionaddAllSpokes(Iterable<? extends Spoke> values) The requested spokes.addAllUnreachable(Iterable<String> values) Locations that could not be reached.The requested spokes.addSpokes(int index, Spoke.Builder builderForValue) The requested spokes.The requested spokes.addSpokes(Spoke.Builder builderForValue) The requested spokes.The requested spokes.addSpokesBuilder(int index) The requested spokes.addUnreachable(String value) Locations that could not be reached.addUnreachableBytes(com.google.protobuf.ByteString value) Locations that could not be reached.build()clear()The token for the next page of the response.The requested spokes.Locations that could not be reached.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe token for the next page of the response.com.google.protobuf.ByteStringThe token for the next page of the response.getSpokes(int index) The requested spokes.getSpokesBuilder(int index) The requested spokes.The requested spokes.intThe requested spokes.The requested spokes.getSpokesOrBuilder(int index) The requested spokes.List<? extends SpokeOrBuilder>The requested spokes.getUnreachable(int index) Locations that could not be reached.com.google.protobuf.ByteStringgetUnreachableBytes(int index) Locations that could not be reached.intLocations that could not be reached.com.google.protobuf.ProtocolStringListLocations that could not be reached.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(ListHubSpokesResponse other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeSpokes(int index) The requested spokes.setNextPageToken(String value) The token for the next page of the response.setNextPageTokenBytes(com.google.protobuf.ByteString value) The token for the next page of the response.The requested spokes.setSpokes(int index, Spoke.Builder builderForValue) The requested spokes.setUnreachable(int index, String value) Locations that could not be reached.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<ListHubSpokesResponse.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<ListHubSpokesResponse.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<ListHubSpokesResponse.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<ListHubSpokesResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ListHubSpokesResponse.Builder>
-
mergeFrom
public ListHubSpokesResponse.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<ListHubSpokesResponse.Builder>- Throws:
IOException
-
getSpokesList
The requested spokes. The spoke fields can be partially populated based on the `view` field in the request message.
repeated .google.cloud.networkconnectivity.v1beta.Spoke spokes = 1;- Specified by:
getSpokesListin interfaceListHubSpokesResponseOrBuilder
-
getSpokesCount
public int getSpokesCount()The requested spokes. The spoke fields can be partially populated based on the `view` field in the request message.
repeated .google.cloud.networkconnectivity.v1beta.Spoke spokes = 1;- Specified by:
getSpokesCountin interfaceListHubSpokesResponseOrBuilder
-
getSpokes
The requested spokes. The spoke fields can be partially populated based on the `view` field in the request message.
repeated .google.cloud.networkconnectivity.v1beta.Spoke spokes = 1;- Specified by:
getSpokesin interfaceListHubSpokesResponseOrBuilder
-
setSpokes
The requested spokes. The spoke fields can be partially populated based on the `view` field in the request message.
repeated .google.cloud.networkconnectivity.v1beta.Spoke spokes = 1; -
setSpokes
The requested spokes. The spoke fields can be partially populated based on the `view` field in the request message.
repeated .google.cloud.networkconnectivity.v1beta.Spoke spokes = 1; -
addSpokes
The requested spokes. The spoke fields can be partially populated based on the `view` field in the request message.
repeated .google.cloud.networkconnectivity.v1beta.Spoke spokes = 1; -
addSpokes
The requested spokes. The spoke fields can be partially populated based on the `view` field in the request message.
repeated .google.cloud.networkconnectivity.v1beta.Spoke spokes = 1; -
addSpokes
The requested spokes. The spoke fields can be partially populated based on the `view` field in the request message.
repeated .google.cloud.networkconnectivity.v1beta.Spoke spokes = 1; -
addSpokes
The requested spokes. The spoke fields can be partially populated based on the `view` field in the request message.
repeated .google.cloud.networkconnectivity.v1beta.Spoke spokes = 1; -
addAllSpokes
The requested spokes. The spoke fields can be partially populated based on the `view` field in the request message.
repeated .google.cloud.networkconnectivity.v1beta.Spoke spokes = 1; -
clearSpokes
The requested spokes. The spoke fields can be partially populated based on the `view` field in the request message.
repeated .google.cloud.networkconnectivity.v1beta.Spoke spokes = 1; -
removeSpokes
The requested spokes. The spoke fields can be partially populated based on the `view` field in the request message.
repeated .google.cloud.networkconnectivity.v1beta.Spoke spokes = 1; -
getSpokesBuilder
The requested spokes. The spoke fields can be partially populated based on the `view` field in the request message.
repeated .google.cloud.networkconnectivity.v1beta.Spoke spokes = 1; -
getSpokesOrBuilder
The requested spokes. The spoke fields can be partially populated based on the `view` field in the request message.
repeated .google.cloud.networkconnectivity.v1beta.Spoke spokes = 1;- Specified by:
getSpokesOrBuilderin interfaceListHubSpokesResponseOrBuilder
-
getSpokesOrBuilderList
The requested spokes. The spoke fields can be partially populated based on the `view` field in the request message.
repeated .google.cloud.networkconnectivity.v1beta.Spoke spokes = 1;- Specified by:
getSpokesOrBuilderListin interfaceListHubSpokesResponseOrBuilder
-
addSpokesBuilder
The requested spokes. The spoke fields can be partially populated based on the `view` field in the request message.
repeated .google.cloud.networkconnectivity.v1beta.Spoke spokes = 1; -
addSpokesBuilder
The requested spokes. The spoke fields can be partially populated based on the `view` field in the request message.
repeated .google.cloud.networkconnectivity.v1beta.Spoke spokes = 1; -
getSpokesBuilderList
The requested spokes. The spoke fields can be partially populated based on the `view` field in the request message.
repeated .google.cloud.networkconnectivity.v1beta.Spoke spokes = 1; -
getNextPageToken
The token for the next page of the response. To see more results, use this value as the page_token for your next request. If this value is empty, there are no more results.
string next_page_token = 2;- Specified by:
getNextPageTokenin interfaceListHubSpokesResponseOrBuilder- Returns:
- The nextPageToken.
-
getNextPageTokenBytes
public com.google.protobuf.ByteString getNextPageTokenBytes()The token for the next page of the response. To see more results, use this value as the page_token for your next request. If this value is empty, there are no more results.
string next_page_token = 2;- Specified by:
getNextPageTokenBytesin interfaceListHubSpokesResponseOrBuilder- Returns:
- The bytes for nextPageToken.
-
setNextPageToken
The token for the next page of the response. To see more results, use this value as the page_token for your next request. If this value is empty, there are no more results.
string next_page_token = 2;- Parameters:
value- The nextPageToken to set.- Returns:
- This builder for chaining.
-
clearNextPageToken
The token for the next page of the response. To see more results, use this value as the page_token for your next request. If this value is empty, there are no more results.
string next_page_token = 2;- Returns:
- This builder for chaining.
-
setNextPageTokenBytes
The token for the next page of the response. To see more results, use this value as the page_token for your next request. If this value is empty, there are no more results.
string next_page_token = 2;- Parameters:
value- The bytes for nextPageToken to set.- Returns:
- This builder for chaining.
-
getUnreachableList
public com.google.protobuf.ProtocolStringList getUnreachableList()Locations that could not be reached.
repeated string unreachable = 3;- Specified by:
getUnreachableListin interfaceListHubSpokesResponseOrBuilder- Returns:
- A list containing the unreachable.
-
getUnreachableCount
public int getUnreachableCount()Locations that could not be reached.
repeated string unreachable = 3;- Specified by:
getUnreachableCountin interfaceListHubSpokesResponseOrBuilder- Returns:
- The count of unreachable.
-
getUnreachable
Locations that could not be reached.
repeated string unreachable = 3;- Specified by:
getUnreachablein interfaceListHubSpokesResponseOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The unreachable at the given index.
-
getUnreachableBytes
public com.google.protobuf.ByteString getUnreachableBytes(int index) Locations that could not be reached.
repeated string unreachable = 3;- Specified by:
getUnreachableBytesin interfaceListHubSpokesResponseOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the unreachable at the given index.
-
setUnreachable
Locations that could not be reached.
repeated string unreachable = 3;- Parameters:
index- The index to set the value at.value- The unreachable to set.- Returns:
- This builder for chaining.
-
addUnreachable
Locations that could not be reached.
repeated string unreachable = 3;- Parameters:
value- The unreachable to add.- Returns:
- This builder for chaining.
-
addAllUnreachable
Locations that could not be reached.
repeated string unreachable = 3;- Parameters:
values- The unreachable to add.- Returns:
- This builder for chaining.
-
clearUnreachable
Locations that could not be reached.
repeated string unreachable = 3;- Returns:
- This builder for chaining.
-
addUnreachableBytes
Locations that could not be reached.
repeated string unreachable = 3;- Parameters:
value- The bytes of the unreachable to add.- Returns:
- This builder for chaining.
-