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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateDataPolicyRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public CreateDataPolicyRequest build()
buildPartial()
public CreateDataPolicyRequest buildPartial()
clear()
public CreateDataPolicyRequest.Builder clear()
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];
clearField(Descriptors.FieldDescriptor field)
public CreateDataPolicyRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateDataPolicyRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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) = { ... }
clone()
public CreateDataPolicyRequest.Builder clone()
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];
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];
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];
getDefaultInstanceForType()
public CreateDataPolicyRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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.v1.DataPolicy data_policy = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
boolean | Whether the dataPolicy field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
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];
mergeFrom(CreateDataPolicyRequest other)
public CreateDataPolicyRequest.Builder mergeFrom(CreateDataPolicyRequest other)
public CreateDataPolicyRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public CreateDataPolicyRequest.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateDataPolicyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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];
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];
setField(Descriptors.FieldDescriptor field, Object value)
public CreateDataPolicyRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateDataPolicyRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateDataPolicyRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides