Class ListSpokesResponse.Builder

  • All Implemented Interfaces:
    ListSpokesResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    ListSpokesResponse

    public static final class ListSpokesResponse.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ListSpokesResponse.Builder>
    implements ListSpokesResponseOrBuilder
     The response for [HubService.ListSpokes][google.cloud.networkconnectivity.v1alpha1.HubService.ListSpokes].
     
    Protobuf type google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ListSpokesResponse.Builder>
      • clear

        public ListSpokesResponse.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.GeneratedMessageV3.Builder<ListSpokesResponse.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.GeneratedMessageV3.Builder<ListSpokesResponse.Builder>
      • getDefaultInstanceForType

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

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

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

        public ListSpokesResponse.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ListSpokesResponse.Builder>
      • setField

        public ListSpokesResponse.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<ListSpokesResponse.Builder>
      • clearField

        public ListSpokesResponse.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ListSpokesResponse.Builder>
      • clearOneof

        public ListSpokesResponse.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ListSpokesResponse.Builder>
      • setRepeatedField

        public ListSpokesResponse.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                           int index,
                                                           Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ListSpokesResponse.Builder>
      • addRepeatedField

        public ListSpokesResponse.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                           Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ListSpokesResponse.Builder>
      • mergeFrom

        public ListSpokesResponse.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<ListSpokesResponse.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ListSpokesResponse.Builder>
      • mergeFrom

        public ListSpokesResponse.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<ListSpokesResponse.Builder>
        Throws:
        IOException
      • getSpokesCount

        public int getSpokesCount()
         Spokes to be returned.
         
        repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1;
        Specified by:
        getSpokesCount in interface ListSpokesResponseOrBuilder
      • getSpokes

        public Spoke getSpokes​(int index)
         Spokes to be returned.
         
        repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1;
        Specified by:
        getSpokes in interface ListSpokesResponseOrBuilder
      • setSpokes

        public ListSpokesResponse.Builder setSpokes​(int index,
                                                    Spoke value)
         Spokes to be returned.
         
        repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1;
      • setSpokes

        public ListSpokesResponse.Builder setSpokes​(int index,
                                                    Spoke.Builder builderForValue)
         Spokes to be returned.
         
        repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1;
      • addSpokes

        public ListSpokesResponse.Builder addSpokes​(Spoke value)
         Spokes to be returned.
         
        repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1;
      • addSpokes

        public ListSpokesResponse.Builder addSpokes​(int index,
                                                    Spoke value)
         Spokes to be returned.
         
        repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1;
      • addSpokes

        public ListSpokesResponse.Builder addSpokes​(int index,
                                                    Spoke.Builder builderForValue)
         Spokes to be returned.
         
        repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1;
      • clearSpokes

        public ListSpokesResponse.Builder clearSpokes()
         Spokes to be returned.
         
        repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1;
      • removeSpokes

        public ListSpokesResponse.Builder removeSpokes​(int index)
         Spokes to be returned.
         
        repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1;
      • getSpokesBuilder

        public Spoke.Builder getSpokesBuilder​(int index)
         Spokes to be returned.
         
        repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1;
      • addSpokesBuilder

        public Spoke.Builder addSpokesBuilder()
         Spokes to be returned.
         
        repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1;
      • addSpokesBuilder

        public Spoke.Builder addSpokesBuilder​(int index)
         Spokes to be returned.
         
        repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1;
      • getSpokesBuilderList

        public List<Spoke.Builder> getSpokesBuilderList()
         Spokes to be returned.
         
        repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1;
      • getNextPageToken

        public String getNextPageToken()
         The next pagination token in the List response. It should be used as
         page_token for the following request. An empty value means no more result.
         
        string next_page_token = 2;
        Specified by:
        getNextPageToken in interface ListSpokesResponseOrBuilder
        Returns:
        The nextPageToken.
      • getNextPageTokenBytes

        public com.google.protobuf.ByteString getNextPageTokenBytes()
         The next pagination token in the List response. It should be used as
         page_token for the following request. An empty value means no more result.
         
        string next_page_token = 2;
        Specified by:
        getNextPageTokenBytes in interface ListSpokesResponseOrBuilder
        Returns:
        The bytes for nextPageToken.
      • setNextPageToken

        public ListSpokesResponse.Builder setNextPageToken​(String value)
         The next pagination token in the List response. It should be used as
         page_token for the following request. An empty value means no more result.
         
        string next_page_token = 2;
        Parameters:
        value - The nextPageToken to set.
        Returns:
        This builder for chaining.
      • clearNextPageToken

        public ListSpokesResponse.Builder clearNextPageToken()
         The next pagination token in the List response. It should be used as
         page_token for the following request. An empty value means no more result.
         
        string next_page_token = 2;
        Returns:
        This builder for chaining.
      • setNextPageTokenBytes

        public ListSpokesResponse.Builder setNextPageTokenBytes​(com.google.protobuf.ByteString value)
         The next pagination token in the List response. It should be used as
         page_token for the following request. An empty value means no more result.
         
        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:
        getUnreachableList in interface ListSpokesResponseOrBuilder
        Returns:
        A list containing the unreachable.
      • getUnreachableCount

        public int getUnreachableCount()
         Locations that could not be reached.
         
        repeated string unreachable = 3;
        Specified by:
        getUnreachableCount in interface ListSpokesResponseOrBuilder
        Returns:
        The count of unreachable.
      • getUnreachable

        public String getUnreachable​(int index)
         Locations that could not be reached.
         
        repeated string unreachable = 3;
        Specified by:
        getUnreachable in interface ListSpokesResponseOrBuilder
        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:
        getUnreachableBytes in interface ListSpokesResponseOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the unreachable at the given index.
      • setUnreachable

        public ListSpokesResponse.Builder setUnreachable​(int index,
                                                         String value)
         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

        public ListSpokesResponse.Builder addUnreachable​(String value)
         Locations that could not be reached.
         
        repeated string unreachable = 3;
        Parameters:
        value - The unreachable to add.
        Returns:
        This builder for chaining.
      • addAllUnreachable

        public ListSpokesResponse.Builder addAllUnreachable​(Iterable<String> values)
         Locations that could not be reached.
         
        repeated string unreachable = 3;
        Parameters:
        values - The unreachable to add.
        Returns:
        This builder for chaining.
      • clearUnreachable

        public ListSpokesResponse.Builder clearUnreachable()
         Locations that could not be reached.
         
        repeated string unreachable = 3;
        Returns:
        This builder for chaining.
      • addUnreachableBytes

        public ListSpokesResponse.Builder addUnreachableBytes​(com.google.protobuf.ByteString value)
         Locations that could not be reached.
         
        repeated string unreachable = 3;
        Parameters:
        value - The bytes of the unreachable to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final ListSpokesResponse.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ListSpokesResponse.Builder>
      • mergeUnknownFields

        public final ListSpokesResponse.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ListSpokesResponse.Builder>