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 listing sources.
     
    Protobuf type google.cloud.securitycenter.v1beta1.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. Resource name of the parent of sources to list. Its format should be
         "organizations/[organization_id]".
         
        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. Resource name of the parent of sources to list. Its format should be
         "organizations/[organization_id]".
         
        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. Resource name of the parent of sources to list. Its format should be
         "organizations/[organization_id]".
         
        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. Resource name of the parent of sources to list. Its format should be
         "organizations/[organization_id]".
         
        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. Resource name of the parent of sources to list. Its format should be
         "organizations/[organization_id]".
         
        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.
      • getPageToken

        public String getPageToken()
         The value returned by the last `ListSourcesResponse`; indicates
         that this is a continuation of a prior `ListSources` call, and
         that the system should return the next page of data.
         
        string page_token = 2;
        Specified by:
        getPageToken in interface ListSourcesRequestOrBuilder
        Returns:
        The pageToken.
      • getPageTokenBytes

        public com.google.protobuf.ByteString getPageTokenBytes()
         The value returned by the last `ListSourcesResponse`; indicates
         that this is a continuation of a prior `ListSources` call, and
         that the system should return the next page of data.
         
        string page_token = 2;
        Specified by:
        getPageTokenBytes in interface ListSourcesRequestOrBuilder
        Returns:
        The bytes for pageToken.
      • setPageToken

        public ListSourcesRequest.Builder setPageToken​(String value)
         The value returned by the last `ListSourcesResponse`; indicates
         that this is a continuation of a prior `ListSources` call, and
         that the system should return the next page of data.
         
        string page_token = 2;
        Parameters:
        value - The pageToken to set.
        Returns:
        This builder for chaining.
      • clearPageToken

        public ListSourcesRequest.Builder clearPageToken()
         The value returned by the last `ListSourcesResponse`; indicates
         that this is a continuation of a prior `ListSources` call, and
         that the system should return the next page of data.
         
        string page_token = 2;
        Returns:
        This builder for chaining.
      • setPageTokenBytes

        public ListSourcesRequest.Builder setPageTokenBytes​(com.google.protobuf.ByteString value)
         The value returned by the last `ListSourcesResponse`; indicates
         that this is a continuation of a prior `ListSources` call, and
         that the system should return the next page of data.
         
        string page_token = 2;
        Parameters:
        value - The bytes for pageToken to set.
        Returns:
        This builder for chaining.
      • getPageSize

        public int getPageSize()
         The maximum number of results to return in a single response. Default is
         10, minimum is 1, maximum is 1000.
         
        int32 page_size = 7;
        Specified by:
        getPageSize in interface ListSourcesRequestOrBuilder
        Returns:
        The pageSize.
      • setPageSize

        public ListSourcesRequest.Builder setPageSize​(int value)
         The maximum number of results to return in a single response. Default is
         10, minimum is 1, maximum is 1000.
         
        int32 page_size = 7;
        Parameters:
        value - The pageSize to set.
        Returns:
        This builder for chaining.
      • clearPageSize

        public ListSourcesRequest.Builder clearPageSize()
         The maximum number of results to return in a single response. Default is
         10, minimum is 1, maximum is 1000.
         
        int32 page_size = 7;
        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>