Class Insight.Builder (0.19.0)

public static final class Insight.Builder extends GeneratedMessageV3.Builder<Insight.Builder> implements InsightOrBuilder

An insight about an asset.

Protobuf type google.cloud.migrationcenter.v1.Insight

Implements

InsightOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Insight build()
Returns
TypeDescription
Insight

buildPartial()

public Insight buildPartial()
Returns
TypeDescription
Insight

clear()

public Insight.Builder clear()
Returns
TypeDescription
Insight.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Insight.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Insight.Builder
Overrides

clearGenericInsight()

public Insight.Builder clearGenericInsight()

Output only. A generic insight about an asset

.google.cloud.migrationcenter.v1.GenericInsight generic_insight = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Insight.Builder

clearInsight()

public Insight.Builder clearInsight()
Returns
TypeDescription
Insight.Builder

clearMigrationInsight()

public Insight.Builder clearMigrationInsight()

Output only. An insight about potential migrations for an asset.

.google.cloud.migrationcenter.v1.MigrationInsight migration_insight = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Insight.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public Insight.Builder clone()
Returns
TypeDescription
Insight.Builder
Overrides

getDefaultInstanceForType()

public Insight getDefaultInstanceForType()
Returns
TypeDescription
Insight

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGenericInsight()

public GenericInsight getGenericInsight()

Output only. A generic insight about an asset

.google.cloud.migrationcenter.v1.GenericInsight generic_insight = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
GenericInsight

The genericInsight.

getGenericInsightBuilder()

public GenericInsight.Builder getGenericInsightBuilder()

Output only. A generic insight about an asset

.google.cloud.migrationcenter.v1.GenericInsight generic_insight = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
GenericInsight.Builder

getGenericInsightOrBuilder()

public GenericInsightOrBuilder getGenericInsightOrBuilder()

Output only. A generic insight about an asset

.google.cloud.migrationcenter.v1.GenericInsight generic_insight = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
GenericInsightOrBuilder

getInsightCase()

public Insight.InsightCase getInsightCase()
Returns
TypeDescription
Insight.InsightCase

getMigrationInsight()

public MigrationInsight getMigrationInsight()

Output only. An insight about potential migrations for an asset.

.google.cloud.migrationcenter.v1.MigrationInsight migration_insight = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
MigrationInsight

The migrationInsight.

getMigrationInsightBuilder()

public MigrationInsight.Builder getMigrationInsightBuilder()

Output only. An insight about potential migrations for an asset.

.google.cloud.migrationcenter.v1.MigrationInsight migration_insight = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
MigrationInsight.Builder

getMigrationInsightOrBuilder()

public MigrationInsightOrBuilder getMigrationInsightOrBuilder()

Output only. An insight about potential migrations for an asset.

.google.cloud.migrationcenter.v1.MigrationInsight migration_insight = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
MigrationInsightOrBuilder

hasGenericInsight()

public boolean hasGenericInsight()

Output only. A generic insight about an asset

.google.cloud.migrationcenter.v1.GenericInsight generic_insight = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the genericInsight field is set.

hasMigrationInsight()

public boolean hasMigrationInsight()

Output only. An insight about potential migrations for an asset.

.google.cloud.migrationcenter.v1.MigrationInsight migration_insight = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the migrationInsight field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Insight other)

public Insight.Builder mergeFrom(Insight other)
Parameter
NameDescription
otherInsight
Returns
TypeDescription
Insight.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeGenericInsight(GenericInsight value)

public Insight.Builder mergeGenericInsight(GenericInsight value)

Output only. A generic insight about an asset

.google.cloud.migrationcenter.v1.GenericInsight generic_insight = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueGenericInsight
Returns
TypeDescription
Insight.Builder

mergeMigrationInsight(MigrationInsight value)

public Insight.Builder mergeMigrationInsight(MigrationInsight value)

Output only. An insight about potential migrations for an asset.

.google.cloud.migrationcenter.v1.MigrationInsight migration_insight = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueMigrationInsight
Returns
TypeDescription
Insight.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Insight.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Insight.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setGenericInsight(GenericInsight value)

public Insight.Builder setGenericInsight(GenericInsight value)

Output only. A generic insight about an asset

.google.cloud.migrationcenter.v1.GenericInsight generic_insight = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueGenericInsight
Returns
TypeDescription
Insight.Builder

setGenericInsight(GenericInsight.Builder builderForValue)

public Insight.Builder setGenericInsight(GenericInsight.Builder builderForValue)

Output only. A generic insight about an asset

.google.cloud.migrationcenter.v1.GenericInsight generic_insight = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueGenericInsight.Builder
Returns
TypeDescription
Insight.Builder

setMigrationInsight(MigrationInsight value)

public Insight.Builder setMigrationInsight(MigrationInsight value)

Output only. An insight about potential migrations for an asset.

.google.cloud.migrationcenter.v1.MigrationInsight migration_insight = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueMigrationInsight
Returns
TypeDescription
Insight.Builder

setMigrationInsight(MigrationInsight.Builder builderForValue)

public Insight.Builder setMigrationInsight(MigrationInsight.Builder builderForValue)

Output only. An insight about potential migrations for an asset.

.google.cloud.migrationcenter.v1.MigrationInsight migration_insight = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueMigrationInsight.Builder
Returns
TypeDescription
Insight.Builder

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

public Insight.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Insight.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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