Class GenericInsight.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GenericInsight.Builder>
com.google.cloud.migrationcenter.v1.GenericInsight.Builder
All Implemented Interfaces:
GenericInsightOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
GenericInsight

public static final class GenericInsight.Builder extends com.google.protobuf.GeneratedMessage.Builder<GenericInsight.Builder> implements GenericInsightOrBuilder
 A generic insight about an asset.
 
Protobuf type google.cloud.migrationcenter.v1.GenericInsight
  • 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<GenericInsight.Builder>
    • clear

      public GenericInsight.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<GenericInsight.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<GenericInsight.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public GenericInsight.Builder mergeFrom(GenericInsight other)
    • isInitialized

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

      public GenericInsight.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<GenericInsight.Builder>
      Throws:
      IOException
    • getMessageId

      public long getMessageId()
       Output only. Represents a globally unique message id for
       this insight, can be used for localization purposes, in case message_code
       is not yet known by the client use default_message instead.
       
      int64 message_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getMessageId in interface GenericInsightOrBuilder
      Returns:
      The messageId.
    • setMessageId

      public GenericInsight.Builder setMessageId(long value)
       Output only. Represents a globally unique message id for
       this insight, can be used for localization purposes, in case message_code
       is not yet known by the client use default_message instead.
       
      int64 message_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The messageId to set.
      Returns:
      This builder for chaining.
    • clearMessageId

      public GenericInsight.Builder clearMessageId()
       Output only. Represents a globally unique message id for
       this insight, can be used for localization purposes, in case message_code
       is not yet known by the client use default_message instead.
       
      int64 message_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getDefaultMessage

      public String getDefaultMessage()
       Output only. In case message_code is not yet known by the client
       default_message will be the message to be used instead.
       
      string default_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDefaultMessage in interface GenericInsightOrBuilder
      Returns:
      The defaultMessage.
    • getDefaultMessageBytes

      public com.google.protobuf.ByteString getDefaultMessageBytes()
       Output only. In case message_code is not yet known by the client
       default_message will be the message to be used instead.
       
      string default_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDefaultMessageBytes in interface GenericInsightOrBuilder
      Returns:
      The bytes for defaultMessage.
    • setDefaultMessage

      public GenericInsight.Builder setDefaultMessage(String value)
       Output only. In case message_code is not yet known by the client
       default_message will be the message to be used instead.
       
      string default_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The defaultMessage to set.
      Returns:
      This builder for chaining.
    • clearDefaultMessage

      public GenericInsight.Builder clearDefaultMessage()
       Output only. In case message_code is not yet known by the client
       default_message will be the message to be used instead.
       
      string default_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setDefaultMessageBytes

      public GenericInsight.Builder setDefaultMessageBytes(com.google.protobuf.ByteString value)
       Output only. In case message_code is not yet known by the client
       default_message will be the message to be used instead.
       
      string default_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for defaultMessage to set.
      Returns:
      This builder for chaining.
    • getAdditionalInformationList

      public com.google.protobuf.ProtocolStringList getAdditionalInformationList()
       Output only. Additional information about the insight, each entry can be a
       logical entry and must make sense if it is displayed with line breaks
       between each entry. Text can contain md style links.
       
      repeated string additional_information = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAdditionalInformationList in interface GenericInsightOrBuilder
      Returns:
      A list containing the additionalInformation.
    • getAdditionalInformationCount

      public int getAdditionalInformationCount()
       Output only. Additional information about the insight, each entry can be a
       logical entry and must make sense if it is displayed with line breaks
       between each entry. Text can contain md style links.
       
      repeated string additional_information = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAdditionalInformationCount in interface GenericInsightOrBuilder
      Returns:
      The count of additionalInformation.
    • getAdditionalInformation

      public String getAdditionalInformation(int index)
       Output only. Additional information about the insight, each entry can be a
       logical entry and must make sense if it is displayed with line breaks
       between each entry. Text can contain md style links.
       
      repeated string additional_information = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAdditionalInformation in interface GenericInsightOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The additionalInformation at the given index.
    • getAdditionalInformationBytes

      public com.google.protobuf.ByteString getAdditionalInformationBytes(int index)
       Output only. Additional information about the insight, each entry can be a
       logical entry and must make sense if it is displayed with line breaks
       between each entry. Text can contain md style links.
       
      repeated string additional_information = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAdditionalInformationBytes in interface GenericInsightOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the additionalInformation at the given index.
    • setAdditionalInformation

      public GenericInsight.Builder setAdditionalInformation(int index, String value)
       Output only. Additional information about the insight, each entry can be a
       logical entry and must make sense if it is displayed with line breaks
       between each entry. Text can contain md style links.
       
      repeated string additional_information = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      index - The index to set the value at.
      value - The additionalInformation to set.
      Returns:
      This builder for chaining.
    • addAdditionalInformation

      public GenericInsight.Builder addAdditionalInformation(String value)
       Output only. Additional information about the insight, each entry can be a
       logical entry and must make sense if it is displayed with line breaks
       between each entry. Text can contain md style links.
       
      repeated string additional_information = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The additionalInformation to add.
      Returns:
      This builder for chaining.
    • addAllAdditionalInformation

      public GenericInsight.Builder addAllAdditionalInformation(Iterable<String> values)
       Output only. Additional information about the insight, each entry can be a
       logical entry and must make sense if it is displayed with line breaks
       between each entry. Text can contain md style links.
       
      repeated string additional_information = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      values - The additionalInformation to add.
      Returns:
      This builder for chaining.
    • clearAdditionalInformation

      public GenericInsight.Builder clearAdditionalInformation()
       Output only. Additional information about the insight, each entry can be a
       logical entry and must make sense if it is displayed with line breaks
       between each entry. Text can contain md style links.
       
      repeated string additional_information = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • addAdditionalInformationBytes

      public GenericInsight.Builder addAdditionalInformationBytes(com.google.protobuf.ByteString value)
       Output only. Additional information about the insight, each entry can be a
       logical entry and must make sense if it is displayed with line breaks
       between each entry. Text can contain md style links.
       
      repeated string additional_information = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes of the additionalInformation to add.
      Returns:
      This builder for chaining.