Package com.google.cloud.recommender.v1
Class Impact.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Impact.Builder>
-
- com.google.cloud.recommender.v1.Impact.Builder
-
- All Implemented Interfaces:
ImpactOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- Impact
public static final class Impact.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Impact.Builder> implements ImpactOrBuilder
Contains the impact a recommendation can have for a given category.
Protobuf typegoogle.cloud.recommender.v1.Impact
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Impact.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Impact
build()
Impact
buildPartial()
Impact.Builder
clear()
Impact.Builder
clearCategory()
Category that is being targeted.Impact.Builder
clearCostProjection()
Use with CategoryType.COSTImpact.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Impact.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Impact.Builder
clearProjection()
Impact.Builder
clearReliabilityProjection()
Use with CategoryType.RELAIBILITYImpact.Builder
clearSecurityProjection()
Use with CategoryType.SECURITYImpact.Builder
clearSustainabilityProjection()
Use with CategoryType.SUSTAINABILITYImpact.Builder
clone()
Impact.Category
getCategory()
Category that is being targeted.int
getCategoryValue()
Category that is being targeted.CostProjection
getCostProjection()
Use with CategoryType.COSTCostProjection.Builder
getCostProjectionBuilder()
Use with CategoryType.COSTCostProjectionOrBuilder
getCostProjectionOrBuilder()
Use with CategoryType.COSTImpact
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Impact.ProjectionCase
getProjectionCase()
ReliabilityProjection
getReliabilityProjection()
Use with CategoryType.RELAIBILITYReliabilityProjection.Builder
getReliabilityProjectionBuilder()
Use with CategoryType.RELAIBILITYReliabilityProjectionOrBuilder
getReliabilityProjectionOrBuilder()
Use with CategoryType.RELAIBILITYSecurityProjection
getSecurityProjection()
Use with CategoryType.SECURITYSecurityProjection.Builder
getSecurityProjectionBuilder()
Use with CategoryType.SECURITYSecurityProjectionOrBuilder
getSecurityProjectionOrBuilder()
Use with CategoryType.SECURITYSustainabilityProjection
getSustainabilityProjection()
Use with CategoryType.SUSTAINABILITYSustainabilityProjection.Builder
getSustainabilityProjectionBuilder()
Use with CategoryType.SUSTAINABILITYSustainabilityProjectionOrBuilder
getSustainabilityProjectionOrBuilder()
Use with CategoryType.SUSTAINABILITYboolean
hasCostProjection()
Use with CategoryType.COSTboolean
hasReliabilityProjection()
Use with CategoryType.RELAIBILITYboolean
hasSecurityProjection()
Use with CategoryType.SECURITYboolean
hasSustainabilityProjection()
Use with CategoryType.SUSTAINABILITYprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Impact.Builder
mergeCostProjection(CostProjection value)
Use with CategoryType.COSTImpact.Builder
mergeFrom(Impact other)
Impact.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Impact.Builder
mergeFrom(com.google.protobuf.Message other)
Impact.Builder
mergeReliabilityProjection(ReliabilityProjection value)
Use with CategoryType.RELAIBILITYImpact.Builder
mergeSecurityProjection(SecurityProjection value)
Use with CategoryType.SECURITYImpact.Builder
mergeSustainabilityProjection(SustainabilityProjection value)
Use with CategoryType.SUSTAINABILITYImpact.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Impact.Builder
setCategory(Impact.Category value)
Category that is being targeted.Impact.Builder
setCategoryValue(int value)
Category that is being targeted.Impact.Builder
setCostProjection(CostProjection value)
Use with CategoryType.COSTImpact.Builder
setCostProjection(CostProjection.Builder builderForValue)
Use with CategoryType.COSTImpact.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Impact.Builder
setReliabilityProjection(ReliabilityProjection value)
Use with CategoryType.RELAIBILITYImpact.Builder
setReliabilityProjection(ReliabilityProjection.Builder builderForValue)
Use with CategoryType.RELAIBILITYImpact.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Impact.Builder
setSecurityProjection(SecurityProjection value)
Use with CategoryType.SECURITYImpact.Builder
setSecurityProjection(SecurityProjection.Builder builderForValue)
Use with CategoryType.SECURITYImpact.Builder
setSustainabilityProjection(SustainabilityProjection value)
Use with CategoryType.SUSTAINABILITYImpact.Builder
setSustainabilityProjection(SustainabilityProjection.Builder builderForValue)
Use with CategoryType.SUSTAINABILITYImpact.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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.Builder<Impact.Builder>
-
clear
public Impact.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Impact.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Impact.Builder>
-
getDefaultInstanceForType
public Impact getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Impact build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Impact buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Impact.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Impact.Builder>
-
setField
public Impact.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Impact.Builder>
-
clearField
public Impact.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Impact.Builder>
-
clearOneof
public Impact.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Impact.Builder>
-
setRepeatedField
public Impact.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Impact.Builder>
-
addRepeatedField
public Impact.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Impact.Builder>
-
mergeFrom
public Impact.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Impact.Builder>
-
mergeFrom
public Impact.Builder mergeFrom(Impact other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Impact.Builder>
-
mergeFrom
public Impact.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Impact.Builder>
- Throws:
IOException
-
getProjectionCase
public Impact.ProjectionCase getProjectionCase()
- Specified by:
getProjectionCase
in interfaceImpactOrBuilder
-
clearProjection
public Impact.Builder clearProjection()
-
getCategoryValue
public int getCategoryValue()
Category that is being targeted.
.google.cloud.recommender.v1.Impact.Category category = 1;
- Specified by:
getCategoryValue
in interfaceImpactOrBuilder
- Returns:
- The enum numeric value on the wire for category.
-
setCategoryValue
public Impact.Builder setCategoryValue(int value)
Category that is being targeted.
.google.cloud.recommender.v1.Impact.Category category = 1;
- Parameters:
value
- The enum numeric value on the wire for category to set.- Returns:
- This builder for chaining.
-
getCategory
public Impact.Category getCategory()
Category that is being targeted.
.google.cloud.recommender.v1.Impact.Category category = 1;
- Specified by:
getCategory
in interfaceImpactOrBuilder
- Returns:
- The category.
-
setCategory
public Impact.Builder setCategory(Impact.Category value)
Category that is being targeted.
.google.cloud.recommender.v1.Impact.Category category = 1;
- Parameters:
value
- The category to set.- Returns:
- This builder for chaining.
-
clearCategory
public Impact.Builder clearCategory()
Category that is being targeted.
.google.cloud.recommender.v1.Impact.Category category = 1;
- Returns:
- This builder for chaining.
-
hasCostProjection
public boolean hasCostProjection()
Use with CategoryType.COST
.google.cloud.recommender.v1.CostProjection cost_projection = 100;
- Specified by:
hasCostProjection
in interfaceImpactOrBuilder
- 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 interfaceImpactOrBuilder
- Returns:
- The costProjection.
-
setCostProjection
public Impact.Builder setCostProjection(CostProjection value)
Use with CategoryType.COST
.google.cloud.recommender.v1.CostProjection cost_projection = 100;
-
setCostProjection
public Impact.Builder setCostProjection(CostProjection.Builder builderForValue)
Use with CategoryType.COST
.google.cloud.recommender.v1.CostProjection cost_projection = 100;
-
mergeCostProjection
public Impact.Builder mergeCostProjection(CostProjection value)
Use with CategoryType.COST
.google.cloud.recommender.v1.CostProjection cost_projection = 100;
-
clearCostProjection
public Impact.Builder clearCostProjection()
Use with CategoryType.COST
.google.cloud.recommender.v1.CostProjection cost_projection = 100;
-
getCostProjectionBuilder
public CostProjection.Builder getCostProjectionBuilder()
Use with CategoryType.COST
.google.cloud.recommender.v1.CostProjection cost_projection = 100;
-
getCostProjectionOrBuilder
public CostProjectionOrBuilder getCostProjectionOrBuilder()
Use with CategoryType.COST
.google.cloud.recommender.v1.CostProjection cost_projection = 100;
- Specified by:
getCostProjectionOrBuilder
in interfaceImpactOrBuilder
-
hasSecurityProjection
public boolean hasSecurityProjection()
Use with CategoryType.SECURITY
.google.cloud.recommender.v1.SecurityProjection security_projection = 101;
- Specified by:
hasSecurityProjection
in interfaceImpactOrBuilder
- 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 interfaceImpactOrBuilder
- Returns:
- The securityProjection.
-
setSecurityProjection
public Impact.Builder setSecurityProjection(SecurityProjection value)
Use with CategoryType.SECURITY
.google.cloud.recommender.v1.SecurityProjection security_projection = 101;
-
setSecurityProjection
public Impact.Builder setSecurityProjection(SecurityProjection.Builder builderForValue)
Use with CategoryType.SECURITY
.google.cloud.recommender.v1.SecurityProjection security_projection = 101;
-
mergeSecurityProjection
public Impact.Builder mergeSecurityProjection(SecurityProjection value)
Use with CategoryType.SECURITY
.google.cloud.recommender.v1.SecurityProjection security_projection = 101;
-
clearSecurityProjection
public Impact.Builder clearSecurityProjection()
Use with CategoryType.SECURITY
.google.cloud.recommender.v1.SecurityProjection security_projection = 101;
-
getSecurityProjectionBuilder
public SecurityProjection.Builder getSecurityProjectionBuilder()
Use with CategoryType.SECURITY
.google.cloud.recommender.v1.SecurityProjection security_projection = 101;
-
getSecurityProjectionOrBuilder
public SecurityProjectionOrBuilder getSecurityProjectionOrBuilder()
Use with CategoryType.SECURITY
.google.cloud.recommender.v1.SecurityProjection security_projection = 101;
- Specified by:
getSecurityProjectionOrBuilder
in interfaceImpactOrBuilder
-
hasSustainabilityProjection
public boolean hasSustainabilityProjection()
Use with CategoryType.SUSTAINABILITY
.google.cloud.recommender.v1.SustainabilityProjection sustainability_projection = 102;
- Specified by:
hasSustainabilityProjection
in interfaceImpactOrBuilder
- Returns:
- Whether the sustainabilityProjection field is set.
-
getSustainabilityProjection
public SustainabilityProjection getSustainabilityProjection()
Use with CategoryType.SUSTAINABILITY
.google.cloud.recommender.v1.SustainabilityProjection sustainability_projection = 102;
- Specified by:
getSustainabilityProjection
in interfaceImpactOrBuilder
- Returns:
- The sustainabilityProjection.
-
setSustainabilityProjection
public Impact.Builder setSustainabilityProjection(SustainabilityProjection value)
Use with CategoryType.SUSTAINABILITY
.google.cloud.recommender.v1.SustainabilityProjection sustainability_projection = 102;
-
setSustainabilityProjection
public Impact.Builder setSustainabilityProjection(SustainabilityProjection.Builder builderForValue)
Use with CategoryType.SUSTAINABILITY
.google.cloud.recommender.v1.SustainabilityProjection sustainability_projection = 102;
-
mergeSustainabilityProjection
public Impact.Builder mergeSustainabilityProjection(SustainabilityProjection value)
Use with CategoryType.SUSTAINABILITY
.google.cloud.recommender.v1.SustainabilityProjection sustainability_projection = 102;
-
clearSustainabilityProjection
public Impact.Builder clearSustainabilityProjection()
Use with CategoryType.SUSTAINABILITY
.google.cloud.recommender.v1.SustainabilityProjection sustainability_projection = 102;
-
getSustainabilityProjectionBuilder
public SustainabilityProjection.Builder getSustainabilityProjectionBuilder()
Use with CategoryType.SUSTAINABILITY
.google.cloud.recommender.v1.SustainabilityProjection sustainability_projection = 102;
-
getSustainabilityProjectionOrBuilder
public SustainabilityProjectionOrBuilder getSustainabilityProjectionOrBuilder()
Use with CategoryType.SUSTAINABILITY
.google.cloud.recommender.v1.SustainabilityProjection sustainability_projection = 102;
- Specified by:
getSustainabilityProjectionOrBuilder
in interfaceImpactOrBuilder
-
hasReliabilityProjection
public boolean hasReliabilityProjection()
Use with CategoryType.RELAIBILITY
.google.cloud.recommender.v1.ReliabilityProjection reliability_projection = 103;
- Specified by:
hasReliabilityProjection
in interfaceImpactOrBuilder
- 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 interfaceImpactOrBuilder
- Returns:
- The reliabilityProjection.
-
setReliabilityProjection
public Impact.Builder setReliabilityProjection(ReliabilityProjection value)
Use with CategoryType.RELAIBILITY
.google.cloud.recommender.v1.ReliabilityProjection reliability_projection = 103;
-
setReliabilityProjection
public Impact.Builder setReliabilityProjection(ReliabilityProjection.Builder builderForValue)
Use with CategoryType.RELAIBILITY
.google.cloud.recommender.v1.ReliabilityProjection reliability_projection = 103;
-
mergeReliabilityProjection
public Impact.Builder mergeReliabilityProjection(ReliabilityProjection value)
Use with CategoryType.RELAIBILITY
.google.cloud.recommender.v1.ReliabilityProjection reliability_projection = 103;
-
clearReliabilityProjection
public Impact.Builder clearReliabilityProjection()
Use with CategoryType.RELAIBILITY
.google.cloud.recommender.v1.ReliabilityProjection reliability_projection = 103;
-
getReliabilityProjectionBuilder
public ReliabilityProjection.Builder getReliabilityProjectionBuilder()
Use with CategoryType.RELAIBILITY
.google.cloud.recommender.v1.ReliabilityProjection reliability_projection = 103;
-
getReliabilityProjectionOrBuilder
public ReliabilityProjectionOrBuilder getReliabilityProjectionOrBuilder()
Use with CategoryType.RELAIBILITY
.google.cloud.recommender.v1.ReliabilityProjection reliability_projection = 103;
- Specified by:
getReliabilityProjectionOrBuilder
in interfaceImpactOrBuilder
-
setUnknownFields
public final Impact.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Impact.Builder>
-
mergeUnknownFields
public final Impact.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Impact.Builder>
-
-