Class GitSource.Builder (0.11.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GitSource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GitSource.Builder
Overrides

build()

public GitSource build()
Returns
TypeDescription
GitSource

buildPartial()

public GitSource buildPartial()
Returns
TypeDescription
GitSource

clear()

public GitSource.Builder clear()
Returns
TypeDescription
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
TypeDescription
GitSource.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public GitSource.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
GitSource.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public GitSource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
GitSource.Builder

This builder for chaining.

clone()

public GitSource.Builder clone()
Returns
TypeDescription
GitSource.Builder
Overrides

getDefaultInstanceForType()

public GitSource getDefaultInstanceForType()
Returns
TypeDescription
GitSource

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the repo field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GitSource other)

public GitSource.Builder mergeFrom(GitSource other)
Parameter
NameDescription
otherGitSource
Returns
TypeDescription
GitSource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GitSource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GitSource.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public GitSource.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
GitSource.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GitSource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The directory to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for directory to set.

Returns
TypeDescription
GitSource.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public GitSource.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The ref to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for ref to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The repo to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for repo to set.

Returns
TypeDescription
GitSource.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final GitSource.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GitSource.Builder
Overrides