Class Unit.MaintenanceSettings.Builder (0.2.0)

public static final class Unit.MaintenanceSettings.Builder extends GeneratedMessageV3.Builder<Unit.MaintenanceSettings.Builder> implements Unit.MaintenanceSettingsOrBuilder

Captures requested directives for performing future maintenance on the unit. This includes a request for the unit to skip maintenance for a period of time and remain pinned to its current release as well as controls for postponing maintenance scheduled in future.

Protobuf type google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Unit.MaintenanceSettings build()
Returns
Type Description
Unit.MaintenanceSettings

buildPartial()

public Unit.MaintenanceSettings buildPartial()
Returns
Type Description
Unit.MaintenanceSettings

clear()

public Unit.MaintenanceSettings.Builder clear()
Returns
Type Description
Unit.MaintenanceSettings.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPinnedUntilTime()

public Unit.MaintenanceSettings.Builder clearPinnedUntilTime()

Optional. If present, it fixes the release on the unit until the given time; i.e. changes to the release field will be rejected. Rollouts should and will also respect this by not requesting an upgrade in the first place.

.google.protobuf.Timestamp pinned_until_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Unit.MaintenanceSettings.Builder

clone()

public Unit.MaintenanceSettings.Builder clone()
Returns
Type Description
Unit.MaintenanceSettings.Builder
Overrides

getDefaultInstanceForType()

public Unit.MaintenanceSettings getDefaultInstanceForType()
Returns
Type Description
Unit.MaintenanceSettings

getDescriptorForType()

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

getPinnedUntilTime()

public Timestamp getPinnedUntilTime()

Optional. If present, it fixes the release on the unit until the given time; i.e. changes to the release field will be rejected. Rollouts should and will also respect this by not requesting an upgrade in the first place.

.google.protobuf.Timestamp pinned_until_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Timestamp

The pinnedUntilTime.

getPinnedUntilTimeBuilder()

public Timestamp.Builder getPinnedUntilTimeBuilder()

Optional. If present, it fixes the release on the unit until the given time; i.e. changes to the release field will be rejected. Rollouts should and will also respect this by not requesting an upgrade in the first place.

.google.protobuf.Timestamp pinned_until_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getPinnedUntilTimeOrBuilder()

public TimestampOrBuilder getPinnedUntilTimeOrBuilder()

Optional. If present, it fixes the release on the unit until the given time; i.e. changes to the release field will be rejected. Rollouts should and will also respect this by not requesting an upgrade in the first place.

.google.protobuf.Timestamp pinned_until_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TimestampOrBuilder

hasPinnedUntilTime()

public boolean hasPinnedUntilTime()

Optional. If present, it fixes the release on the unit until the given time; i.e. changes to the release field will be rejected. Rollouts should and will also respect this by not requesting an upgrade in the first place.

.google.protobuf.Timestamp pinned_until_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the pinnedUntilTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Unit.MaintenanceSettings other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePinnedUntilTime(Timestamp value)

public Unit.MaintenanceSettings.Builder mergePinnedUntilTime(Timestamp value)

Optional. If present, it fixes the release on the unit until the given time; i.e. changes to the release field will be rejected. Rollouts should and will also respect this by not requesting an upgrade in the first place.

.google.protobuf.Timestamp pinned_until_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Timestamp
Returns
Type Description
Unit.MaintenanceSettings.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPinnedUntilTime(Timestamp value)

public Unit.MaintenanceSettings.Builder setPinnedUntilTime(Timestamp value)

Optional. If present, it fixes the release on the unit until the given time; i.e. changes to the release field will be rejected. Rollouts should and will also respect this by not requesting an upgrade in the first place.

.google.protobuf.Timestamp pinned_until_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Timestamp
Returns
Type Description
Unit.MaintenanceSettings.Builder

setPinnedUntilTime(Timestamp.Builder builderForValue)

public Unit.MaintenanceSettings.Builder setPinnedUntilTime(Timestamp.Builder builderForValue)

Optional. If present, it fixes the release on the unit until the given time; i.e. changes to the release field will be rejected. Rollouts should and will also respect this by not requesting an upgrade in the first place.

.google.protobuf.Timestamp pinned_until_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Unit.MaintenanceSettings.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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