Package com.buildless.projects
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 Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Specifies the color that should be used to represent this project in UIs.Specifies whether to include this project in the list of favorites.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Specifies whether to include this project in reports.clone()getColor()Specifies the color that should be used to represent this project in UIs.com.google.protobuf.ByteStringSpecifies the color that should be used to represent this project in UIs.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanSpecifies whether to include this project in the list of favorites.booleanSpecifies whether to include this project in reports.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(DisplayOptions other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final DisplayOptions.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Specifies the color that should be used to represent this project in UIs.setColorBytes(com.google.protobuf.ByteString value) Specifies the color that should be used to represent this project in UIs.setFavorite(boolean value) Specifies whether to include this project in the list of favorites.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setReports(boolean value) Specifies whether to include this project in reports.final DisplayOptions.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<DisplayOptions.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<DisplayOptions.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<DisplayOptions.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<DisplayOptions.Builder>
-
setField
public DisplayOptions.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DisplayOptions.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DisplayOptions.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<DisplayOptions.Builder>
-
setRepeatedField
public DisplayOptions.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DisplayOptions.Builder>
-
addRepeatedField
public DisplayOptions.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DisplayOptions.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DisplayOptions.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DisplayOptions.Builder>- Throws:
IOException
-
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:
getColorin interfaceDisplayOptionsOrBuilder- 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:
getColorBytesin interfaceDisplayOptionsOrBuilder- Returns:
- The bytes for color.
-
setColor
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
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
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:
getReportsin interfaceDisplayOptionsOrBuilder- Returns:
- The reports.
-
setReports
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
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:
getFavoritein interfaceDisplayOptionsOrBuilder- Returns:
- The favorite.
-
setFavorite
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
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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DisplayOptions.Builder>
-
mergeUnknownFields
public final DisplayOptions.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DisplayOptions.Builder>
-