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.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Impactbuild()ImpactbuildPartial()Impact.Builderclear()Impact.BuilderclearCategory()Category that is being targeted.Impact.BuilderclearCostProjection()Use with CategoryType.COSTImpact.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Impact.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Impact.BuilderclearProjection()Impact.BuilderclearReliabilityProjection()Use with CategoryType.RELAIBILITYImpact.BuilderclearSecurityProjection()Use with CategoryType.SECURITYImpact.BuilderclearSustainabilityProjection()Use with CategoryType.SUSTAINABILITYImpact.Builderclone()Impact.CategorygetCategory()Category that is being targeted.intgetCategoryValue()Category that is being targeted.CostProjectiongetCostProjection()Use with CategoryType.COSTCostProjection.BuildergetCostProjectionBuilder()Use with CategoryType.COSTCostProjectionOrBuildergetCostProjectionOrBuilder()Use with CategoryType.COSTImpactgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()Impact.ProjectionCasegetProjectionCase()ReliabilityProjectiongetReliabilityProjection()Use with CategoryType.RELAIBILITYReliabilityProjection.BuildergetReliabilityProjectionBuilder()Use with CategoryType.RELAIBILITYReliabilityProjectionOrBuildergetReliabilityProjectionOrBuilder()Use with CategoryType.RELAIBILITYSecurityProjectiongetSecurityProjection()Use with CategoryType.SECURITYSecurityProjection.BuildergetSecurityProjectionBuilder()Use with CategoryType.SECURITYSecurityProjectionOrBuildergetSecurityProjectionOrBuilder()Use with CategoryType.SECURITYSustainabilityProjectiongetSustainabilityProjection()Use with CategoryType.SUSTAINABILITYSustainabilityProjection.BuildergetSustainabilityProjectionBuilder()Use with CategoryType.SUSTAINABILITYSustainabilityProjectionOrBuildergetSustainabilityProjectionOrBuilder()Use with CategoryType.SUSTAINABILITYbooleanhasCostProjection()Use with CategoryType.COSTbooleanhasReliabilityProjection()Use with CategoryType.RELAIBILITYbooleanhasSecurityProjection()Use with CategoryType.SECURITYbooleanhasSustainabilityProjection()Use with CategoryType.SUSTAINABILITYprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Impact.BuildermergeCostProjection(CostProjection value)Use with CategoryType.COSTImpact.BuildermergeFrom(Impact other)Impact.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Impact.BuildermergeFrom(com.google.protobuf.Message other)Impact.BuildermergeReliabilityProjection(ReliabilityProjection value)Use with CategoryType.RELAIBILITYImpact.BuildermergeSecurityProjection(SecurityProjection value)Use with CategoryType.SECURITYImpact.BuildermergeSustainabilityProjection(SustainabilityProjection value)Use with CategoryType.SUSTAINABILITYImpact.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Impact.BuildersetCategory(Impact.Category value)Category that is being targeted.Impact.BuildersetCategoryValue(int value)Category that is being targeted.Impact.BuildersetCostProjection(CostProjection value)Use with CategoryType.COSTImpact.BuildersetCostProjection(CostProjection.Builder builderForValue)Use with CategoryType.COSTImpact.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Impact.BuildersetReliabilityProjection(ReliabilityProjection value)Use with CategoryType.RELAIBILITYImpact.BuildersetReliabilityProjection(ReliabilityProjection.Builder builderForValue)Use with CategoryType.RELAIBILITYImpact.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Impact.BuildersetSecurityProjection(SecurityProjection value)Use with CategoryType.SECURITYImpact.BuildersetSecurityProjection(SecurityProjection.Builder builderForValue)Use with CategoryType.SECURITYImpact.BuildersetSustainabilityProjection(SustainabilityProjection value)Use with CategoryType.SUSTAINABILITYImpact.BuildersetSustainabilityProjection(SustainabilityProjection.Builder builderForValue)Use with CategoryType.SUSTAINABILITYImpact.BuildersetUnknownFields(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Impact.Builder>
-
clear
public Impact.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Impact.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Impact.Builder>
-
getDefaultInstanceForType
public Impact getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Impact build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Impact buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Impact.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Impact.Builder>
-
setField
public Impact.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Impact.Builder>
-
clearField
public Impact.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Impact.Builder>
-
clearOneof
public Impact.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Impact.Builder>
-
setRepeatedField
public Impact.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Impact.Builder>
-
addRepeatedField
public Impact.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Impact.Builder>
-
mergeFrom
public Impact.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Impact.Builder>
-
mergeFrom
public Impact.Builder mergeFrom(Impact other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Impact.Builder>- Throws:
IOException
-
getProjectionCase
public Impact.ProjectionCase getProjectionCase()
- Specified by:
getProjectionCasein 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:
getCategoryValuein 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:
getCategoryin 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:
hasCostProjectionin 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:
getCostProjectionin 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:
getCostProjectionOrBuilderin interfaceImpactOrBuilder
-
hasSecurityProjection
public boolean hasSecurityProjection()
Use with CategoryType.SECURITY
.google.cloud.recommender.v1.SecurityProjection security_projection = 101;- Specified by:
hasSecurityProjectionin 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:
getSecurityProjectionin 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:
getSecurityProjectionOrBuilderin interfaceImpactOrBuilder
-
hasSustainabilityProjection
public boolean hasSustainabilityProjection()
Use with CategoryType.SUSTAINABILITY
.google.cloud.recommender.v1.SustainabilityProjection sustainability_projection = 102;- Specified by:
hasSustainabilityProjectionin 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:
getSustainabilityProjectionin 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:
getSustainabilityProjectionOrBuilderin interfaceImpactOrBuilder
-
hasReliabilityProjection
public boolean hasReliabilityProjection()
Use with CategoryType.RELAIBILITY
.google.cloud.recommender.v1.ReliabilityProjection reliability_projection = 103;- Specified by:
hasReliabilityProjectionin 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:
getReliabilityProjectionin 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:
getReliabilityProjectionOrBuilderin interfaceImpactOrBuilder
-
setUnknownFields
public final Impact.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Impact.Builder>
-
mergeUnknownFields
public final Impact.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Impact.Builder>
-
-