Class SnapshotSchedulePolicy.Schedule.Builder (0.1.1)

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

A snapshot schedule.

Protobuf type google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SnapshotSchedulePolicy.Schedule build()
Returns
TypeDescription
SnapshotSchedulePolicy.Schedule

buildPartial()

public SnapshotSchedulePolicy.Schedule buildPartial()
Returns
TypeDescription
SnapshotSchedulePolicy.Schedule

clear()

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

clearCrontabSpec()

public SnapshotSchedulePolicy.Schedule.Builder clearCrontabSpec()

A crontab-like specification that the schedule uses to take snapshots.

string crontab_spec = 1;

Returns
TypeDescription
SnapshotSchedulePolicy.Schedule.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPrefix()

public SnapshotSchedulePolicy.Schedule.Builder clearPrefix()

A list of snapshot names created in this schedule.

string prefix = 3;

Returns
TypeDescription
SnapshotSchedulePolicy.Schedule.Builder

This builder for chaining.

clearRetentionCount()

public SnapshotSchedulePolicy.Schedule.Builder clearRetentionCount()

The maximum number of snapshots to retain in this schedule.

int32 retention_count = 2;

Returns
TypeDescription
SnapshotSchedulePolicy.Schedule.Builder

This builder for chaining.

clone()

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

getCrontabSpec()

public String getCrontabSpec()

A crontab-like specification that the schedule uses to take snapshots.

string crontab_spec = 1;

Returns
TypeDescription
String

The crontabSpec.

getCrontabSpecBytes()

public ByteString getCrontabSpecBytes()

A crontab-like specification that the schedule uses to take snapshots.

string crontab_spec = 1;

Returns
TypeDescription
ByteString

The bytes for crontabSpec.

getDefaultInstanceForType()

public SnapshotSchedulePolicy.Schedule getDefaultInstanceForType()
Returns
TypeDescription
SnapshotSchedulePolicy.Schedule

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPrefix()

public String getPrefix()

A list of snapshot names created in this schedule.

string prefix = 3;

Returns
TypeDescription
String

The prefix.

getPrefixBytes()

public ByteString getPrefixBytes()

A list of snapshot names created in this schedule.

string prefix = 3;

Returns
TypeDescription
ByteString

The bytes for prefix.

getRetentionCount()

public int getRetentionCount()

The maximum number of snapshots to retain in this schedule.

int32 retention_count = 2;

Returns
TypeDescription
int

The retentionCount.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SnapshotSchedulePolicy.Schedule other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCrontabSpec(String value)

public SnapshotSchedulePolicy.Schedule.Builder setCrontabSpec(String value)

A crontab-like specification that the schedule uses to take snapshots.

string crontab_spec = 1;

Parameter
NameDescription
valueString

The crontabSpec to set.

Returns
TypeDescription
SnapshotSchedulePolicy.Schedule.Builder

This builder for chaining.

setCrontabSpecBytes(ByteString value)

public SnapshotSchedulePolicy.Schedule.Builder setCrontabSpecBytes(ByteString value)

A crontab-like specification that the schedule uses to take snapshots.

string crontab_spec = 1;

Parameter
NameDescription
valueByteString

The bytes for crontabSpec to set.

Returns
TypeDescription
SnapshotSchedulePolicy.Schedule.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setPrefix(String value)

public SnapshotSchedulePolicy.Schedule.Builder setPrefix(String value)

A list of snapshot names created in this schedule.

string prefix = 3;

Parameter
NameDescription
valueString

The prefix to set.

Returns
TypeDescription
SnapshotSchedulePolicy.Schedule.Builder

This builder for chaining.

setPrefixBytes(ByteString value)

public SnapshotSchedulePolicy.Schedule.Builder setPrefixBytes(ByteString value)

A list of snapshot names created in this schedule.

string prefix = 3;

Parameter
NameDescription
valueByteString

The bytes for prefix to set.

Returns
TypeDescription
SnapshotSchedulePolicy.Schedule.Builder

This builder for chaining.

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

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

setRetentionCount(int value)

public SnapshotSchedulePolicy.Schedule.Builder setRetentionCount(int value)

The maximum number of snapshots to retain in this schedule.

int32 retention_count = 2;

Parameter
NameDescription
valueint

The retentionCount to set.

Returns
TypeDescription
SnapshotSchedulePolicy.Schedule.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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