public final class FileLabel extends GeneratedMessage implements FileLabelOrBuilderRepresents a file label.
Protobuf type google.privacy.dlp.v2.FileLabel
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > FileLabelImplements
FileLabelOrBuilderStatic Fields
GOOGLE_DRIVE_LABEL_FIELD_NUMBER
public static final int GOOGLE_DRIVE_LABEL_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
SENSITIVITY_LABEL_FIELD_NUMBER
public static final int SENSITIVITY_LABEL_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static FileLabel getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
FileLabel |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static FileLabel.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
FileLabel.Builder |
|
newBuilder(FileLabel prototype)
public static FileLabel.Builder newBuilder(FileLabel prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
FileLabel |
| Returns | |
|---|---|
| Type | Description |
FileLabel.Builder |
|
parseDelimitedFrom(InputStream input)
public static FileLabel parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
FileLabel |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static FileLabel parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
FileLabel |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static FileLabel parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
FileLabel |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static FileLabel parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
FileLabel |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static FileLabel parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
FileLabel |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static FileLabel parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
FileLabel |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static FileLabel parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
FileLabel |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static FileLabel parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
FileLabel |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static FileLabel parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
FileLabel |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static FileLabel parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
FileLabel |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static FileLabel parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
FileLabel |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static FileLabel parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
FileLabel |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<FileLabel> parser()| Returns | |
|---|---|
| Type | Description |
Parser<FileLabel> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getDefaultInstanceForType()
public FileLabel getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
FileLabel |
|
getGoogleDriveLabel()
public FileLabel.GoogleDriveLabelMetadata getGoogleDriveLabel()Google Drive labels published by Google.
.google.privacy.dlp.v2.FileLabel.GoogleDriveLabelMetadata google_drive_label = 2;
| Returns | |
|---|---|
| Type | Description |
FileLabel.GoogleDriveLabelMetadata |
The googleDriveLabel. |
getGoogleDriveLabelOrBuilder()
public FileLabel.GoogleDriveLabelMetadataOrBuilder getGoogleDriveLabelOrBuilder()Google Drive labels published by Google.
.google.privacy.dlp.v2.FileLabel.GoogleDriveLabelMetadata google_drive_label = 2;
| Returns | |
|---|---|
| Type | Description |
FileLabel.GoogleDriveLabelMetadataOrBuilder |
|
getParserForType()
public Parser<FileLabel> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<FileLabel> |
|
getSensitivityLabel()
public FileLabel.SensitivityLabelMetadata getSensitivityLabel()Sensitivity labels published by Microsoft.
.google.privacy.dlp.v2.FileLabel.SensitivityLabelMetadata sensitivity_label = 1;
| Returns | |
|---|---|
| Type | Description |
FileLabel.SensitivityLabelMetadata |
The sensitivityLabel. |
getSensitivityLabelOrBuilder()
public FileLabel.SensitivityLabelMetadataOrBuilder getSensitivityLabelOrBuilder()Sensitivity labels published by Microsoft.
.google.privacy.dlp.v2.FileLabel.SensitivityLabelMetadata sensitivity_label = 1;
| Returns | |
|---|---|
| Type | Description |
FileLabel.SensitivityLabelMetadataOrBuilder |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
getTypeCase()
public FileLabel.TypeCase getTypeCase()| Returns | |
|---|---|
| Type | Description |
FileLabel.TypeCase |
|
hasGoogleDriveLabel()
public boolean hasGoogleDriveLabel()Google Drive labels published by Google.
.google.privacy.dlp.v2.FileLabel.GoogleDriveLabelMetadata google_drive_label = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the googleDriveLabel field is set. |
hasSensitivityLabel()
public boolean hasSensitivityLabel()Sensitivity labels published by Microsoft.
.google.privacy.dlp.v2.FileLabel.SensitivityLabelMetadata sensitivity_label = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the sensitivityLabel field is set. |
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public FileLabel.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
FileLabel.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected FileLabel.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
FileLabel.Builder |
|
toBuilder()
public FileLabel.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
FileLabel.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|