Package com.google.apps.card.v1
Enum Widget.VerticalAlignment
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Widget.VerticalAlignment>
- Enclosing class:
- Widget
public static enum Widget.VerticalAlignment
extends Enum<Widget.VerticalAlignment>
implements com.google.protobuf.ProtocolMessageEnum
Represents vertical alignment attribute.Protobuf enum
google.apps.card.v1.Widget.VerticalAlignment-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAlignment to the bottom position.Alignment to the middle position.Alignment to the top position.Unspecified type. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAlignment to the bottom position.static final intAlignment to the middle position.static final intAlignment to the top position.static final intUnspecified type. -
Method Summary
Modifier and TypeMethodDescriptionstatic Widget.VerticalAlignmentforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<Widget.VerticalAlignment>static Widget.VerticalAlignmentvalueOf(int value) Deprecated.static Widget.VerticalAlignmentvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static Widget.VerticalAlignmentReturns the enum constant of this type with the specified name.static Widget.VerticalAlignment[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
VERTICAL_ALIGNMENT_UNSPECIFIED
Unspecified type. Do not use.
VERTICAL_ALIGNMENT_UNSPECIFIED = 0; -
TOP
Alignment to the top position.
TOP = 1; -
MIDDLE
Alignment to the middle position.
MIDDLE = 2; -
BOTTOM
Alignment to the bottom position.
BOTTOM = 3; -
UNRECOGNIZED
-
-
Field Details
-
VERTICAL_ALIGNMENT_UNSPECIFIED_VALUE
public static final int VERTICAL_ALIGNMENT_UNSPECIFIED_VALUEUnspecified type. Do not use.
VERTICAL_ALIGNMENT_UNSPECIFIED = 0;- See Also:
-
TOP_VALUE
public static final int TOP_VALUEAlignment to the top position.
TOP = 1;- See Also:
-
MIDDLE_VALUE
public static final int MIDDLE_VALUEAlignment to the middle position.
MIDDLE = 2;- See Also:
-
BOTTOM_VALUE
public static final int BOTTOM_VALUEAlignment to the bottom position.
BOTTOM = 3;- 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<Widget.VerticalAlignment> 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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static Widget.VerticalAlignment 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
-