Class GitSource.Builder (0.62.0)

public static final class GitSource.Builder extends GeneratedMessage.Builder<GitSource.Builder> implements GitSourceOrBuilder

A set of files in a Git repository.

Protobuf type google.cloud.config.v1.GitSource

Implements

GitSourceOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public GitSource build()
Returns
Type Description
GitSource

buildPartial()

public GitSource buildPartial()
Returns
Type Description
GitSource

clear()

public GitSource.Builder clear()
Returns
Type Description
GitSource.Builder
Overrides

clearDirectory()

public GitSource.Builder clearDirectory()

Optional. Subdirectory inside the repository. Example: 'staging/my-package'

optional string directory = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GitSource.Builder

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
Type Description
GitSource.Builder

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
Type Description
GitSource.Builder

This builder for chaining.

getDefaultInstanceForType()

public GitSource getDefaultInstanceForType()
Returns
Type Description
GitSource

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDirectory()

public String getDirectory()

Optional. Subdirectory inside the repository. Example: 'staging/my-package'

optional string directory = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The directory.

getDirectoryBytes()

public ByteString getDirectoryBytes()

Optional. Subdirectory inside the repository. Example: 'staging/my-package'

optional string directory = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for directory.

getRef()

public String getRef()

Optional. Git reference (e.g. branch or tag).

optional string ref = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The ref.

getRefBytes()

public ByteString getRefBytes()

Optional. Git reference (e.g. branch or tag).

optional string ref = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for ref.

getRepo()

public String getRepo()

Optional. Repository URL. Example: 'https://github.com/kubernetes/examples.git'

optional string repo = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The repo.

getRepoBytes()

public ByteString getRepoBytes()

Optional. Repository URL. Example: 'https://github.com/kubernetes/examples.git'

optional string repo = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for repo.

hasDirectory()

public boolean hasDirectory()

Optional. Subdirectory inside the repository. Example: 'staging/my-package'

optional string directory = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the directory field is set.

hasRef()

public boolean hasRef()

Optional. Git reference (e.g. branch or tag).

optional string ref = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the ref field is set.

hasRepo()

public boolean hasRepo()

Optional. Repository URL. Example: 'https://github.com/kubernetes/examples.git'

optional string repo = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the repo field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GitSource other)

public GitSource.Builder mergeFrom(GitSource other)
Parameter
Name Description
other GitSource
Returns
Type Description
GitSource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GitSource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GitSource.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public GitSource.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
GitSource.Builder
Overrides

setDirectory(String value)

public GitSource.Builder setDirectory(String value)

Optional. Subdirectory inside the repository. Example: 'staging/my-package'

optional string directory = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The directory to set.

Returns
Type Description
GitSource.Builder

This builder for chaining.

setDirectoryBytes(ByteString value)

public GitSource.Builder setDirectoryBytes(ByteString value)

Optional. Subdirectory inside the repository. Example: 'staging/my-package'

optional string directory = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for directory to set.

Returns
Type Description
GitSource.Builder

This builder for chaining.

setRef(String value)

public GitSource.Builder setRef(String value)

Optional. Git reference (e.g. branch or tag).

optional string ref = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The ref to set.

Returns
Type Description
GitSource.Builder

This builder for chaining.

setRefBytes(ByteString value)

public GitSource.Builder setRefBytes(ByteString value)

Optional. Git reference (e.g. branch or tag).

optional string ref = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for ref to set.

Returns
Type Description
GitSource.Builder

This builder for chaining.

setRepo(String value)

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];

Parameter
Name Description
value String

The repo to set.

Returns
Type Description
GitSource.Builder

This builder for chaining.

setRepoBytes(ByteString value)

public GitSource.Builder setRepoBytes(ByteString value)

Optional. Repository URL. Example: 'https://github.com/kubernetes/examples.git'

optional string repo = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for repo to set.

Returns
Type Description
GitSource.Builder

This builder for chaining.