Class UploadAttachmentRequest (0.1.0)

public final class UploadAttachmentRequest extends GeneratedMessageV3 implements UploadAttachmentRequestOrBuilder

Protobuf type google.chat.v1.UploadAttachmentRequest

Static Fields

FILENAME_FIELD_NUMBER

public static final int FILENAME_FIELD_NUMBER
Field Value
TypeDescription
int

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static UploadAttachmentRequest getDefaultInstance()
Returns
TypeDescription
UploadAttachmentRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static UploadAttachmentRequest.Builder newBuilder()
Returns
TypeDescription
UploadAttachmentRequest.Builder

newBuilder(UploadAttachmentRequest prototype)

public static UploadAttachmentRequest.Builder newBuilder(UploadAttachmentRequest prototype)
Parameter
NameDescription
prototypeUploadAttachmentRequest
Returns
TypeDescription
UploadAttachmentRequest.Builder

parseDelimitedFrom(InputStream input)

public static UploadAttachmentRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
UploadAttachmentRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static UploadAttachmentRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UploadAttachmentRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static UploadAttachmentRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
UploadAttachmentRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static UploadAttachmentRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UploadAttachmentRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static UploadAttachmentRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
UploadAttachmentRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static UploadAttachmentRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UploadAttachmentRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static UploadAttachmentRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
UploadAttachmentRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static UploadAttachmentRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UploadAttachmentRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static UploadAttachmentRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
UploadAttachmentRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static UploadAttachmentRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UploadAttachmentRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static UploadAttachmentRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
UploadAttachmentRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static UploadAttachmentRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UploadAttachmentRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<UploadAttachmentRequest> parser()
Returns
TypeDescription
Parser<UploadAttachmentRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public UploadAttachmentRequest getDefaultInstanceForType()
Returns
TypeDescription
UploadAttachmentRequest

getFilename()

public String getFilename()

Required. The filename of the attachment, including the file extension.

string filename = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The filename.

getFilenameBytes()

public ByteString getFilenameBytes()

Required. The filename of the attachment, including the file extension.

string filename = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for filename.

getParent()

public String getParent()

Required. Resource name of the Chat space in which the attachment is uploaded. Format "spaces/{space}".

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Resource name of the Chat space in which the attachment is uploaded. Format "spaces/{space}".

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for parent.

getParserForType()

public Parser<UploadAttachmentRequest> getParserForType()
Returns
TypeDescription
Parser<UploadAttachmentRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public UploadAttachmentRequest.Builder newBuilderForType()
Returns
TypeDescription
UploadAttachmentRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected UploadAttachmentRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
UploadAttachmentRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public UploadAttachmentRequest.Builder toBuilder()
Returns
TypeDescription
UploadAttachmentRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException