Class Recommendation.InsightReference.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Recommendation.InsightReference.Builder>
com.google.cloud.recommender.v1beta1.Recommendation.InsightReference.Builder
All Implemented Interfaces:
Recommendation.InsightReferenceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Recommendation.InsightReference

public static final class Recommendation.InsightReference.Builder extends com.google.protobuf.GeneratedMessage.Builder<Recommendation.InsightReference.Builder> implements Recommendation.InsightReferenceOrBuilder
 Reference to an associated insight.
 
Protobuf type google.cloud.recommender.v1beta1.Recommendation.InsightReference
  • 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<Recommendation.InsightReference.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<Recommendation.InsightReference.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<Recommendation.InsightReference.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Recommendation.InsightReference buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Recommendation.InsightReference.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<Recommendation.InsightReference.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Recommendation.InsightReference.Builder>
    • mergeFrom

      public Recommendation.InsightReference.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<Recommendation.InsightReference.Builder>
      Throws:
      IOException
    • getInsight

      public String getInsight()
       Insight resource name, e.g.
       projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/insights/[INSIGHT_ID]
       
      string insight = 1;
      Specified by:
      getInsight in interface Recommendation.InsightReferenceOrBuilder
      Returns:
      The insight.
    • getInsightBytes

      public com.google.protobuf.ByteString getInsightBytes()
       Insight resource name, e.g.
       projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/insights/[INSIGHT_ID]
       
      string insight = 1;
      Specified by:
      getInsightBytes in interface Recommendation.InsightReferenceOrBuilder
      Returns:
      The bytes for insight.
    • setInsight

       Insight resource name, e.g.
       projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/insights/[INSIGHT_ID]
       
      string insight = 1;
      Parameters:
      value - The insight to set.
      Returns:
      This builder for chaining.
    • clearInsight

       Insight resource name, e.g.
       projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/insights/[INSIGHT_ID]
       
      string insight = 1;
      Returns:
      This builder for chaining.
    • setInsightBytes

      public Recommendation.InsightReference.Builder setInsightBytes(com.google.protobuf.ByteString value)
       Insight resource name, e.g.
       projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/insights/[INSIGHT_ID]
       
      string insight = 1;
      Parameters:
      value - The bytes for insight to set.
      Returns:
      This builder for chaining.