Class DisplayOptions.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<DisplayOptions.Builder>
com.buildless.projects.DisplayOptions.Builder
All Implemented Interfaces:
DisplayOptionsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
DisplayOptions

public static final class DisplayOptions.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DisplayOptions.Builder> implements DisplayOptionsOrBuilder
 ## Project Display

 Specifies settings which govern how a project is displayed or reported on. These settings are used by UIs and by the
 Buildless system to present information about a project to users.
 
Protobuf type buildless.projects.DisplayOptions
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<DisplayOptions.Builder>
    • clear

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

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

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

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

      public DisplayOptions.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<DisplayOptions.Builder>
    • setField

      public DisplayOptions.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<DisplayOptions.Builder>
    • clearField

      public DisplayOptions.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<DisplayOptions.Builder>
    • clearOneof

      public DisplayOptions.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<DisplayOptions.Builder>
    • setRepeatedField

      public DisplayOptions.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DisplayOptions.Builder>
    • addRepeatedField

      public DisplayOptions.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DisplayOptions.Builder>
    • mergeFrom

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

      public DisplayOptions.Builder mergeFrom(DisplayOptions other)
    • isInitialized

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

      public DisplayOptions.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<DisplayOptions.Builder>
      Throws:
      IOException
    • getColor

      public String getColor()
       Specifies the color that should be used to represent this project in UIs. This is used to provide a visual hint
       which is consistent for a project in various reports. The user can provide an explicit color, or, otherwise, a
       consistent one is generated based on the project's name or position in the chart.
      
       At the time of this writing, only web-safe colors in hex-notation are supported.
       
      string color = 1 [json_name = "color", (.google.api.field_behavior) = OPTIONAL, (.validate.rules) = { ... }
      Specified by:
      getColor in interface DisplayOptionsOrBuilder
      Returns:
      The color.
    • getColorBytes

      public com.google.protobuf.ByteString getColorBytes()
       Specifies the color that should be used to represent this project in UIs. This is used to provide a visual hint
       which is consistent for a project in various reports. The user can provide an explicit color, or, otherwise, a
       consistent one is generated based on the project's name or position in the chart.
      
       At the time of this writing, only web-safe colors in hex-notation are supported.
       
      string color = 1 [json_name = "color", (.google.api.field_behavior) = OPTIONAL, (.validate.rules) = { ... }
      Specified by:
      getColorBytes in interface DisplayOptionsOrBuilder
      Returns:
      The bytes for color.
    • setColor

      public DisplayOptions.Builder setColor(String value)
       Specifies the color that should be used to represent this project in UIs. This is used to provide a visual hint
       which is consistent for a project in various reports. The user can provide an explicit color, or, otherwise, a
       consistent one is generated based on the project's name or position in the chart.
      
       At the time of this writing, only web-safe colors in hex-notation are supported.
       
      string color = 1 [json_name = "color", (.google.api.field_behavior) = OPTIONAL, (.validate.rules) = { ... }
      Parameters:
      value - The color to set.
      Returns:
      This builder for chaining.
    • clearColor

      public DisplayOptions.Builder clearColor()
       Specifies the color that should be used to represent this project in UIs. This is used to provide a visual hint
       which is consistent for a project in various reports. The user can provide an explicit color, or, otherwise, a
       consistent one is generated based on the project's name or position in the chart.
      
       At the time of this writing, only web-safe colors in hex-notation are supported.
       
      string color = 1 [json_name = "color", (.google.api.field_behavior) = OPTIONAL, (.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • setColorBytes

      public DisplayOptions.Builder setColorBytes(com.google.protobuf.ByteString value)
       Specifies the color that should be used to represent this project in UIs. This is used to provide a visual hint
       which is consistent for a project in various reports. The user can provide an explicit color, or, otherwise, a
       consistent one is generated based on the project's name or position in the chart.
      
       At the time of this writing, only web-safe colors in hex-notation are supported.
       
      string color = 1 [json_name = "color", (.google.api.field_behavior) = OPTIONAL, (.validate.rules) = { ... }
      Parameters:
      value - The bytes for color to set.
      Returns:
      This builder for chaining.
    • getReports

      public boolean getReports()
       Specifies whether to include this project in reports. This is useful to disable for projects which are temporary,
       or which are experimental in nature.
       
      bool reports = 2 [json_name = "reports", (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getReports in interface DisplayOptionsOrBuilder
      Returns:
      The reports.
    • setReports

      public DisplayOptions.Builder setReports(boolean value)
       Specifies whether to include this project in reports. This is useful to disable for projects which are temporary,
       or which are experimental in nature.
       
      bool reports = 2 [json_name = "reports", (.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The reports to set.
      Returns:
      This builder for chaining.
    • clearReports

      public DisplayOptions.Builder clearReports()
       Specifies whether to include this project in reports. This is useful to disable for projects which are temporary,
       or which are experimental in nature.
       
      bool reports = 2 [json_name = "reports", (.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getFavorite

      public boolean getFavorite()
       Specifies whether to include this project in the list of favorites. This is useful to enable for projects which are
       frequently accessed. Marking a project as a "favorite" may promote it in UI and reporting circumstances.
       
      bool favorite = 3 [json_name = "favorite", (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFavorite in interface DisplayOptionsOrBuilder
      Returns:
      The favorite.
    • setFavorite

      public DisplayOptions.Builder setFavorite(boolean value)
       Specifies whether to include this project in the list of favorites. This is useful to enable for projects which are
       frequently accessed. Marking a project as a "favorite" may promote it in UI and reporting circumstances.
       
      bool favorite = 3 [json_name = "favorite", (.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The favorite to set.
      Returns:
      This builder for chaining.
    • clearFavorite

      public DisplayOptions.Builder clearFavorite()
       Specifies whether to include this project in the list of favorites. This is useful to enable for projects which are
       frequently accessed. Marking a project as a "favorite" may promote it in UI and reporting circumstances.
       
      bool favorite = 3 [json_name = "favorite", (.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final DisplayOptions.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DisplayOptions.Builder>
    • mergeUnknownFields

      public final DisplayOptions.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DisplayOptions.Builder>