Class CreateDataPolicyRequest.Builder (0.27.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.v1.CreateDataPolicyRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateDataPolicyRequest build()
Returns
TypeDescription
CreateDataPolicyRequest

buildPartial()

public CreateDataPolicyRequest buildPartial()
Returns
TypeDescription
CreateDataPolicyRequest

clear()

public CreateDataPolicyRequest.Builder clear()
Returns
TypeDescription
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.v1.DataPolicy data_policy = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreateDataPolicyRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

public CreateDataPolicyRequest.Builder clone()
Returns
TypeDescription
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.v1.DataPolicy data_policy = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
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.v1.DataPolicy data_policy = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
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.v1.DataPolicy data_policy = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
DataPolicyOrBuilder

getDefaultInstanceForType()

public CreateDataPolicyRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateDataPolicyRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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.v1.DataPolicy data_policy = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the dataPolicy field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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.v1.DataPolicy data_policy = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueDataPolicy
Returns
TypeDescription
CreateDataPolicyRequest.Builder

mergeFrom(CreateDataPolicyRequest other)

public CreateDataPolicyRequest.Builder mergeFrom(CreateDataPolicyRequest other)
Parameter
NameDescription
otherCreateDataPolicyRequest
Returns
TypeDescription
CreateDataPolicyRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateDataPolicyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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.v1.DataPolicy data_policy = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueDataPolicy
Returns
TypeDescription
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.v1.DataPolicy data_policy = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueDataPolicy.Builder
Returns
TypeDescription
CreateDataPolicyRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The parent to set.

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

The bytes for parent to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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