Class FleetPackage.CloudBuildRepository.Builder (0.19.0)

public static final class FleetPackage.CloudBuildRepository.Builder extends GeneratedMessage.Builder<FleetPackage.CloudBuildRepository.Builder> implements FleetPackage.CloudBuildRepositoryOrBuilder

CloudBuildRepository contains information about fetching Kubernetes configuration from a CloudBuildRepository.

Protobuf type google.cloud.configdelivery.v1beta.FleetPackage.CloudBuildRepository

Static Methods

getDescriptor()

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

Methods

build()

public FleetPackage.CloudBuildRepository build()
Returns
Type Description
FleetPackage.CloudBuildRepository

buildPartial()

public FleetPackage.CloudBuildRepository buildPartial()
Returns
Type Description
FleetPackage.CloudBuildRepository

clear()

public FleetPackage.CloudBuildRepository.Builder clear()
Returns
Type Description
FleetPackage.CloudBuildRepository.Builder
Overrides

clearName()

public FleetPackage.CloudBuildRepository.Builder clearName()

Required. Name of the cloud build repository. Format is projects/{p}/locations/{l}/connections/{c}/repositories/{r}.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
FleetPackage.CloudBuildRepository.Builder

This builder for chaining.

clearPath()

public FleetPackage.CloudBuildRepository.Builder clearPath()

Optional. path to the directory or file within the repository that contains the kubernetes configuration. If unspecified, path is assumed to the top level root directory of the repository.

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

Returns
Type Description
FleetPackage.CloudBuildRepository.Builder

This builder for chaining.

clearServiceAccount()

public FleetPackage.CloudBuildRepository.Builder clearServiceAccount()

Required. Google service account to use in CloudBuild triggers to fetch and store kubernetes configuration.

string service_account = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FleetPackage.CloudBuildRepository.Builder

This builder for chaining.

clearTag()

public FleetPackage.CloudBuildRepository.Builder clearTag()

Required. git tag of the underlying git repository. The git tag must be in the semantic version format vX.Y.Z.

string tag = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FleetPackage.CloudBuildRepository.Builder

This builder for chaining.

clearVariants()

public FleetPackage.CloudBuildRepository.Builder clearVariants()
Returns
Type Description
FleetPackage.CloudBuildRepository.Builder

clearVariantsPattern()

public FleetPackage.CloudBuildRepository.Builder clearVariantsPattern()

Optional. variants_pattern is a glob pattern that will be used to find variants in the repository. Examples: variants/*.yaml, us-*

string variants_pattern = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FleetPackage.CloudBuildRepository.Builder

This builder for chaining.

getDefaultInstanceForType()

public FleetPackage.CloudBuildRepository getDefaultInstanceForType()
Returns
Type Description
FleetPackage.CloudBuildRepository

getDescriptorForType()

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

getName()

public String getName()

Required. Name of the cloud build repository. Format is projects/{p}/locations/{l}/connections/{c}/repositories/{r}.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Name of the cloud build repository. Format is projects/{p}/locations/{l}/connections/{c}/repositories/{r}.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

getPath()

public String getPath()

Optional. path to the directory or file within the repository that contains the kubernetes configuration. If unspecified, path is assumed to the top level root directory of the repository.

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

Returns
Type Description
String

The path.

getPathBytes()

public ByteString getPathBytes()

Optional. path to the directory or file within the repository that contains the kubernetes configuration. If unspecified, path is assumed to the top level root directory of the repository.

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

Returns
Type Description
ByteString

The bytes for path.

getServiceAccount()

public String getServiceAccount()

Required. Google service account to use in CloudBuild triggers to fetch and store kubernetes configuration.

string service_account = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The serviceAccount.

getServiceAccountBytes()

public ByteString getServiceAccountBytes()

Required. Google service account to use in CloudBuild triggers to fetch and store kubernetes configuration.

string service_account = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for serviceAccount.

getTag()

public String getTag()

Required. git tag of the underlying git repository. The git tag must be in the semantic version format vX.Y.Z.

string tag = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The tag.

getTagBytes()

public ByteString getTagBytes()

Required. git tag of the underlying git repository. The git tag must be in the semantic version format vX.Y.Z.

string tag = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for tag.

getVariantsCase()

public FleetPackage.CloudBuildRepository.VariantsCase getVariantsCase()
Returns
Type Description
FleetPackage.CloudBuildRepository.VariantsCase

getVariantsPattern()

public String getVariantsPattern()

Optional. variants_pattern is a glob pattern that will be used to find variants in the repository. Examples: variants/*.yaml, us-*

string variants_pattern = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The variantsPattern.

getVariantsPatternBytes()

public ByteString getVariantsPatternBytes()

Optional. variants_pattern is a glob pattern that will be used to find variants in the repository. Examples: variants/*.yaml, us-*

string variants_pattern = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for variantsPattern.

hasVariantsPattern()

public boolean hasVariantsPattern()

Optional. variants_pattern is a glob pattern that will be used to find variants in the repository. Examples: variants/*.yaml, us-*

string variants_pattern = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the variantsPattern field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FleetPackage.CloudBuildRepository other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setName(String value)

public FleetPackage.CloudBuildRepository.Builder setName(String value)

Required. Name of the cloud build repository. Format is projects/{p}/locations/{l}/connections/{c}/repositories/{r}.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
FleetPackage.CloudBuildRepository.Builder

This builder for chaining.

setNameBytes(ByteString value)

public FleetPackage.CloudBuildRepository.Builder setNameBytes(ByteString value)

Required. Name of the cloud build repository. Format is projects/{p}/locations/{l}/connections/{c}/repositories/{r}.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
FleetPackage.CloudBuildRepository.Builder

This builder for chaining.

setPath(String value)

public FleetPackage.CloudBuildRepository.Builder setPath(String value)

Optional. path to the directory or file within the repository that contains the kubernetes configuration. If unspecified, path is assumed to the top level root directory of the repository.

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

Parameter
Name Description
value String

The path to set.

Returns
Type Description
FleetPackage.CloudBuildRepository.Builder

This builder for chaining.

setPathBytes(ByteString value)

public FleetPackage.CloudBuildRepository.Builder setPathBytes(ByteString value)

Optional. path to the directory or file within the repository that contains the kubernetes configuration. If unspecified, path is assumed to the top level root directory of the repository.

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

Parameter
Name Description
value ByteString

The bytes for path to set.

Returns
Type Description
FleetPackage.CloudBuildRepository.Builder

This builder for chaining.

setServiceAccount(String value)

public FleetPackage.CloudBuildRepository.Builder setServiceAccount(String value)

Required. Google service account to use in CloudBuild triggers to fetch and store kubernetes configuration.

string service_account = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The serviceAccount to set.

Returns
Type Description
FleetPackage.CloudBuildRepository.Builder

This builder for chaining.

setServiceAccountBytes(ByteString value)

public FleetPackage.CloudBuildRepository.Builder setServiceAccountBytes(ByteString value)

Required. Google service account to use in CloudBuild triggers to fetch and store kubernetes configuration.

string service_account = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for serviceAccount to set.

Returns
Type Description
FleetPackage.CloudBuildRepository.Builder

This builder for chaining.

setTag(String value)

public FleetPackage.CloudBuildRepository.Builder setTag(String value)

Required. git tag of the underlying git repository. The git tag must be in the semantic version format vX.Y.Z.

string tag = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The tag to set.

Returns
Type Description
FleetPackage.CloudBuildRepository.Builder

This builder for chaining.

setTagBytes(ByteString value)

public FleetPackage.CloudBuildRepository.Builder setTagBytes(ByteString value)

Required. git tag of the underlying git repository. The git tag must be in the semantic version format vX.Y.Z.

string tag = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for tag to set.

Returns
Type Description
FleetPackage.CloudBuildRepository.Builder

This builder for chaining.

setVariantsPattern(String value)

public FleetPackage.CloudBuildRepository.Builder setVariantsPattern(String value)

Optional. variants_pattern is a glob pattern that will be used to find variants in the repository. Examples: variants/*.yaml, us-*

string variants_pattern = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The variantsPattern to set.

Returns
Type Description
FleetPackage.CloudBuildRepository.Builder

This builder for chaining.

setVariantsPatternBytes(ByteString value)

public FleetPackage.CloudBuildRepository.Builder setVariantsPatternBytes(ByteString value)

Optional. variants_pattern is a glob pattern that will be used to find variants in the repository. Examples: variants/*.yaml, us-*

string variants_pattern = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for variantsPattern to set.

Returns
Type Description
FleetPackage.CloudBuildRepository.Builder

This builder for chaining.