Class FleetPackage.CloudBuildRepository.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<FleetPackage.CloudBuildRepository.Builder>
com.google.cloud.configdelivery.v1beta.FleetPackage.CloudBuildRepository.Builder
- All Implemented Interfaces:
FleetPackage.CloudBuildRepositoryOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- FleetPackage.CloudBuildRepository
public static final class FleetPackage.CloudBuildRepository.Builder
extends com.google.protobuf.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Required.Optional. path to the directory or file within the repository that contains the kubernetes configuration.Required.clearTag()Required. git tag of the underlying git repository.Optional. variants_pattern is a glob pattern that will be used to find variants in the repository.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetName()Required.com.google.protobuf.ByteStringRequired.getPath()Optional. path to the directory or file within the repository that contains the kubernetes configuration.com.google.protobuf.ByteStringOptional. path to the directory or file within the repository that contains the kubernetes configuration.Required.com.google.protobuf.ByteStringRequired.getTag()Required. git tag of the underlying git repository.com.google.protobuf.ByteStringRequired. git tag of the underlying git repository.Optional. variants_pattern is a glob pattern that will be used to find variants in the repository.com.google.protobuf.ByteStringOptional. variants_pattern is a glob pattern that will be used to find variants in the repository.booleanOptional. variants_pattern is a glob pattern that will be used to find variants in the repository.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Required.setNameBytes(com.google.protobuf.ByteString value) Required.Optional. path to the directory or file within the repository that contains the kubernetes configuration.setPathBytes(com.google.protobuf.ByteString value) Optional. path to the directory or file within the repository that contains the kubernetes configuration.setServiceAccount(String value) Required.setServiceAccountBytes(com.google.protobuf.ByteString value) Required.Required. git tag of the underlying git repository.setTagBytes(com.google.protobuf.ByteString value) Required. git tag of the underlying git repository.setVariantsPattern(String value) Optional. variants_pattern is a glob pattern that will be used to find variants in the repository.setVariantsPatternBytes(com.google.protobuf.ByteString value) Optional. variants_pattern is a glob pattern that will be used to find variants in the repository.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<FleetPackage.CloudBuildRepository.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<FleetPackage.CloudBuildRepository.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<FleetPackage.CloudBuildRepository.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FleetPackage.CloudBuildRepository.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<FleetPackage.CloudBuildRepository.Builder>
-
mergeFrom
public FleetPackage.CloudBuildRepository.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FleetPackage.CloudBuildRepository.Builder>- Throws:
IOException
-
getVariantsCase
- Specified by:
getVariantsCasein interfaceFleetPackage.CloudBuildRepositoryOrBuilder
-
clearVariants
-
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];- Specified by:
hasVariantsPatternin interfaceFleetPackage.CloudBuildRepositoryOrBuilder- Returns:
- Whether the variantsPattern field is set.
-
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];- Specified by:
getVariantsPatternin interfaceFleetPackage.CloudBuildRepositoryOrBuilder- Returns:
- The variantsPattern.
-
getVariantsPatternBytes
public com.google.protobuf.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];- Specified by:
getVariantsPatternBytesin interfaceFleetPackage.CloudBuildRepositoryOrBuilder- Returns:
- The bytes for variantsPattern.
-
setVariantsPattern
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];- Parameters:
value- The variantsPattern to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setVariantsPatternBytes
public FleetPackage.CloudBuildRepository.Builder setVariantsPatternBytes(com.google.protobuf.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];- Parameters:
value- The bytes for variantsPattern to set.- Returns:
- This builder for chaining.
-
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) = { ... }- Specified by:
getNamein interfaceFleetPackage.CloudBuildRepositoryOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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) = { ... }- Specified by:
getNameBytesin interfaceFleetPackage.CloudBuildRepositoryOrBuilder- Returns:
- The bytes for name.
-
setName
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) = { ... }- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setNameBytes
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) = { ... }- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getPathin interfaceFleetPackage.CloudBuildRepositoryOrBuilder- Returns:
- The path.
-
getPathBytes
public com.google.protobuf.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];- Specified by:
getPathBytesin interfaceFleetPackage.CloudBuildRepositoryOrBuilder- Returns:
- The bytes for path.
-
setPath
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];- Parameters:
value- The path to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setPathBytes
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];- Parameters:
value- The bytes for path to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getTagin interfaceFleetPackage.CloudBuildRepositoryOrBuilder- Returns:
- The tag.
-
getTagBytes
public com.google.protobuf.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];- Specified by:
getTagBytesin interfaceFleetPackage.CloudBuildRepositoryOrBuilder- Returns:
- The bytes for tag.
-
setTag
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];- Parameters:
value- The tag to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setTagBytes
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];- Parameters:
value- The bytes for tag to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getServiceAccountin interfaceFleetPackage.CloudBuildRepositoryOrBuilder- Returns:
- The serviceAccount.
-
getServiceAccountBytes
public com.google.protobuf.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];- Specified by:
getServiceAccountBytesin interfaceFleetPackage.CloudBuildRepositoryOrBuilder- Returns:
- The bytes for serviceAccount.
-
setServiceAccount
Required. Google service account to use in CloudBuild triggers to fetch and store kubernetes configuration.
string service_account = 4 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The serviceAccount to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setServiceAccountBytes
public FleetPackage.CloudBuildRepository.Builder setServiceAccountBytes(com.google.protobuf.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];- Parameters:
value- The bytes for serviceAccount to set.- Returns:
- This builder for chaining.
-