Class Impact.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Impact.Builder>
com.google.cloud.recommender.v1beta1.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.GeneratedMessage.Builder<Impact.Builder> implements ImpactOrBuilder
 Contains the impact a recommendation can have for a given category.
 
Protobuf type google.cloud.recommender.v1beta1.Impact
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public Impact.Builder mergeFrom(Impact other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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
    • getProjectionCase

      public Impact.ProjectionCase getProjectionCase()
      Specified by:
      getProjectionCase in interface ImpactOrBuilder
    • clearProjection

      public Impact.Builder clearProjection()
    • getCategoryValue

      public int getCategoryValue()
       Category that is being targeted.
       
      .google.cloud.recommender.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.Impact.Category category = 1;
      Returns:
      This builder for chaining.
    • hasCostProjection

      public boolean hasCostProjection()
       Use with CategoryType.COST
       
      .google.cloud.recommender.v1beta1.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.v1beta1.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.v1beta1.CostProjection cost_projection = 100;
    • setCostProjection

      public Impact.Builder setCostProjection(CostProjection.Builder builderForValue)
       Use with CategoryType.COST
       
      .google.cloud.recommender.v1beta1.CostProjection cost_projection = 100;
    • mergeCostProjection

      public Impact.Builder mergeCostProjection(CostProjection value)
       Use with CategoryType.COST
       
      .google.cloud.recommender.v1beta1.CostProjection cost_projection = 100;
    • clearCostProjection

      public Impact.Builder clearCostProjection()
       Use with CategoryType.COST
       
      .google.cloud.recommender.v1beta1.CostProjection cost_projection = 100;
    • getCostProjectionBuilder

      public CostProjection.Builder getCostProjectionBuilder()
       Use with CategoryType.COST
       
      .google.cloud.recommender.v1beta1.CostProjection cost_projection = 100;
    • getCostProjectionOrBuilder

      public CostProjectionOrBuilder getCostProjectionOrBuilder()
       Use with CategoryType.COST
       
      .google.cloud.recommender.v1beta1.CostProjection cost_projection = 100;
      Specified by:
      getCostProjectionOrBuilder in interface ImpactOrBuilder
    • hasSecurityProjection

      public boolean hasSecurityProjection()
       Use with CategoryType.SECURITY
       
      .google.cloud.recommender.v1beta1.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.v1beta1.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.v1beta1.SecurityProjection security_projection = 101;
    • setSecurityProjection

      public Impact.Builder setSecurityProjection(SecurityProjection.Builder builderForValue)
       Use with CategoryType.SECURITY
       
      .google.cloud.recommender.v1beta1.SecurityProjection security_projection = 101;
    • mergeSecurityProjection

      public Impact.Builder mergeSecurityProjection(SecurityProjection value)
       Use with CategoryType.SECURITY
       
      .google.cloud.recommender.v1beta1.SecurityProjection security_projection = 101;
    • clearSecurityProjection

      public Impact.Builder clearSecurityProjection()
       Use with CategoryType.SECURITY
       
      .google.cloud.recommender.v1beta1.SecurityProjection security_projection = 101;
    • getSecurityProjectionBuilder

      public SecurityProjection.Builder getSecurityProjectionBuilder()
       Use with CategoryType.SECURITY
       
      .google.cloud.recommender.v1beta1.SecurityProjection security_projection = 101;
    • getSecurityProjectionOrBuilder

      public SecurityProjectionOrBuilder getSecurityProjectionOrBuilder()
       Use with CategoryType.SECURITY
       
      .google.cloud.recommender.v1beta1.SecurityProjection security_projection = 101;
      Specified by:
      getSecurityProjectionOrBuilder in interface ImpactOrBuilder
    • hasSustainabilityProjection

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

      public SustainabilityProjection getSustainabilityProjection()
       Use with CategoryType.SUSTAINABILITY
       
      .google.cloud.recommender.v1beta1.SustainabilityProjection sustainability_projection = 102;
      Specified by:
      getSustainabilityProjection in interface ImpactOrBuilder
      Returns:
      The sustainabilityProjection.
    • setSustainabilityProjection

      public Impact.Builder setSustainabilityProjection(SustainabilityProjection value)
       Use with CategoryType.SUSTAINABILITY
       
      .google.cloud.recommender.v1beta1.SustainabilityProjection sustainability_projection = 102;
    • setSustainabilityProjection

      public Impact.Builder setSustainabilityProjection(SustainabilityProjection.Builder builderForValue)
       Use with CategoryType.SUSTAINABILITY
       
      .google.cloud.recommender.v1beta1.SustainabilityProjection sustainability_projection = 102;
    • mergeSustainabilityProjection

      public Impact.Builder mergeSustainabilityProjection(SustainabilityProjection value)
       Use with CategoryType.SUSTAINABILITY
       
      .google.cloud.recommender.v1beta1.SustainabilityProjection sustainability_projection = 102;
    • clearSustainabilityProjection

      public Impact.Builder clearSustainabilityProjection()
       Use with CategoryType.SUSTAINABILITY
       
      .google.cloud.recommender.v1beta1.SustainabilityProjection sustainability_projection = 102;
    • getSustainabilityProjectionBuilder

      public SustainabilityProjection.Builder getSustainabilityProjectionBuilder()
       Use with CategoryType.SUSTAINABILITY
       
      .google.cloud.recommender.v1beta1.SustainabilityProjection sustainability_projection = 102;
    • getSustainabilityProjectionOrBuilder

      public SustainabilityProjectionOrBuilder getSustainabilityProjectionOrBuilder()
       Use with CategoryType.SUSTAINABILITY
       
      .google.cloud.recommender.v1beta1.SustainabilityProjection sustainability_projection = 102;
      Specified by:
      getSustainabilityProjectionOrBuilder in interface ImpactOrBuilder