Class GenericInsight.Builder (0.16.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
TypeDescription
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
NameDescription
valueString

The additionalInformation to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the additionalInformation to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The additionalInformation to add.

Returns
TypeDescription
GenericInsight.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GenericInsight.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GenericInsight.Builder
Overrides

build()

public GenericInsight build()
Returns
TypeDescription
GenericInsight

buildPartial()

public GenericInsight buildPartial()
Returns
TypeDescription
GenericInsight

clear()

public GenericInsight.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
GenericInsight.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public GenericInsight.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
GenericInsight.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public GenericInsight.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
GenericInsight.Builder
Overrides

clone()

public GenericInsight.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the additionalInformation.

getDefaultInstanceForType()

public GenericInsight getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for defaultMessage.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
long

The messageId.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GenericInsight other)

public GenericInsight.Builder mergeFrom(GenericInsight other)
Parameter
NameDescription
otherGenericInsight
Returns
TypeDescription
GenericInsight.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GenericInsight.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GenericInsight.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public GenericInsight.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
GenericInsight.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GenericInsight.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The additionalInformation to set.

Returns
TypeDescription
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
NameDescription
valueString

The defaultMessage to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for defaultMessage to set.

Returns
TypeDescription
GenericInsight.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public GenericInsight.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valuelong

The messageId to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GenericInsight.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GenericInsight.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GenericInsight.Builder
Overrides