Class BorderStyle (0.1.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
TypeDescription
int

STROKE_COLOR_FIELD_NUMBER

public static final int STROKE_COLOR_FIELD_NUMBER
Field Value
TypeDescription
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static BorderStyle getDefaultInstance()
Returns
TypeDescription
BorderStyle

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static BorderStyle.Builder newBuilder()
Returns
TypeDescription
BorderStyle.Builder

newBuilder(BorderStyle prototype)

public static BorderStyle.Builder newBuilder(BorderStyle prototype)
Parameter
NameDescription
prototypeBorderStyle
Returns
TypeDescription
BorderStyle.Builder

parseDelimitedFrom(InputStream input)

public static BorderStyle parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
BorderStyle
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BorderStyle parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BorderStyle
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static BorderStyle parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
BorderStyle
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static BorderStyle parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BorderStyle
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static BorderStyle parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
BorderStyle
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static BorderStyle parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BorderStyle
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static BorderStyle parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
BorderStyle
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static BorderStyle parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BorderStyle
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static BorderStyle parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
BorderStyle
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BorderStyle parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BorderStyle
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static BorderStyle parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
BorderStyle
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static BorderStyle parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BorderStyle
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<BorderStyle> parser()
Returns
TypeDescription
Parser<BorderStyle>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCornerRadius()

public int getCornerRadius()

The corner radius for the border.

int32 corner_radius = 3;

Returns
TypeDescription
int

The cornerRadius.

getDefaultInstanceForType()

public BorderStyle getDefaultInstanceForType()
Returns
TypeDescription
BorderStyle

getParserForType()

public Parser<BorderStyle> getParserForType()
Returns
TypeDescription
Parser<BorderStyle>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getStrokeColor()

public Color getStrokeColor()

The colors to use when the type is BORDER_TYPE_STROKE.

.google.type.Color stroke_color = 2;

Returns
TypeDescription
com.google.type.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
TypeDescription
com.google.type.ColorOrBuilder

getType()

public BorderStyle.BorderType getType()

The border type.

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

Returns
TypeDescription
BorderStyle.BorderType

The type.

getTypeValue()

public int getTypeValue()

The border type.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the strokeColor field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public BorderStyle.Builder newBuilderForType()
Returns
TypeDescription
BorderStyle.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected BorderStyle.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
BorderStyle.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public BorderStyle.Builder toBuilder()
Returns
TypeDescription
BorderStyle.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException