Package com.google.cloud.deploy.v1
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 Summary
Modifier and TypeMethodDescriptionaddAllCanaryRevisionTags(Iterable<String> values) Optional.addAllPriorRevisionTags(Iterable<String> values) Optional.addAllStableRevisionTags(Iterable<String> values) Optional.addCanaryRevisionTags(String value) Optional.addCanaryRevisionTagsBytes(com.google.protobuf.ByteString value) Optional.addPriorRevisionTags(String value) Optional.addPriorRevisionTagsBytes(com.google.protobuf.ByteString value) Optional.addStableRevisionTags(String value) Optional.addStableRevisionTagsBytes(com.google.protobuf.ByteString value) Optional.build()clear()Optional.Optional.Optional.Optional.booleanOptional.getCanaryRevisionTags(int index) Optional.com.google.protobuf.ByteStringgetCanaryRevisionTagsBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetPriorRevisionTags(int index) Optional.com.google.protobuf.ByteStringgetPriorRevisionTagsBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.getStableRevisionTags(int index) Optional.com.google.protobuf.ByteStringgetStableRevisionTagsBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(CloudRunConfig other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAutomaticTrafficControl(boolean value) Optional.setCanaryRevisionTags(int index, String value) Optional.setPriorRevisionTags(int index, String value) Optional.setStableRevisionTags(int index, String value) Optional.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<CloudRunConfig.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<CloudRunConfig.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<CloudRunConfig.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<CloudRunConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getAutomaticTrafficControlin interfaceCloudRunConfigOrBuilder- Returns:
- The automaticTrafficControl.
-
setAutomaticTrafficControl
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
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:
getCanaryRevisionTagsListin interfaceCloudRunConfigOrBuilder- 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:
getCanaryRevisionTagsCountin interfaceCloudRunConfigOrBuilder- Returns:
- The count of canaryRevisionTags.
-
getCanaryRevisionTags
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:
getCanaryRevisionTagsin interfaceCloudRunConfigOrBuilder- 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:
getCanaryRevisionTagsBytesin interfaceCloudRunConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the canaryRevisionTags at the given index.
-
setCanaryRevisionTags
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
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
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
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
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:
getPriorRevisionTagsListin interfaceCloudRunConfigOrBuilder- 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:
getPriorRevisionTagsCountin interfaceCloudRunConfigOrBuilder- Returns:
- The count of priorRevisionTags.
-
getPriorRevisionTags
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:
getPriorRevisionTagsin interfaceCloudRunConfigOrBuilder- 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:
getPriorRevisionTagsBytesin interfaceCloudRunConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the priorRevisionTags at the given index.
-
setPriorRevisionTags
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
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
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
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
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:
getStableRevisionTagsListin interfaceCloudRunConfigOrBuilder- 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:
getStableRevisionTagsCountin interfaceCloudRunConfigOrBuilder- Returns:
- The count of stableRevisionTags.
-
getStableRevisionTags
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:
getStableRevisionTagsin interfaceCloudRunConfigOrBuilder- 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:
getStableRevisionTagsBytesin interfaceCloudRunConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the stableRevisionTags at the given index.
-
setStableRevisionTags
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
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
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
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
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.
-