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.cloud.config.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
 A set of files in a Git repository.
 
Protobuf type google.cloud.config.v1.GitSource
  • 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
    • hasRepo

      public boolean hasRepo()
       Optional. Repository URL.
       Example: 'https://github.com/kubernetes/examples.git'
       
      optional string repo = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasRepo in interface GitSourceOrBuilder
      Returns:
      Whether the repo field is set.
    • getRepo

      public String getRepo()
       Optional. Repository URL.
       Example: 'https://github.com/kubernetes/examples.git'
       
      optional string repo = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRepo in interface GitSourceOrBuilder
      Returns:
      The repo.
    • getRepoBytes

      public com.google.protobuf.ByteString getRepoBytes()
       Optional. Repository URL.
       Example: 'https://github.com/kubernetes/examples.git'
       
      optional string repo = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRepoBytes in interface GitSourceOrBuilder
      Returns:
      The bytes for repo.
    • setRepo

      public GitSource.Builder setRepo(String value)
       Optional. Repository URL.
       Example: 'https://github.com/kubernetes/examples.git'
       
      optional string repo = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The repo to set.
      Returns:
      This builder for chaining.
    • clearRepo

      public GitSource.Builder clearRepo()
       Optional. Repository URL.
       Example: 'https://github.com/kubernetes/examples.git'
       
      optional string repo = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setRepoBytes

      public GitSource.Builder setRepoBytes(com.google.protobuf.ByteString value)
       Optional. Repository URL.
       Example: 'https://github.com/kubernetes/examples.git'
       
      optional string repo = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for repo to set.
      Returns:
      This builder for chaining.
    • hasDirectory

      public boolean hasDirectory()
       Optional. Subdirectory inside the repository.
       Example: 'staging/my-package'
       
      optional string directory = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasDirectory in interface GitSourceOrBuilder
      Returns:
      Whether the directory field is set.
    • getDirectory

      public String getDirectory()
       Optional. Subdirectory inside the repository.
       Example: 'staging/my-package'
       
      optional string directory = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDirectory in interface GitSourceOrBuilder
      Returns:
      The directory.
    • getDirectoryBytes

      public com.google.protobuf.ByteString getDirectoryBytes()
       Optional. Subdirectory inside the repository.
       Example: 'staging/my-package'
       
      optional string directory = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDirectoryBytes in interface GitSourceOrBuilder
      Returns:
      The bytes for directory.
    • setDirectory

      public GitSource.Builder setDirectory(String value)
       Optional. Subdirectory inside the repository.
       Example: 'staging/my-package'
       
      optional string directory = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The directory to set.
      Returns:
      This builder for chaining.
    • clearDirectory

      public GitSource.Builder clearDirectory()
       Optional. Subdirectory inside the repository.
       Example: 'staging/my-package'
       
      optional string directory = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDirectoryBytes

      public GitSource.Builder setDirectoryBytes(com.google.protobuf.ByteString value)
       Optional. Subdirectory inside the repository.
       Example: 'staging/my-package'
       
      optional string directory = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for directory to set.
      Returns:
      This builder for chaining.
    • hasRef

      public boolean hasRef()
       Optional. Git reference (e.g. branch or tag).
       
      optional string ref = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasRef in interface GitSourceOrBuilder
      Returns:
      Whether the ref field is set.
    • getRef

      public String getRef()
       Optional. Git reference (e.g. branch or tag).
       
      optional string ref = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRef in interface GitSourceOrBuilder
      Returns:
      The ref.
    • getRefBytes

      public com.google.protobuf.ByteString getRefBytes()
       Optional. Git reference (e.g. branch or tag).
       
      optional string ref = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRefBytes in interface GitSourceOrBuilder
      Returns:
      The bytes for ref.
    • setRef

      public GitSource.Builder setRef(String value)
       Optional. Git reference (e.g. branch or tag).
       
      optional string ref = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The ref to set.
      Returns:
      This builder for chaining.
    • clearRef

      public GitSource.Builder clearRef()
       Optional. Git reference (e.g. branch or tag).
       
      optional string ref = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setRefBytes

      public GitSource.Builder setRefBytes(com.google.protobuf.ByteString value)
       Optional. Git reference (e.g. branch or tag).
       
      optional string ref = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for ref to set.
      Returns:
      This builder for chaining.