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
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 PartitionId.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public PartitionId build()
buildPartial()
public PartitionId buildPartial()
clear()
public PartitionId.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public PartitionId.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearNamespaceId()
public PartitionId.Builder clearNamespaceId()
If not empty, the ID of the namespace to which the entities belong.
string namespace_id = 4;
clearOneof(Descriptors.OneofDescriptor oneof)
public PartitionId.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearProjectId()
public PartitionId.Builder clearProjectId()
The ID of the project to which the entities belong.
string project_id = 2;
clone()
public PartitionId.Builder clone()
Overrides
getDefaultInstanceForType()
public PartitionId getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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 |
---|
Type | Description |
ByteString | The bytes for projectId.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(PartitionId other)
public PartitionId.Builder mergeFrom(PartitionId other)
public PartitionId.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public PartitionId.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PartitionId.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public PartitionId.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PartitionId.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final PartitionId.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides