Class Asset.DiscoverySpec.Builder (1.20.0)

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

Settings to manage the metadata discovery and publishing for an asset.

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

Static Methods

getDescriptor()

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

Methods

addAllExcludePatterns(Iterable<String> values)

public Asset.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
Asset.DiscoverySpec.Builder

This builder for chaining.

addAllIncludePatterns(Iterable<String> values)

public Asset.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
Asset.DiscoverySpec.Builder

This builder for chaining.

addExcludePatterns(String value)

public Asset.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
Asset.DiscoverySpec.Builder

This builder for chaining.

addExcludePatternsBytes(ByteString value)

public Asset.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
Asset.DiscoverySpec.Builder

This builder for chaining.

addIncludePatterns(String value)

public Asset.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
Asset.DiscoverySpec.Builder

This builder for chaining.

addIncludePatternsBytes(ByteString value)

public Asset.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
Asset.DiscoverySpec.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearCsvOptions()

public Asset.DiscoverySpec.Builder clearCsvOptions()

Optional. Configuration for CSV data.

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

Returns
TypeDescription
Asset.DiscoverySpec.Builder

clearEnabled()

public Asset.DiscoverySpec.Builder clearEnabled()

Optional. Whether discovery is enabled.

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

Returns
TypeDescription
Asset.DiscoverySpec.Builder

This builder for chaining.

clearExcludePatterns()

public Asset.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
Asset.DiscoverySpec.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearIncludePatterns()

public Asset.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
Asset.DiscoverySpec.Builder

This builder for chaining.

clearJsonOptions()

public Asset.DiscoverySpec.Builder clearJsonOptions()

Optional. Configuration for Json data.

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

Returns
TypeDescription
Asset.DiscoverySpec.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSchedule()

public Asset.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
Asset.DiscoverySpec.Builder

This builder for chaining.

clearTrigger()

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

clone()

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

getCsvOptions()

public Asset.DiscoverySpec.CsvOptions getCsvOptions()

Optional. Configuration for CSV data.

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

Returns
TypeDescription
Asset.DiscoverySpec.CsvOptions

The csvOptions.

getCsvOptionsBuilder()

public Asset.DiscoverySpec.CsvOptions.Builder getCsvOptionsBuilder()

Optional. Configuration for CSV data.

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

Returns
TypeDescription
Asset.DiscoverySpec.CsvOptions.Builder

getCsvOptionsOrBuilder()

public Asset.DiscoverySpec.CsvOptionsOrBuilder getCsvOptionsOrBuilder()

Optional. Configuration for CSV data.

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

Returns
TypeDescription
Asset.DiscoverySpec.CsvOptionsOrBuilder

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnabled()

public boolean getEnabled()

Optional. Whether discovery is enabled.

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

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 Asset.DiscoverySpec.JsonOptions getJsonOptions()

Optional. Configuration for Json data.

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

Returns
TypeDescription
Asset.DiscoverySpec.JsonOptions

The jsonOptions.

getJsonOptionsBuilder()

public Asset.DiscoverySpec.JsonOptions.Builder getJsonOptionsBuilder()

Optional. Configuration for Json data.

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

Returns
TypeDescription
Asset.DiscoverySpec.JsonOptions.Builder

getJsonOptionsOrBuilder()

public Asset.DiscoverySpec.JsonOptionsOrBuilder getJsonOptionsOrBuilder()

Optional. Configuration for Json data.

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

Returns
TypeDescription
Asset.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 Asset.DiscoverySpec.TriggerCase getTriggerCase()
Returns
TypeDescription
Asset.DiscoverySpec.TriggerCase

hasCsvOptions()

public boolean hasCsvOptions()

Optional. Configuration for CSV data.

.google.cloud.dataplex.v1.Asset.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.Asset.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(Asset.DiscoverySpec.CsvOptions value)

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

Optional. Configuration for CSV data.

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

Parameter
NameDescription
valueAsset.DiscoverySpec.CsvOptions
Returns
TypeDescription
Asset.DiscoverySpec.Builder

mergeFrom(Asset.DiscoverySpec other)

public Asset.DiscoverySpec.Builder mergeFrom(Asset.DiscoverySpec other)
Parameter
NameDescription
otherAsset.DiscoverySpec
Returns
TypeDescription
Asset.DiscoverySpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeJsonOptions(Asset.DiscoverySpec.JsonOptions value)

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

Optional. Configuration for Json data.

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

Parameter
NameDescription
valueAsset.DiscoverySpec.JsonOptions
Returns
TypeDescription
Asset.DiscoverySpec.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCsvOptions(Asset.DiscoverySpec.CsvOptions value)

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

Optional. Configuration for CSV data.

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

Parameter
NameDescription
valueAsset.DiscoverySpec.CsvOptions
Returns
TypeDescription
Asset.DiscoverySpec.Builder

setCsvOptions(Asset.DiscoverySpec.CsvOptions.Builder builderForValue)

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

Optional. Configuration for CSV data.

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

Parameter
NameDescription
builderForValueAsset.DiscoverySpec.CsvOptions.Builder
Returns
TypeDescription
Asset.DiscoverySpec.Builder

setEnabled(boolean value)

public Asset.DiscoverySpec.Builder setEnabled(boolean value)

Optional. Whether discovery is enabled.

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

Parameter
NameDescription
valueboolean

The enabled to set.

Returns
TypeDescription
Asset.DiscoverySpec.Builder

This builder for chaining.

setExcludePatterns(int index, String value)

public Asset.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
Asset.DiscoverySpec.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setIncludePatterns(int index, String value)

public Asset.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
Asset.DiscoverySpec.Builder

This builder for chaining.

setJsonOptions(Asset.DiscoverySpec.JsonOptions value)

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

Optional. Configuration for Json data.

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

Parameter
NameDescription
valueAsset.DiscoverySpec.JsonOptions
Returns
TypeDescription
Asset.DiscoverySpec.Builder

setJsonOptions(Asset.DiscoverySpec.JsonOptions.Builder builderForValue)

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

Optional. Configuration for Json data.

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

Parameter
NameDescription
builderForValueAsset.DiscoverySpec.JsonOptions.Builder
Returns
TypeDescription
Asset.DiscoverySpec.Builder

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

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

setSchedule(String value)

public Asset.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
Asset.DiscoverySpec.Builder

This builder for chaining.

setScheduleBytes(ByteString value)

public Asset.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
Asset.DiscoverySpec.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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