Class GenericInsight.Builder (0.35.0)

public static final class GenericInsight.Builder extends GeneratedMessageV3.Builder<GenericInsight.Builder> implements GenericInsightOrBuilder

A generic insight about an asset.

Protobuf type google.cloud.migrationcenter.v1.GenericInsight

Static Methods

getDescriptor()

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

Methods

addAdditionalInformation(String value)

public GenericInsight.Builder addAdditionalInformation(String value)

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
value String

The additionalInformation to add.

Returns
Type Description
GenericInsight.Builder

This builder for chaining.

addAdditionalInformationBytes(ByteString value)

public GenericInsight.Builder addAdditionalInformationBytes(ByteString value)

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
value ByteString

The bytes of the additionalInformation to add.

Returns
Type Description
GenericInsight.Builder

This builder for chaining.

addAllAdditionalInformation(Iterable<String> values)

public GenericInsight.Builder addAllAdditionalInformation(Iterable<String> values)

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
values Iterable<String>

The additionalInformation to add.

Returns
Type Description
GenericInsight.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GenericInsight.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GenericInsight.Builder
Overrides

build()

public GenericInsight build()
Returns
Type Description
GenericInsight

buildPartial()

public GenericInsight buildPartial()
Returns
Type Description
GenericInsight

clear()

public GenericInsight.Builder clear()
Returns
Type Description
GenericInsight.Builder
Overrides

clearAdditionalInformation()

public GenericInsight.Builder clearAdditionalInformation()

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
GenericInsight.Builder

This builder for chaining.

clearDefaultMessage()

public GenericInsight.Builder clearDefaultMessage()

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
GenericInsight.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public GenericInsight.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
GenericInsight.Builder
Overrides

clearMessageId()

public GenericInsight.Builder clearMessageId()

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
GenericInsight.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public GenericInsight.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GenericInsight.Builder
Overrides

clone()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GenericInsight other)

public GenericInsight.Builder mergeFrom(GenericInsight other)
Parameter
Name Description
other GenericInsight
Returns
Type Description
GenericInsight.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GenericInsight.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenericInsight.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public GenericInsight.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
GenericInsight.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GenericInsight.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GenericInsight.Builder
Overrides

setAdditionalInformation(int index, String value)

public GenericInsight.Builder setAdditionalInformation(int index, String value)

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];

Parameters
Name Description
index int

The index to set the value at.

value String

The additionalInformation to set.

Returns
Type Description
GenericInsight.Builder

This builder for chaining.

setDefaultMessage(String value)

public GenericInsight.Builder setDefaultMessage(String value)

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];

Parameter
Name Description
value String

The defaultMessage to set.

Returns
Type Description
GenericInsight.Builder

This builder for chaining.

setDefaultMessageBytes(ByteString value)

public GenericInsight.Builder setDefaultMessageBytes(ByteString value)

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];

Parameter
Name Description
value ByteString

The bytes for defaultMessage to set.

Returns
Type Description
GenericInsight.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public GenericInsight.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GenericInsight.Builder
Overrides

setMessageId(long value)

public GenericInsight.Builder setMessageId(long value)

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];

Parameter
Name Description
value long

The messageId to set.

Returns
Type Description
GenericInsight.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public GenericInsight.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
GenericInsight.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GenericInsight.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GenericInsight.Builder
Overrides