Enum ReportingDataAnnotation.Color
java.lang.Object
java.lang.Enum<ReportingDataAnnotation.Color>
com.google.analytics.admin.v1alpha.ReportingDataAnnotation.Color
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<ReportingDataAnnotation.Color>
- Enclosing class:
- ReportingDataAnnotation
public static enum ReportingDataAnnotation.Color
extends Enum<ReportingDataAnnotation.Color>
implements com.google.protobuf.ProtocolMessageEnum
Colors that may be used for this Reporting Data AnnotationProtobuf enum
google.analytics.admin.v1alpha.ReportingDataAnnotation.Color-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBlue color.Brown color.Color unknown or not specified.Cyan color.Green color.Orange color.Purple color.Red color. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intBlue color.static final intBrown color.static final intColor unknown or not specified.static final intCyan color.static final intGreen color.static final intOrange color.static final intPurple color.static final intRed color. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<ReportingDataAnnotation.Color>valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.Returns the enum constant of this type with the specified name.static ReportingDataAnnotation.Color[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
COLOR_UNSPECIFIED
Color unknown or not specified.
COLOR_UNSPECIFIED = 0; -
PURPLE
Purple color.
PURPLE = 1; -
BROWN
Brown color.
BROWN = 2; -
BLUE
Blue color.
BLUE = 3; -
GREEN
Green color.
GREEN = 4; -
RED
Red color.
RED = 5; -
CYAN
Cyan color.
CYAN = 6; -
ORANGE
Orange color. (Only used for system-generated annotations)
ORANGE = 7; -
UNRECOGNIZED
-
-
Field Details
-
COLOR_UNSPECIFIED_VALUE
public static final int COLOR_UNSPECIFIED_VALUEColor unknown or not specified.
COLOR_UNSPECIFIED = 0;- See Also:
-
PURPLE_VALUE
public static final int PURPLE_VALUEPurple color.
PURPLE = 1;- See Also:
-
BROWN_VALUE
public static final int BROWN_VALUEBrown color.
BROWN = 2;- See Also:
-
BLUE_VALUE
public static final int BLUE_VALUEBlue color.
BLUE = 3;- See Also:
-
GREEN_VALUE
public static final int GREEN_VALUEGreen color.
GREEN = 4;- See Also:
-
RED_VALUE
public static final int RED_VALUERed color.
RED = 5;- See Also:
-
CYAN_VALUE
public static final int CYAN_VALUECyan color.
CYAN = 6;- See Also:
-
ORANGE_VALUE
public static final int ORANGE_VALUEOrange color. (Only used for system-generated annotations)
ORANGE = 7;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<ReportingDataAnnotation.Color> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static ReportingDataAnnotation.Color valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-