Class GitSource.Builder (0.21.0)

public static final class GitSource.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GitSource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GitSource.Builder
Overrides

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.

clearField(Descriptors.FieldDescriptor field)

public GitSource.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
GitSource.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public GitSource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GitSource.Builder
Overrides

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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GitSource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

public GitSource.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GitSource.Builder
Overrides

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.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public GitSource.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
GitSource.Builder
Overrides

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.

setUnknownFields(UnknownFieldSet unknownFields)

public final GitSource.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GitSource.Builder
Overrides