Class ListSourcesRequest.Builder

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

    public static final class ListSourcesRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ListSourcesRequest.Builder>
    implements ListSourcesRequestOrBuilder
     Request message for 'ListSources' request.
     
    Protobuf type google.cloud.vmmigration.v1.ListSourcesRequest
    • 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<ListSourcesRequest.Builder>
      • clear

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

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

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

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

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

        public ListSourcesRequest.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<ListSourcesRequest.Builder>
      • clearField

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

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

        public ListSourcesRequest.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<ListSourcesRequest.Builder>
      • addRepeatedField

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

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

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

        public ListSourcesRequest.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<ListSourcesRequest.Builder>
        Throws:
        IOException
      • getParent

        public String getParent()
         Required. The parent, which owns this collection of sources.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParent in interface ListSourcesRequestOrBuilder
        Returns:
        The parent.
      • getParentBytes

        public com.google.protobuf.ByteString getParentBytes()
         Required. The parent, which owns this collection of sources.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParentBytes in interface ListSourcesRequestOrBuilder
        Returns:
        The bytes for parent.
      • setParent

        public ListSourcesRequest.Builder setParent​(String value)
         Required. The parent, which owns this collection of sources.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The parent to set.
        Returns:
        This builder for chaining.
      • clearParent

        public ListSourcesRequest.Builder clearParent()
         Required. The parent, which owns this collection of sources.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setParentBytes

        public ListSourcesRequest.Builder setParentBytes​(com.google.protobuf.ByteString value)
         Required. The parent, which owns this collection of sources.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for parent to set.
        Returns:
        This builder for chaining.
      • getPageSize

        public int getPageSize()
         Optional. The maximum number of sources to return. The service may return
         fewer than this value. If unspecified, at most 500 sources will be
         returned. The maximum value is 1000; values above 1000 will be coerced to
         1000.
         
        int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getPageSize in interface ListSourcesRequestOrBuilder
        Returns:
        The pageSize.
      • setPageSize

        public ListSourcesRequest.Builder setPageSize​(int value)
         Optional. The maximum number of sources to return. The service may return
         fewer than this value. If unspecified, at most 500 sources will be
         returned. The maximum value is 1000; values above 1000 will be coerced to
         1000.
         
        int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The pageSize to set.
        Returns:
        This builder for chaining.
      • clearPageSize

        public ListSourcesRequest.Builder clearPageSize()
         Optional. The maximum number of sources to return. The service may return
         fewer than this value. If unspecified, at most 500 sources will be
         returned. The maximum value is 1000; values above 1000 will be coerced to
         1000.
         
        int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • getPageToken

        public String getPageToken()
         Required. A page token, received from a previous `ListSources` call.
         Provide this to retrieve the subsequent page.
        
         When paginating, all other parameters provided to `ListSources` must
         match the call that provided the page token.
         
        string page_token = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getPageToken in interface ListSourcesRequestOrBuilder
        Returns:
        The pageToken.
      • getPageTokenBytes

        public com.google.protobuf.ByteString getPageTokenBytes()
         Required. A page token, received from a previous `ListSources` call.
         Provide this to retrieve the subsequent page.
        
         When paginating, all other parameters provided to `ListSources` must
         match the call that provided the page token.
         
        string page_token = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getPageTokenBytes in interface ListSourcesRequestOrBuilder
        Returns:
        The bytes for pageToken.
      • setPageToken

        public ListSourcesRequest.Builder setPageToken​(String value)
         Required. A page token, received from a previous `ListSources` call.
         Provide this to retrieve the subsequent page.
        
         When paginating, all other parameters provided to `ListSources` must
         match the call that provided the page token.
         
        string page_token = 3 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The pageToken to set.
        Returns:
        This builder for chaining.
      • clearPageToken

        public ListSourcesRequest.Builder clearPageToken()
         Required. A page token, received from a previous `ListSources` call.
         Provide this to retrieve the subsequent page.
        
         When paginating, all other parameters provided to `ListSources` must
         match the call that provided the page token.
         
        string page_token = 3 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setPageTokenBytes

        public ListSourcesRequest.Builder setPageTokenBytes​(com.google.protobuf.ByteString value)
         Required. A page token, received from a previous `ListSources` call.
         Provide this to retrieve the subsequent page.
        
         When paginating, all other parameters provided to `ListSources` must
         match the call that provided the page token.
         
        string page_token = 3 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for pageToken to set.
        Returns:
        This builder for chaining.
      • getFilter

        public String getFilter()
         Optional. The filter request.
         
        string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getFilter in interface ListSourcesRequestOrBuilder
        Returns:
        The filter.
      • getFilterBytes

        public com.google.protobuf.ByteString getFilterBytes()
         Optional. The filter request.
         
        string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getFilterBytes in interface ListSourcesRequestOrBuilder
        Returns:
        The bytes for filter.
      • setFilter

        public ListSourcesRequest.Builder setFilter​(String value)
         Optional. The filter request.
         
        string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The filter to set.
        Returns:
        This builder for chaining.
      • clearFilter

        public ListSourcesRequest.Builder clearFilter()
         Optional. The filter request.
         
        string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setFilterBytes

        public ListSourcesRequest.Builder setFilterBytes​(com.google.protobuf.ByteString value)
         Optional. The filter request.
         
        string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for filter to set.
        Returns:
        This builder for chaining.
      • getOrderBy

        public String getOrderBy()
         Optional. the order by fields for the result.
         
        string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getOrderBy in interface ListSourcesRequestOrBuilder
        Returns:
        The orderBy.
      • getOrderByBytes

        public com.google.protobuf.ByteString getOrderByBytes()
         Optional. the order by fields for the result.
         
        string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getOrderByBytes in interface ListSourcesRequestOrBuilder
        Returns:
        The bytes for orderBy.
      • setOrderBy

        public ListSourcesRequest.Builder setOrderBy​(String value)
         Optional. the order by fields for the result.
         
        string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The orderBy to set.
        Returns:
        This builder for chaining.
      • clearOrderBy

        public ListSourcesRequest.Builder clearOrderBy()
         Optional. the order by fields for the result.
         
        string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setOrderByBytes

        public ListSourcesRequest.Builder setOrderByBytes​(com.google.protobuf.ByteString value)
         Optional. the order by fields for the result.
         
        string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for orderBy to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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