Class CreateDataPolicyRequest.Builder (0.52.0)

public static final class CreateDataPolicyRequest.Builder extends GeneratedMessageV3.Builder<CreateDataPolicyRequest.Builder> implements CreateDataPolicyRequestOrBuilder

Request message for the CreateDataPolicy method.

Protobuf type google.cloud.bigquery.datapolicies.v1beta1.CreateDataPolicyRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateDataPolicyRequest build()
Returns
Type Description
CreateDataPolicyRequest

buildPartial()

public CreateDataPolicyRequest buildPartial()
Returns
Type Description
CreateDataPolicyRequest

clear()

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

clearDataPolicy()

public CreateDataPolicyRequest.Builder clearDataPolicy()

Required. The data policy to create. The name field does not need to be provided for the data policy creation.

.google.cloud.bigquery.datapolicies.v1beta1.DataPolicy data_policy = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateDataPolicyRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateDataPolicyRequest.Builder clearParent()

Required. Resource name of the project that the data policy will belong to. The format is projects/{project_number}/locations/{location_id}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateDataPolicyRequest.Builder

This builder for chaining.

clone()

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

getDataPolicy()

public DataPolicy getDataPolicy()

Required. The data policy to create. The name field does not need to be provided for the data policy creation.

.google.cloud.bigquery.datapolicies.v1beta1.DataPolicy data_policy = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DataPolicy

The dataPolicy.

getDataPolicyBuilder()

public DataPolicy.Builder getDataPolicyBuilder()

Required. The data policy to create. The name field does not need to be provided for the data policy creation.

.google.cloud.bigquery.datapolicies.v1beta1.DataPolicy data_policy = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DataPolicy.Builder

getDataPolicyOrBuilder()

public DataPolicyOrBuilder getDataPolicyOrBuilder()

Required. The data policy to create. The name field does not need to be provided for the data policy creation.

.google.cloud.bigquery.datapolicies.v1beta1.DataPolicy data_policy = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DataPolicyOrBuilder

getDefaultInstanceForType()

public CreateDataPolicyRequest getDefaultInstanceForType()
Returns
Type Description
CreateDataPolicyRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. Resource name of the project that the data policy will belong to. The format is projects/{project_number}/locations/{location_id}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Resource name of the project that the data policy will belong to. The format is projects/{project_number}/locations/{location_id}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

hasDataPolicy()

public boolean hasDataPolicy()

Required. The data policy to create. The name field does not need to be provided for the data policy creation.

.google.cloud.bigquery.datapolicies.v1beta1.DataPolicy data_policy = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the dataPolicy field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDataPolicy(DataPolicy value)

public CreateDataPolicyRequest.Builder mergeDataPolicy(DataPolicy value)

Required. The data policy to create. The name field does not need to be provided for the data policy creation.

.google.cloud.bigquery.datapolicies.v1beta1.DataPolicy data_policy = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value DataPolicy
Returns
Type Description
CreateDataPolicyRequest.Builder

mergeFrom(CreateDataPolicyRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDataPolicy(DataPolicy value)

public CreateDataPolicyRequest.Builder setDataPolicy(DataPolicy value)

Required. The data policy to create. The name field does not need to be provided for the data policy creation.

.google.cloud.bigquery.datapolicies.v1beta1.DataPolicy data_policy = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value DataPolicy
Returns
Type Description
CreateDataPolicyRequest.Builder

setDataPolicy(DataPolicy.Builder builderForValue)

public CreateDataPolicyRequest.Builder setDataPolicy(DataPolicy.Builder builderForValue)

Required. The data policy to create. The name field does not need to be provided for the data policy creation.

.google.cloud.bigquery.datapolicies.v1beta1.DataPolicy data_policy = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue DataPolicy.Builder
Returns
Type Description
CreateDataPolicyRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateDataPolicyRequest.Builder setParent(String value)

Required. Resource name of the project that the data policy will belong to. The format is projects/{project_number}/locations/{location_id}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateDataPolicyRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateDataPolicyRequest.Builder setParentBytes(ByteString value)

Required. Resource name of the project that the data policy will belong to. The format is projects/{project_number}/locations/{location_id}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateDataPolicyRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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