Class BigQueryExport.Builder (2.56.0)

public static final class BigQueryExport.Builder extends GeneratedMessageV3.Builder<BigQueryExport.Builder> implements BigQueryExportOrBuilder

Configures how to deliver Findings to BigQuery Instance.

Protobuf type google.cloud.securitycenter.v2.BigQueryExport

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BigQueryExport.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BigQueryExport.Builder
Overrides

build()

public BigQueryExport build()
Returns
Type Description
BigQueryExport

buildPartial()

public BigQueryExport buildPartial()
Returns
Type Description
BigQueryExport

clear()

public BigQueryExport.Builder clear()
Returns
Type Description
BigQueryExport.Builder
Overrides

clearCreateTime()

public BigQueryExport.Builder clearCreateTime()

Output only. The time at which the BigQuery export was created. This field is set by the server and will be ignored if provided on export on creation.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
BigQueryExport.Builder

clearDataset()

public BigQueryExport.Builder clearDataset()

The dataset to write findings' updates to. Its format is "projects/[project_id]/datasets/[bigquery_dataset_id]". BigQuery dataset unique ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_).

string dataset = 4;

Returns
Type Description
BigQueryExport.Builder

This builder for chaining.

clearDescription()

public BigQueryExport.Builder clearDescription()

The description of the export (max of 1024 characters).

string description = 2;

Returns
Type Description
BigQueryExport.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public BigQueryExport.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
BigQueryExport.Builder
Overrides

clearFilter()

public BigQueryExport.Builder clearFilter()

Expression that defines the filter to apply across create/update events of findings. The expression is a list of zero or more restrictions combined via logical operators AND and OR. Parentheses are supported, and OR has higher precedence than AND.

Restrictions have the form <field> <operator> <value> and may have a - character in front of them to indicate negation. The fields map to those defined in the corresponding resource.

The supported operators are:

  • = for all value types.
  • >, <, >=, <= for integer values.
  • :, meaning substring matching, for strings.

    The supported value types are:

  • string literals in quotes.

  • integer literals without quotes.
  • boolean literals true and false without quotes.

string filter = 3;

Returns
Type Description
BigQueryExport.Builder

This builder for chaining.

clearMostRecentEditor()

public BigQueryExport.Builder clearMostRecentEditor()

Output only. Email address of the user who last edited the BigQuery export. This field is set by the server and will be ignored if provided on export creation or update.

string most_recent_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
BigQueryExport.Builder

This builder for chaining.

clearName()

public BigQueryExport.Builder clearName()

Identifier. The relative resource name of this export. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name. The following list shows some examples:

+ organizations/{organization_id}/locations/{location_id}/bigQueryExports/{export_id}

  • folders/{folder_id}/locations/{location_id}/bigQueryExports/{export_id} + projects/{project_id}/locations/{location_id}/bigQueryExports/{export_id}

    This field is provided in responses, and is ignored when provided in create requests.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
BigQueryExport.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public BigQueryExport.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
BigQueryExport.Builder
Overrides

clearPrincipal()

public BigQueryExport.Builder clearPrincipal()

Output only. The service account that needs permission to create table and upload data to the BigQuery dataset.

string principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
BigQueryExport.Builder

This builder for chaining.

clearUpdateTime()

public BigQueryExport.Builder clearUpdateTime()

Output only. The most recent time at which the BigQuery export was updated. This field is set by the server and will be ignored if provided on export creation or update.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
BigQueryExport.Builder

clone()

public BigQueryExport.Builder clone()
Returns
Type Description
BigQueryExport.Builder
Overrides

getCreateTime()

public Timestamp getCreateTime()

Output only. The time at which the BigQuery export was created. This field is set by the server and will be ignored if provided on export on creation.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The time at which the BigQuery export was created. This field is set by the server and will be ignored if provided on export on creation.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time at which the BigQuery export was created. This field is set by the server and will be ignored if provided on export on creation.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDataset()

public String getDataset()

The dataset to write findings' updates to. Its format is "projects/[project_id]/datasets/[bigquery_dataset_id]". BigQuery dataset unique ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_).

string dataset = 4;

Returns
Type Description
String

The dataset.

getDatasetBytes()

public ByteString getDatasetBytes()

The dataset to write findings' updates to. Its format is "projects/[project_id]/datasets/[bigquery_dataset_id]". BigQuery dataset unique ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_).

string dataset = 4;

Returns
Type Description
ByteString

The bytes for dataset.

getDefaultInstanceForType()

public BigQueryExport getDefaultInstanceForType()
Returns
Type Description
BigQueryExport

getDescription()

public String getDescription()

The description of the export (max of 1024 characters).

string description = 2;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

The description of the export (max of 1024 characters).

string description = 2;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFilter()

public String getFilter()

Expression that defines the filter to apply across create/update events of findings. The expression is a list of zero or more restrictions combined via logical operators AND and OR. Parentheses are supported, and OR has higher precedence than AND.

Restrictions have the form <field> <operator> <value> and may have a - character in front of them to indicate negation. The fields map to those defined in the corresponding resource.

The supported operators are:

  • = for all value types.
  • >, <, >=, <= for integer values.
  • :, meaning substring matching, for strings.

    The supported value types are:

  • string literals in quotes.

  • integer literals without quotes.
  • boolean literals true and false without quotes.

string filter = 3;

Returns
Type Description
String

The filter.

getFilterBytes()

public ByteString getFilterBytes()

Expression that defines the filter to apply across create/update events of findings. The expression is a list of zero or more restrictions combined via logical operators AND and OR. Parentheses are supported, and OR has higher precedence than AND.

Restrictions have the form <field> <operator> <value> and may have a - character in front of them to indicate negation. The fields map to those defined in the corresponding resource.

The supported operators are:

  • = for all value types.
  • >, <, >=, <= for integer values.
  • :, meaning substring matching, for strings.

    The supported value types are:

  • string literals in quotes.

  • integer literals without quotes.
  • boolean literals true and false without quotes.

string filter = 3;

Returns
Type Description
ByteString

The bytes for filter.

getMostRecentEditor()

public String getMostRecentEditor()

Output only. Email address of the user who last edited the BigQuery export. This field is set by the server and will be ignored if provided on export creation or update.

string most_recent_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The mostRecentEditor.

getMostRecentEditorBytes()

public ByteString getMostRecentEditorBytes()

Output only. Email address of the user who last edited the BigQuery export. This field is set by the server and will be ignored if provided on export creation or update.

string most_recent_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for mostRecentEditor.

getName()

public String getName()

Identifier. The relative resource name of this export. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name. The following list shows some examples:

+ organizations/{organization_id}/locations/{location_id}/bigQueryExports/{export_id}

  • folders/{folder_id}/locations/{location_id}/bigQueryExports/{export_id} + projects/{project_id}/locations/{location_id}/bigQueryExports/{export_id}

    This field is provided in responses, and is ignored when provided in create requests.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The relative resource name of this export. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name. The following list shows some examples:

+ organizations/{organization_id}/locations/{location_id}/bigQueryExports/{export_id}

  • folders/{folder_id}/locations/{location_id}/bigQueryExports/{export_id} + projects/{project_id}/locations/{location_id}/bigQueryExports/{export_id}

    This field is provided in responses, and is ignored when provided in create requests.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getPrincipal()

public String getPrincipal()

Output only. The service account that needs permission to create table and upload data to the BigQuery dataset.

string principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The principal.

getPrincipalBytes()

public ByteString getPrincipalBytes()

Output only. The service account that needs permission to create table and upload data to the BigQuery dataset.

string principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for principal.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The most recent time at which the BigQuery export was updated. This field is set by the server and will be ignored if provided on export creation or update.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The most recent time at which the BigQuery export was updated. This field is set by the server and will be ignored if provided on export creation or update.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The most recent time at which the BigQuery export was updated. This field is set by the server and will be ignored if provided on export creation or update.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The time at which the BigQuery export was created. This field is set by the server and will be ignored if provided on export on creation.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The most recent time at which the BigQuery export was updated. This field is set by the server and will be ignored if provided on export creation or update.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public BigQueryExport.Builder mergeCreateTime(Timestamp value)

Output only. The time at which the BigQuery export was created. This field is set by the server and will be ignored if provided on export on creation.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
BigQueryExport.Builder

mergeFrom(BigQueryExport other)

public BigQueryExport.Builder mergeFrom(BigQueryExport other)
Parameter
Name Description
other BigQueryExport
Returns
Type Description
BigQueryExport.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BigQueryExport.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BigQueryExport.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public BigQueryExport.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
BigQueryExport.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BigQueryExport.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BigQueryExport.Builder
Overrides

mergeUpdateTime(Timestamp value)

public BigQueryExport.Builder mergeUpdateTime(Timestamp value)

Output only. The most recent time at which the BigQuery export was updated. This field is set by the server and will be ignored if provided on export creation or update.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
BigQueryExport.Builder

setCreateTime(Timestamp value)

public BigQueryExport.Builder setCreateTime(Timestamp value)

Output only. The time at which the BigQuery export was created. This field is set by the server and will be ignored if provided on export on creation.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
BigQueryExport.Builder

setCreateTime(Timestamp.Builder builderForValue)

public BigQueryExport.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time at which the BigQuery export was created. This field is set by the server and will be ignored if provided on export on creation.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
BigQueryExport.Builder

setDataset(String value)

public BigQueryExport.Builder setDataset(String value)

The dataset to write findings' updates to. Its format is "projects/[project_id]/datasets/[bigquery_dataset_id]". BigQuery dataset unique ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_).

string dataset = 4;

Parameter
Name Description
value String

The dataset to set.

Returns
Type Description
BigQueryExport.Builder

This builder for chaining.

setDatasetBytes(ByteString value)

public BigQueryExport.Builder setDatasetBytes(ByteString value)

The dataset to write findings' updates to. Its format is "projects/[project_id]/datasets/[bigquery_dataset_id]". BigQuery dataset unique ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_).

string dataset = 4;

Parameter
Name Description
value ByteString

The bytes for dataset to set.

Returns
Type Description
BigQueryExport.Builder

This builder for chaining.

setDescription(String value)

public BigQueryExport.Builder setDescription(String value)

The description of the export (max of 1024 characters).

string description = 2;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
BigQueryExport.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public BigQueryExport.Builder setDescriptionBytes(ByteString value)

The description of the export (max of 1024 characters).

string description = 2;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
BigQueryExport.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public BigQueryExport.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BigQueryExport.Builder
Overrides

setFilter(String value)

public BigQueryExport.Builder setFilter(String value)

Expression that defines the filter to apply across create/update events of findings. The expression is a list of zero or more restrictions combined via logical operators AND and OR. Parentheses are supported, and OR has higher precedence than AND.

Restrictions have the form <field> <operator> <value> and may have a - character in front of them to indicate negation. The fields map to those defined in the corresponding resource.

The supported operators are:

  • = for all value types.
  • >, <, >=, <= for integer values.
  • :, meaning substring matching, for strings.

    The supported value types are:

  • string literals in quotes.

  • integer literals without quotes.
  • boolean literals true and false without quotes.

string filter = 3;

Parameter
Name Description
value String

The filter to set.

Returns
Type Description
BigQueryExport.Builder

This builder for chaining.

setFilterBytes(ByteString value)

public BigQueryExport.Builder setFilterBytes(ByteString value)

Expression that defines the filter to apply across create/update events of findings. The expression is a list of zero or more restrictions combined via logical operators AND and OR. Parentheses are supported, and OR has higher precedence than AND.

Restrictions have the form <field> <operator> <value> and may have a - character in front of them to indicate negation. The fields map to those defined in the corresponding resource.

The supported operators are:

  • = for all value types.
  • >, <, >=, <= for integer values.
  • :, meaning substring matching, for strings.

    The supported value types are:

  • string literals in quotes.

  • integer literals without quotes.
  • boolean literals true and false without quotes.

string filter = 3;

Parameter
Name Description
value ByteString

The bytes for filter to set.

Returns
Type Description
BigQueryExport.Builder

This builder for chaining.

setMostRecentEditor(String value)

public BigQueryExport.Builder setMostRecentEditor(String value)

Output only. Email address of the user who last edited the BigQuery export. This field is set by the server and will be ignored if provided on export creation or update.

string most_recent_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The mostRecentEditor to set.

Returns
Type Description
BigQueryExport.Builder

This builder for chaining.

setMostRecentEditorBytes(ByteString value)

public BigQueryExport.Builder setMostRecentEditorBytes(ByteString value)

Output only. Email address of the user who last edited the BigQuery export. This field is set by the server and will be ignored if provided on export creation or update.

string most_recent_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for mostRecentEditor to set.

Returns
Type Description
BigQueryExport.Builder

This builder for chaining.

setName(String value)

public BigQueryExport.Builder setName(String value)

Identifier. The relative resource name of this export. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name. The following list shows some examples:

+ organizations/{organization_id}/locations/{location_id}/bigQueryExports/{export_id}

  • folders/{folder_id}/locations/{location_id}/bigQueryExports/{export_id} + projects/{project_id}/locations/{location_id}/bigQueryExports/{export_id}

    This field is provided in responses, and is ignored when provided in create requests.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
BigQueryExport.Builder

This builder for chaining.

setNameBytes(ByteString value)

public BigQueryExport.Builder setNameBytes(ByteString value)

Identifier. The relative resource name of this export. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name. The following list shows some examples:

+ organizations/{organization_id}/locations/{location_id}/bigQueryExports/{export_id}

  • folders/{folder_id}/locations/{location_id}/bigQueryExports/{export_id} + projects/{project_id}/locations/{location_id}/bigQueryExports/{export_id}

    This field is provided in responses, and is ignored when provided in create requests.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
BigQueryExport.Builder

This builder for chaining.

setPrincipal(String value)

public BigQueryExport.Builder setPrincipal(String value)

Output only. The service account that needs permission to create table and upload data to the BigQuery dataset.

string principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The principal to set.

Returns
Type Description
BigQueryExport.Builder

This builder for chaining.

setPrincipalBytes(ByteString value)

public BigQueryExport.Builder setPrincipalBytes(ByteString value)

Output only. The service account that needs permission to create table and upload data to the BigQuery dataset.

string principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for principal to set.

Returns
Type Description
BigQueryExport.Builder

This builder for chaining.

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

public BigQueryExport.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
BigQueryExport.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final BigQueryExport.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BigQueryExport.Builder
Overrides

setUpdateTime(Timestamp value)

public BigQueryExport.Builder setUpdateTime(Timestamp value)

Output only. The most recent time at which the BigQuery export was updated. This field is set by the server and will be ignored if provided on export creation or update.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
BigQueryExport.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public BigQueryExport.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The most recent time at which the BigQuery export was updated. This field is set by the server and will be ignored if provided on export creation or update.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
BigQueryExport.Builder