Class BigQueryExport.Builder (2.30.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.v1.BigQueryExport

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BigQueryExport build()
Returns
TypeDescription
BigQueryExport

buildPartial()

public BigQueryExport buildPartial()
Returns
TypeDescription
BigQueryExport

clear()

public BigQueryExport.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
BigQueryExport.Builder

This builder for chaining.

clearDescription()

public BigQueryExport.Builder clearDescription()

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

string description = 2;

Returns
TypeDescription
BigQueryExport.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public BigQueryExport.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
BigQueryExport.Builder

This builder for chaining.

clearName()

public BigQueryExport.Builder clearName()

The relative resource name of this export. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name. Example format: "organizations/{organization_id}/bigQueryExports/{export_id}" Example format: "folders/{folder_id}/bigQueryExports/{export_id}" Example format: "projects/{project_id}/bigQueryExports/{export_id}" This field is provided in responses, and is ignored when provided in create requests.

string name = 1;

Returns
TypeDescription
BigQueryExport.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public BigQueryExport.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
BigQueryExport.Builder

clone()

public BigQueryExport.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for dataset.

getDefaultInstanceForType()

public BigQueryExport getDefaultInstanceForType()
Returns
TypeDescription
BigQueryExport

getDescription()

public String getDescription()

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

string description = 2;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

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

string description = 2;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for mostRecentEditor.

getName()

public String getName()

The relative resource name of this export. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name. Example format: "organizations/{organization_id}/bigQueryExports/{export_id}" Example format: "folders/{folder_id}/bigQueryExports/{export_id}" Example format: "projects/{project_id}/bigQueryExports/{export_id}" This field is provided in responses, and is ignored when provided in create requests.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The relative resource name of this export. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name. Example format: "organizations/{organization_id}/bigQueryExports/{export_id}" Example format: "folders/{folder_id}/bigQueryExports/{export_id}" Example format: "projects/{project_id}/bigQueryExports/{export_id}" This field is provided in responses, and is ignored when provided in create requests.

string name = 1;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
BigQueryExport.Builder

mergeFrom(BigQueryExport other)

public BigQueryExport.Builder mergeFrom(BigQueryExport other)
Parameter
NameDescription
otherBigQueryExport
Returns
TypeDescription
BigQueryExport.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BigQueryExport.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueString

The dataset to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for dataset to set.

Returns
TypeDescription
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
NameDescription
valueString

The description to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
BigQueryExport.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public BigQueryExport.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The filter to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for filter to set.

Returns
TypeDescription
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
NameDescription
valueString

The mostRecentEditor to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for mostRecentEditor to set.

Returns
TypeDescription
BigQueryExport.Builder

This builder for chaining.

setName(String value)

public BigQueryExport.Builder setName(String value)

The relative resource name of this export. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name. Example format: "organizations/{organization_id}/bigQueryExports/{export_id}" Example format: "folders/{folder_id}/bigQueryExports/{export_id}" Example format: "projects/{project_id}/bigQueryExports/{export_id}" This field is provided in responses, and is ignored when provided in create requests.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
BigQueryExport.Builder

This builder for chaining.

setNameBytes(ByteString value)

public BigQueryExport.Builder setNameBytes(ByteString value)

The relative resource name of this export. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name. Example format: "organizations/{organization_id}/bigQueryExports/{export_id}" Example format: "folders/{folder_id}/bigQueryExports/{export_id}" Example format: "projects/{project_id}/bigQueryExports/{export_id}" This field is provided in responses, and is ignored when provided in create requests.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
valueString

The principal to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for principal to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
BigQueryExport.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final BigQueryExport.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
BigQueryExport.Builder