Class Button.Builder

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

public static final class Button.Builder extends com.google.protobuf.GeneratedMessage.Builder<Button.Builder> implements ButtonOrBuilder
 Button config for a chart.
 
Protobuf type google.cloud.chronicle.v1.Button
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    string description = 3 [(.google.api.field_behavior) = OPTIONAL];
    string hyperlink = 2 [(.google.api.field_behavior) = REQUIRED];
    string label = 1 [(.google.api.field_behavior) = REQUIRED];
    Optional.
    .google.cloud.chronicle.v1.Button.Properties properties = 5 [(.google.api.field_behavior) = OPTIONAL];
     
    string description = 3 [(.google.api.field_behavior) = OPTIONAL];
    com.google.protobuf.ByteString
    string description = 3 [(.google.api.field_behavior) = OPTIONAL];
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    string hyperlink = 2 [(.google.api.field_behavior) = REQUIRED];
    com.google.protobuf.ByteString
    string hyperlink = 2 [(.google.api.field_behavior) = REQUIRED];
    string label = 1 [(.google.api.field_behavior) = REQUIRED];
    com.google.protobuf.ByteString
    string label = 1 [(.google.api.field_behavior) = REQUIRED];
    boolean
    Optional.
    .google.cloud.chronicle.v1.Button.Properties properties = 5 [(.google.api.field_behavior) = OPTIONAL];
    .google.cloud.chronicle.v1.Button.Properties properties = 5 [(.google.api.field_behavior) = OPTIONAL];
    .google.cloud.chronicle.v1.Button.Properties properties = 5 [(.google.api.field_behavior) = OPTIONAL];
    boolean
    .google.cloud.chronicle.v1.Button.Properties properties = 5 [(.google.api.field_behavior) = OPTIONAL];
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    .google.cloud.chronicle.v1.Button.Properties properties = 5 [(.google.api.field_behavior) = OPTIONAL];
    string description = 3 [(.google.api.field_behavior) = OPTIONAL];
    setDescriptionBytes(com.google.protobuf.ByteString value)
    string description = 3 [(.google.api.field_behavior) = OPTIONAL];
    string hyperlink = 2 [(.google.api.field_behavior) = REQUIRED];
    setHyperlinkBytes(com.google.protobuf.ByteString value)
    string hyperlink = 2 [(.google.api.field_behavior) = REQUIRED];
    string label = 1 [(.google.api.field_behavior) = REQUIRED];
    setLabelBytes(com.google.protobuf.ByteString value)
    string label = 1 [(.google.api.field_behavior) = REQUIRED];
    setNewTab(boolean value)
    Optional.
    .google.cloud.chronicle.v1.Button.Properties properties = 5 [(.google.api.field_behavior) = OPTIONAL];
    .google.cloud.chronicle.v1.Button.Properties properties = 5 [(.google.api.field_behavior) = OPTIONAL];

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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<Button.Builder>
    • clear

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

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

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

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

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

      public Button.Builder mergeFrom(Button other)
    • isInitialized

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

      public Button.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<Button.Builder>
      Throws:
      IOException
    • getLabel

      public String getLabel()
      string label = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getLabel in interface ButtonOrBuilder
      Returns:
      The label.
    • getLabelBytes

      public com.google.protobuf.ByteString getLabelBytes()
      string label = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getLabelBytes in interface ButtonOrBuilder
      Returns:
      The bytes for label.
    • setLabel

      public Button.Builder setLabel(String value)
      string label = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The label to set.
      Returns:
      This builder for chaining.
    • clearLabel

      public Button.Builder clearLabel()
      string label = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setLabelBytes

      public Button.Builder setLabelBytes(com.google.protobuf.ByteString value)
      string label = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for label to set.
      Returns:
      This builder for chaining.
    • getHyperlink

      public String getHyperlink()
      string hyperlink = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getHyperlink in interface ButtonOrBuilder
      Returns:
      The hyperlink.
    • getHyperlinkBytes

      public com.google.protobuf.ByteString getHyperlinkBytes()
      string hyperlink = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getHyperlinkBytes in interface ButtonOrBuilder
      Returns:
      The bytes for hyperlink.
    • setHyperlink

      public Button.Builder setHyperlink(String value)
      string hyperlink = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The hyperlink to set.
      Returns:
      This builder for chaining.
    • clearHyperlink

      public Button.Builder clearHyperlink()
      string hyperlink = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setHyperlinkBytes

      public Button.Builder setHyperlinkBytes(com.google.protobuf.ByteString value)
      string hyperlink = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for hyperlink to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescription in interface ButtonOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescriptionBytes in interface ButtonOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public Button.Builder setDescription(String value)
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public Button.Builder clearDescription()
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public Button.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getNewTab

      public boolean getNewTab()
       Optional. Whether to open the link in a new tab.
       
      bool new_tab = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNewTab in interface ButtonOrBuilder
      Returns:
      The newTab.
    • setNewTab

      public Button.Builder setNewTab(boolean value)
       Optional. Whether to open the link in a new tab.
       
      bool new_tab = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The newTab to set.
      Returns:
      This builder for chaining.
    • clearNewTab

      public Button.Builder clearNewTab()
       Optional. Whether to open the link in a new tab.
       
      bool new_tab = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasProperties

      public boolean hasProperties()
      .google.cloud.chronicle.v1.Button.Properties properties = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasProperties in interface ButtonOrBuilder
      Returns:
      Whether the properties field is set.
    • getProperties

      public Button.Properties getProperties()
      .google.cloud.chronicle.v1.Button.Properties properties = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getProperties in interface ButtonOrBuilder
      Returns:
      The properties.
    • setProperties

      public Button.Builder setProperties(Button.Properties value)
      .google.cloud.chronicle.v1.Button.Properties properties = 5 [(.google.api.field_behavior) = OPTIONAL];
    • setProperties

      public Button.Builder setProperties(Button.Properties.Builder builderForValue)
      .google.cloud.chronicle.v1.Button.Properties properties = 5 [(.google.api.field_behavior) = OPTIONAL];
    • mergeProperties

      public Button.Builder mergeProperties(Button.Properties value)
      .google.cloud.chronicle.v1.Button.Properties properties = 5 [(.google.api.field_behavior) = OPTIONAL];
    • clearProperties

      public Button.Builder clearProperties()
      .google.cloud.chronicle.v1.Button.Properties properties = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getPropertiesBuilder

      public Button.Properties.Builder getPropertiesBuilder()
      .google.cloud.chronicle.v1.Button.Properties properties = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getPropertiesOrBuilder

      public Button.PropertiesOrBuilder getPropertiesOrBuilder()
      .google.cloud.chronicle.v1.Button.Properties properties = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPropertiesOrBuilder in interface ButtonOrBuilder