Class Attachment (0.37.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
Type Description
int

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Attachment getDefaultInstance()
Returns
Type Description
Attachment

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Attachment.Builder newBuilder()
Returns
Type Description
Attachment.Builder

newBuilder(Attachment prototype)

public static Attachment.Builder newBuilder(Attachment prototype)
Parameter
Name Description
prototype Attachment
Returns
Type Description
Attachment.Builder

parseDelimitedFrom(InputStream input)

public static Attachment parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Attachment
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Attachment parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Attachment
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Attachment parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Attachment
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Attachment parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Attachment
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Attachment parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Attachment
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Attachment parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Attachment
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Attachment parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Attachment
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Attachment parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Attachment
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Attachment parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Attachment
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Attachment parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Attachment
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Attachment parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Attachment
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Attachment parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Attachment
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Attachment> parser()
Returns
Type Description
Parser<Attachment>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCsv()

public Csv getCsv()

A CSV file attachment. Max size is 10 MB.

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

Returns
Type Description
Csv

The csv.

getCsvOrBuilder()

public CsvOrBuilder getCsvOrBuilder()

A CSV file attachment. Max size is 10 MB.

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

Returns
Type Description
CsvOrBuilder

getDataCase()

public Attachment.DataCase getDataCase()
Returns
Type Description
Attachment.DataCase

getDefaultInstanceForType()

public Attachment getDefaultInstanceForType()
Returns
Type Description
Attachment

getDisplayName()

public String getDisplayName()

The title of the attachment.

string display_name = 1;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The title of the attachment.

string display_name = 1;

Returns
Type Description
ByteString

The bytes for displayName.

getParserForType()

public Parser<Attachment> getParserForType()
Returns
Type Description
Parser<Attachment>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasCsv()

public boolean hasCsv()

A CSV file attachment. Max size is 10 MB.

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

Returns
Type Description
boolean

Whether the csv field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Attachment.Builder newBuilderForType()
Returns
Type Description
Attachment.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Attachment.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Attachment.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Attachment.Builder toBuilder()
Returns
Type Description
Attachment.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException