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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SnapshotSchedulePolicy.Schedule build()
Returns
Type Description
SnapshotSchedulePolicy.Schedule

buildPartial()

public SnapshotSchedulePolicy.Schedule buildPartial()
Returns
Type Description
SnapshotSchedulePolicy.Schedule

clear()

public SnapshotSchedulePolicy.Schedule.Builder clear()
Returns
Type Description
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
Type Description
SnapshotSchedulePolicy.Schedule.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SnapshotSchedulePolicy.Schedule.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SnapshotSchedulePolicy.Schedule.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SnapshotSchedulePolicy.Schedule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SnapshotSchedulePolicy.Schedule.Builder
Overrides

clearPrefix()

public SnapshotSchedulePolicy.Schedule.Builder clearPrefix()

A list of snapshot names created in this schedule.

string prefix = 3;

Returns
Type Description
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
Type Description
SnapshotSchedulePolicy.Schedule.Builder

This builder for chaining.

clone()

public SnapshotSchedulePolicy.Schedule.Builder clone()
Returns
Type Description
SnapshotSchedulePolicy.Schedule.Builder
Overrides

getCrontabSpec()

public String getCrontabSpec()

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

string crontab_spec = 1;

Returns
Type Description
String

The crontabSpec.

getCrontabSpecBytes()

public ByteString getCrontabSpecBytes()

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

string crontab_spec = 1;

Returns
Type Description
ByteString

The bytes for crontabSpec.

getDefaultInstanceForType()

public SnapshotSchedulePolicy.Schedule getDefaultInstanceForType()
Returns
Type Description
SnapshotSchedulePolicy.Schedule

getDescriptorForType()

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

getPrefix()

public String getPrefix()

A list of snapshot names created in this schedule.

string prefix = 3;

Returns
Type Description
String

The prefix.

getPrefixBytes()

public ByteString getPrefixBytes()

A list of snapshot names created in this schedule.

string prefix = 3;

Returns
Type Description
ByteString

The bytes for prefix.

getRetentionCount()

public int getRetentionCount()

The maximum number of snapshots to retain in this schedule.

int32 retention_count = 2;

Returns
Type Description
int

The retentionCount.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SnapshotSchedulePolicy.Schedule other)

public SnapshotSchedulePolicy.Schedule.Builder mergeFrom(SnapshotSchedulePolicy.Schedule other)
Parameter
Name Description
other SnapshotSchedulePolicy.Schedule
Returns
Type Description
SnapshotSchedulePolicy.Schedule.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public SnapshotSchedulePolicy.Schedule.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SnapshotSchedulePolicy.Schedule.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SnapshotSchedulePolicy.Schedule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value String

The crontabSpec to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for crontabSpec to set.

Returns
Type Description
SnapshotSchedulePolicy.Schedule.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SnapshotSchedulePolicy.Schedule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The prefix to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for prefix to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value int

The retentionCount to set.

Returns
Type Description
SnapshotSchedulePolicy.Schedule.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final SnapshotSchedulePolicy.Schedule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SnapshotSchedulePolicy.Schedule.Builder
Overrides