Class FetchTreeRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<FetchTreeRequest.Builder>
com.google.cloud.securesourcemanager.v1.FetchTreeRequest.Builder
All Implemented Interfaces:
FetchTreeRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
FetchTreeRequest

public static final class FetchTreeRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<FetchTreeRequest.Builder> implements FetchTreeRequestOrBuilder
 Request message for fetching a tree structure from a repository.
 
Protobuf type google.cloud.securesourcemanager.v1.FetchTreeRequest
  • 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<FetchTreeRequest.Builder>
    • clear

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

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

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

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

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

      public FetchTreeRequest.Builder mergeFrom(FetchTreeRequest other)
    • isInitialized

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

      public FetchTreeRequest.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<FetchTreeRequest.Builder>
      Throws:
      IOException
    • getRepository

      public String getRepository()
       Required. The format is
       `projects/{project_number}/locations/{location_id}/repositories/{repository_id}`.
       Specifies the repository to fetch the tree from.
       
      string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getRepository in interface FetchTreeRequestOrBuilder
      Returns:
      The repository.
    • getRepositoryBytes

      public com.google.protobuf.ByteString getRepositoryBytes()
       Required. The format is
       `projects/{project_number}/locations/{location_id}/repositories/{repository_id}`.
       Specifies the repository to fetch the tree from.
       
      string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getRepositoryBytes in interface FetchTreeRequestOrBuilder
      Returns:
      The bytes for repository.
    • setRepository

      public FetchTreeRequest.Builder setRepository(String value)
       Required. The format is
       `projects/{project_number}/locations/{location_id}/repositories/{repository_id}`.
       Specifies the repository to fetch the tree from.
       
      string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The repository to set.
      Returns:
      This builder for chaining.
    • clearRepository

      public FetchTreeRequest.Builder clearRepository()
       Required. The format is
       `projects/{project_number}/locations/{location_id}/repositories/{repository_id}`.
       Specifies the repository to fetch the tree from.
       
      string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setRepositoryBytes

      public FetchTreeRequest.Builder setRepositoryBytes(com.google.protobuf.ByteString value)
       Required. The format is
       `projects/{project_number}/locations/{location_id}/repositories/{repository_id}`.
       Specifies the repository to fetch the tree from.
       
      string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for repository to set.
      Returns:
      This builder for chaining.
    • getRef

      public String getRef()
       Optional. `ref` can be a SHA-1 hash, a branch name, or a tag. Specifies
       which tree to fetch. If not specified, the default branch will be used.
       
      string ref = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRef in interface FetchTreeRequestOrBuilder
      Returns:
      The ref.
    • getRefBytes

      public com.google.protobuf.ByteString getRefBytes()
       Optional. `ref` can be a SHA-1 hash, a branch name, or a tag. Specifies
       which tree to fetch. If not specified, the default branch will be used.
       
      string ref = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRefBytes in interface FetchTreeRequestOrBuilder
      Returns:
      The bytes for ref.
    • setRef

      public FetchTreeRequest.Builder setRef(String value)
       Optional. `ref` can be a SHA-1 hash, a branch name, or a tag. Specifies
       which tree to fetch. If not specified, the default branch will be used.
       
      string ref = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The ref to set.
      Returns:
      This builder for chaining.
    • clearRef

      public FetchTreeRequest.Builder clearRef()
       Optional. `ref` can be a SHA-1 hash, a branch name, or a tag. Specifies
       which tree to fetch. If not specified, the default branch will be used.
       
      string ref = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setRefBytes

      public FetchTreeRequest.Builder setRefBytes(com.google.protobuf.ByteString value)
       Optional. `ref` can be a SHA-1 hash, a branch name, or a tag. Specifies
       which tree to fetch. If not specified, the default branch will be used.
       
      string ref = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for ref to set.
      Returns:
      This builder for chaining.
    • getRecursive

      public boolean getRecursive()
       Optional. If true, include all subfolders and their files in the response.
       If false, only the immediate children are returned.
       
      bool recursive = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRecursive in interface FetchTreeRequestOrBuilder
      Returns:
      The recursive.
    • setRecursive

      public FetchTreeRequest.Builder setRecursive(boolean value)
       Optional. If true, include all subfolders and their files in the response.
       If false, only the immediate children are returned.
       
      bool recursive = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The recursive to set.
      Returns:
      This builder for chaining.
    • clearRecursive

      public FetchTreeRequest.Builder clearRecursive()
       Optional. If true, include all subfolders and their files in the response.
       If false, only the immediate children are returned.
       
      bool recursive = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getPageSize

      public int getPageSize()
       Optional. Requested page size.  Server may return fewer items than
       requested. If unspecified, at most 10,000 items will be returned.
       
      int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPageSize in interface FetchTreeRequestOrBuilder
      Returns:
      The pageSize.
    • setPageSize

      public FetchTreeRequest.Builder setPageSize(int value)
       Optional. Requested page size.  Server may return fewer items than
       requested. If unspecified, at most 10,000 items will be returned.
       
      int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The pageSize to set.
      Returns:
      This builder for chaining.
    • clearPageSize

      public FetchTreeRequest.Builder clearPageSize()
       Optional. Requested page size.  Server may return fewer items than
       requested. If unspecified, at most 10,000 items will be returned.
       
      int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getPageToken

      public String getPageToken()
       Optional. A token identifying a page of results the server should return.
       
      string page_token = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPageToken in interface FetchTreeRequestOrBuilder
      Returns:
      The pageToken.
    • getPageTokenBytes

      public com.google.protobuf.ByteString getPageTokenBytes()
       Optional. A token identifying a page of results the server should return.
       
      string page_token = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPageTokenBytes in interface FetchTreeRequestOrBuilder
      Returns:
      The bytes for pageToken.
    • setPageToken

      public FetchTreeRequest.Builder setPageToken(String value)
       Optional. A token identifying a page of results the server should return.
       
      string page_token = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The pageToken to set.
      Returns:
      This builder for chaining.
    • clearPageToken

      public FetchTreeRequest.Builder clearPageToken()
       Optional. A token identifying a page of results the server should return.
       
      string page_token = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setPageTokenBytes

      public FetchTreeRequest.Builder setPageTokenBytes(com.google.protobuf.ByteString value)
       Optional. A token identifying a page of results the server should return.
       
      string page_token = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for pageToken to set.
      Returns:
      This builder for chaining.