Class CloudRunConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CloudRunConfig.Builder>
com.google.cloud.deploy.v1.CloudRunConfig.Builder
All Implemented Interfaces:
CloudRunConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CloudRunConfig

public static final class CloudRunConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<CloudRunConfig.Builder> implements CloudRunConfigOrBuilder
 CloudRunConfig contains the Cloud Run runtime configuration.
 
Protobuf type google.cloud.deploy.v1.CloudRunConfig
  • 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<CloudRunConfig.Builder>
    • clear

      public CloudRunConfig.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<CloudRunConfig.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<CloudRunConfig.Builder>
    • getDefaultInstanceForType

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

      public CloudRunConfig build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public CloudRunConfig.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<CloudRunConfig.Builder>
    • mergeFrom

      public CloudRunConfig.Builder mergeFrom(CloudRunConfig other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<CloudRunConfig.Builder>
    • mergeFrom

      public CloudRunConfig.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<CloudRunConfig.Builder>
      Throws:
      IOException
    • getAutomaticTrafficControl

      public boolean getAutomaticTrafficControl()
       Optional. Whether Cloud Deploy should update the traffic stanza in a Cloud
       Run Service on the user's behalf to facilitate traffic splitting. This is
       required to be true for CanaryDeployments, but optional for
       CustomCanaryDeployments.
       
      bool automatic_traffic_control = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAutomaticTrafficControl in interface CloudRunConfigOrBuilder
      Returns:
      The automaticTrafficControl.
    • setAutomaticTrafficControl

      public CloudRunConfig.Builder setAutomaticTrafficControl(boolean value)
       Optional. Whether Cloud Deploy should update the traffic stanza in a Cloud
       Run Service on the user's behalf to facilitate traffic splitting. This is
       required to be true for CanaryDeployments, but optional for
       CustomCanaryDeployments.
       
      bool automatic_traffic_control = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The automaticTrafficControl to set.
      Returns:
      This builder for chaining.
    • clearAutomaticTrafficControl

      public CloudRunConfig.Builder clearAutomaticTrafficControl()
       Optional. Whether Cloud Deploy should update the traffic stanza in a Cloud
       Run Service on the user's behalf to facilitate traffic splitting. This is
       required to be true for CanaryDeployments, but optional for
       CustomCanaryDeployments.
       
      bool automatic_traffic_control = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getCanaryRevisionTagsList

      public com.google.protobuf.ProtocolStringList getCanaryRevisionTagsList()
       Optional. A list of tags that are added to the canary revision while the
       canary phase is in progress.
       
      repeated string canary_revision_tags = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCanaryRevisionTagsList in interface CloudRunConfigOrBuilder
      Returns:
      A list containing the canaryRevisionTags.
    • getCanaryRevisionTagsCount

      public int getCanaryRevisionTagsCount()
       Optional. A list of tags that are added to the canary revision while the
       canary phase is in progress.
       
      repeated string canary_revision_tags = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCanaryRevisionTagsCount in interface CloudRunConfigOrBuilder
      Returns:
      The count of canaryRevisionTags.
    • getCanaryRevisionTags

      public String getCanaryRevisionTags(int index)
       Optional. A list of tags that are added to the canary revision while the
       canary phase is in progress.
       
      repeated string canary_revision_tags = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCanaryRevisionTags in interface CloudRunConfigOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The canaryRevisionTags at the given index.
    • getCanaryRevisionTagsBytes

      public com.google.protobuf.ByteString getCanaryRevisionTagsBytes(int index)
       Optional. A list of tags that are added to the canary revision while the
       canary phase is in progress.
       
      repeated string canary_revision_tags = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCanaryRevisionTagsBytes in interface CloudRunConfigOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the canaryRevisionTags at the given index.
    • setCanaryRevisionTags

      public CloudRunConfig.Builder setCanaryRevisionTags(int index, String value)
       Optional. A list of tags that are added to the canary revision while the
       canary phase is in progress.
       
      repeated string canary_revision_tags = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The canaryRevisionTags to set.
      Returns:
      This builder for chaining.
    • addCanaryRevisionTags

      public CloudRunConfig.Builder addCanaryRevisionTags(String value)
       Optional. A list of tags that are added to the canary revision while the
       canary phase is in progress.
       
      repeated string canary_revision_tags = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The canaryRevisionTags to add.
      Returns:
      This builder for chaining.
    • addAllCanaryRevisionTags

      public CloudRunConfig.Builder addAllCanaryRevisionTags(Iterable<String> values)
       Optional. A list of tags that are added to the canary revision while the
       canary phase is in progress.
       
      repeated string canary_revision_tags = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The canaryRevisionTags to add.
      Returns:
      This builder for chaining.
    • clearCanaryRevisionTags

      public CloudRunConfig.Builder clearCanaryRevisionTags()
       Optional. A list of tags that are added to the canary revision while the
       canary phase is in progress.
       
      repeated string canary_revision_tags = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addCanaryRevisionTagsBytes

      public CloudRunConfig.Builder addCanaryRevisionTagsBytes(com.google.protobuf.ByteString value)
       Optional. A list of tags that are added to the canary revision while the
       canary phase is in progress.
       
      repeated string canary_revision_tags = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the canaryRevisionTags to add.
      Returns:
      This builder for chaining.
    • getPriorRevisionTagsList

      public com.google.protobuf.ProtocolStringList getPriorRevisionTagsList()
       Optional. A list of tags that are added to the prior revision while the
       canary phase is in progress.
       
      repeated string prior_revision_tags = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPriorRevisionTagsList in interface CloudRunConfigOrBuilder
      Returns:
      A list containing the priorRevisionTags.
    • getPriorRevisionTagsCount

      public int getPriorRevisionTagsCount()
       Optional. A list of tags that are added to the prior revision while the
       canary phase is in progress.
       
      repeated string prior_revision_tags = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPriorRevisionTagsCount in interface CloudRunConfigOrBuilder
      Returns:
      The count of priorRevisionTags.
    • getPriorRevisionTags

      public String getPriorRevisionTags(int index)
       Optional. A list of tags that are added to the prior revision while the
       canary phase is in progress.
       
      repeated string prior_revision_tags = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPriorRevisionTags in interface CloudRunConfigOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The priorRevisionTags at the given index.
    • getPriorRevisionTagsBytes

      public com.google.protobuf.ByteString getPriorRevisionTagsBytes(int index)
       Optional. A list of tags that are added to the prior revision while the
       canary phase is in progress.
       
      repeated string prior_revision_tags = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPriorRevisionTagsBytes in interface CloudRunConfigOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the priorRevisionTags at the given index.
    • setPriorRevisionTags

      public CloudRunConfig.Builder setPriorRevisionTags(int index, String value)
       Optional. A list of tags that are added to the prior revision while the
       canary phase is in progress.
       
      repeated string prior_revision_tags = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The priorRevisionTags to set.
      Returns:
      This builder for chaining.
    • addPriorRevisionTags

      public CloudRunConfig.Builder addPriorRevisionTags(String value)
       Optional. A list of tags that are added to the prior revision while the
       canary phase is in progress.
       
      repeated string prior_revision_tags = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The priorRevisionTags to add.
      Returns:
      This builder for chaining.
    • addAllPriorRevisionTags

      public CloudRunConfig.Builder addAllPriorRevisionTags(Iterable<String> values)
       Optional. A list of tags that are added to the prior revision while the
       canary phase is in progress.
       
      repeated string prior_revision_tags = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The priorRevisionTags to add.
      Returns:
      This builder for chaining.
    • clearPriorRevisionTags

      public CloudRunConfig.Builder clearPriorRevisionTags()
       Optional. A list of tags that are added to the prior revision while the
       canary phase is in progress.
       
      repeated string prior_revision_tags = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addPriorRevisionTagsBytes

      public CloudRunConfig.Builder addPriorRevisionTagsBytes(com.google.protobuf.ByteString value)
       Optional. A list of tags that are added to the prior revision while the
       canary phase is in progress.
       
      repeated string prior_revision_tags = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the priorRevisionTags to add.
      Returns:
      This builder for chaining.
    • getStableRevisionTagsList

      public com.google.protobuf.ProtocolStringList getStableRevisionTagsList()
       Optional. A list of tags that are added to the final stable revision when
       the stable phase is applied.
       
      repeated string stable_revision_tags = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStableRevisionTagsList in interface CloudRunConfigOrBuilder
      Returns:
      A list containing the stableRevisionTags.
    • getStableRevisionTagsCount

      public int getStableRevisionTagsCount()
       Optional. A list of tags that are added to the final stable revision when
       the stable phase is applied.
       
      repeated string stable_revision_tags = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStableRevisionTagsCount in interface CloudRunConfigOrBuilder
      Returns:
      The count of stableRevisionTags.
    • getStableRevisionTags

      public String getStableRevisionTags(int index)
       Optional. A list of tags that are added to the final stable revision when
       the stable phase is applied.
       
      repeated string stable_revision_tags = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStableRevisionTags in interface CloudRunConfigOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The stableRevisionTags at the given index.
    • getStableRevisionTagsBytes

      public com.google.protobuf.ByteString getStableRevisionTagsBytes(int index)
       Optional. A list of tags that are added to the final stable revision when
       the stable phase is applied.
       
      repeated string stable_revision_tags = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStableRevisionTagsBytes in interface CloudRunConfigOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the stableRevisionTags at the given index.
    • setStableRevisionTags

      public CloudRunConfig.Builder setStableRevisionTags(int index, String value)
       Optional. A list of tags that are added to the final stable revision when
       the stable phase is applied.
       
      repeated string stable_revision_tags = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The stableRevisionTags to set.
      Returns:
      This builder for chaining.
    • addStableRevisionTags

      public CloudRunConfig.Builder addStableRevisionTags(String value)
       Optional. A list of tags that are added to the final stable revision when
       the stable phase is applied.
       
      repeated string stable_revision_tags = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The stableRevisionTags to add.
      Returns:
      This builder for chaining.
    • addAllStableRevisionTags

      public CloudRunConfig.Builder addAllStableRevisionTags(Iterable<String> values)
       Optional. A list of tags that are added to the final stable revision when
       the stable phase is applied.
       
      repeated string stable_revision_tags = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The stableRevisionTags to add.
      Returns:
      This builder for chaining.
    • clearStableRevisionTags

      public CloudRunConfig.Builder clearStableRevisionTags()
       Optional. A list of tags that are added to the final stable revision when
       the stable phase is applied.
       
      repeated string stable_revision_tags = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addStableRevisionTagsBytes

      public CloudRunConfig.Builder addStableRevisionTagsBytes(com.google.protobuf.ByteString value)
       Optional. A list of tags that are added to the final stable revision when
       the stable phase is applied.
       
      repeated string stable_revision_tags = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the stableRevisionTags to add.
      Returns:
      This builder for chaining.