Class ListBuildsRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ListBuildsRequest.Builder>
com.google.cloudbuild.v1.ListBuildsRequest.Builder
All Implemented Interfaces:
ListBuildsRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ListBuildsRequest

public static final class ListBuildsRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListBuildsRequest.Builder> implements ListBuildsRequestOrBuilder
 Request to list builds.
 
Protobuf type google.devtools.cloudbuild.v1.ListBuildsRequest
  • Method Details

    • getDescriptor

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

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

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

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

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

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

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

      public ListBuildsRequest.Builder mergeFrom(ListBuildsRequest other)
    • isInitialized

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

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

      public String getParent()
       The parent of the collection of `Builds`.
       Format: `projects/{project}/locations/{location}`
       
      string parent = 9 [(.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface ListBuildsRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       The parent of the collection of `Builds`.
       Format: `projects/{project}/locations/{location}`
       
      string parent = 9 [(.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface ListBuildsRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public ListBuildsRequest.Builder setParent(String value)
       The parent of the collection of `Builds`.
       Format: `projects/{project}/locations/{location}`
       
      string parent = 9 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public ListBuildsRequest.Builder clearParent()
       The parent of the collection of `Builds`.
       Format: `projects/{project}/locations/{location}`
       
      string parent = 9 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public ListBuildsRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       The parent of the collection of `Builds`.
       Format: `projects/{project}/locations/{location}`
       
      string parent = 9 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • getProjectId

      public String getProjectId()
       Required. ID of the project.
       
      string project_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getProjectId in interface ListBuildsRequestOrBuilder
      Returns:
      The projectId.
    • getProjectIdBytes

      public com.google.protobuf.ByteString getProjectIdBytes()
       Required. ID of the project.
       
      string project_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getProjectIdBytes in interface ListBuildsRequestOrBuilder
      Returns:
      The bytes for projectId.
    • setProjectId

      public ListBuildsRequest.Builder setProjectId(String value)
       Required. ID of the project.
       
      string project_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The projectId to set.
      Returns:
      This builder for chaining.
    • clearProjectId

      public ListBuildsRequest.Builder clearProjectId()
       Required. ID of the project.
       
      string project_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setProjectIdBytes

      public ListBuildsRequest.Builder setProjectIdBytes(com.google.protobuf.ByteString value)
       Required. ID of the project.
       
      string project_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for projectId to set.
      Returns:
      This builder for chaining.
    • getPageSize

      public int getPageSize()
       Number of results to return in the list.
       
      int32 page_size = 2;
      Specified by:
      getPageSize in interface ListBuildsRequestOrBuilder
      Returns:
      The pageSize.
    • setPageSize

      public ListBuildsRequest.Builder setPageSize(int value)
       Number of results to return in the list.
       
      int32 page_size = 2;
      Parameters:
      value - The pageSize to set.
      Returns:
      This builder for chaining.
    • clearPageSize

      public ListBuildsRequest.Builder clearPageSize()
       Number of results to return in the list.
       
      int32 page_size = 2;
      Returns:
      This builder for chaining.
    • getPageToken

      public String getPageToken()
       The page token for the next page of Builds.
      
       If unspecified, the first page of results is returned.
      
       If the token is rejected for any reason, INVALID_ARGUMENT will be thrown.
       In this case, the token should be discarded, and pagination should be
       restarted from the first page of results.
      
       See https://google.aip.dev/158 for more.
       
      string page_token = 3;
      Specified by:
      getPageToken in interface ListBuildsRequestOrBuilder
      Returns:
      The pageToken.
    • getPageTokenBytes

      public com.google.protobuf.ByteString getPageTokenBytes()
       The page token for the next page of Builds.
      
       If unspecified, the first page of results is returned.
      
       If the token is rejected for any reason, INVALID_ARGUMENT will be thrown.
       In this case, the token should be discarded, and pagination should be
       restarted from the first page of results.
      
       See https://google.aip.dev/158 for more.
       
      string page_token = 3;
      Specified by:
      getPageTokenBytes in interface ListBuildsRequestOrBuilder
      Returns:
      The bytes for pageToken.
    • setPageToken

      public ListBuildsRequest.Builder setPageToken(String value)
       The page token for the next page of Builds.
      
       If unspecified, the first page of results is returned.
      
       If the token is rejected for any reason, INVALID_ARGUMENT will be thrown.
       In this case, the token should be discarded, and pagination should be
       restarted from the first page of results.
      
       See https://google.aip.dev/158 for more.
       
      string page_token = 3;
      Parameters:
      value - The pageToken to set.
      Returns:
      This builder for chaining.
    • clearPageToken

      public ListBuildsRequest.Builder clearPageToken()
       The page token for the next page of Builds.
      
       If unspecified, the first page of results is returned.
      
       If the token is rejected for any reason, INVALID_ARGUMENT will be thrown.
       In this case, the token should be discarded, and pagination should be
       restarted from the first page of results.
      
       See https://google.aip.dev/158 for more.
       
      string page_token = 3;
      Returns:
      This builder for chaining.
    • setPageTokenBytes

      public ListBuildsRequest.Builder setPageTokenBytes(com.google.protobuf.ByteString value)
       The page token for the next page of Builds.
      
       If unspecified, the first page of results is returned.
      
       If the token is rejected for any reason, INVALID_ARGUMENT will be thrown.
       In this case, the token should be discarded, and pagination should be
       restarted from the first page of results.
      
       See https://google.aip.dev/158 for more.
       
      string page_token = 3;
      Parameters:
      value - The bytes for pageToken to set.
      Returns:
      This builder for chaining.
    • getFilter

      public String getFilter()
       The raw filter text to constrain the results.
       
      string filter = 8;
      Specified by:
      getFilter in interface ListBuildsRequestOrBuilder
      Returns:
      The filter.
    • getFilterBytes

      public com.google.protobuf.ByteString getFilterBytes()
       The raw filter text to constrain the results.
       
      string filter = 8;
      Specified by:
      getFilterBytes in interface ListBuildsRequestOrBuilder
      Returns:
      The bytes for filter.
    • setFilter

      public ListBuildsRequest.Builder setFilter(String value)
       The raw filter text to constrain the results.
       
      string filter = 8;
      Parameters:
      value - The filter to set.
      Returns:
      This builder for chaining.
    • clearFilter

      public ListBuildsRequest.Builder clearFilter()
       The raw filter text to constrain the results.
       
      string filter = 8;
      Returns:
      This builder for chaining.
    • setFilterBytes

      public ListBuildsRequest.Builder setFilterBytes(com.google.protobuf.ByteString value)
       The raw filter text to constrain the results.
       
      string filter = 8;
      Parameters:
      value - The bytes for filter to set.
      Returns:
      This builder for chaining.