Class Text.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Text.Builder>
com.google.monitoring.dashboard.v1.Text.Builder
All Implemented Interfaces:
TextOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Text

public static final class Text.Builder extends com.google.protobuf.GeneratedMessage.Builder<Text.Builder> implements TextOrBuilder
 A widget that displays textual content.
 
Protobuf type google.monitoring.dashboard.v1.Text
  • 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<Text.Builder>
    • clear

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

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

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

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

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

      public Text.Builder mergeFrom(Text other)
    • isInitialized

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

      public Text.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<Text.Builder>
      Throws:
      IOException
    • getContent

      public String getContent()
       The text content to be displayed.
       
      string content = 1;
      Specified by:
      getContent in interface TextOrBuilder
      Returns:
      The content.
    • getContentBytes

      public com.google.protobuf.ByteString getContentBytes()
       The text content to be displayed.
       
      string content = 1;
      Specified by:
      getContentBytes in interface TextOrBuilder
      Returns:
      The bytes for content.
    • setContent

      public Text.Builder setContent(String value)
       The text content to be displayed.
       
      string content = 1;
      Parameters:
      value - The content to set.
      Returns:
      This builder for chaining.
    • clearContent

      public Text.Builder clearContent()
       The text content to be displayed.
       
      string content = 1;
      Returns:
      This builder for chaining.
    • setContentBytes

      public Text.Builder setContentBytes(com.google.protobuf.ByteString value)
       The text content to be displayed.
       
      string content = 1;
      Parameters:
      value - The bytes for content to set.
      Returns:
      This builder for chaining.
    • getFormatValue

      public int getFormatValue()
       How the text content is formatted.
       
      .google.monitoring.dashboard.v1.Text.Format format = 2;
      Specified by:
      getFormatValue in interface TextOrBuilder
      Returns:
      The enum numeric value on the wire for format.
    • setFormatValue

      public Text.Builder setFormatValue(int value)
       How the text content is formatted.
       
      .google.monitoring.dashboard.v1.Text.Format format = 2;
      Parameters:
      value - The enum numeric value on the wire for format to set.
      Returns:
      This builder for chaining.
    • getFormat

      public Text.Format getFormat()
       How the text content is formatted.
       
      .google.monitoring.dashboard.v1.Text.Format format = 2;
      Specified by:
      getFormat in interface TextOrBuilder
      Returns:
      The format.
    • setFormat

      public Text.Builder setFormat(Text.Format value)
       How the text content is formatted.
       
      .google.monitoring.dashboard.v1.Text.Format format = 2;
      Parameters:
      value - The format to set.
      Returns:
      This builder for chaining.
    • clearFormat

      public Text.Builder clearFormat()
       How the text content is formatted.
       
      .google.monitoring.dashboard.v1.Text.Format format = 2;
      Returns:
      This builder for chaining.
    • hasStyle

      public boolean hasStyle()
       How the text is styled
       
      .google.monitoring.dashboard.v1.Text.TextStyle style = 3;
      Specified by:
      hasStyle in interface TextOrBuilder
      Returns:
      Whether the style field is set.
    • getStyle

      public Text.TextStyle getStyle()
       How the text is styled
       
      .google.monitoring.dashboard.v1.Text.TextStyle style = 3;
      Specified by:
      getStyle in interface TextOrBuilder
      Returns:
      The style.
    • setStyle

      public Text.Builder setStyle(Text.TextStyle value)
       How the text is styled
       
      .google.monitoring.dashboard.v1.Text.TextStyle style = 3;
    • setStyle

      public Text.Builder setStyle(Text.TextStyle.Builder builderForValue)
       How the text is styled
       
      .google.monitoring.dashboard.v1.Text.TextStyle style = 3;
    • mergeStyle

      public Text.Builder mergeStyle(Text.TextStyle value)
       How the text is styled
       
      .google.monitoring.dashboard.v1.Text.TextStyle style = 3;
    • clearStyle

      public Text.Builder clearStyle()
       How the text is styled
       
      .google.monitoring.dashboard.v1.Text.TextStyle style = 3;
    • getStyleBuilder

      public Text.TextStyle.Builder getStyleBuilder()
       How the text is styled
       
      .google.monitoring.dashboard.v1.Text.TextStyle style = 3;
    • getStyleOrBuilder

      public Text.TextStyleOrBuilder getStyleOrBuilder()
       How the text is styled
       
      .google.monitoring.dashboard.v1.Text.TextStyle style = 3;
      Specified by:
      getStyleOrBuilder in interface TextOrBuilder