Class SnapshotSchedulePolicy.Builder (0.1.1)

public static final class SnapshotSchedulePolicy.Builder extends GeneratedMessageV3.Builder<SnapshotSchedulePolicy.Builder> implements SnapshotSchedulePolicyOrBuilder

A snapshot schedule policy.

Protobuf type google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy

Static Methods

getDescriptor()

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

Methods

addAllSchedules(Iterable<? extends SnapshotSchedulePolicy.Schedule> values)

public SnapshotSchedulePolicy.Builder addAllSchedules(Iterable<? extends SnapshotSchedulePolicy.Schedule> values)

The snapshot schedules contained in this policy. You can specify a maximum of 5 schedules.

repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule schedules = 3;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule>
Returns
TypeDescription
SnapshotSchedulePolicy.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSchedules(SnapshotSchedulePolicy.Schedule value)

public SnapshotSchedulePolicy.Builder addSchedules(SnapshotSchedulePolicy.Schedule value)

The snapshot schedules contained in this policy. You can specify a maximum of 5 schedules.

repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule schedules = 3;

Parameter
NameDescription
valueSnapshotSchedulePolicy.Schedule
Returns
TypeDescription
SnapshotSchedulePolicy.Builder

addSchedules(SnapshotSchedulePolicy.Schedule.Builder builderForValue)

public SnapshotSchedulePolicy.Builder addSchedules(SnapshotSchedulePolicy.Schedule.Builder builderForValue)

The snapshot schedules contained in this policy. You can specify a maximum of 5 schedules.

repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule schedules = 3;

Parameter
NameDescription
builderForValueSnapshotSchedulePolicy.Schedule.Builder
Returns
TypeDescription
SnapshotSchedulePolicy.Builder

addSchedules(int index, SnapshotSchedulePolicy.Schedule value)

public SnapshotSchedulePolicy.Builder addSchedules(int index, SnapshotSchedulePolicy.Schedule value)

The snapshot schedules contained in this policy. You can specify a maximum of 5 schedules.

repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule schedules = 3;

Parameters
NameDescription
indexint
valueSnapshotSchedulePolicy.Schedule
Returns
TypeDescription
SnapshotSchedulePolicy.Builder

addSchedules(int index, SnapshotSchedulePolicy.Schedule.Builder builderForValue)

public SnapshotSchedulePolicy.Builder addSchedules(int index, SnapshotSchedulePolicy.Schedule.Builder builderForValue)

The snapshot schedules contained in this policy. You can specify a maximum of 5 schedules.

repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule schedules = 3;

Parameters
NameDescription
indexint
builderForValueSnapshotSchedulePolicy.Schedule.Builder
Returns
TypeDescription
SnapshotSchedulePolicy.Builder

addSchedulesBuilder()

public SnapshotSchedulePolicy.Schedule.Builder addSchedulesBuilder()

The snapshot schedules contained in this policy. You can specify a maximum of 5 schedules.

repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule schedules = 3;

Returns
TypeDescription
SnapshotSchedulePolicy.Schedule.Builder

addSchedulesBuilder(int index)

public SnapshotSchedulePolicy.Schedule.Builder addSchedulesBuilder(int index)

The snapshot schedules contained in this policy. You can specify a maximum of 5 schedules.

repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule schedules = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
SnapshotSchedulePolicy.Schedule.Builder

build()

public SnapshotSchedulePolicy build()
Returns
TypeDescription
SnapshotSchedulePolicy

buildPartial()

public SnapshotSchedulePolicy buildPartial()
Returns
TypeDescription
SnapshotSchedulePolicy

clear()

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

clearDescription()

public SnapshotSchedulePolicy.Builder clearDescription()

The description of the snapshot schedule policy.

string description = 2;

Returns
TypeDescription
SnapshotSchedulePolicy.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public SnapshotSchedulePolicy.Builder clearName()

Output only. The name of the snapshot schedule policy.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
SnapshotSchedulePolicy.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSchedules()

public SnapshotSchedulePolicy.Builder clearSchedules()

The snapshot schedules contained in this policy. You can specify a maximum of 5 schedules.

repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule schedules = 3;

Returns
TypeDescription
SnapshotSchedulePolicy.Builder

clone()

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

getDefaultInstanceForType()

public SnapshotSchedulePolicy getDefaultInstanceForType()
Returns
TypeDescription
SnapshotSchedulePolicy

getDescription()

public String getDescription()

The description of the snapshot schedule policy.

string description = 2;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

The description of the snapshot schedule policy.

string description = 2;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Output only. The name of the snapshot schedule policy.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The name of the snapshot schedule policy.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for name.

getSchedules(int index)

public SnapshotSchedulePolicy.Schedule getSchedules(int index)

The snapshot schedules contained in this policy. You can specify a maximum of 5 schedules.

repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule schedules = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
SnapshotSchedulePolicy.Schedule

getSchedulesBuilder(int index)

public SnapshotSchedulePolicy.Schedule.Builder getSchedulesBuilder(int index)

The snapshot schedules contained in this policy. You can specify a maximum of 5 schedules.

repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule schedules = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
SnapshotSchedulePolicy.Schedule.Builder

getSchedulesBuilderList()

public List<SnapshotSchedulePolicy.Schedule.Builder> getSchedulesBuilderList()

The snapshot schedules contained in this policy. You can specify a maximum of 5 schedules.

repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule schedules = 3;

Returns
TypeDescription
List<Builder>

getSchedulesCount()

public int getSchedulesCount()

The snapshot schedules contained in this policy. You can specify a maximum of 5 schedules.

repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule schedules = 3;

Returns
TypeDescription
int

getSchedulesList()

public List<SnapshotSchedulePolicy.Schedule> getSchedulesList()

The snapshot schedules contained in this policy. You can specify a maximum of 5 schedules.

repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule schedules = 3;

Returns
TypeDescription
List<Schedule>

getSchedulesOrBuilder(int index)

public SnapshotSchedulePolicy.ScheduleOrBuilder getSchedulesOrBuilder(int index)

The snapshot schedules contained in this policy. You can specify a maximum of 5 schedules.

repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule schedules = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
SnapshotSchedulePolicy.ScheduleOrBuilder

getSchedulesOrBuilderList()

public List<? extends SnapshotSchedulePolicy.ScheduleOrBuilder> getSchedulesOrBuilderList()

The snapshot schedules contained in this policy. You can specify a maximum of 5 schedules.

repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule schedules = 3;

Returns
TypeDescription
List<? extends com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.ScheduleOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SnapshotSchedulePolicy other)

public SnapshotSchedulePolicy.Builder mergeFrom(SnapshotSchedulePolicy other)
Parameter
NameDescription
otherSnapshotSchedulePolicy
Returns
TypeDescription
SnapshotSchedulePolicy.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeSchedules(int index)

public SnapshotSchedulePolicy.Builder removeSchedules(int index)

The snapshot schedules contained in this policy. You can specify a maximum of 5 schedules.

repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule schedules = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
SnapshotSchedulePolicy.Builder

setDescription(String value)

public SnapshotSchedulePolicy.Builder setDescription(String value)

The description of the snapshot schedule policy.

string description = 2;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
SnapshotSchedulePolicy.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public SnapshotSchedulePolicy.Builder setDescriptionBytes(ByteString value)

The description of the snapshot schedule policy.

string description = 2;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
SnapshotSchedulePolicy.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public SnapshotSchedulePolicy.Builder setName(String value)

Output only. The name of the snapshot schedule policy.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
SnapshotSchedulePolicy.Builder

This builder for chaining.

setNameBytes(ByteString value)

public SnapshotSchedulePolicy.Builder setNameBytes(ByteString value)

Output only. The name of the snapshot schedule policy.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
SnapshotSchedulePolicy.Builder

This builder for chaining.

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

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

setSchedules(int index, SnapshotSchedulePolicy.Schedule value)

public SnapshotSchedulePolicy.Builder setSchedules(int index, SnapshotSchedulePolicy.Schedule value)

The snapshot schedules contained in this policy. You can specify a maximum of 5 schedules.

repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule schedules = 3;

Parameters
NameDescription
indexint
valueSnapshotSchedulePolicy.Schedule
Returns
TypeDescription
SnapshotSchedulePolicy.Builder

setSchedules(int index, SnapshotSchedulePolicy.Schedule.Builder builderForValue)

public SnapshotSchedulePolicy.Builder setSchedules(int index, SnapshotSchedulePolicy.Schedule.Builder builderForValue)

The snapshot schedules contained in this policy. You can specify a maximum of 5 schedules.

repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule schedules = 3;

Parameters
NameDescription
indexint
builderForValueSnapshotSchedulePolicy.Schedule.Builder
Returns
TypeDescription
SnapshotSchedulePolicy.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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