Class Source.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Source.Builder>
com.google.cloud.functions.v2.Source.Builder
All Implemented Interfaces:
SourceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Source

public static final class Source.Builder extends com.google.protobuf.GeneratedMessage.Builder<Source.Builder> implements SourceOrBuilder
 The location of the function source code.
 
Protobuf type google.cloud.functions.v2.Source
  • 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<Source.Builder>
    • clear

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

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

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

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

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

      public Source.Builder mergeFrom(Source other)
    • isInitialized

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

      public Source.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<Source.Builder>
      Throws:
      IOException
    • getSourceCase

      public Source.SourceCase getSourceCase()
      Specified by:
      getSourceCase in interface SourceOrBuilder
    • clearSource

      public Source.Builder clearSource()
    • hasStorageSource

      public boolean hasStorageSource()
       If provided, get the source from this location in Google Cloud Storage.
       
      .google.cloud.functions.v2.StorageSource storage_source = 1;
      Specified by:
      hasStorageSource in interface SourceOrBuilder
      Returns:
      Whether the storageSource field is set.
    • getStorageSource

      public StorageSource getStorageSource()
       If provided, get the source from this location in Google Cloud Storage.
       
      .google.cloud.functions.v2.StorageSource storage_source = 1;
      Specified by:
      getStorageSource in interface SourceOrBuilder
      Returns:
      The storageSource.
    • setStorageSource

      public Source.Builder setStorageSource(StorageSource value)
       If provided, get the source from this location in Google Cloud Storage.
       
      .google.cloud.functions.v2.StorageSource storage_source = 1;
    • setStorageSource

      public Source.Builder setStorageSource(StorageSource.Builder builderForValue)
       If provided, get the source from this location in Google Cloud Storage.
       
      .google.cloud.functions.v2.StorageSource storage_source = 1;
    • mergeStorageSource

      public Source.Builder mergeStorageSource(StorageSource value)
       If provided, get the source from this location in Google Cloud Storage.
       
      .google.cloud.functions.v2.StorageSource storage_source = 1;
    • clearStorageSource

      public Source.Builder clearStorageSource()
       If provided, get the source from this location in Google Cloud Storage.
       
      .google.cloud.functions.v2.StorageSource storage_source = 1;
    • getStorageSourceBuilder

      public StorageSource.Builder getStorageSourceBuilder()
       If provided, get the source from this location in Google Cloud Storage.
       
      .google.cloud.functions.v2.StorageSource storage_source = 1;
    • getStorageSourceOrBuilder

      public StorageSourceOrBuilder getStorageSourceOrBuilder()
       If provided, get the source from this location in Google Cloud Storage.
       
      .google.cloud.functions.v2.StorageSource storage_source = 1;
      Specified by:
      getStorageSourceOrBuilder in interface SourceOrBuilder
    • hasRepoSource

      public boolean hasRepoSource()
       If provided, get the source from this location in a Cloud Source
       Repository.
       
      .google.cloud.functions.v2.RepoSource repo_source = 2;
      Specified by:
      hasRepoSource in interface SourceOrBuilder
      Returns:
      Whether the repoSource field is set.
    • getRepoSource

      public RepoSource getRepoSource()
       If provided, get the source from this location in a Cloud Source
       Repository.
       
      .google.cloud.functions.v2.RepoSource repo_source = 2;
      Specified by:
      getRepoSource in interface SourceOrBuilder
      Returns:
      The repoSource.
    • setRepoSource

      public Source.Builder setRepoSource(RepoSource value)
       If provided, get the source from this location in a Cloud Source
       Repository.
       
      .google.cloud.functions.v2.RepoSource repo_source = 2;
    • setRepoSource

      public Source.Builder setRepoSource(RepoSource.Builder builderForValue)
       If provided, get the source from this location in a Cloud Source
       Repository.
       
      .google.cloud.functions.v2.RepoSource repo_source = 2;
    • mergeRepoSource

      public Source.Builder mergeRepoSource(RepoSource value)
       If provided, get the source from this location in a Cloud Source
       Repository.
       
      .google.cloud.functions.v2.RepoSource repo_source = 2;
    • clearRepoSource

      public Source.Builder clearRepoSource()
       If provided, get the source from this location in a Cloud Source
       Repository.
       
      .google.cloud.functions.v2.RepoSource repo_source = 2;
    • getRepoSourceBuilder

      public RepoSource.Builder getRepoSourceBuilder()
       If provided, get the source from this location in a Cloud Source
       Repository.
       
      .google.cloud.functions.v2.RepoSource repo_source = 2;
    • getRepoSourceOrBuilder

      public RepoSourceOrBuilder getRepoSourceOrBuilder()
       If provided, get the source from this location in a Cloud Source
       Repository.
       
      .google.cloud.functions.v2.RepoSource repo_source = 2;
      Specified by:
      getRepoSourceOrBuilder in interface SourceOrBuilder
    • hasGitUri

      public boolean hasGitUri()
       If provided, get the source from GitHub repository. This option is valid
       only for GCF 1st Gen function.
       Example: https://github.com/<user>/<repo>/blob/<commit>/<path-to-code>
       
      string git_uri = 3;
      Specified by:
      hasGitUri in interface SourceOrBuilder
      Returns:
      Whether the gitUri field is set.
    • getGitUri

      public String getGitUri()
       If provided, get the source from GitHub repository. This option is valid
       only for GCF 1st Gen function.
       Example: https://github.com/<user>/<repo>/blob/<commit>/<path-to-code>
       
      string git_uri = 3;
      Specified by:
      getGitUri in interface SourceOrBuilder
      Returns:
      The gitUri.
    • getGitUriBytes

      public com.google.protobuf.ByteString getGitUriBytes()
       If provided, get the source from GitHub repository. This option is valid
       only for GCF 1st Gen function.
       Example: https://github.com/<user>/<repo>/blob/<commit>/<path-to-code>
       
      string git_uri = 3;
      Specified by:
      getGitUriBytes in interface SourceOrBuilder
      Returns:
      The bytes for gitUri.
    • setGitUri

      public Source.Builder setGitUri(String value)
       If provided, get the source from GitHub repository. This option is valid
       only for GCF 1st Gen function.
       Example: https://github.com/<user>/<repo>/blob/<commit>/<path-to-code>
       
      string git_uri = 3;
      Parameters:
      value - The gitUri to set.
      Returns:
      This builder for chaining.
    • clearGitUri

      public Source.Builder clearGitUri()
       If provided, get the source from GitHub repository. This option is valid
       only for GCF 1st Gen function.
       Example: https://github.com/<user>/<repo>/blob/<commit>/<path-to-code>
       
      string git_uri = 3;
      Returns:
      This builder for chaining.
    • setGitUriBytes

      public Source.Builder setGitUriBytes(com.google.protobuf.ByteString value)
       If provided, get the source from GitHub repository. This option is valid
       only for GCF 1st Gen function.
       Example: https://github.com/<user>/<repo>/blob/<commit>/<path-to-code>
       
      string git_uri = 3;
      Parameters:
      value - The bytes for gitUri to set.
      Returns:
      This builder for chaining.