public static final class PartitionId.Builder extends GeneratedMessageV3.Builder<PartitionId.Builder> implements PartitionIdOrBuilder
Datastore partition ID.
A partition ID identifies a grouping of entities. The grouping is always
by project and namespace, however the namespace ID may be empty.
A partition ID contains several dimensions:
project ID and namespace ID.
Protobuf type google.privacy.dlp.v2.PartitionId
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PartitionId.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public PartitionId build()
Returns
buildPartial()
public PartitionId buildPartial()
Returns
clear()
public PartitionId.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public PartitionId.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearNamespaceId()
public PartitionId.Builder clearNamespaceId()
If not empty, the ID of the namespace to which the entities belong.
string namespace_id = 4;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public PartitionId.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearProjectId()
public PartitionId.Builder clearProjectId()
The ID of the project to which the entities belong.
string project_id = 2;
Returns
clone()
public PartitionId.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public PartitionId getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getNamespaceId()
public String getNamespaceId()
If not empty, the ID of the namespace to which the entities belong.
string namespace_id = 4;
Returns
Type | Description |
String | The namespaceId.
|
getNamespaceIdBytes()
public ByteString getNamespaceIdBytes()
If not empty, the ID of the namespace to which the entities belong.
string namespace_id = 4;
Returns
Type | Description |
ByteString | The bytes for namespaceId.
|
getProjectId()
public String getProjectId()
The ID of the project to which the entities belong.
string project_id = 2;
Returns
Type | Description |
String | The projectId.
|
getProjectIdBytes()
public ByteString getProjectIdBytes()
The ID of the project to which the entities belong.
string project_id = 2;
Returns
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(PartitionId other)
public PartitionId.Builder mergeFrom(PartitionId other)
Parameter
Returns
public PartitionId.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public PartitionId.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PartitionId.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public PartitionId.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setNamespaceId(String value)
public PartitionId.Builder setNamespaceId(String value)
If not empty, the ID of the namespace to which the entities belong.
string namespace_id = 4;
Parameter
Name | Description |
value | String
The namespaceId to set.
|
Returns
setNamespaceIdBytes(ByteString value)
public PartitionId.Builder setNamespaceIdBytes(ByteString value)
If not empty, the ID of the namespace to which the entities belong.
string namespace_id = 4;
Parameter
Name | Description |
value | ByteString
The bytes for namespaceId to set.
|
Returns
setProjectId(String value)
public PartitionId.Builder setProjectId(String value)
The ID of the project to which the entities belong.
string project_id = 2;
Parameter
Name | Description |
value | String
The projectId to set.
|
Returns
setProjectIdBytes(ByteString value)
public PartitionId.Builder setProjectIdBytes(ByteString value)
The ID of the project to which the entities belong.
string project_id = 2;
Parameter
Name | Description |
value | ByteString
The bytes for projectId to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PartitionId.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final PartitionId.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides