public final class DriveLinkData extends GeneratedMessageV3 implements DriveLinkDataOrBuilder
Data for Google Drive links.
Protobuf type google.chat.v1.DriveLinkData
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > DriveLinkDataImplements
DriveLinkDataOrBuilderStatic Fields
DRIVE_DATA_REF_FIELD_NUMBER
public static final int DRIVE_DATA_REF_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
MIME_TYPE_FIELD_NUMBER
public static final int MIME_TYPE_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
Static Methods
getDefaultInstance()
public static DriveLinkData getDefaultInstance()
Returns | |
---|---|
Type | Description |
DriveLinkData |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
newBuilder()
public static DriveLinkData.Builder newBuilder()
Returns | |
---|---|
Type | Description |
DriveLinkData.Builder |
newBuilder(DriveLinkData prototype)
public static DriveLinkData.Builder newBuilder(DriveLinkData prototype)
Parameter | |
---|---|
Name | Description |
prototype | DriveLinkData |
Returns | |
---|---|
Type | Description |
DriveLinkData.Builder |
parseDelimitedFrom(InputStream input)
public static DriveLinkData parseDelimitedFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input | InputStream |
Returns | |
---|---|
Type | Description |
DriveLinkData |
Exceptions | |
---|---|
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static DriveLinkData parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
DriveLinkData |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(byte[] data)
public static DriveLinkData parseFrom(byte[] data)
Parameter | |
---|---|
Name | Description |
data | byte[] |
Returns | |
---|---|
Type | Description |
DriveLinkData |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static DriveLinkData parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
DriveLinkData |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static DriveLinkData parseFrom(ByteString data)
Parameter | |
---|---|
Name | Description |
data | ByteString |
Returns | |
---|---|
Type | Description |
DriveLinkData |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static DriveLinkData parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
DriveLinkData |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static DriveLinkData parseFrom(CodedInputStream input)
Parameter | |
---|---|
Name | Description |
input | CodedInputStream |
Returns | |
---|---|
Type | Description |
DriveLinkData |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static DriveLinkData parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
DriveLinkData |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input)
public static DriveLinkData parseFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input | InputStream |
Returns | |
---|---|
Type | Description |
DriveLinkData |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static DriveLinkData parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
DriveLinkData |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static DriveLinkData parseFrom(ByteBuffer data)
Parameter | |
---|---|
Name | Description |
data | ByteBuffer |
Returns | |
---|---|
Type | Description |
DriveLinkData |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static DriveLinkData parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
DriveLinkData |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<DriveLinkData> parser()
Returns | |
---|---|
Type | Description |
Parser<DriveLinkData> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter | |
---|---|
Name | Description |
obj | Object |
Returns | |
---|---|
Type | Description |
boolean |
getDefaultInstanceForType()
public DriveLinkData getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
DriveLinkData |
getDriveDataRef()
public DriveDataRef getDriveDataRef()
A DriveDataRef which references a Google Drive file.
.google.chat.v1.DriveDataRef drive_data_ref = 1;
Returns | |
---|---|
Type | Description |
DriveDataRef | The driveDataRef. |
getDriveDataRefOrBuilder()
public DriveDataRefOrBuilder getDriveDataRefOrBuilder()
A DriveDataRef which references a Google Drive file.
.google.chat.v1.DriveDataRef drive_data_ref = 1;
Returns | |
---|---|
Type | Description |
DriveDataRefOrBuilder |
getMimeType()
public String getMimeType()
The mime type of the linked Google Drive resource.
string mime_type = 2;
Returns | |
---|---|
Type | Description |
String | The mimeType. |
getMimeTypeBytes()
public ByteString getMimeTypeBytes()
The mime type of the linked Google Drive resource.
string mime_type = 2;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for mimeType. |
getParserForType()
public Parser<DriveLinkData> getParserForType()
Returns | |
---|---|
Type | Description |
Parser<DriveLinkData> |
getSerializedSize()
public int getSerializedSize()
Returns | |
---|---|
Type | Description |
int |
hasDriveDataRef()
public boolean hasDriveDataRef()
A DriveDataRef which references a Google Drive file.
.google.chat.v1.DriveDataRef drive_data_ref = 1;
Returns | |
---|---|
Type | Description |
boolean | Whether the driveDataRef field is set. |
hashCode()
public int hashCode()
Returns | |
---|---|
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
newBuilderForType()
public DriveLinkData.Builder newBuilderForType()
Returns | |
---|---|
Type | Description |
DriveLinkData.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected DriveLinkData.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter | |
---|---|
Name | Description |
parent | BuilderParent |
Returns | |
---|---|
Type | Description |
DriveLinkData.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter | |
---|---|
Name | Description |
unused | UnusedPrivateParameter |
Returns | |
---|---|
Type | Description |
Object |
toBuilder()
public DriveLinkData.Builder toBuilder()
Returns | |
---|---|
Type | Description |
DriveLinkData.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter | |
---|---|
Name | Description |
output | CodedOutputStream |
Exceptions | |
---|---|
Type | Description |
IOException |