Class CreateDataPolicyRequest (0.51.0)

public final class CreateDataPolicyRequest extends GeneratedMessageV3 implements CreateDataPolicyRequestOrBuilder

Request message for the CreateDataPolicy method.

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

Static Fields

DATA_POLICY_FIELD_NUMBER

public static final int DATA_POLICY_FIELD_NUMBER
Field Value
Type Description
int

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CreateDataPolicyRequest getDefaultInstance()
Returns
Type Description
CreateDataPolicyRequest

getDescriptor()

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

newBuilder()

public static CreateDataPolicyRequest.Builder newBuilder()
Returns
Type Description
CreateDataPolicyRequest.Builder

newBuilder(CreateDataPolicyRequest prototype)

public static CreateDataPolicyRequest.Builder newBuilder(CreateDataPolicyRequest prototype)
Parameter
Name Description
prototype CreateDataPolicyRequest
Returns
Type Description
CreateDataPolicyRequest.Builder

parseDelimitedFrom(InputStream input)

public static CreateDataPolicyRequest parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CreateDataPolicyRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateDataPolicyRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateDataPolicyRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static CreateDataPolicyRequest parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
CreateDataPolicyRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CreateDataPolicyRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateDataPolicyRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CreateDataPolicyRequest parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CreateDataPolicyRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CreateDataPolicyRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateDataPolicyRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CreateDataPolicyRequest parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CreateDataPolicyRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateDataPolicyRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateDataPolicyRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static CreateDataPolicyRequest parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CreateDataPolicyRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateDataPolicyRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateDataPolicyRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static CreateDataPolicyRequest parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CreateDataPolicyRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CreateDataPolicyRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateDataPolicyRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<CreateDataPolicyRequest> parser()
Returns
Type Description
Parser<CreateDataPolicyRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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.

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

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.

getParserForType()

public Parser<CreateDataPolicyRequest> getParserForType()
Returns
Type Description
Parser<CreateDataPolicyRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public CreateDataPolicyRequest.Builder newBuilderForType()
Returns
Type Description
CreateDataPolicyRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CreateDataPolicyRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CreateDataPolicyRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public CreateDataPolicyRequest.Builder toBuilder()
Returns
Type Description
CreateDataPolicyRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException