Class Strategy (1.14.0)

public final class Strategy extends GeneratedMessageV3 implements StrategyOrBuilder

Strategy contains deployment strategy information.

Protobuf type google.cloud.deploy.v1.Strategy

Implements

StrategyOrBuilder

Static Fields

CANARY_FIELD_NUMBER

public static final int CANARY_FIELD_NUMBER
Field Value
TypeDescription
int

STANDARD_FIELD_NUMBER

public static final int STANDARD_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Strategy getDefaultInstance()
Returns
TypeDescription
Strategy

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Strategy.Builder newBuilder()
Returns
TypeDescription
Strategy.Builder

newBuilder(Strategy prototype)

public static Strategy.Builder newBuilder(Strategy prototype)
Parameter
NameDescription
prototypeStrategy
Returns
TypeDescription
Strategy.Builder

parseDelimitedFrom(InputStream input)

public static Strategy parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Strategy
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Strategy parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Strategy
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Strategy parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Strategy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Strategy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Strategy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Strategy parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Strategy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Strategy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Strategy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Strategy parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Strategy
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Strategy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Strategy
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Strategy parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Strategy
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Strategy parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Strategy
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Strategy parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Strategy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Strategy parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Strategy
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Strategy> parser()
Returns
TypeDescription
Parser<Strategy>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCanary()

public Canary getCanary()

Canary deployment strategy provides progressive percentage based deployments to a Target.

.google.cloud.deploy.v1.Canary canary = 2;

Returns
TypeDescription
Canary

The canary.

getCanaryOrBuilder()

public CanaryOrBuilder getCanaryOrBuilder()

Canary deployment strategy provides progressive percentage based deployments to a Target.

.google.cloud.deploy.v1.Canary canary = 2;

Returns
TypeDescription
CanaryOrBuilder

getDefaultInstanceForType()

public Strategy getDefaultInstanceForType()
Returns
TypeDescription
Strategy

getDeploymentStrategyCase()

public Strategy.DeploymentStrategyCase getDeploymentStrategyCase()
Returns
TypeDescription
Strategy.DeploymentStrategyCase

getParserForType()

public Parser<Strategy> getParserForType()
Returns
TypeDescription
Parser<Strategy>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getStandard()

public Standard getStandard()

Standard deployment strategy executes a single deploy and allows verifying the deployment.

.google.cloud.deploy.v1.Standard standard = 1;

Returns
TypeDescription
Standard

The standard.

getStandardOrBuilder()

public StandardOrBuilder getStandardOrBuilder()

Standard deployment strategy executes a single deploy and allows verifying the deployment.

.google.cloud.deploy.v1.Standard standard = 1;

Returns
TypeDescription
StandardOrBuilder

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasCanary()

public boolean hasCanary()

Canary deployment strategy provides progressive percentage based deployments to a Target.

.google.cloud.deploy.v1.Canary canary = 2;

Returns
TypeDescription
boolean

Whether the canary field is set.

hasStandard()

public boolean hasStandard()

Standard deployment strategy executes a single deploy and allows verifying the deployment.

.google.cloud.deploy.v1.Standard standard = 1;

Returns
TypeDescription
boolean

Whether the standard field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Strategy.Builder newBuilderForType()
Returns
TypeDescription
Strategy.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Strategy.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Strategy.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Strategy.Builder toBuilder()
Returns
TypeDescription
Strategy.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException