Class GitSource.Builder

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

public static final class GitSource.Builder extends com.google.protobuf.GeneratedMessage.Builder<GitSource.Builder> implements GitSourceOrBuilder
 Location of the source in any accessible Git repository.
 
Protobuf type google.devtools.cloudbuild.v1.GitSource
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    Optional.
    Optional.
    Required.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    Optional.
    com.google.protobuf.ByteString
    Optional.
    Optional.
    com.google.protobuf.ByteString
    Optional.
    Required.
    com.google.protobuf.ByteString
    Required.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    setDir(String value)
    Optional.
    setDirBytes(com.google.protobuf.ByteString value)
    Optional.
    Optional.
    setRevisionBytes(com.google.protobuf.ByteString value)
    Optional.
    setUrl(String value)
    Required.
    setUrlBytes(com.google.protobuf.ByteString value)
    Required.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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<GitSource.Builder>
    • clear

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

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

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

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

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

      public GitSource.Builder mergeFrom(GitSource other)
    • isInitialized

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

      public GitSource.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<GitSource.Builder>
      Throws:
      IOException
    • getUrl

      public String getUrl()
       Required. Location of the Git repo to build.
      
       This will be used as a `git remote`, see
       https://git-scm.com/docs/git-remote.
       
      string url = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getUrl in interface GitSourceOrBuilder
      Returns:
      The url.
    • getUrlBytes

      public com.google.protobuf.ByteString getUrlBytes()
       Required. Location of the Git repo to build.
      
       This will be used as a `git remote`, see
       https://git-scm.com/docs/git-remote.
       
      string url = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getUrlBytes in interface GitSourceOrBuilder
      Returns:
      The bytes for url.
    • setUrl

      public GitSource.Builder setUrl(String value)
       Required. Location of the Git repo to build.
      
       This will be used as a `git remote`, see
       https://git-scm.com/docs/git-remote.
       
      string url = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The url to set.
      Returns:
      This builder for chaining.
    • clearUrl

      public GitSource.Builder clearUrl()
       Required. Location of the Git repo to build.
      
       This will be used as a `git remote`, see
       https://git-scm.com/docs/git-remote.
       
      string url = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setUrlBytes

      public GitSource.Builder setUrlBytes(com.google.protobuf.ByteString value)
       Required. Location of the Git repo to build.
      
       This will be used as a `git remote`, see
       https://git-scm.com/docs/git-remote.
       
      string url = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for url to set.
      Returns:
      This builder for chaining.
    • getDir

      public String getDir()
       Optional. Directory, relative to the source root, in which to run the
       build.
      
       This must be a relative path. If a step's `dir` is specified and is an
       absolute path, this value is ignored for that step's execution.
       
      string dir = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDir in interface GitSourceOrBuilder
      Returns:
      The dir.
    • getDirBytes

      public com.google.protobuf.ByteString getDirBytes()
       Optional. Directory, relative to the source root, in which to run the
       build.
      
       This must be a relative path. If a step's `dir` is specified and is an
       absolute path, this value is ignored for that step's execution.
       
      string dir = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDirBytes in interface GitSourceOrBuilder
      Returns:
      The bytes for dir.
    • setDir

      public GitSource.Builder setDir(String value)
       Optional. Directory, relative to the source root, in which to run the
       build.
      
       This must be a relative path. If a step's `dir` is specified and is an
       absolute path, this value is ignored for that step's execution.
       
      string dir = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The dir to set.
      Returns:
      This builder for chaining.
    • clearDir

      public GitSource.Builder clearDir()
       Optional. Directory, relative to the source root, in which to run the
       build.
      
       This must be a relative path. If a step's `dir` is specified and is an
       absolute path, this value is ignored for that step's execution.
       
      string dir = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDirBytes

      public GitSource.Builder setDirBytes(com.google.protobuf.ByteString value)
       Optional. Directory, relative to the source root, in which to run the
       build.
      
       This must be a relative path. If a step's `dir` is specified and is an
       absolute path, this value is ignored for that step's execution.
       
      string dir = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for dir to set.
      Returns:
      This builder for chaining.
    • getRevision

      public String getRevision()
       Optional. The revision to fetch from the Git repository such as a branch, a
       tag, a commit SHA, or any Git ref.
      
       Cloud Build uses `git fetch` to fetch the revision from the Git
       repository; therefore make sure that the string you provide for `revision`
       is parsable  by the command. For information on string values accepted by
       `git fetch`, see
       https://git-scm.com/docs/gitrevisions#_specifying_revisions. For
       information on `git fetch`, see https://git-scm.com/docs/git-fetch.
       
      string revision = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRevision in interface GitSourceOrBuilder
      Returns:
      The revision.
    • getRevisionBytes

      public com.google.protobuf.ByteString getRevisionBytes()
       Optional. The revision to fetch from the Git repository such as a branch, a
       tag, a commit SHA, or any Git ref.
      
       Cloud Build uses `git fetch` to fetch the revision from the Git
       repository; therefore make sure that the string you provide for `revision`
       is parsable  by the command. For information on string values accepted by
       `git fetch`, see
       https://git-scm.com/docs/gitrevisions#_specifying_revisions. For
       information on `git fetch`, see https://git-scm.com/docs/git-fetch.
       
      string revision = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRevisionBytes in interface GitSourceOrBuilder
      Returns:
      The bytes for revision.
    • setRevision

      public GitSource.Builder setRevision(String value)
       Optional. The revision to fetch from the Git repository such as a branch, a
       tag, a commit SHA, or any Git ref.
      
       Cloud Build uses `git fetch` to fetch the revision from the Git
       repository; therefore make sure that the string you provide for `revision`
       is parsable  by the command. For information on string values accepted by
       `git fetch`, see
       https://git-scm.com/docs/gitrevisions#_specifying_revisions. For
       information on `git fetch`, see https://git-scm.com/docs/git-fetch.
       
      string revision = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The revision to set.
      Returns:
      This builder for chaining.
    • clearRevision

      public GitSource.Builder clearRevision()
       Optional. The revision to fetch from the Git repository such as a branch, a
       tag, a commit SHA, or any Git ref.
      
       Cloud Build uses `git fetch` to fetch the revision from the Git
       repository; therefore make sure that the string you provide for `revision`
       is parsable  by the command. For information on string values accepted by
       `git fetch`, see
       https://git-scm.com/docs/gitrevisions#_specifying_revisions. For
       information on `git fetch`, see https://git-scm.com/docs/git-fetch.
       
      string revision = 6 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setRevisionBytes

      public GitSource.Builder setRevisionBytes(com.google.protobuf.ByteString value)
       Optional. The revision to fetch from the Git repository such as a branch, a
       tag, a commit SHA, or any Git ref.
      
       Cloud Build uses `git fetch` to fetch the revision from the Git
       repository; therefore make sure that the string you provide for `revision`
       is parsable  by the command. For information on string values accepted by
       `git fetch`, see
       https://git-scm.com/docs/gitrevisions#_specifying_revisions. For
       information on `git fetch`, see https://git-scm.com/docs/git-fetch.
       
      string revision = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for revision to set.
      Returns:
      This builder for chaining.