Class AssetFrame (0.9.0)

public final class AssetFrame extends GeneratedMessageV3 implements AssetFrameOrBuilder

Contains data reported from an inventory source on an asset.

Protobuf type google.cloud.migrationcenter.v1.AssetFrame

Implements

AssetFrameOrBuilder

Static Fields

ATTRIBUTES_FIELD_NUMBER

public static final int ATTRIBUTES_FIELD_NUMBER
Field Value
TypeDescription
int

LABELS_FIELD_NUMBER

public static final int LABELS_FIELD_NUMBER
Field Value
TypeDescription
int

MACHINE_DETAILS_FIELD_NUMBER

public static final int MACHINE_DETAILS_FIELD_NUMBER
Field Value
TypeDescription
int

PERFORMANCE_SAMPLES_FIELD_NUMBER

public static final int PERFORMANCE_SAMPLES_FIELD_NUMBER
Field Value
TypeDescription
int

REPORT_TIME_FIELD_NUMBER

public static final int REPORT_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

TRACE_TOKEN_FIELD_NUMBER

public static final int TRACE_TOKEN_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AssetFrame getDefaultInstance()
Returns
TypeDescription
AssetFrame

getDescriptor()

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

newBuilder()

public static AssetFrame.Builder newBuilder()
Returns
TypeDescription
AssetFrame.Builder

newBuilder(AssetFrame prototype)

public static AssetFrame.Builder newBuilder(AssetFrame prototype)
Parameter
NameDescription
prototypeAssetFrame
Returns
TypeDescription
AssetFrame.Builder

parseDelimitedFrom(InputStream input)

public static AssetFrame parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AssetFrame
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AssetFrame parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AssetFrame
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static AssetFrame parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
AssetFrame
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AssetFrame parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AssetFrame
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AssetFrame parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
AssetFrame
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AssetFrame parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AssetFrame
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AssetFrame parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
AssetFrame
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AssetFrame parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AssetFrame
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static AssetFrame parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AssetFrame
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AssetFrame parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AssetFrame
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static AssetFrame parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
AssetFrame
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AssetFrame parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AssetFrame
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<AssetFrame> parser()
Returns
TypeDescription
Parser<AssetFrame>

Methods

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

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAttributes()

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

getFrameDataCase()

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

getLabels()

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.

getMachineDetailsOrBuilder()

public MachineDetailsOrBuilder getMachineDetailsOrBuilder()

Asset information specific for virtual machines.

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

Returns
TypeDescription
MachineDetailsOrBuilder

getParserForType()

public Parser<AssetFrame> getParserForType()
Returns
TypeDescription
Parser<AssetFrame>
Overrides

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

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.

getReportTimeOrBuilder()

public TimestampOrBuilder getReportTimeOrBuilder()

The time the data was reported.

.google.protobuf.Timestamp report_time = 10;

Returns
TypeDescription
TimestampOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

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

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AssetFrame.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
AssetFrame.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException