Class ListLocationsResponse.Builder

  • All Implemented Interfaces:
    ListLocationsResponseOrBuilder, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    ListLocationsResponse

    public static final class ListLocationsResponse.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ListLocationsResponse.Builder>
    implements ListLocationsResponseOrBuilder
     The response message for [Locations.ListLocations][google.cloud.location.Locations.ListLocations].
     
    Protobuf type google.cloud.location.ListLocationsResponse
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Overrides:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ListLocationsResponse.Builder>
      • clear

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

        public ListLocationsResponse getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

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

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

        public ListLocationsResponse.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<ListLocationsResponse.Builder>
      • setField

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

        public ListLocationsResponse.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<ListLocationsResponse.Builder>
      • clearOneof

        public ListLocationsResponse.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<ListLocationsResponse.Builder>
      • setRepeatedField

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

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

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

        public ListLocationsResponse.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                throws java.io.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<ListLocationsResponse.Builder>
        Throws:
        java.io.IOException
      • getLocationsList

        public java.util.List<Location> getLocationsList()
         A list of locations that matches the specified filter in the request.
         
        repeated .google.cloud.location.Location locations = 1;
        Specified by:
        getLocationsList in interface ListLocationsResponseOrBuilder
      • getLocationsCount

        public int getLocationsCount()
         A list of locations that matches the specified filter in the request.
         
        repeated .google.cloud.location.Location locations = 1;
        Specified by:
        getLocationsCount in interface ListLocationsResponseOrBuilder
      • getLocations

        public Location getLocations​(int index)
         A list of locations that matches the specified filter in the request.
         
        repeated .google.cloud.location.Location locations = 1;
        Specified by:
        getLocations in interface ListLocationsResponseOrBuilder
      • setLocations

        public ListLocationsResponse.Builder setLocations​(int index,
                                                          Location value)
         A list of locations that matches the specified filter in the request.
         
        repeated .google.cloud.location.Location locations = 1;
      • setLocations

        public ListLocationsResponse.Builder setLocations​(int index,
                                                          Location.Builder builderForValue)
         A list of locations that matches the specified filter in the request.
         
        repeated .google.cloud.location.Location locations = 1;
      • addLocations

        public ListLocationsResponse.Builder addLocations​(Location value)
         A list of locations that matches the specified filter in the request.
         
        repeated .google.cloud.location.Location locations = 1;
      • addLocations

        public ListLocationsResponse.Builder addLocations​(int index,
                                                          Location value)
         A list of locations that matches the specified filter in the request.
         
        repeated .google.cloud.location.Location locations = 1;
      • addLocations

        public ListLocationsResponse.Builder addLocations​(Location.Builder builderForValue)
         A list of locations that matches the specified filter in the request.
         
        repeated .google.cloud.location.Location locations = 1;
      • addLocations

        public ListLocationsResponse.Builder addLocations​(int index,
                                                          Location.Builder builderForValue)
         A list of locations that matches the specified filter in the request.
         
        repeated .google.cloud.location.Location locations = 1;
      • addAllLocations

        public ListLocationsResponse.Builder addAllLocations​(java.lang.Iterable<? extends Location> values)
         A list of locations that matches the specified filter in the request.
         
        repeated .google.cloud.location.Location locations = 1;
      • clearLocations

        public ListLocationsResponse.Builder clearLocations()
         A list of locations that matches the specified filter in the request.
         
        repeated .google.cloud.location.Location locations = 1;
      • removeLocations

        public ListLocationsResponse.Builder removeLocations​(int index)
         A list of locations that matches the specified filter in the request.
         
        repeated .google.cloud.location.Location locations = 1;
      • getLocationsBuilder

        public Location.Builder getLocationsBuilder​(int index)
         A list of locations that matches the specified filter in the request.
         
        repeated .google.cloud.location.Location locations = 1;
      • addLocationsBuilder

        public Location.Builder addLocationsBuilder()
         A list of locations that matches the specified filter in the request.
         
        repeated .google.cloud.location.Location locations = 1;
      • addLocationsBuilder

        public Location.Builder addLocationsBuilder​(int index)
         A list of locations that matches the specified filter in the request.
         
        repeated .google.cloud.location.Location locations = 1;
      • getLocationsBuilderList

        public java.util.List<Location.Builder> getLocationsBuilderList()
         A list of locations that matches the specified filter in the request.
         
        repeated .google.cloud.location.Location locations = 1;
      • getNextPageToken

        public java.lang.String getNextPageToken()
         The standard List next-page token.
         
        string next_page_token = 2;
        Specified by:
        getNextPageToken in interface ListLocationsResponseOrBuilder
        Returns:
        The nextPageToken.
      • getNextPageTokenBytes

        public com.google.protobuf.ByteString getNextPageTokenBytes()
         The standard List next-page token.
         
        string next_page_token = 2;
        Specified by:
        getNextPageTokenBytes in interface ListLocationsResponseOrBuilder
        Returns:
        The bytes for nextPageToken.
      • setNextPageToken

        public ListLocationsResponse.Builder setNextPageToken​(java.lang.String value)
         The standard List next-page token.
         
        string next_page_token = 2;
        Parameters:
        value - The nextPageToken to set.
        Returns:
        This builder for chaining.
      • clearNextPageToken

        public ListLocationsResponse.Builder clearNextPageToken()
         The standard List next-page token.
         
        string next_page_token = 2;
        Returns:
        This builder for chaining.
      • setNextPageTokenBytes

        public ListLocationsResponse.Builder setNextPageTokenBytes​(com.google.protobuf.ByteString value)
         The standard List next-page token.
         
        string next_page_token = 2;
        Parameters:
        value - The bytes for nextPageToken to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final ListLocationsResponse.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<ListLocationsResponse.Builder>
      • mergeUnknownFields

        public final ListLocationsResponse.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<ListLocationsResponse.Builder>