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
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
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
Name | Description |
values | Iterable<? extends com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule>
|
Returns
public SnapshotSchedulePolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
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
Returns
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
Returns
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
Returns
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
Returns
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
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
Returns
public SnapshotSchedulePolicy build()
Returns
public SnapshotSchedulePolicy buildPartial()
Returns
public SnapshotSchedulePolicy.Builder clear()
Returns
Overrides
public SnapshotSchedulePolicy.Builder clearDescription()
The description of the snapshot schedule policy.
string description = 2;
Returns
public SnapshotSchedulePolicy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public SnapshotSchedulePolicy.Builder clearName()
Output only. The name of the snapshot schedule policy.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
public SnapshotSchedulePolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
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
public SnapshotSchedulePolicy.Builder clone()
Returns
Overrides
public SnapshotSchedulePolicy getDefaultInstanceForType()
Returns
public String getDescription()
The description of the snapshot schedule policy.
string description = 2;
Returns
Type | Description |
String | The description.
|
public ByteString getDescriptionBytes()
The description of the snapshot schedule policy.
string description = 2;
Returns
Type | Description |
ByteString | The bytes for description.
|
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
Output only. The name of the snapshot schedule policy.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
String | The name.
|
public ByteString getNameBytes()
Output only. The name of the snapshot schedule policy.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
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
Returns
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
Returns
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
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
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
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
Returns
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
Type | Description |
List<? extends com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.ScheduleOrBuilder> | |
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public SnapshotSchedulePolicy.Builder mergeFrom(SnapshotSchedulePolicy other)
Parameter
Returns
public SnapshotSchedulePolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public SnapshotSchedulePolicy.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final SnapshotSchedulePolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
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
Returns
public SnapshotSchedulePolicy.Builder setDescription(String value)
The description of the snapshot schedule policy.
string description = 2;
Parameter
Name | Description |
value | String
The description to set.
|
Returns
public SnapshotSchedulePolicy.Builder setDescriptionBytes(ByteString value)
The description of the snapshot schedule policy.
string description = 2;
Parameter
Name | Description |
value | ByteString
The bytes for description to set.
|
Returns
public SnapshotSchedulePolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
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
Name | Description |
value | String
The name to set.
|
Returns
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
Name | Description |
value | ByteString
The bytes for name to set.
|
Returns
public SnapshotSchedulePolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
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
Returns
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
Returns
public final SnapshotSchedulePolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides