Class Impact

  • All Implemented Interfaces:
    ImpactOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class Impact
    extends com.google.protobuf.GeneratedMessageV3
    implements ImpactOrBuilder
     Contains the impact a recommendation can have for a given category.
     
    Protobuf type google.cloud.recommender.v1.Impact
    See Also:
    Serialized Form
    • Field Detail

      • COST_PROJECTION_FIELD_NUMBER

        public static final int COST_PROJECTION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SECURITY_PROJECTION_FIELD_NUMBER

        public static final int SECURITY_PROJECTION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SUSTAINABILITY_PROJECTION_FIELD_NUMBER

        public static final int SUSTAINABILITY_PROJECTION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • RELIABILITY_PROJECTION_FIELD_NUMBER

        public static final int RELIABILITY_PROJECTION_FIELD_NUMBER
        See Also:
        Constant Field Values
    • 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
      • getCategoryValue

        public int getCategoryValue()
         Category that is being targeted.
         
        .google.cloud.recommender.v1.Impact.Category category = 1;
        Specified by:
        getCategoryValue in interface ImpactOrBuilder
        Returns:
        The enum numeric value on the wire for category.
      • getCategory

        public Impact.Category getCategory()
         Category that is being targeted.
         
        .google.cloud.recommender.v1.Impact.Category category = 1;
        Specified by:
        getCategory in interface ImpactOrBuilder
        Returns:
        The category.
      • hasCostProjection

        public boolean hasCostProjection()
         Use with CategoryType.COST
         
        .google.cloud.recommender.v1.CostProjection cost_projection = 100;
        Specified by:
        hasCostProjection in interface ImpactOrBuilder
        Returns:
        Whether the costProjection field is set.
      • getCostProjection

        public CostProjection getCostProjection()
         Use with CategoryType.COST
         
        .google.cloud.recommender.v1.CostProjection cost_projection = 100;
        Specified by:
        getCostProjection in interface ImpactOrBuilder
        Returns:
        The costProjection.
      • hasSecurityProjection

        public boolean hasSecurityProjection()
         Use with CategoryType.SECURITY
         
        .google.cloud.recommender.v1.SecurityProjection security_projection = 101;
        Specified by:
        hasSecurityProjection in interface ImpactOrBuilder
        Returns:
        Whether the securityProjection field is set.
      • getSecurityProjection

        public SecurityProjection getSecurityProjection()
         Use with CategoryType.SECURITY
         
        .google.cloud.recommender.v1.SecurityProjection security_projection = 101;
        Specified by:
        getSecurityProjection in interface ImpactOrBuilder
        Returns:
        The securityProjection.
      • hasSustainabilityProjection

        public boolean hasSustainabilityProjection()
         Use with CategoryType.SUSTAINABILITY
         
        .google.cloud.recommender.v1.SustainabilityProjection sustainability_projection = 102;
        Specified by:
        hasSustainabilityProjection in interface ImpactOrBuilder
        Returns:
        Whether the sustainabilityProjection field is set.
      • hasReliabilityProjection

        public boolean hasReliabilityProjection()
         Use with CategoryType.RELAIBILITY
         
        .google.cloud.recommender.v1.ReliabilityProjection reliability_projection = 103;
        Specified by:
        hasReliabilityProjection in interface ImpactOrBuilder
        Returns:
        Whether the reliabilityProjection field is set.
      • getReliabilityProjection

        public ReliabilityProjection getReliabilityProjection()
         Use with CategoryType.RELAIBILITY
         
        .google.cloud.recommender.v1.ReliabilityProjection reliability_projection = 103;
        Specified by:
        getReliabilityProjection in interface ImpactOrBuilder
        Returns:
        The reliabilityProjection.
      • 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 Impact parseFrom​(ByteBuffer data)
                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Impact parseFrom​(ByteBuffer data,
                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Impact parseFrom​(com.google.protobuf.ByteString data)
                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Impact parseFrom​(com.google.protobuf.ByteString data,
                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Impact parseFrom​(byte[] data)
                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Impact parseFrom​(byte[] data,
                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Impact parseFrom​(com.google.protobuf.CodedInputStream input,
                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                throws IOException
        Throws:
        IOException
      • newBuilderForType

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

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

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

        public static Impact getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<Impact> parser()
      • getParserForType

        public com.google.protobuf.Parser<Impact> 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 Impact getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder