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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateDataPolicyRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public CreateDataPolicyRequest build()
Returns
buildPartial()
public CreateDataPolicyRequest buildPartial()
Returns
clear()
public CreateDataPolicyRequest.Builder clear()
Returns
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
clearField(Descriptors.FieldDescriptor field)
public CreateDataPolicyRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateDataPolicyRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
clone()
public CreateDataPolicyRequest.Builder clone()
Returns
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
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
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
getDefaultInstanceForType()
public CreateDataPolicyRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
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
Returns
mergeFrom(CreateDataPolicyRequest other)
public CreateDataPolicyRequest.Builder mergeFrom(CreateDataPolicyRequest other)
Parameter
Returns
public CreateDataPolicyRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public CreateDataPolicyRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateDataPolicyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public CreateDataPolicyRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateDataPolicyRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateDataPolicyRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides