Class Impact (2.7.0)

public final class Impact extends GeneratedMessageV3 implements ImpactOrBuilder

Contains the impact a recommendation can have for a given category.

Protobuf type google.cloud.recommender.v1beta1.Impact

Implements

ImpactOrBuilder

Static Fields

CATEGORY_FIELD_NUMBER

public static final int CATEGORY_FIELD_NUMBER
Field Value
TypeDescription
int

COST_PROJECTION_FIELD_NUMBER

public static final int COST_PROJECTION_FIELD_NUMBER
Field Value
TypeDescription
int

SECURITY_PROJECTION_FIELD_NUMBER

public static final int SECURITY_PROJECTION_FIELD_NUMBER
Field Value
TypeDescription
int

SUSTAINABILITY_PROJECTION_FIELD_NUMBER

public static final int SUSTAINABILITY_PROJECTION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Impact getDefaultInstance()
Returns
TypeDescription
Impact

getDescriptor()

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

newBuilder()

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

newBuilder(Impact prototype)

public static Impact.Builder newBuilder(Impact prototype)
Parameter
NameDescription
prototypeImpact
Returns
TypeDescription
Impact.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getCategory()

public Impact.Category getCategory()

Category that is being targeted.

.google.cloud.recommender.v1beta1.Impact.Category category = 1;

Returns
TypeDescription
Impact.Category

The category.

getCategoryValue()

public int getCategoryValue()

Category that is being targeted.

.google.cloud.recommender.v1beta1.Impact.Category category = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for category.

getCostProjection()

public CostProjection getCostProjection()

Use with CategoryType.COST

.google.cloud.recommender.v1beta1.CostProjection cost_projection = 100;

Returns
TypeDescription
CostProjection

The costProjection.

getCostProjectionOrBuilder()

public CostProjectionOrBuilder getCostProjectionOrBuilder()

Use with CategoryType.COST

.google.cloud.recommender.v1beta1.CostProjection cost_projection = 100;

Returns
TypeDescription
CostProjectionOrBuilder

getDefaultInstanceForType()

public Impact getDefaultInstanceForType()
Returns
TypeDescription
Impact

getParserForType()

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

getProjectionCase()

public Impact.ProjectionCase getProjectionCase()
Returns
TypeDescription
Impact.ProjectionCase

getSecurityProjection()

public SecurityProjection getSecurityProjection()

Use with CategoryType.SECURITY

.google.cloud.recommender.v1beta1.SecurityProjection security_projection = 101;

Returns
TypeDescription
SecurityProjection

The securityProjection.

getSecurityProjectionOrBuilder()

public SecurityProjectionOrBuilder getSecurityProjectionOrBuilder()

Use with CategoryType.SECURITY

.google.cloud.recommender.v1beta1.SecurityProjection security_projection = 101;

Returns
TypeDescription
SecurityProjectionOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSustainabilityProjection()

public SustainabilityProjection getSustainabilityProjection()

Use with CategoryType.SUSTAINABILITY

.google.cloud.recommender.v1beta1.SustainabilityProjection sustainability_projection = 102;

Returns
TypeDescription
SustainabilityProjection

The sustainabilityProjection.

getSustainabilityProjectionOrBuilder()

public SustainabilityProjectionOrBuilder getSustainabilityProjectionOrBuilder()

Use with CategoryType.SUSTAINABILITY

.google.cloud.recommender.v1beta1.SustainabilityProjection sustainability_projection = 102;

Returns
TypeDescription
SustainabilityProjectionOrBuilder

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasCostProjection()

public boolean hasCostProjection()

Use with CategoryType.COST

.google.cloud.recommender.v1beta1.CostProjection cost_projection = 100;

Returns
TypeDescription
boolean

Whether the costProjection field is set.

hasSecurityProjection()

public boolean hasSecurityProjection()

Use with CategoryType.SECURITY

.google.cloud.recommender.v1beta1.SecurityProjection security_projection = 101;

Returns
TypeDescription
boolean

Whether the securityProjection field is set.

hasSustainabilityProjection()

public boolean hasSustainabilityProjection()

Use with CategoryType.SUSTAINABILITY

.google.cloud.recommender.v1beta1.SustainabilityProjection sustainability_projection = 102;

Returns
TypeDescription
boolean

Whether the sustainabilityProjection field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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