public static final class StatefulPolicy.Builder extends GeneratedMessageV3.Builder<StatefulPolicy.Builder> implements StatefulPolicyOrBuilder
Protobuf type google.cloud.compute.v1.StatefulPolicy
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public StatefulPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public StatefulPolicy build()
Returns
buildPartial()
public StatefulPolicy buildPartial()
Returns
clear()
public StatefulPolicy.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public StatefulPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public StatefulPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearPreservedState()
public StatefulPolicy.Builder clearPreservedState()
optional .google.cloud.compute.v1.StatefulPolicyPreservedState preserved_state = 2634026;
Returns
clone()
public StatefulPolicy.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public StatefulPolicy getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getPreservedState()
public StatefulPolicyPreservedState getPreservedState()
optional .google.cloud.compute.v1.StatefulPolicyPreservedState preserved_state = 2634026;
Returns
getPreservedStateBuilder()
public StatefulPolicyPreservedState.Builder getPreservedStateBuilder()
optional .google.cloud.compute.v1.StatefulPolicyPreservedState preserved_state = 2634026;
Returns
getPreservedStateOrBuilder()
public StatefulPolicyPreservedStateOrBuilder getPreservedStateOrBuilder()
optional .google.cloud.compute.v1.StatefulPolicyPreservedState preserved_state = 2634026;
Returns
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(StatefulPolicy other)
public StatefulPolicy.Builder mergeFrom(StatefulPolicy other)
Parameter
Returns
public StatefulPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public StatefulPolicy.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergePreservedState(StatefulPolicyPreservedState value)
public StatefulPolicy.Builder mergePreservedState(StatefulPolicyPreservedState value)
optional .google.cloud.compute.v1.StatefulPolicyPreservedState preserved_state = 2634026;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final StatefulPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public StatefulPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setPreservedState(StatefulPolicyPreservedState value)
public StatefulPolicy.Builder setPreservedState(StatefulPolicyPreservedState value)
optional .google.cloud.compute.v1.StatefulPolicyPreservedState preserved_state = 2634026;
Parameter
Returns
setPreservedState(StatefulPolicyPreservedState.Builder builderForValue)
public StatefulPolicy.Builder setPreservedState(StatefulPolicyPreservedState.Builder builderForValue)
optional .google.cloud.compute.v1.StatefulPolicyPreservedState preserved_state = 2634026;
Parameter
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public StatefulPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final StatefulPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides