Class BorderStyle (2.46.0)

public final class BorderStyle extends GeneratedMessageV3 implements BorderStyleOrBuilder

The style options for the border of a card or widget, including the border type and color.

Google Workspace Add-ons and Chat apps:

Protobuf type google.apps.card.v1.BorderStyle

Static Fields

CORNER_RADIUS_FIELD_NUMBER

public static final int CORNER_RADIUS_FIELD_NUMBER
Field Value
Type Description
int

STROKE_COLOR_FIELD_NUMBER

public static final int STROKE_COLOR_FIELD_NUMBER
Field Value
Type Description
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static BorderStyle getDefaultInstance()
Returns
Type Description
BorderStyle

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static BorderStyle.Builder newBuilder()
Returns
Type Description
BorderStyle.Builder

newBuilder(BorderStyle prototype)

public static BorderStyle.Builder newBuilder(BorderStyle prototype)
Parameter
Name Description
prototype BorderStyle
Returns
Type Description
BorderStyle.Builder

parseDelimitedFrom(InputStream input)

public static BorderStyle parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BorderStyle
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BorderStyle parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BorderStyle
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static BorderStyle parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
BorderStyle
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static BorderStyle parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BorderStyle
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static BorderStyle parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
BorderStyle
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static BorderStyle parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BorderStyle
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static BorderStyle parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
BorderStyle
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static BorderStyle parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BorderStyle
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static BorderStyle parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BorderStyle
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BorderStyle parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BorderStyle
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static BorderStyle parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
BorderStyle
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static BorderStyle parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BorderStyle
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<BorderStyle> parser()
Returns
Type Description
Parser<BorderStyle>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCornerRadius()

public int getCornerRadius()

The corner radius for the border.

int32 corner_radius = 3;

Returns
Type Description
int

The cornerRadius.

getDefaultInstanceForType()

public BorderStyle getDefaultInstanceForType()
Returns
Type Description
BorderStyle

getParserForType()

public Parser<BorderStyle> getParserForType()
Returns
Type Description
Parser<BorderStyle>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getStrokeColor()

public Color getStrokeColor()

The colors to use when the type is BORDER_TYPE_STROKE.

.google.type.Color stroke_color = 2;

Returns
Type Description
Color

The strokeColor.

getStrokeColorOrBuilder()

public ColorOrBuilder getStrokeColorOrBuilder()

The colors to use when the type is BORDER_TYPE_STROKE.

.google.type.Color stroke_color = 2;

Returns
Type Description
ColorOrBuilder

getType()

public BorderStyle.BorderType getType()

The border type.

.google.apps.card.v1.BorderStyle.BorderType type = 1;

Returns
Type Description
BorderStyle.BorderType

The type.

getTypeValue()

public int getTypeValue()

The border type.

.google.apps.card.v1.BorderStyle.BorderType type = 1;

Returns
Type Description
int

The enum numeric value on the wire for type.

hasStrokeColor()

public boolean hasStrokeColor()

The colors to use when the type is BORDER_TYPE_STROKE.

.google.type.Color stroke_color = 2;

Returns
Type Description
boolean

Whether the strokeColor field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public BorderStyle.Builder newBuilderForType()
Returns
Type Description
BorderStyle.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected BorderStyle.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
BorderStyle.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public BorderStyle.Builder toBuilder()
Returns
Type Description
BorderStyle.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException