Package com.google.cloud.vmmigration.v1
Class UtilizationReport
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.vmmigration.v1.UtilizationReport
-
- All Implemented Interfaces:
UtilizationReportOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class UtilizationReport extends com.google.protobuf.GeneratedMessageV3 implements UtilizationReportOrBuilder
Utilization report details the utilization (CPU, memory, etc.) of selected source VMs.
Protobuf typegoogle.cloud.vmmigration.v1.UtilizationReport- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUtilizationReport.BuilderUtilization report details the utilization (CPU, memory, etc.) of selected source VMs.static classUtilizationReport.StateUtilization report state.static classUtilizationReport.TimeFrameReport time frame options.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intCREATE_TIME_FIELD_NUMBERstatic intDISPLAY_NAME_FIELD_NUMBERstatic intERROR_FIELD_NUMBERstatic intFRAME_END_TIME_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intSTATE_FIELD_NUMBERstatic intSTATE_TIME_FIELD_NUMBERstatic intTIME_FRAME_FIELD_NUMBERstatic intVM_COUNT_FIELD_NUMBERstatic intVMS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)com.google.protobuf.TimestampgetCreateTime()Output only.com.google.protobuf.TimestampOrBuildergetCreateTimeOrBuilder()Output only.static UtilizationReportgetDefaultInstance()UtilizationReportgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetDisplayName()The report display name, as assigned by the user.com.google.protobuf.ByteStringgetDisplayNameBytes()The report display name, as assigned by the user.com.google.rpc.StatusgetError()Output only.com.google.rpc.StatusOrBuildergetErrorOrBuilder()Output only.com.google.protobuf.TimestampgetFrameEndTime()Output only.com.google.protobuf.TimestampOrBuildergetFrameEndTimeOrBuilder()Output only.StringgetName()Output only.com.google.protobuf.ByteStringgetNameBytes()Output only.com.google.protobuf.Parser<UtilizationReport>getParserForType()intgetSerializedSize()UtilizationReport.StategetState()Output only.com.google.protobuf.TimestampgetStateTime()Output only.com.google.protobuf.TimestampOrBuildergetStateTimeOrBuilder()Output only.intgetStateValue()Output only.UtilizationReport.TimeFramegetTimeFrame()Time frame of the report.intgetTimeFrameValue()Time frame of the report.intgetVmCount()Output only.VmUtilizationInfogetVms(int index)List of utilization information per VM.intgetVmsCount()List of utilization information per VM.List<VmUtilizationInfo>getVmsList()List of utilization information per VM.VmUtilizationInfoOrBuildergetVmsOrBuilder(int index)List of utilization information per VM.List<? extends VmUtilizationInfoOrBuilder>getVmsOrBuilderList()List of utilization information per VM.booleanhasCreateTime()Output only.booleanhasError()Output only.booleanhasFrameEndTime()Output only.inthashCode()booleanhasStateTime()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static UtilizationReport.BuildernewBuilder()static UtilizationReport.BuildernewBuilder(UtilizationReport prototype)UtilizationReport.BuildernewBuilderForType()protected UtilizationReport.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static UtilizationReportparseDelimitedFrom(InputStream input)static UtilizationReportparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static UtilizationReportparseFrom(byte[] data)static UtilizationReportparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static UtilizationReportparseFrom(com.google.protobuf.ByteString data)static UtilizationReportparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static UtilizationReportparseFrom(com.google.protobuf.CodedInputStream input)static UtilizationReportparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static UtilizationReportparseFrom(InputStream input)static UtilizationReportparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static UtilizationReportparseFrom(ByteBuffer data)static UtilizationReportparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<UtilizationReport>parser()UtilizationReport.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STATE_TIME_FIELD_NUMBER
public static final int STATE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ERROR_FIELD_NUMBER
public static final int ERROR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TIME_FRAME_FIELD_NUMBER
public static final int TIME_FRAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FRAME_END_TIME_FIELD_NUMBER
public static final int FRAME_END_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VM_COUNT_FIELD_NUMBER
public static final int VM_COUNT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VMS_FIELD_NUMBER
public static final int VMS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getName
public String getName()
Output only. The report unique name.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNamein interfaceUtilizationReportOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Output only. The report unique name.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNameBytesin interfaceUtilizationReportOrBuilder- Returns:
- The bytes for name.
-
getDisplayName
public String getDisplayName()
The report display name, as assigned by the user.
string display_name = 2;- Specified by:
getDisplayNamein interfaceUtilizationReportOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()
The report display name, as assigned by the user.
string display_name = 2;- Specified by:
getDisplayNameBytesin interfaceUtilizationReportOrBuilder- Returns:
- The bytes for displayName.
-
getStateValue
public int getStateValue()
Output only. Current state of the report.
.google.cloud.vmmigration.v1.UtilizationReport.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateValuein interfaceUtilizationReportOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
getState
public UtilizationReport.State getState()
Output only. Current state of the report.
.google.cloud.vmmigration.v1.UtilizationReport.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatein interfaceUtilizationReportOrBuilder- Returns:
- The state.
-
hasStateTime
public boolean hasStateTime()
Output only. The time the state was last set.
.google.protobuf.Timestamp state_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasStateTimein interfaceUtilizationReportOrBuilder- Returns:
- Whether the stateTime field is set.
-
getStateTime
public com.google.protobuf.Timestamp getStateTime()
Output only. The time the state was last set.
.google.protobuf.Timestamp state_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateTimein interfaceUtilizationReportOrBuilder- Returns:
- The stateTime.
-
getStateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getStateTimeOrBuilder()
Output only. The time the state was last set.
.google.protobuf.Timestamp state_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateTimeOrBuilderin interfaceUtilizationReportOrBuilder
-
hasError
public boolean hasError()
Output only. Provides details on the state of the report in case of an error.
.google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasErrorin interfaceUtilizationReportOrBuilder- Returns:
- Whether the error field is set.
-
getError
public com.google.rpc.Status getError()
Output only. Provides details on the state of the report in case of an error.
.google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getErrorin interfaceUtilizationReportOrBuilder- Returns:
- The error.
-
getErrorOrBuilder
public com.google.rpc.StatusOrBuilder getErrorOrBuilder()
Output only. Provides details on the state of the report in case of an error.
.google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getErrorOrBuilderin interfaceUtilizationReportOrBuilder
-
hasCreateTime
public boolean hasCreateTime()
Output only. The time the report was created (this refers to the time of the request, not the time the report creation completed).
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceUtilizationReportOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
Output only. The time the report was created (this refers to the time of the request, not the time the report creation completed).
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceUtilizationReportOrBuilder- Returns:
- The createTime.
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time the report was created (this refers to the time of the request, not the time the report creation completed).
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceUtilizationReportOrBuilder
-
getTimeFrameValue
public int getTimeFrameValue()
Time frame of the report.
.google.cloud.vmmigration.v1.UtilizationReport.TimeFrame time_frame = 7;- Specified by:
getTimeFrameValuein interfaceUtilizationReportOrBuilder- Returns:
- The enum numeric value on the wire for timeFrame.
-
getTimeFrame
public UtilizationReport.TimeFrame getTimeFrame()
Time frame of the report.
.google.cloud.vmmigration.v1.UtilizationReport.TimeFrame time_frame = 7;- Specified by:
getTimeFramein interfaceUtilizationReportOrBuilder- Returns:
- The timeFrame.
-
hasFrameEndTime
public boolean hasFrameEndTime()
Output only. The point in time when the time frame ends. Notice that the time frame is counted backwards. For instance if the "frame_end_time" value is 2021/01/20 and the time frame is WEEK then the report covers the week between 2021/01/20 and 2021/01/14.
.google.protobuf.Timestamp frame_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasFrameEndTimein interfaceUtilizationReportOrBuilder- Returns:
- Whether the frameEndTime field is set.
-
getFrameEndTime
public com.google.protobuf.Timestamp getFrameEndTime()
Output only. The point in time when the time frame ends. Notice that the time frame is counted backwards. For instance if the "frame_end_time" value is 2021/01/20 and the time frame is WEEK then the report covers the week between 2021/01/20 and 2021/01/14.
.google.protobuf.Timestamp frame_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getFrameEndTimein interfaceUtilizationReportOrBuilder- Returns:
- The frameEndTime.
-
getFrameEndTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getFrameEndTimeOrBuilder()
Output only. The point in time when the time frame ends. Notice that the time frame is counted backwards. For instance if the "frame_end_time" value is 2021/01/20 and the time frame is WEEK then the report covers the week between 2021/01/20 and 2021/01/14.
.google.protobuf.Timestamp frame_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getFrameEndTimeOrBuilderin interfaceUtilizationReportOrBuilder
-
getVmCount
public int getVmCount()
Output only. Total number of VMs included in the report.
int32 vm_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getVmCountin interfaceUtilizationReportOrBuilder- Returns:
- The vmCount.
-
getVmsList
public List<VmUtilizationInfo> getVmsList()
List of utilization information per VM. When sent as part of the request, the "vm_id" field is used in order to specify which VMs to include in the report. In that case all other fields are ignored.
repeated .google.cloud.vmmigration.v1.VmUtilizationInfo vms = 10;- Specified by:
getVmsListin interfaceUtilizationReportOrBuilder
-
getVmsOrBuilderList
public List<? extends VmUtilizationInfoOrBuilder> getVmsOrBuilderList()
List of utilization information per VM. When sent as part of the request, the "vm_id" field is used in order to specify which VMs to include in the report. In that case all other fields are ignored.
repeated .google.cloud.vmmigration.v1.VmUtilizationInfo vms = 10;- Specified by:
getVmsOrBuilderListin interfaceUtilizationReportOrBuilder
-
getVmsCount
public int getVmsCount()
List of utilization information per VM. When sent as part of the request, the "vm_id" field is used in order to specify which VMs to include in the report. In that case all other fields are ignored.
repeated .google.cloud.vmmigration.v1.VmUtilizationInfo vms = 10;- Specified by:
getVmsCountin interfaceUtilizationReportOrBuilder
-
getVms
public VmUtilizationInfo getVms(int index)
List of utilization information per VM. When sent as part of the request, the "vm_id" field is used in order to specify which VMs to include in the report. In that case all other fields are ignored.
repeated .google.cloud.vmmigration.v1.VmUtilizationInfo vms = 10;- Specified by:
getVmsin interfaceUtilizationReportOrBuilder
-
getVmsOrBuilder
public VmUtilizationInfoOrBuilder getVmsOrBuilder(int index)
List of utilization information per VM. When sent as part of the request, the "vm_id" field is used in order to specify which VMs to include in the report. In that case all other fields are ignored.
repeated .google.cloud.vmmigration.v1.VmUtilizationInfo vms = 10;- Specified by:
getVmsOrBuilderin interfaceUtilizationReportOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static UtilizationReport parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static UtilizationReport parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static UtilizationReport parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static UtilizationReport parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static UtilizationReport parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static UtilizationReport parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static UtilizationReport parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static UtilizationReport parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static UtilizationReport parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static UtilizationReport parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static UtilizationReport parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static UtilizationReport parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public UtilizationReport.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static UtilizationReport.Builder newBuilder()
-
newBuilder
public static UtilizationReport.Builder newBuilder(UtilizationReport prototype)
-
toBuilder
public UtilizationReport.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected UtilizationReport.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static UtilizationReport getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<UtilizationReport> parser()
-
getParserForType
public com.google.protobuf.Parser<UtilizationReport> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public UtilizationReport getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-