Class 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 type google.cloud.vmmigration.v1.UtilizationReport
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.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 class com.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 interface UtilizationReportOrBuilder
        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 interface UtilizationReportOrBuilder
        Returns:
        The bytes for name.
      • getDisplayNameBytes

        public com.google.protobuf.ByteString getDisplayNameBytes()
         The report display name, as assigned by the user.
         
        string display_name = 2;
        Specified by:
        getDisplayNameBytes in interface UtilizationReportOrBuilder
        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 interface UtilizationReportOrBuilder
        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 interface UtilizationReportOrBuilder
        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 interface UtilizationReportOrBuilder
        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 interface UtilizationReportOrBuilder
        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 interface UtilizationReportOrBuilder
      • 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 interface UtilizationReportOrBuilder
        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 interface UtilizationReportOrBuilder
        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 interface UtilizationReportOrBuilder
      • 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 interface UtilizationReportOrBuilder
        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 interface UtilizationReportOrBuilder
        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 interface UtilizationReportOrBuilder
      • getTimeFrameValue

        public int getTimeFrameValue()
         Time frame of the report.
         
        .google.cloud.vmmigration.v1.UtilizationReport.TimeFrame time_frame = 7;
        Specified by:
        getTimeFrameValue in interface UtilizationReportOrBuilder
        Returns:
        The enum numeric value on the wire for 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 interface UtilizationReportOrBuilder
        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 interface UtilizationReportOrBuilder
        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 interface UtilizationReportOrBuilder
      • 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 interface UtilizationReportOrBuilder
        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 interface UtilizationReportOrBuilder
      • 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 interface UtilizationReportOrBuilder
      • 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 interface UtilizationReportOrBuilder
      • 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 interface UtilizationReportOrBuilder
      • 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 interface UtilizationReportOrBuilder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.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​(com.google.protobuf.CodedInputStream input,
                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws IOException
        Throws:
        IOException
      • newBuilderForType

        public UtilizationReport.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public UtilizationReport.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected UtilizationReport.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<UtilizationReport> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public UtilizationReport getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder