Class HybridOptions.Builder (3.22.0)

public static final class HybridOptions.Builder extends GeneratedMessageV3.Builder<HybridOptions.Builder> implements HybridOptionsOrBuilder

Configuration to control jobs where the content being inspected is outside of Google Cloud Platform.

Protobuf type google.privacy.dlp.v2.HybridOptions

Static Methods

getDescriptor()

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

Methods

addAllRequiredFindingLabelKeys(Iterable<String> values)

public HybridOptions.Builder addAllRequiredFindingLabelKeys(Iterable<String> values)

These are labels that each inspection request must include within their 'finding_labels' map. Request may contain others, but any missing one of these will be rejected. Label keys must be between 1 and 63 characters long and must conform to the following regular expression: a-z?. No more than 10 keys can be required.

repeated string required_finding_label_keys = 2;

Parameter
NameDescription
valuesIterable<String>

The requiredFindingLabelKeys to add.

Returns
TypeDescription
HybridOptions.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addRequiredFindingLabelKeys(String value)

public HybridOptions.Builder addRequiredFindingLabelKeys(String value)

These are labels that each inspection request must include within their 'finding_labels' map. Request may contain others, but any missing one of these will be rejected. Label keys must be between 1 and 63 characters long and must conform to the following regular expression: a-z?. No more than 10 keys can be required.

repeated string required_finding_label_keys = 2;

Parameter
NameDescription
valueString

The requiredFindingLabelKeys to add.

Returns
TypeDescription
HybridOptions.Builder

This builder for chaining.

addRequiredFindingLabelKeysBytes(ByteString value)

public HybridOptions.Builder addRequiredFindingLabelKeysBytes(ByteString value)

These are labels that each inspection request must include within their 'finding_labels' map. Request may contain others, but any missing one of these will be rejected. Label keys must be between 1 and 63 characters long and must conform to the following regular expression: a-z?. No more than 10 keys can be required.

repeated string required_finding_label_keys = 2;

Parameter
NameDescription
valueByteString

The bytes of the requiredFindingLabelKeys to add.

Returns
TypeDescription
HybridOptions.Builder

This builder for chaining.

build()

public HybridOptions build()
Returns
TypeDescription
HybridOptions

buildPartial()

public HybridOptions buildPartial()
Returns
TypeDescription
HybridOptions

clear()

public HybridOptions.Builder clear()
Returns
TypeDescription
HybridOptions.Builder
Overrides

clearDescription()

public HybridOptions.Builder clearDescription()

A short description of where the data is coming from. Will be stored once in the job. 256 max length.

string description = 1;

Returns
TypeDescription
HybridOptions.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearLabels()

public HybridOptions.Builder clearLabels()
Returns
TypeDescription
HybridOptions.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRequiredFindingLabelKeys()

public HybridOptions.Builder clearRequiredFindingLabelKeys()

These are labels that each inspection request must include within their 'finding_labels' map. Request may contain others, but any missing one of these will be rejected. Label keys must be between 1 and 63 characters long and must conform to the following regular expression: a-z?. No more than 10 keys can be required.

repeated string required_finding_label_keys = 2;

Returns
TypeDescription
HybridOptions.Builder

This builder for chaining.

clearTableOptions()

public HybridOptions.Builder clearTableOptions()

If the container is a table, additional information to make findings meaningful such as the columns that are primary keys.

.google.privacy.dlp.v2.TableOptions table_options = 4;

Returns
TypeDescription
HybridOptions.Builder

clone()

public HybridOptions.Builder clone()
Returns
TypeDescription
HybridOptions.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

To organize findings, these labels will be added to each finding. Label keys must be between 1 and 63 characters long and must conform to the following regular expression: a-z?. Label values must be between 0 and 63 characters long and must conform to the regular expression (a-z?)?. No more than 10 labels can be associated with a given finding. Examples:

  • "environment" : "production"
  • "pipeline" : "etl"

map<string, string> labels = 3;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public HybridOptions getDefaultInstanceForType()
Returns
TypeDescription
HybridOptions

getDescription()

public String getDescription()

A short description of where the data is coming from. Will be stored once in the job. 256 max length.

string description = 1;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

A short description of where the data is coming from. Will be stored once in the job. 256 max length.

string description = 1;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

To organize findings, these labels will be added to each finding. Label keys must be between 1 and 63 characters long and must conform to the following regular expression: a-z?. Label values must be between 0 and 63 characters long and must conform to the regular expression (a-z?)?. No more than 10 labels can be associated with a given finding. Examples:

  • "environment" : "production"
  • "pipeline" : "etl"

map<string, string> labels = 3;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

To organize findings, these labels will be added to each finding. Label keys must be between 1 and 63 characters long and must conform to the following regular expression: a-z?. Label values must be between 0 and 63 characters long and must conform to the regular expression (a-z?)?. No more than 10 labels can be associated with a given finding. Examples:

  • "environment" : "production"
  • "pipeline" : "etl"

map<string, string> labels = 3;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

To organize findings, these labels will be added to each finding. Label keys must be between 1 and 63 characters long and must conform to the following regular expression: a-z?. Label values must be between 0 and 63 characters long and must conform to the regular expression (a-z?)?. No more than 10 labels can be associated with a given finding. Examples:

  • "environment" : "production"
  • "pipeline" : "etl"

map<string, string> labels = 3;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

To organize findings, these labels will be added to each finding. Label keys must be between 1 and 63 characters long and must conform to the following regular expression: a-z?. Label values must be between 0 and 63 characters long and must conform to the regular expression (a-z?)?. No more than 10 labels can be associated with a given finding. Examples:

  • "environment" : "production"
  • "pipeline" : "etl"

map<string, string> labels = 3;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getRequiredFindingLabelKeys(int index)

public String getRequiredFindingLabelKeys(int index)

These are labels that each inspection request must include within their 'finding_labels' map. Request may contain others, but any missing one of these will be rejected. Label keys must be between 1 and 63 characters long and must conform to the following regular expression: a-z?. No more than 10 keys can be required.

repeated string required_finding_label_keys = 2;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The requiredFindingLabelKeys at the given index.

getRequiredFindingLabelKeysBytes(int index)

public ByteString getRequiredFindingLabelKeysBytes(int index)

These are labels that each inspection request must include within their 'finding_labels' map. Request may contain others, but any missing one of these will be rejected. Label keys must be between 1 and 63 characters long and must conform to the following regular expression: a-z?. No more than 10 keys can be required.

repeated string required_finding_label_keys = 2;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the requiredFindingLabelKeys at the given index.

getRequiredFindingLabelKeysCount()

public int getRequiredFindingLabelKeysCount()

These are labels that each inspection request must include within their 'finding_labels' map. Request may contain others, but any missing one of these will be rejected. Label keys must be between 1 and 63 characters long and must conform to the following regular expression: a-z?. No more than 10 keys can be required.

repeated string required_finding_label_keys = 2;

Returns
TypeDescription
int

The count of requiredFindingLabelKeys.

getRequiredFindingLabelKeysList()

public ProtocolStringList getRequiredFindingLabelKeysList()

These are labels that each inspection request must include within their 'finding_labels' map. Request may contain others, but any missing one of these will be rejected. Label keys must be between 1 and 63 characters long and must conform to the following regular expression: a-z?. No more than 10 keys can be required.

repeated string required_finding_label_keys = 2;

Returns
TypeDescription
ProtocolStringList

A list containing the requiredFindingLabelKeys.

getTableOptions()

public TableOptions getTableOptions()

If the container is a table, additional information to make findings meaningful such as the columns that are primary keys.

.google.privacy.dlp.v2.TableOptions table_options = 4;

Returns
TypeDescription
TableOptions

The tableOptions.

getTableOptionsBuilder()

public TableOptions.Builder getTableOptionsBuilder()

If the container is a table, additional information to make findings meaningful such as the columns that are primary keys.

.google.privacy.dlp.v2.TableOptions table_options = 4;

Returns
TypeDescription
TableOptions.Builder

getTableOptionsOrBuilder()

public TableOptionsOrBuilder getTableOptionsOrBuilder()

If the container is a table, additional information to make findings meaningful such as the columns that are primary keys.

.google.privacy.dlp.v2.TableOptions table_options = 4;

Returns
TypeDescription
TableOptionsOrBuilder

hasTableOptions()

public boolean hasTableOptions()

If the container is a table, additional information to make findings meaningful such as the columns that are primary keys.

.google.privacy.dlp.v2.TableOptions table_options = 4;

Returns
TypeDescription
boolean

Whether the tableOptions field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(HybridOptions other)

public HybridOptions.Builder mergeFrom(HybridOptions other)
Parameter
NameDescription
otherHybridOptions
Returns
TypeDescription
HybridOptions.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTableOptions(TableOptions value)

public HybridOptions.Builder mergeTableOptions(TableOptions value)

If the container is a table, additional information to make findings meaningful such as the columns that are primary keys.

.google.privacy.dlp.v2.TableOptions table_options = 4;

Parameter
NameDescription
valueTableOptions
Returns
TypeDescription
HybridOptions.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllLabels(Map<String,String> values)

public HybridOptions.Builder putAllLabels(Map<String,String> values)

To organize findings, these labels will be added to each finding. Label keys must be between 1 and 63 characters long and must conform to the following regular expression: a-z?. Label values must be between 0 and 63 characters long and must conform to the regular expression (a-z?)?. No more than 10 labels can be associated with a given finding. Examples:

  • "environment" : "production"
  • "pipeline" : "etl"

map<string, string> labels = 3;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
HybridOptions.Builder

putLabels(String key, String value)

public HybridOptions.Builder putLabels(String key, String value)

To organize findings, these labels will be added to each finding. Label keys must be between 1 and 63 characters long and must conform to the following regular expression: a-z?. Label values must be between 0 and 63 characters long and must conform to the regular expression (a-z?)?. No more than 10 labels can be associated with a given finding. Examples:

  • "environment" : "production"
  • "pipeline" : "etl"

map<string, string> labels = 3;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
HybridOptions.Builder

removeLabels(String key)

public HybridOptions.Builder removeLabels(String key)

To organize findings, these labels will be added to each finding. Label keys must be between 1 and 63 characters long and must conform to the following regular expression: a-z?. Label values must be between 0 and 63 characters long and must conform to the regular expression (a-z?)?. No more than 10 labels can be associated with a given finding. Examples:

  • "environment" : "production"
  • "pipeline" : "etl"

map<string, string> labels = 3;

Parameter
NameDescription
keyString
Returns
TypeDescription
HybridOptions.Builder

setDescription(String value)

public HybridOptions.Builder setDescription(String value)

A short description of where the data is coming from. Will be stored once in the job. 256 max length.

string description = 1;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
HybridOptions.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public HybridOptions.Builder setDescriptionBytes(ByteString value)

A short description of where the data is coming from. Will be stored once in the job. 256 max length.

string description = 1;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
HybridOptions.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setRequiredFindingLabelKeys(int index, String value)

public HybridOptions.Builder setRequiredFindingLabelKeys(int index, String value)

These are labels that each inspection request must include within their 'finding_labels' map. Request may contain others, but any missing one of these will be rejected. Label keys must be between 1 and 63 characters long and must conform to the following regular expression: a-z?. No more than 10 keys can be required.

repeated string required_finding_label_keys = 2;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The requiredFindingLabelKeys to set.

Returns
TypeDescription
HybridOptions.Builder

This builder for chaining.

setTableOptions(TableOptions value)

public HybridOptions.Builder setTableOptions(TableOptions value)

If the container is a table, additional information to make findings meaningful such as the columns that are primary keys.

.google.privacy.dlp.v2.TableOptions table_options = 4;

Parameter
NameDescription
valueTableOptions
Returns
TypeDescription
HybridOptions.Builder

setTableOptions(TableOptions.Builder builderForValue)

public HybridOptions.Builder setTableOptions(TableOptions.Builder builderForValue)

If the container is a table, additional information to make findings meaningful such as the columns that are primary keys.

.google.privacy.dlp.v2.TableOptions table_options = 4;

Parameter
NameDescription
builderForValueTableOptions.Builder
Returns
TypeDescription
HybridOptions.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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