Class FetchBlobRequest.Builder

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

public static final class FetchBlobRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<FetchBlobRequest.Builder> implements FetchBlobRequestOrBuilder
 Request message for fetching a blob (file content) from a repository.
 
Protobuf type google.cloud.securesourcemanager.v1.FetchBlobRequest
  • 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<FetchBlobRequest.Builder>
    • clear

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

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

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

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

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

      public FetchBlobRequest.Builder mergeFrom(FetchBlobRequest other)
    • isInitialized

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

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

      public String getRepository()
       Required. The format is
       `projects/{project_number}/locations/{location_id}/repositories/{repository_id}`.
       Specifies the repository containing the blob.
       
      string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getRepository in interface FetchBlobRequestOrBuilder
      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 containing the blob.
       
      string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getRepositoryBytes in interface FetchBlobRequestOrBuilder
      Returns:
      The bytes for repository.
    • setRepository

      public FetchBlobRequest.Builder setRepository(String value)
       Required. The format is
       `projects/{project_number}/locations/{location_id}/repositories/{repository_id}`.
       Specifies the repository containing the blob.
       
      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 FetchBlobRequest.Builder clearRepository()
       Required. The format is
       `projects/{project_number}/locations/{location_id}/repositories/{repository_id}`.
       Specifies the repository containing the blob.
       
      string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setRepositoryBytes

      public FetchBlobRequest.Builder setRepositoryBytes(com.google.protobuf.ByteString value)
       Required. The format is
       `projects/{project_number}/locations/{location_id}/repositories/{repository_id}`.
       Specifies the repository containing the blob.
       
      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.
    • getSha

      public String getSha()
       Required. The SHA-1 hash of the blob to retrieve.
       
      string sha = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSha in interface FetchBlobRequestOrBuilder
      Returns:
      The sha.
    • getShaBytes

      public com.google.protobuf.ByteString getShaBytes()
       Required. The SHA-1 hash of the blob to retrieve.
       
      string sha = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getShaBytes in interface FetchBlobRequestOrBuilder
      Returns:
      The bytes for sha.
    • setSha

      public FetchBlobRequest.Builder setSha(String value)
       Required. The SHA-1 hash of the blob to retrieve.
       
      string sha = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The sha to set.
      Returns:
      This builder for chaining.
    • clearSha

      public FetchBlobRequest.Builder clearSha()
       Required. The SHA-1 hash of the blob to retrieve.
       
      string sha = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setShaBytes

      public FetchBlobRequest.Builder setShaBytes(com.google.protobuf.ByteString value)
       Required. The SHA-1 hash of the blob to retrieve.
       
      string sha = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for sha to set.
      Returns:
      This builder for chaining.