Class AssetFrame.Builder (0.15.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.migrationcenter.v1.PerformanceSample>
Returns
TypeDescription
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
NameDescription
valuePerformanceSample
Returns
TypeDescription
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
NameDescription
builderForValuePerformanceSample.Builder
Returns
TypeDescription
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
NameDescription
indexint
valuePerformanceSample
Returns
TypeDescription
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
NameDescription
indexint
builderForValuePerformanceSample.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
PerformanceSample.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AssetFrame build()
Returns
TypeDescription
AssetFrame

buildPartial()

public AssetFrame buildPartial()
Returns
TypeDescription
AssetFrame

clear()

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

clearAttributes()

public AssetFrame.Builder clearAttributes()
Returns
TypeDescription
AssetFrame.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearFrameData()

public AssetFrame.Builder clearFrameData()
Returns
TypeDescription
AssetFrame.Builder

clearLabels()

public AssetFrame.Builder clearLabels()
Returns
TypeDescription
AssetFrame.Builder

clearMachineDetails()

public AssetFrame.Builder clearMachineDetails()

Asset information specific for virtual machines.

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

Returns
TypeDescription
AssetFrame.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public AssetFrame.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
AssetFrame.Builder

clearReportTime()

public AssetFrame.Builder clearReportTime()

The time the data was reported.

.google.protobuf.Timestamp report_time = 10;

Returns
TypeDescription
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
TypeDescription
AssetFrame.Builder

This builder for chaining.

clone()

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

containsAttributes(String key)

public boolean containsAttributes(String key)

Generic asset attributes.

map<string, string> attributes = 12;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

containsLabels(String key)

public boolean containsLabels(String key)

Labels as key value pairs.

map<string, string> labels = 11;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getAttributes() (deprecated)

public Map<String,String> getAttributes()

Use #getAttributesMap() instead.

Returns
TypeDescription
Map<String,String>

getAttributesCount()

public int getAttributesCount()

Generic asset attributes.

map<string, string> attributes = 12;

Returns
TypeDescription
int

getAttributesMap()

public Map<String,String> getAttributesMap()

Generic asset attributes.

map<string, string> attributes = 12;

Returns
TypeDescription
Map<String,String>

getAttributesOrDefault(String key, String defaultValue)

public String getAttributesOrDefault(String key, String defaultValue)

Generic asset attributes.

map<string, string> attributes = 12;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getAttributesOrThrow(String key)

public String getAttributesOrThrow(String key)

Generic asset attributes.

map<string, string> attributes = 12;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getDefaultInstanceForType()

public AssetFrame getDefaultInstanceForType()
Returns
TypeDescription
AssetFrame

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFrameDataCase()

public AssetFrame.FrameDataCase getFrameDataCase()
Returns
TypeDescription
AssetFrame.FrameDataCase

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Labels as key value pairs.

map<string, string> labels = 11;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Labels as key value pairs.

map<string, string> labels = 11;

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

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Labels as key value pairs.

map<string, string> labels = 11;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMachineDetails()

public MachineDetails getMachineDetails()

Asset information specific for virtual machines.

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

Returns
TypeDescription
MachineDetails

The machineDetails.

getMachineDetailsBuilder()

public MachineDetails.Builder getMachineDetailsBuilder()

Asset information specific for virtual machines.

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

Returns
TypeDescription
MachineDetails.Builder

getMachineDetailsOrBuilder()

public MachineDetailsOrBuilder getMachineDetailsOrBuilder()

Asset information specific for virtual machines.

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

Returns
TypeDescription
MachineDetailsOrBuilder

getMutableAttributes() (deprecated)

public Map<String,String> getMutableAttributes()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

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

The reportTime.

getReportTimeBuilder()

public Timestamp.Builder getReportTimeBuilder()

The time the data was reported.

.google.protobuf.Timestamp report_time = 10;

Returns
TypeDescription
Builder

getReportTimeOrBuilder()

public TimestampOrBuilder getReportTimeOrBuilder()

The time the data was reported.

.google.protobuf.Timestamp report_time = 10;

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

The bytes for traceToken.

hasMachineDetails()

public boolean hasMachineDetails()

Asset information specific for virtual machines.

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

Returns
TypeDescription
boolean

Whether the machineDetails field is set.

hasReportTime()

public boolean hasReportTime()

The time the data was reported.

.google.protobuf.Timestamp report_time = 10;

Returns
TypeDescription
boolean

Whether the reportTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AssetFrame other)

public AssetFrame.Builder mergeFrom(AssetFrame other)
Parameter
NameDescription
otherAssetFrame
Returns
TypeDescription
AssetFrame.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public AssetFrame.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueMachineDetails
Returns
TypeDescription
AssetFrame.Builder

mergeReportTime(Timestamp value)

public AssetFrame.Builder mergeReportTime(Timestamp value)

The time the data was reported.

.google.protobuf.Timestamp report_time = 10;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
AssetFrame.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AssetFrame.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuesMap<String,String>
Returns
TypeDescription
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
NameDescription
valuesMap<String,String>
Returns
TypeDescription
AssetFrame.Builder

putAttributes(String key, String value)

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

Generic asset attributes.

map<string, string> attributes = 12;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
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
NameDescription
keyString
valueString
Returns
TypeDescription
AssetFrame.Builder

removeAttributes(String key)

public AssetFrame.Builder removeAttributes(String key)

Generic asset attributes.

map<string, string> attributes = 12;

Parameter
NameDescription
keyString
Returns
TypeDescription
AssetFrame.Builder

removeLabels(String key)

public AssetFrame.Builder removeLabels(String key)

Labels as key value pairs.

map<string, string> labels = 11;

Parameter
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
AssetFrame.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AssetFrame.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueMachineDetails
Returns
TypeDescription
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
NameDescription
builderForValueMachineDetails.Builder
Returns
TypeDescription
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
NameDescription
indexint
valuePerformanceSample
Returns
TypeDescription
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
NameDescription
indexint
builderForValuePerformanceSample.Builder
Returns
TypeDescription
AssetFrame.Builder

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

public AssetFrame.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueString

The traceToken to set.

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

The bytes for traceToken to set.

Returns
TypeDescription
AssetFrame.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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