Class StatefulPolicy.Builder (1.56.0)

public static final class StatefulPolicy.Builder extends GeneratedMessageV3.Builder<StatefulPolicy.Builder> implements StatefulPolicyOrBuilder

Protobuf type google.cloud.compute.v1.StatefulPolicy

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StatefulPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StatefulPolicy.Builder
Overrides

build()

public StatefulPolicy build()
Returns
Type Description
StatefulPolicy

buildPartial()

public StatefulPolicy buildPartial()
Returns
Type Description
StatefulPolicy

clear()

public StatefulPolicy.Builder clear()
Returns
Type Description
StatefulPolicy.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public StatefulPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
StatefulPolicy.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public StatefulPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
StatefulPolicy.Builder
Overrides

clearPreservedState()

public StatefulPolicy.Builder clearPreservedState()

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

Returns
Type Description
StatefulPolicy.Builder

clone()

public StatefulPolicy.Builder clone()
Returns
Type Description
StatefulPolicy.Builder
Overrides

getDefaultInstanceForType()

public StatefulPolicy getDefaultInstanceForType()
Returns
Type Description
StatefulPolicy

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getPreservedState()

public StatefulPolicyPreservedState getPreservedState()

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

Returns
Type Description
StatefulPolicyPreservedState

The preservedState.

getPreservedStateBuilder()

public StatefulPolicyPreservedState.Builder getPreservedStateBuilder()

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

Returns
Type Description
StatefulPolicyPreservedState.Builder

getPreservedStateOrBuilder()

public StatefulPolicyPreservedStateOrBuilder getPreservedStateOrBuilder()

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

Returns
Type Description
StatefulPolicyPreservedStateOrBuilder

hasPreservedState()

public boolean hasPreservedState()

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

Returns
Type Description
boolean

Whether the preservedState field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(StatefulPolicy other)

public StatefulPolicy.Builder mergeFrom(StatefulPolicy other)
Parameter
Name Description
other StatefulPolicy
Returns
Type Description
StatefulPolicy.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public StatefulPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StatefulPolicy.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public StatefulPolicy.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
StatefulPolicy.Builder
Overrides

mergePreservedState(StatefulPolicyPreservedState value)

public StatefulPolicy.Builder mergePreservedState(StatefulPolicyPreservedState value)

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

Parameter
Name Description
value StatefulPolicyPreservedState
Returns
Type Description
StatefulPolicy.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StatefulPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StatefulPolicy.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public StatefulPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StatefulPolicy.Builder
Overrides

setPreservedState(StatefulPolicyPreservedState value)

public StatefulPolicy.Builder setPreservedState(StatefulPolicyPreservedState value)

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

Parameter
Name Description
value StatefulPolicyPreservedState
Returns
Type Description
StatefulPolicy.Builder

setPreservedState(StatefulPolicyPreservedState.Builder builderForValue)

public StatefulPolicy.Builder setPreservedState(StatefulPolicyPreservedState.Builder builderForValue)

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

Parameter
Name Description
builderForValue StatefulPolicyPreservedState.Builder
Returns
Type Description
StatefulPolicy.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public StatefulPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
StatefulPolicy.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final StatefulPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StatefulPolicy.Builder
Overrides