Class AssetFrame.Builder (0.28.0)

public static final class AssetFrame.Builder extends GeneratedMessageV3.Builder<AssetFrame.Builder> implements AssetFrameOrBuilder

Contains data reported from an inventory source on an asset.

Protobuf type google.cloud.migrationcenter.v1.AssetFrame

Implements

AssetFrameOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllPerformanceSamples(Iterable<? extends PerformanceSample> values)

public AssetFrame.Builder addAllPerformanceSamples(Iterable<? extends PerformanceSample> values)

Asset performance data samples. Samples that are from more than 40 days ago or after tomorrow are ignored.

repeated .google.cloud.migrationcenter.v1.PerformanceSample performance_samples = 13;

Parameter
Name Description
values Iterable<? extends com.google.cloud.migrationcenter.v1.PerformanceSample>
Returns
Type Description
AssetFrame.Builder

addPerformanceSamples(PerformanceSample value)

public AssetFrame.Builder addPerformanceSamples(PerformanceSample value)

Asset performance data samples. Samples that are from more than 40 days ago or after tomorrow are ignored.

repeated .google.cloud.migrationcenter.v1.PerformanceSample performance_samples = 13;

Parameter
Name Description
value PerformanceSample
Returns
Type Description
AssetFrame.Builder

addPerformanceSamples(PerformanceSample.Builder builderForValue)

public AssetFrame.Builder addPerformanceSamples(PerformanceSample.Builder builderForValue)

Asset performance data samples. Samples that are from more than 40 days ago or after tomorrow are ignored.

repeated .google.cloud.migrationcenter.v1.PerformanceSample performance_samples = 13;

Parameter
Name Description
builderForValue PerformanceSample.Builder
Returns
Type Description
AssetFrame.Builder

addPerformanceSamples(int index, PerformanceSample value)

public AssetFrame.Builder addPerformanceSamples(int index, PerformanceSample value)

Asset performance data samples. Samples that are from more than 40 days ago or after tomorrow are ignored.

repeated .google.cloud.migrationcenter.v1.PerformanceSample performance_samples = 13;

Parameters
Name Description
index int
value PerformanceSample
Returns
Type Description
AssetFrame.Builder

addPerformanceSamples(int index, PerformanceSample.Builder builderForValue)

public AssetFrame.Builder addPerformanceSamples(int index, PerformanceSample.Builder builderForValue)

Asset performance data samples. Samples that are from more than 40 days ago or after tomorrow are ignored.

repeated .google.cloud.migrationcenter.v1.PerformanceSample performance_samples = 13;

Parameters
Name Description
index int
builderForValue PerformanceSample.Builder
Returns
Type Description
AssetFrame.Builder

addPerformanceSamplesBuilder()

public PerformanceSample.Builder addPerformanceSamplesBuilder()

Asset performance data samples. Samples that are from more than 40 days ago or after tomorrow are ignored.

repeated .google.cloud.migrationcenter.v1.PerformanceSample performance_samples = 13;

Returns
Type Description
PerformanceSample.Builder

addPerformanceSamplesBuilder(int index)

public PerformanceSample.Builder addPerformanceSamplesBuilder(int index)

Asset performance data samples. Samples that are from more than 40 days ago or after tomorrow are ignored.

repeated .google.cloud.migrationcenter.v1.PerformanceSample performance_samples = 13;

Parameter
Name Description
index int
Returns
Type Description
PerformanceSample.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AssetFrame build()
Returns
Type Description
AssetFrame

buildPartial()

public AssetFrame buildPartial()
Returns
Type Description
AssetFrame

clear()

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

clearAttributes()

public AssetFrame.Builder clearAttributes()
Returns
Type Description
AssetFrame.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearFrameData()

public AssetFrame.Builder clearFrameData()
Returns
Type Description
AssetFrame.Builder

clearLabels()

public AssetFrame.Builder clearLabels()
Returns
Type Description
AssetFrame.Builder

clearMachineDetails()

public AssetFrame.Builder clearMachineDetails()

Asset information specific for virtual machines.

.google.cloud.migrationcenter.v1.MachineDetails machine_details = 1;

Returns
Type Description
AssetFrame.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPerformanceSamples()

public AssetFrame.Builder clearPerformanceSamples()

Asset performance data samples. Samples that are from more than 40 days ago or after tomorrow are ignored.

repeated .google.cloud.migrationcenter.v1.PerformanceSample performance_samples = 13;

Returns
Type Description
AssetFrame.Builder

clearReportTime()

public AssetFrame.Builder clearReportTime()

The time the data was reported.

.google.protobuf.Timestamp report_time = 10;

Returns
Type Description
AssetFrame.Builder

clearTraceToken()

public AssetFrame.Builder clearTraceToken()

Optional. Trace token is optionally provided to assist with debugging and traceability.

string trace_token = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AssetFrame.Builder

This builder for chaining.

clone()

public AssetFrame.Builder clone()
Returns
Type Description
AssetFrame.Builder
Overrides

containsAttributes(String key)

public boolean containsAttributes(String key)

Generic asset attributes.

map<string, string> attributes = 12;

Parameter
Name Description
key String
Returns
Type Description
boolean

containsLabels(String key)

public boolean containsLabels(String key)

Labels as key value pairs.

map<string, string> labels = 11;

Parameter
Name Description
key String
Returns
Type Description
boolean

getAttributes() (deprecated)

public Map<String,String> getAttributes()

Use #getAttributesMap() instead.

Returns
Type Description
Map<String,String>

getAttributesCount()

public int getAttributesCount()

Generic asset attributes.

map<string, string> attributes = 12;

Returns
Type Description
int

getAttributesMap()

public Map<String,String> getAttributesMap()

Generic asset attributes.

map<string, string> attributes = 12;

Returns
Type Description
Map<String,String>

getAttributesOrDefault(String key, String defaultValue)

public String getAttributesOrDefault(String key, String defaultValue)

Generic asset attributes.

map<string, string> attributes = 12;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getAttributesOrThrow(String key)

public String getAttributesOrThrow(String key)

Generic asset attributes.

map<string, string> attributes = 12;

Parameter
Name Description
key String
Returns
Type Description
String

getDefaultInstanceForType()

public AssetFrame getDefaultInstanceForType()
Returns
Type Description
AssetFrame

getDescriptorForType()

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

getFrameDataCase()

public AssetFrame.FrameDataCase getFrameDataCase()
Returns
Type Description
AssetFrame.FrameDataCase

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Labels as key value pairs.

map<string, string> labels = 11;

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Labels as key value pairs.

map<string, string> labels = 11;

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Labels as key value pairs.

map<string, string> labels = 11;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Labels as key value pairs.

map<string, string> labels = 11;

Parameter
Name Description
key String
Returns
Type Description
String

getMachineDetails()

public MachineDetails getMachineDetails()

Asset information specific for virtual machines.

.google.cloud.migrationcenter.v1.MachineDetails machine_details = 1;

Returns
Type Description
MachineDetails

The machineDetails.

getMachineDetailsBuilder()

public MachineDetails.Builder getMachineDetailsBuilder()

Asset information specific for virtual machines.

.google.cloud.migrationcenter.v1.MachineDetails machine_details = 1;

Returns
Type Description
MachineDetails.Builder

getMachineDetailsOrBuilder()

public MachineDetailsOrBuilder getMachineDetailsOrBuilder()

Asset information specific for virtual machines.

.google.cloud.migrationcenter.v1.MachineDetails machine_details = 1;

Returns
Type Description
MachineDetailsOrBuilder

getMutableAttributes() (deprecated)

public Map<String,String> getMutableAttributes()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getPerformanceSamples(int index)

public PerformanceSample getPerformanceSamples(int index)

Asset performance data samples. Samples that are from more than 40 days ago or after tomorrow are ignored.

repeated .google.cloud.migrationcenter.v1.PerformanceSample performance_samples = 13;

Parameter
Name Description
index int
Returns
Type Description
PerformanceSample

getPerformanceSamplesBuilder(int index)

public PerformanceSample.Builder getPerformanceSamplesBuilder(int index)

Asset performance data samples. Samples that are from more than 40 days ago or after tomorrow are ignored.

repeated .google.cloud.migrationcenter.v1.PerformanceSample performance_samples = 13;

Parameter
Name Description
index int
Returns
Type Description
PerformanceSample.Builder

getPerformanceSamplesBuilderList()

public List<PerformanceSample.Builder> getPerformanceSamplesBuilderList()

Asset performance data samples. Samples that are from more than 40 days ago or after tomorrow are ignored.

repeated .google.cloud.migrationcenter.v1.PerformanceSample performance_samples = 13;

Returns
Type Description
List<Builder>

getPerformanceSamplesCount()

public int getPerformanceSamplesCount()

Asset performance data samples. Samples that are from more than 40 days ago or after tomorrow are ignored.

repeated .google.cloud.migrationcenter.v1.PerformanceSample performance_samples = 13;

Returns
Type Description
int

getPerformanceSamplesList()

public List<PerformanceSample> getPerformanceSamplesList()

Asset performance data samples. Samples that are from more than 40 days ago or after tomorrow are ignored.

repeated .google.cloud.migrationcenter.v1.PerformanceSample performance_samples = 13;

Returns
Type Description
List<PerformanceSample>

getPerformanceSamplesOrBuilder(int index)

public PerformanceSampleOrBuilder getPerformanceSamplesOrBuilder(int index)

Asset performance data samples. Samples that are from more than 40 days ago or after tomorrow are ignored.

repeated .google.cloud.migrationcenter.v1.PerformanceSample performance_samples = 13;

Parameter
Name Description
index int
Returns
Type Description
PerformanceSampleOrBuilder

getPerformanceSamplesOrBuilderList()

public List<? extends PerformanceSampleOrBuilder> getPerformanceSamplesOrBuilderList()

Asset performance data samples. Samples that are from more than 40 days ago or after tomorrow are ignored.

repeated .google.cloud.migrationcenter.v1.PerformanceSample performance_samples = 13;

Returns
Type Description
List<? extends com.google.cloud.migrationcenter.v1.PerformanceSampleOrBuilder>

getReportTime()

public Timestamp getReportTime()

The time the data was reported.

.google.protobuf.Timestamp report_time = 10;

Returns
Type Description
Timestamp

The reportTime.

getReportTimeBuilder()

public Timestamp.Builder getReportTimeBuilder()

The time the data was reported.

.google.protobuf.Timestamp report_time = 10;

Returns
Type Description
Builder

getReportTimeOrBuilder()

public TimestampOrBuilder getReportTimeOrBuilder()

The time the data was reported.

.google.protobuf.Timestamp report_time = 10;

Returns
Type Description
TimestampOrBuilder

getTraceToken()

public String getTraceToken()

Optional. Trace token is optionally provided to assist with debugging and traceability.

string trace_token = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The traceToken.

getTraceTokenBytes()

public ByteString getTraceTokenBytes()

Optional. Trace token is optionally provided to assist with debugging and traceability.

string trace_token = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for traceToken.

hasMachineDetails()

public boolean hasMachineDetails()

Asset information specific for virtual machines.

.google.cloud.migrationcenter.v1.MachineDetails machine_details = 1;

Returns
Type Description
boolean

Whether the machineDetails field is set.

hasReportTime()

public boolean hasReportTime()

The time the data was reported.

.google.protobuf.Timestamp report_time = 10;

Returns
Type Description
boolean

Whether the reportTime field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AssetFrame other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMachineDetails(MachineDetails value)

public AssetFrame.Builder mergeMachineDetails(MachineDetails value)

Asset information specific for virtual machines.

.google.cloud.migrationcenter.v1.MachineDetails machine_details = 1;

Parameter
Name Description
value MachineDetails
Returns
Type Description
AssetFrame.Builder

mergeReportTime(Timestamp value)

public AssetFrame.Builder mergeReportTime(Timestamp value)

The time the data was reported.

.google.protobuf.Timestamp report_time = 10;

Parameter
Name Description
value Timestamp
Returns
Type Description
AssetFrame.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllAttributes(Map<String,String> values)

public AssetFrame.Builder putAllAttributes(Map<String,String> values)

Generic asset attributes.

map<string, string> attributes = 12;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
AssetFrame.Builder

putAllLabels(Map<String,String> values)

public AssetFrame.Builder putAllLabels(Map<String,String> values)

Labels as key value pairs.

map<string, string> labels = 11;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
AssetFrame.Builder

putAttributes(String key, String value)

public AssetFrame.Builder putAttributes(String key, String value)

Generic asset attributes.

map<string, string> attributes = 12;

Parameters
Name Description
key String
value String
Returns
Type Description
AssetFrame.Builder

putLabels(String key, String value)

public AssetFrame.Builder putLabels(String key, String value)

Labels as key value pairs.

map<string, string> labels = 11;

Parameters
Name Description
key String
value String
Returns
Type Description
AssetFrame.Builder

removeAttributes(String key)

public AssetFrame.Builder removeAttributes(String key)

Generic asset attributes.

map<string, string> attributes = 12;

Parameter
Name Description
key String
Returns
Type Description
AssetFrame.Builder

removeLabels(String key)

public AssetFrame.Builder removeLabels(String key)

Labels as key value pairs.

map<string, string> labels = 11;

Parameter
Name Description
key String
Returns
Type Description
AssetFrame.Builder

removePerformanceSamples(int index)

public AssetFrame.Builder removePerformanceSamples(int index)

Asset performance data samples. Samples that are from more than 40 days ago or after tomorrow are ignored.

repeated .google.cloud.migrationcenter.v1.PerformanceSample performance_samples = 13;

Parameter
Name Description
index int
Returns
Type Description
AssetFrame.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setMachineDetails(MachineDetails value)

public AssetFrame.Builder setMachineDetails(MachineDetails value)

Asset information specific for virtual machines.

.google.cloud.migrationcenter.v1.MachineDetails machine_details = 1;

Parameter
Name Description
value MachineDetails
Returns
Type Description
AssetFrame.Builder

setMachineDetails(MachineDetails.Builder builderForValue)

public AssetFrame.Builder setMachineDetails(MachineDetails.Builder builderForValue)

Asset information specific for virtual machines.

.google.cloud.migrationcenter.v1.MachineDetails machine_details = 1;

Parameter
Name Description
builderForValue MachineDetails.Builder
Returns
Type Description
AssetFrame.Builder

setPerformanceSamples(int index, PerformanceSample value)

public AssetFrame.Builder setPerformanceSamples(int index, PerformanceSample value)

Asset performance data samples. Samples that are from more than 40 days ago or after tomorrow are ignored.

repeated .google.cloud.migrationcenter.v1.PerformanceSample performance_samples = 13;

Parameters
Name Description
index int
value PerformanceSample
Returns
Type Description
AssetFrame.Builder

setPerformanceSamples(int index, PerformanceSample.Builder builderForValue)

public AssetFrame.Builder setPerformanceSamples(int index, PerformanceSample.Builder builderForValue)

Asset performance data samples. Samples that are from more than 40 days ago or after tomorrow are ignored.

repeated .google.cloud.migrationcenter.v1.PerformanceSample performance_samples = 13;

Parameters
Name Description
index int
builderForValue PerformanceSample.Builder
Returns
Type Description
AssetFrame.Builder

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

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

setReportTime(Timestamp value)

public AssetFrame.Builder setReportTime(Timestamp value)

The time the data was reported.

.google.protobuf.Timestamp report_time = 10;

Parameter
Name Description
value Timestamp
Returns
Type Description
AssetFrame.Builder

setReportTime(Timestamp.Builder builderForValue)

public AssetFrame.Builder setReportTime(Timestamp.Builder builderForValue)

The time the data was reported.

.google.protobuf.Timestamp report_time = 10;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AssetFrame.Builder

setTraceToken(String value)

public AssetFrame.Builder setTraceToken(String value)

Optional. Trace token is optionally provided to assist with debugging and traceability.

string trace_token = 14 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The traceToken to set.

Returns
Type Description
AssetFrame.Builder

This builder for chaining.

setTraceTokenBytes(ByteString value)

public AssetFrame.Builder setTraceTokenBytes(ByteString value)

Optional. Trace token is optionally provided to assist with debugging and traceability.

string trace_token = 14 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for traceToken to set.

Returns
Type Description
AssetFrame.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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