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 class
UtilizationReport.Builder
Utilization report details the utilization (CPU, memory, etc.) of selected source VMs.static class
UtilizationReport.State
Utilization report state.static class
UtilizationReport.TimeFrame
Report 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 int
CREATE_TIME_FIELD_NUMBER
static int
DISPLAY_NAME_FIELD_NUMBER
static int
ERROR_FIELD_NUMBER
static int
FRAME_END_TIME_FIELD_NUMBER
static int
NAME_FIELD_NUMBER
static int
STATE_FIELD_NUMBER
static int
STATE_TIME_FIELD_NUMBER
static int
TIME_FRAME_FIELD_NUMBER
static int
VM_COUNT_FIELD_NUMBER
static int
VMS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
com.google.protobuf.Timestamp
getCreateTime()
Output only.com.google.protobuf.TimestampOrBuilder
getCreateTimeOrBuilder()
Output only.static UtilizationReport
getDefaultInstance()
UtilizationReport
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
String
getDisplayName()
The report display name, as assigned by the user.com.google.protobuf.ByteString
getDisplayNameBytes()
The report display name, as assigned by the user.com.google.rpc.Status
getError()
Output only.com.google.rpc.StatusOrBuilder
getErrorOrBuilder()
Output only.com.google.protobuf.Timestamp
getFrameEndTime()
Output only.com.google.protobuf.TimestampOrBuilder
getFrameEndTimeOrBuilder()
Output only.String
getName()
Output only.com.google.protobuf.ByteString
getNameBytes()
Output only.com.google.protobuf.Parser<UtilizationReport>
getParserForType()
int
getSerializedSize()
UtilizationReport.State
getState()
Output only.com.google.protobuf.Timestamp
getStateTime()
Output only.com.google.protobuf.TimestampOrBuilder
getStateTimeOrBuilder()
Output only.int
getStateValue()
Output only.UtilizationReport.TimeFrame
getTimeFrame()
Time frame of the report.int
getTimeFrameValue()
Time frame of the report.int
getVmCount()
Output only.VmUtilizationInfo
getVms(int index)
List of utilization information per VM.int
getVmsCount()
List of utilization information per VM.List<VmUtilizationInfo>
getVmsList()
List of utilization information per VM.VmUtilizationInfoOrBuilder
getVmsOrBuilder(int index)
List of utilization information per VM.List<? extends VmUtilizationInfoOrBuilder>
getVmsOrBuilderList()
List of utilization information per VM.boolean
hasCreateTime()
Output only.boolean
hasError()
Output only.boolean
hasFrameEndTime()
Output only.int
hashCode()
boolean
hasStateTime()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static UtilizationReport.Builder
newBuilder()
static UtilizationReport.Builder
newBuilder(UtilizationReport prototype)
UtilizationReport.Builder
newBuilderForType()
protected UtilizationReport.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static UtilizationReport
parseDelimitedFrom(InputStream input)
static UtilizationReport
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static UtilizationReport
parseFrom(byte[] data)
static UtilizationReport
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static UtilizationReport
parseFrom(com.google.protobuf.ByteString data)
static UtilizationReport
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static UtilizationReport
parseFrom(com.google.protobuf.CodedInputStream input)
static UtilizationReport
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static UtilizationReport
parseFrom(InputStream input)
static UtilizationReport
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static UtilizationReport
parseFrom(ByteBuffer data)
static UtilizationReport
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<UtilizationReport>
parser()
UtilizationReport.Builder
toBuilder()
void
writeTo(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:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in 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:
getName
in 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:
getNameBytes
in 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:
getDisplayName
in 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:
getDisplayNameBytes
in 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:
getStateValue
in 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:
getState
in 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:
hasStateTime
in 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:
getStateTime
in 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:
getStateTimeOrBuilder
in 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:
hasError
in 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:
getError
in 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:
getErrorOrBuilder
in 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:
hasCreateTime
in 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:
getCreateTime
in 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:
getCreateTimeOrBuilder
in interfaceUtilizationReportOrBuilder
-
getTimeFrameValue
public int getTimeFrameValue()
Time frame of the report.
.google.cloud.vmmigration.v1.UtilizationReport.TimeFrame time_frame = 7;
- Specified by:
getTimeFrameValue
in 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:
getTimeFrame
in 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:
hasFrameEndTime
in 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:
getFrameEndTime
in 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:
getFrameEndTimeOrBuilder
in 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:
getVmCount
in 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:
getVmsList
in 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:
getVmsOrBuilderList
in 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:
getVmsCount
in 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:
getVms
in 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:
getVmsOrBuilder
in interfaceUtilizationReportOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected UtilizationReport.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in 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:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public UtilizationReport getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-