Class StatefulPolicy (1.34.0)

public final class StatefulPolicy extends GeneratedMessageV3 implements StatefulPolicyOrBuilder

Protobuf type google.cloud.compute.v1.StatefulPolicy

Static Fields

PRESERVED_STATE_FIELD_NUMBER

public static final int PRESERVED_STATE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static StatefulPolicy getDefaultInstance()
Returns
TypeDescription
StatefulPolicy

getDescriptor()

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

newBuilder()

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

newBuilder(StatefulPolicy prototype)

public static StatefulPolicy.Builder newBuilder(StatefulPolicy prototype)
Parameter
NameDescription
prototypeStatefulPolicy
Returns
TypeDescription
StatefulPolicy.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public StatefulPolicy getDefaultInstanceForType()
Returns
TypeDescription
StatefulPolicy

getParserForType()

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

getPreservedState()

public StatefulPolicyPreservedState getPreservedState()

optional .google.cloud.compute.v1.StatefulPolicyPreservedState preserved_state = 2634026;

Returns
TypeDescription
StatefulPolicyPreservedState

The preservedState.

getPreservedStateOrBuilder()

public StatefulPolicyPreservedStateOrBuilder getPreservedStateOrBuilder()

optional .google.cloud.compute.v1.StatefulPolicyPreservedState preserved_state = 2634026;

Returns
TypeDescription
StatefulPolicyPreservedStateOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasPreservedState()

public boolean hasPreservedState()

optional .google.cloud.compute.v1.StatefulPolicyPreservedState preserved_state = 2634026;

Returns
TypeDescription
boolean

Whether the preservedState 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 StatefulPolicy.Builder newBuilderForType()
Returns
TypeDescription
StatefulPolicy.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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