Package com.google.cloud.dataplex.v1
Class Asset.DiscoverySpec.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Asset.DiscoverySpec.Builder>
-
- com.google.cloud.dataplex.v1.Asset.DiscoverySpec.Builder
-
- All Implemented Interfaces:
Asset.DiscoverySpecOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- Asset.DiscoverySpec
public static final class Asset.DiscoverySpec.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Asset.DiscoverySpec.Builder> implements Asset.DiscoverySpecOrBuilder
Settings to manage the metadata discovery and publishing for an asset.
Protobuf typegoogle.cloud.dataplex.v1.Asset.DiscoverySpec
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Asset.DiscoverySpec.Builder>
-
clear
public Asset.DiscoverySpec.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Asset.DiscoverySpec.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Asset.DiscoverySpec.Builder>
-
getDefaultInstanceForType
public Asset.DiscoverySpec getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Asset.DiscoverySpec build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Asset.DiscoverySpec buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Asset.DiscoverySpec.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Asset.DiscoverySpec.Builder>
-
setField
public Asset.DiscoverySpec.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Asset.DiscoverySpec.Builder>
-
clearField
public Asset.DiscoverySpec.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Asset.DiscoverySpec.Builder>
-
clearOneof
public Asset.DiscoverySpec.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Asset.DiscoverySpec.Builder>
-
setRepeatedField
public Asset.DiscoverySpec.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Asset.DiscoverySpec.Builder>
-
addRepeatedField
public Asset.DiscoverySpec.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Asset.DiscoverySpec.Builder>
-
mergeFrom
public Asset.DiscoverySpec.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Asset.DiscoverySpec.Builder>
-
mergeFrom
public Asset.DiscoverySpec.Builder mergeFrom(Asset.DiscoverySpec other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Asset.DiscoverySpec.Builder>
-
mergeFrom
public Asset.DiscoverySpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Asset.DiscoverySpec.Builder>
- Throws:
IOException
-
getTriggerCase
public Asset.DiscoverySpec.TriggerCase getTriggerCase()
- Specified by:
getTriggerCase
in interfaceAsset.DiscoverySpecOrBuilder
-
clearTrigger
public Asset.DiscoverySpec.Builder clearTrigger()
-
getEnabled
public boolean getEnabled()
Optional. Whether discovery is enabled.
bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getEnabled
in interfaceAsset.DiscoverySpecOrBuilder
- Returns:
- The enabled.
-
setEnabled
public Asset.DiscoverySpec.Builder setEnabled(boolean value)
Optional. Whether discovery is enabled.
bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The enabled to set.- Returns:
- This builder for chaining.
-
clearEnabled
public Asset.DiscoverySpec.Builder clearEnabled()
Optional. Whether discovery is enabled.
bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- This builder for chaining.
-
getIncludePatternsList
public com.google.protobuf.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];
- Specified by:
getIncludePatternsList
in interfaceAsset.DiscoverySpecOrBuilder
- Returns:
- A list containing the includePatterns.
-
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];
- Specified by:
getIncludePatternsCount
in interfaceAsset.DiscoverySpecOrBuilder
- Returns:
- The count of includePatterns.
-
getIncludePatterns
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];
- Specified by:
getIncludePatterns
in interfaceAsset.DiscoverySpecOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The includePatterns at the given index.
-
getIncludePatternsBytes
public com.google.protobuf.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];
- Specified by:
getIncludePatternsBytes
in interfaceAsset.DiscoverySpecOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the includePatterns at the given index.
-
setIncludePatterns
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:
index
- The index to set the value at.value
- The includePatterns to set.- Returns:
- This builder for chaining.
-
addIncludePatterns
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];
- Parameters:
value
- The includePatterns to add.- Returns:
- This builder for chaining.
-
addAllIncludePatterns
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];
- Parameters:
values
- The includePatterns to add.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
addIncludePatternsBytes
public Asset.DiscoverySpec.Builder addIncludePatternsBytes(com.google.protobuf.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];
- Parameters:
value
- The bytes of the includePatterns to add.- Returns:
- This builder for chaining.
-
getExcludePatternsList
public com.google.protobuf.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];
- Specified by:
getExcludePatternsList
in interfaceAsset.DiscoverySpecOrBuilder
- Returns:
- A list containing the excludePatterns.
-
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];
- Specified by:
getExcludePatternsCount
in interfaceAsset.DiscoverySpecOrBuilder
- Returns:
- The count of excludePatterns.
-
getExcludePatterns
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];
- Specified by:
getExcludePatterns
in interfaceAsset.DiscoverySpecOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The excludePatterns at the given index.
-
getExcludePatternsBytes
public com.google.protobuf.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];
- Specified by:
getExcludePatternsBytes
in interfaceAsset.DiscoverySpecOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the excludePatterns at the given index.
-
setExcludePatterns
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:
index
- The index to set the value at.value
- The excludePatterns to set.- Returns:
- This builder for chaining.
-
addExcludePatterns
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];
- Parameters:
value
- The excludePatterns to add.- Returns:
- This builder for chaining.
-
addAllExcludePatterns
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];
- Parameters:
values
- The excludePatterns to add.- Returns:
- 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:
- This builder for chaining.
-
addExcludePatternsBytes
public Asset.DiscoverySpec.Builder addExcludePatternsBytes(com.google.protobuf.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];
- Parameters:
value
- The bytes of the excludePatterns to add.- Returns:
- This builder for chaining.
-
hasCsvOptions
public boolean hasCsvOptions()
Optional. Configuration for CSV data.
.google.cloud.dataplex.v1.Asset.DiscoverySpec.CsvOptions csv_options = 4 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
hasCsvOptions
in interfaceAsset.DiscoverySpecOrBuilder
- Returns:
- Whether the csvOptions field is set.
-
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];
- Specified by:
getCsvOptions
in interfaceAsset.DiscoverySpecOrBuilder
- Returns:
- The csvOptions.
-
setCsvOptions
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];
-
setCsvOptions
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];
-
mergeCsvOptions
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];
-
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];
-
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];
-
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];
- Specified by:
getCsvOptionsOrBuilder
in interfaceAsset.DiscoverySpecOrBuilder
-
hasJsonOptions
public boolean hasJsonOptions()
Optional. Configuration for Json data.
.google.cloud.dataplex.v1.Asset.DiscoverySpec.JsonOptions json_options = 5 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
hasJsonOptions
in interfaceAsset.DiscoverySpecOrBuilder
- Returns:
- Whether the jsonOptions field is set.
-
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];
- Specified by:
getJsonOptions
in interfaceAsset.DiscoverySpecOrBuilder
- Returns:
- The jsonOptions.
-
setJsonOptions
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];
-
setJsonOptions
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];
-
mergeJsonOptions
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];
-
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];
-
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];
-
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];
- Specified by:
getJsonOptionsOrBuilder
in interfaceAsset.DiscoverySpecOrBuilder
-
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];
- Specified by:
hasSchedule
in interfaceAsset.DiscoverySpecOrBuilder
- Returns:
- Whether the schedule field is set.
-
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];
- Specified by:
getSchedule
in interfaceAsset.DiscoverySpecOrBuilder
- Returns:
- The schedule.
-
getScheduleBytes
public com.google.protobuf.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];
- Specified by:
getScheduleBytes
in interfaceAsset.DiscoverySpecOrBuilder
- Returns:
- The bytes for schedule.
-
setSchedule
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];
- Parameters:
value
- The schedule to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setScheduleBytes
public Asset.DiscoverySpec.Builder setScheduleBytes(com.google.protobuf.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];
- Parameters:
value
- The bytes for schedule to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Asset.DiscoverySpec.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Asset.DiscoverySpec.Builder>
-
mergeUnknownFields
public final Asset.DiscoverySpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Asset.DiscoverySpec.Builder>
-
-