Class 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 type google.cloud.recommender.v1.Impact
    • Method Detail

      • 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.Builder<Impact.Builder>
      • clear

        public Impact.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Impact.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Impact.Builder>
      • getDefaultInstanceForType

        public Impact getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

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

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

        public Impact.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Impact.Builder>
      • setField

        public Impact.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                       Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Impact.Builder>
      • clearField

        public Impact.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Impact.Builder>
      • clearOneof

        public Impact.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Impact.Builder>
      • addRepeatedField

        public Impact.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Impact.Builder>
      • mergeFrom

        public Impact.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Impact.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Impact.Builder>
        Throws:
        IOException
      • 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.
      • 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 interface ImpactOrBuilder
        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 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.
      • 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;
      • 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.
      • 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;
      • 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.
      • 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;
      • 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.
      • 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;
      • setUnknownFields

        public final Impact.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Impact.Builder>
      • mergeUnknownFields

        public final Impact.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Impact.Builder>