Class Attachment (0.20.0)

public final class Attachment extends GeneratedMessageV3 implements AttachmentOrBuilder

Attachment with specific information about the issue.

Protobuf type google.cloud.advisorynotifications.v1.Attachment

Implements

AttachmentOrBuilder

Static Fields

CSV_FIELD_NUMBER

public static final int CSV_FIELD_NUMBER
Field Value
TypeDescription
int

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Attachment getDefaultInstance()
Returns
TypeDescription
Attachment

getDescriptor()

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

newBuilder()

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

newBuilder(Attachment prototype)

public static Attachment.Builder newBuilder(Attachment prototype)
Parameter
NameDescription
prototypeAttachment
Returns
TypeDescription
Attachment.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getCsv()

public Csv getCsv()

A CSV file attachment. Max size is 10 MB.

.google.cloud.advisorynotifications.v1.Csv csv = 2;

Returns
TypeDescription
Csv

The csv.

getCsvOrBuilder()

public CsvOrBuilder getCsvOrBuilder()

A CSV file attachment. Max size is 10 MB.

.google.cloud.advisorynotifications.v1.Csv csv = 2;

Returns
TypeDescription
CsvOrBuilder

getDataCase()

public Attachment.DataCase getDataCase()
Returns
TypeDescription
Attachment.DataCase

getDefaultInstanceForType()

public Attachment getDefaultInstanceForType()
Returns
TypeDescription
Attachment

getDisplayName()

public String getDisplayName()

The title of the attachment.

string display_name = 1;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The title of the attachment.

string display_name = 1;

Returns
TypeDescription
ByteString

The bytes for displayName.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasCsv()

public boolean hasCsv()

A CSV file attachment. Max size is 10 MB.

.google.cloud.advisorynotifications.v1.Csv csv = 2;

Returns
TypeDescription
boolean

Whether the csv field is set.

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 Attachment.Builder newBuilderForType()
Returns
TypeDescription
Attachment.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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