Class Trigger.Schedule.Builder (1.22.0)

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

The scan is scheduled to run periodically.

Protobuf type google.cloud.dataplex.v1.Trigger.Schedule

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearCron()

public Trigger.Schedule.Builder clearCron()

Required. Cron schedule for running scans periodically.

To explicitly set a timezone in the cron tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone database (wikipedia). For example, CRON_TZ=America/New_York 1 * * * *, or TZ=America/New_York 1 * * * *.

This field is required for Schedule scans.

string cron = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Trigger.Schedule.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getCron()

public String getCron()

Required. Cron schedule for running scans periodically.

To explicitly set a timezone in the cron tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone database (wikipedia). For example, CRON_TZ=America/New_York 1 * * * *, or TZ=America/New_York 1 * * * *.

This field is required for Schedule scans.

string cron = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The cron.

getCronBytes()

public ByteString getCronBytes()

Required. Cron schedule for running scans periodically.

To explicitly set a timezone in the cron tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone database (wikipedia). For example, CRON_TZ=America/New_York 1 * * * *, or TZ=America/New_York 1 * * * *.

This field is required for Schedule scans.

string cron = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for cron.

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Trigger.Schedule other)

public Trigger.Schedule.Builder mergeFrom(Trigger.Schedule other)
Parameter
NameDescription
otherTrigger.Schedule
Returns
TypeDescription
Trigger.Schedule.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCron(String value)

public Trigger.Schedule.Builder setCron(String value)

Required. Cron schedule for running scans periodically.

To explicitly set a timezone in the cron tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone database (wikipedia). For example, CRON_TZ=America/New_York 1 * * * *, or TZ=America/New_York 1 * * * *.

This field is required for Schedule scans.

string cron = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The cron to set.

Returns
TypeDescription
Trigger.Schedule.Builder

This builder for chaining.

setCronBytes(ByteString value)

public Trigger.Schedule.Builder setCronBytes(ByteString value)

Required. Cron schedule for running scans periodically.

To explicitly set a timezone in the cron tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone database (wikipedia). For example, CRON_TZ=America/New_York 1 * * * *, or TZ=America/New_York 1 * * * *.

This field is required for Schedule scans.

string cron = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for cron to set.

Returns
TypeDescription
Trigger.Schedule.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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