Class GenericInsight (0.35.0)

public final class GenericInsight extends GeneratedMessageV3 implements GenericInsightOrBuilder

A generic insight about an asset.

Protobuf type google.cloud.migrationcenter.v1.GenericInsight

Static Fields

ADDITIONAL_INFORMATION_FIELD_NUMBER

public static final int ADDITIONAL_INFORMATION_FIELD_NUMBER
Field Value
Type Description
int

DEFAULT_MESSAGE_FIELD_NUMBER

public static final int DEFAULT_MESSAGE_FIELD_NUMBER
Field Value
Type Description
int

MESSAGE_ID_FIELD_NUMBER

public static final int MESSAGE_ID_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static GenericInsight getDefaultInstance()
Returns
Type Description
GenericInsight

getDescriptor()

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

newBuilder()

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

newBuilder(GenericInsight prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAdditionalInformation(int index)

public String getAdditionalInformation(int index)

Output only. Additional information about the insight, each entry can be a logical entry and must make sense if it is displayed with line breaks between each entry. Text can contain md style links.

repeated string additional_information = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The additionalInformation at the given index.

getAdditionalInformationBytes(int index)

public ByteString getAdditionalInformationBytes(int index)

Output only. Additional information about the insight, each entry can be a logical entry and must make sense if it is displayed with line breaks between each entry. Text can contain md style links.

repeated string additional_information = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the additionalInformation at the given index.

getAdditionalInformationCount()

public int getAdditionalInformationCount()

Output only. Additional information about the insight, each entry can be a logical entry and must make sense if it is displayed with line breaks between each entry. Text can contain md style links.

repeated string additional_information = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The count of additionalInformation.

getAdditionalInformationList()

public ProtocolStringList getAdditionalInformationList()

Output only. Additional information about the insight, each entry can be a logical entry and must make sense if it is displayed with line breaks between each entry. Text can contain md style links.

repeated string additional_information = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ProtocolStringList

A list containing the additionalInformation.

getDefaultInstanceForType()

public GenericInsight getDefaultInstanceForType()
Returns
Type Description
GenericInsight

getDefaultMessage()

public String getDefaultMessage()

Output only. In case message_code is not yet known by the client default_message will be the message to be used instead.

string default_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The defaultMessage.

getDefaultMessageBytes()

public ByteString getDefaultMessageBytes()

Output only. In case message_code is not yet known by the client default_message will be the message to be used instead.

string default_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for defaultMessage.

getMessageId()

public long getMessageId()

Output only. Represents a globally unique message id for this insight, can be used for localization purposes, in case message_code is not yet known by the client use default_message instead.

int64 message_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The messageId.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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 GenericInsight.Builder newBuilderForType()
Returns
Type Description
GenericInsight.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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