Class Zone.DiscoverySpec.Builder (1.21.0)

public static final class Zone.DiscoverySpec.Builder extends GeneratedMessageV3.Builder<Zone.DiscoverySpec.Builder> implements Zone.DiscoverySpecOrBuilder

Settings to manage the metadata discovery and publishing in a zone.

Protobuf type google.cloud.dataplex.v1.Zone.DiscoverySpec

Static Methods

getDescriptor()

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

Methods

addAllExcludePatterns(Iterable<String> values)

public Zone.DiscoverySpec.Builder addAllExcludePatterns(Iterable<String> values)

Optional. The list of patterns to apply for selecting data to exclude during discovery. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names.

repeated string exclude_patterns = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesIterable<String>

The excludePatterns to add.

Returns
TypeDescription
Zone.DiscoverySpec.Builder

This builder for chaining.

addAllIncludePatterns(Iterable<String> values)

public Zone.DiscoverySpec.Builder addAllIncludePatterns(Iterable<String> values)

Optional. The list of patterns to apply for selecting data to include during discovery if only a subset of the data should considered. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names.

repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesIterable<String>

The includePatterns to add.

Returns
TypeDescription
Zone.DiscoverySpec.Builder

This builder for chaining.

addExcludePatterns(String value)

public Zone.DiscoverySpec.Builder addExcludePatterns(String value)

Optional. The list of patterns to apply for selecting data to exclude during discovery. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names.

repeated string exclude_patterns = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The excludePatterns to add.

Returns
TypeDescription
Zone.DiscoverySpec.Builder

This builder for chaining.

addExcludePatternsBytes(ByteString value)

public Zone.DiscoverySpec.Builder addExcludePatternsBytes(ByteString value)

Optional. The list of patterns to apply for selecting data to exclude during discovery. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names.

repeated string exclude_patterns = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes of the excludePatterns to add.

Returns
TypeDescription
Zone.DiscoverySpec.Builder

This builder for chaining.

addIncludePatterns(String value)

public Zone.DiscoverySpec.Builder addIncludePatterns(String value)

Optional. The list of patterns to apply for selecting data to include during discovery if only a subset of the data should considered. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names.

repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The includePatterns to add.

Returns
TypeDescription
Zone.DiscoverySpec.Builder

This builder for chaining.

addIncludePatternsBytes(ByteString value)

public Zone.DiscoverySpec.Builder addIncludePatternsBytes(ByteString value)

Optional. The list of patterns to apply for selecting data to include during discovery if only a subset of the data should considered. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names.

repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes of the includePatterns to add.

Returns
TypeDescription
Zone.DiscoverySpec.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Zone.DiscoverySpec build()
Returns
TypeDescription
Zone.DiscoverySpec

buildPartial()

public Zone.DiscoverySpec buildPartial()
Returns
TypeDescription
Zone.DiscoverySpec

clear()

public Zone.DiscoverySpec.Builder clear()
Returns
TypeDescription
Zone.DiscoverySpec.Builder
Overrides

clearCsvOptions()

public Zone.DiscoverySpec.Builder clearCsvOptions()

Optional. Configuration for CSV data.

.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions csv_options = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Zone.DiscoverySpec.Builder

clearEnabled()

public Zone.DiscoverySpec.Builder clearEnabled()

Required. Whether discovery is enabled.

bool enabled = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Zone.DiscoverySpec.Builder

This builder for chaining.

clearExcludePatterns()

public Zone.DiscoverySpec.Builder clearExcludePatterns()

Optional. The list of patterns to apply for selecting data to exclude during discovery. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names.

repeated string exclude_patterns = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Zone.DiscoverySpec.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearIncludePatterns()

public Zone.DiscoverySpec.Builder clearIncludePatterns()

Optional. The list of patterns to apply for selecting data to include during discovery if only a subset of the data should considered. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names.

repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Zone.DiscoverySpec.Builder

This builder for chaining.

clearJsonOptions()

public Zone.DiscoverySpec.Builder clearJsonOptions()

Optional. Configuration for Json data.

.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions json_options = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Zone.DiscoverySpec.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSchedule()

public Zone.DiscoverySpec.Builder clearSchedule()

Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running discovery periodically. Successive discovery runs must be scheduled at least 60 minutes apart. The default value is to run discovery every 60 minutes. To explicitly set a timezone to 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. For example, CRON_TZ=America/New_York 1

      • *
, or TZ=America/New_York 1 * * * *.

string schedule = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Zone.DiscoverySpec.Builder

This builder for chaining.

clearTrigger()

public Zone.DiscoverySpec.Builder clearTrigger()
Returns
TypeDescription
Zone.DiscoverySpec.Builder

clone()

public Zone.DiscoverySpec.Builder clone()
Returns
TypeDescription
Zone.DiscoverySpec.Builder
Overrides

getCsvOptions()

public Zone.DiscoverySpec.CsvOptions getCsvOptions()

Optional. Configuration for CSV data.

.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions csv_options = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Zone.DiscoverySpec.CsvOptions

The csvOptions.

getCsvOptionsBuilder()

public Zone.DiscoverySpec.CsvOptions.Builder getCsvOptionsBuilder()

Optional. Configuration for CSV data.

.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions csv_options = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Zone.DiscoverySpec.CsvOptions.Builder

getCsvOptionsOrBuilder()

public Zone.DiscoverySpec.CsvOptionsOrBuilder getCsvOptionsOrBuilder()

Optional. Configuration for CSV data.

.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions csv_options = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Zone.DiscoverySpec.CsvOptionsOrBuilder

getDefaultInstanceForType()

public Zone.DiscoverySpec getDefaultInstanceForType()
Returns
TypeDescription
Zone.DiscoverySpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnabled()

public boolean getEnabled()

Required. Whether discovery is enabled.

bool enabled = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

The enabled.

getExcludePatterns(int index)

public String getExcludePatterns(int index)

Optional. The list of patterns to apply for selecting data to exclude during discovery. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names.

repeated string exclude_patterns = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The excludePatterns at the given index.

getExcludePatternsBytes(int index)

public ByteString getExcludePatternsBytes(int index)

Optional. The list of patterns to apply for selecting data to exclude during discovery. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names.

repeated string exclude_patterns = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the excludePatterns at the given index.

getExcludePatternsCount()

public int getExcludePatternsCount()

Optional. The list of patterns to apply for selecting data to exclude during discovery. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names.

repeated string exclude_patterns = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The count of excludePatterns.

getExcludePatternsList()

public ProtocolStringList getExcludePatternsList()

Optional. The list of patterns to apply for selecting data to exclude during discovery. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names.

repeated string exclude_patterns = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ProtocolStringList

A list containing the excludePatterns.

getIncludePatterns(int index)

public String getIncludePatterns(int index)

Optional. The list of patterns to apply for selecting data to include during discovery if only a subset of the data should considered. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names.

repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The includePatterns at the given index.

getIncludePatternsBytes(int index)

public ByteString getIncludePatternsBytes(int index)

Optional. The list of patterns to apply for selecting data to include during discovery if only a subset of the data should considered. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names.

repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the includePatterns at the given index.

getIncludePatternsCount()

public int getIncludePatternsCount()

Optional. The list of patterns to apply for selecting data to include during discovery if only a subset of the data should considered. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names.

repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The count of includePatterns.

getIncludePatternsList()

public ProtocolStringList getIncludePatternsList()

Optional. The list of patterns to apply for selecting data to include during discovery if only a subset of the data should considered. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names.

repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ProtocolStringList

A list containing the includePatterns.

getJsonOptions()

public Zone.DiscoverySpec.JsonOptions getJsonOptions()

Optional. Configuration for Json data.

.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions json_options = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Zone.DiscoverySpec.JsonOptions

The jsonOptions.

getJsonOptionsBuilder()

public Zone.DiscoverySpec.JsonOptions.Builder getJsonOptionsBuilder()

Optional. Configuration for Json data.

.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions json_options = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Zone.DiscoverySpec.JsonOptions.Builder

getJsonOptionsOrBuilder()

public Zone.DiscoverySpec.JsonOptionsOrBuilder getJsonOptionsOrBuilder()

Optional. Configuration for Json data.

.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions json_options = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Zone.DiscoverySpec.JsonOptionsOrBuilder

getSchedule()

public String getSchedule()

Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running discovery periodically. Successive discovery runs must be scheduled at least 60 minutes apart. The default value is to run discovery every 60 minutes. To explicitly set a timezone to 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. For example, CRON_TZ=America/New_York 1

      • *
, or TZ=America/New_York 1 * * * *.

string schedule = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The schedule.

getScheduleBytes()

public ByteString getScheduleBytes()

Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running discovery periodically. Successive discovery runs must be scheduled at least 60 minutes apart. The default value is to run discovery every 60 minutes. To explicitly set a timezone to 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. For example, CRON_TZ=America/New_York 1

      • *
, or TZ=America/New_York 1 * * * *.

string schedule = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for schedule.

getTriggerCase()

public Zone.DiscoverySpec.TriggerCase getTriggerCase()
Returns
TypeDescription
Zone.DiscoverySpec.TriggerCase

hasCsvOptions()

public boolean hasCsvOptions()

Optional. Configuration for CSV data.

.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions csv_options = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the csvOptions field is set.

hasJsonOptions()

public boolean hasJsonOptions()

Optional. Configuration for Json data.

.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions json_options = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the jsonOptions field is set.

hasSchedule()

public boolean hasSchedule()

Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running discovery periodically. Successive discovery runs must be scheduled at least 60 minutes apart. The default value is to run discovery every 60 minutes. To explicitly set a timezone to 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. For example, CRON_TZ=America/New_York 1

      • *
, or TZ=America/New_York 1 * * * *.

string schedule = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the schedule field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCsvOptions(Zone.DiscoverySpec.CsvOptions value)

public Zone.DiscoverySpec.Builder mergeCsvOptions(Zone.DiscoverySpec.CsvOptions value)

Optional. Configuration for CSV data.

.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions csv_options = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueZone.DiscoverySpec.CsvOptions
Returns
TypeDescription
Zone.DiscoverySpec.Builder

mergeFrom(Zone.DiscoverySpec other)

public Zone.DiscoverySpec.Builder mergeFrom(Zone.DiscoverySpec other)
Parameter
NameDescription
otherZone.DiscoverySpec
Returns
TypeDescription
Zone.DiscoverySpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeJsonOptions(Zone.DiscoverySpec.JsonOptions value)

public Zone.DiscoverySpec.Builder mergeJsonOptions(Zone.DiscoverySpec.JsonOptions value)

Optional. Configuration for Json data.

.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions json_options = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueZone.DiscoverySpec.JsonOptions
Returns
TypeDescription
Zone.DiscoverySpec.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCsvOptions(Zone.DiscoverySpec.CsvOptions value)

public Zone.DiscoverySpec.Builder setCsvOptions(Zone.DiscoverySpec.CsvOptions value)

Optional. Configuration for CSV data.

.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions csv_options = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueZone.DiscoverySpec.CsvOptions
Returns
TypeDescription
Zone.DiscoverySpec.Builder

setCsvOptions(Zone.DiscoverySpec.CsvOptions.Builder builderForValue)

public Zone.DiscoverySpec.Builder setCsvOptions(Zone.DiscoverySpec.CsvOptions.Builder builderForValue)

Optional. Configuration for CSV data.

.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions csv_options = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueZone.DiscoverySpec.CsvOptions.Builder
Returns
TypeDescription
Zone.DiscoverySpec.Builder

setEnabled(boolean value)

public Zone.DiscoverySpec.Builder setEnabled(boolean value)

Required. Whether discovery is enabled.

bool enabled = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueboolean

The enabled to set.

Returns
TypeDescription
Zone.DiscoverySpec.Builder

This builder for chaining.

setExcludePatterns(int index, String value)

public Zone.DiscoverySpec.Builder setExcludePatterns(int index, String value)

Optional. The list of patterns to apply for selecting data to exclude during discovery. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names.

repeated string exclude_patterns = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The excludePatterns to set.

Returns
TypeDescription
Zone.DiscoverySpec.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setIncludePatterns(int index, String value)

public Zone.DiscoverySpec.Builder setIncludePatterns(int index, String value)

Optional. The list of patterns to apply for selecting data to include during discovery if only a subset of the data should considered. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names.

repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The includePatterns to set.

Returns
TypeDescription
Zone.DiscoverySpec.Builder

This builder for chaining.

setJsonOptions(Zone.DiscoverySpec.JsonOptions value)

public Zone.DiscoverySpec.Builder setJsonOptions(Zone.DiscoverySpec.JsonOptions value)

Optional. Configuration for Json data.

.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions json_options = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueZone.DiscoverySpec.JsonOptions
Returns
TypeDescription
Zone.DiscoverySpec.Builder

setJsonOptions(Zone.DiscoverySpec.JsonOptions.Builder builderForValue)

public Zone.DiscoverySpec.Builder setJsonOptions(Zone.DiscoverySpec.JsonOptions.Builder builderForValue)

Optional. Configuration for Json data.

.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions json_options = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueZone.DiscoverySpec.JsonOptions.Builder
Returns
TypeDescription
Zone.DiscoverySpec.Builder

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

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

setSchedule(String value)

public Zone.DiscoverySpec.Builder setSchedule(String value)

Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running discovery periodically. Successive discovery runs must be scheduled at least 60 minutes apart. The default value is to run discovery every 60 minutes. To explicitly set a timezone to 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. For example, CRON_TZ=America/New_York 1

      • *
, or TZ=America/New_York 1 * * * *.

string schedule = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The schedule to set.

Returns
TypeDescription
Zone.DiscoverySpec.Builder

This builder for chaining.

setScheduleBytes(ByteString value)

public Zone.DiscoverySpec.Builder setScheduleBytes(ByteString value)

Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running discovery periodically. Successive discovery runs must be scheduled at least 60 minutes apart. The default value is to run discovery every 60 minutes. To explicitly set a timezone to 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. For example, CRON_TZ=America/New_York 1

      • *
, or TZ=America/New_York 1 * * * *.

string schedule = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for schedule to set.

Returns
TypeDescription
Zone.DiscoverySpec.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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