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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<FleetPackage.CloudBuildRepository.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<FleetPackage.CloudBuildRepository.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<FleetPackage.CloudBuildRepository.Builder>
    • getDefaultInstanceForType

      public FleetPackage.CloudBuildRepository getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public FleetPackage.CloudBuildRepository buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public FleetPackage.CloudBuildRepository.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<FleetPackage.CloudBuildRepository.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<FleetPackage.CloudBuildRepository.Builder>
      Throws:
      IOException
    • getVariantsCase

      Specified by:
      getVariantsCase in interface FleetPackage.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:
      hasVariantsPattern in interface FleetPackage.CloudBuildRepositoryOrBuilder
      Returns:
      Whether the variantsPattern field is set.
    • 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];
      Specified by:
      getVariantsPattern in interface FleetPackage.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:
      getVariantsPatternBytes in interface FleetPackage.CloudBuildRepositoryOrBuilder
      Returns:
      The bytes for variantsPattern.
    • setVariantsPattern

      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];
      Parameters:
      value - The variantsPattern to set.
      Returns:
      This builder for chaining.
    • 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:
      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

      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) = { ... }
      Specified by:
      getName in interface FleetPackage.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:
      getNameBytes in interface FleetPackage.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

      public FleetPackage.CloudBuildRepository.Builder setNameBytes(com.google.protobuf.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) = { ... }
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getPath in interface FleetPackage.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:
      getPathBytes in interface FleetPackage.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

      public FleetPackage.CloudBuildRepository.Builder setPathBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for path to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getTag in interface FleetPackage.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:
      getTagBytes in interface FleetPackage.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

      public FleetPackage.CloudBuildRepository.Builder setTagBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for tag to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getServiceAccount in interface FleetPackage.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:
      getServiceAccountBytes in interface FleetPackage.CloudBuildRepositoryOrBuilder
      Returns:
      The bytes for serviceAccount.
    • setServiceAccount

      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];
      Parameters:
      value - The serviceAccount to set.
      Returns:
      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:
      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.