Class StatefulPolicy.Builder (1.38.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StatefulPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
StatefulPolicy.Builder
Overrides

build()

public StatefulPolicy build()
Returns
TypeDescription
StatefulPolicy

buildPartial()

public StatefulPolicy buildPartial()
Returns
TypeDescription
StatefulPolicy

clear()

public StatefulPolicy.Builder clear()
Returns
TypeDescription
StatefulPolicy.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public StatefulPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
StatefulPolicy.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public StatefulPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
StatefulPolicy.Builder
Overrides

clearPreservedState()

public StatefulPolicy.Builder clearPreservedState()

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

Returns
TypeDescription
StatefulPolicy.Builder

clone()

public StatefulPolicy.Builder clone()
Returns
TypeDescription
StatefulPolicy.Builder
Overrides

getDefaultInstanceForType()

public StatefulPolicy getDefaultInstanceForType()
Returns
TypeDescription
StatefulPolicy

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPreservedState()

public StatefulPolicyPreservedState getPreservedState()

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

Returns
TypeDescription
StatefulPolicyPreservedState

The preservedState.

getPreservedStateBuilder()

public StatefulPolicyPreservedState.Builder getPreservedStateBuilder()

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

Returns
TypeDescription
StatefulPolicyPreservedState.Builder

getPreservedStateOrBuilder()

public StatefulPolicyPreservedStateOrBuilder getPreservedStateOrBuilder()

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

Returns
TypeDescription
StatefulPolicyPreservedStateOrBuilder

hasPreservedState()

public boolean hasPreservedState()

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

Returns
TypeDescription
boolean

Whether the preservedState field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(StatefulPolicy other)

public StatefulPolicy.Builder mergeFrom(StatefulPolicy other)
Parameter
NameDescription
otherStatefulPolicy
Returns
TypeDescription
StatefulPolicy.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public StatefulPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StatefulPolicy.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public StatefulPolicy.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
StatefulPolicy.Builder
Overrides

mergePreservedState(StatefulPolicyPreservedState value)

public StatefulPolicy.Builder mergePreservedState(StatefulPolicyPreservedState value)

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

Parameter
NameDescription
valueStatefulPolicyPreservedState
Returns
TypeDescription
StatefulPolicy.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StatefulPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
StatefulPolicy.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public StatefulPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
StatefulPolicy.Builder
Overrides

setPreservedState(StatefulPolicyPreservedState value)

public StatefulPolicy.Builder setPreservedState(StatefulPolicyPreservedState value)

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

Parameter
NameDescription
valueStatefulPolicyPreservedState
Returns
TypeDescription
StatefulPolicy.Builder

setPreservedState(StatefulPolicyPreservedState.Builder builderForValue)

public StatefulPolicy.Builder setPreservedState(StatefulPolicyPreservedState.Builder builderForValue)

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

Parameter
NameDescription
builderForValueStatefulPolicyPreservedState.Builder
Returns
TypeDescription
StatefulPolicy.Builder

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

public StatefulPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
StatefulPolicy.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final StatefulPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
StatefulPolicy.Builder
Overrides