Class Button (0.31.0)

public final class Button extends GeneratedMessage implements ButtonOrBuilder

Button config for a chart.

Protobuf type google.cloud.chronicle.v1.Button

Implements

ButtonOrBuilder

Static Fields

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
Type Description
int
public static final int HYPERLINK_FIELD_NUMBER
Field Value
Type Description
int

LABEL_FIELD_NUMBER

public static final int LABEL_FIELD_NUMBER
Field Value
Type Description
int

NEW_TAB_FIELD_NUMBER

public static final int NEW_TAB_FIELD_NUMBER
Field Value
Type Description
int

PROPERTIES_FIELD_NUMBER

public static final int PROPERTIES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Button getDefaultInstance()
Returns
Type Description
Button

getDescriptor()

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

newBuilder()

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

newBuilder(Button prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public Button getDefaultInstanceForType()
Returns
Type Description
Button

getDescription()

public String getDescription()

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for description.

public String getHyperlink()

string hyperlink = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The hyperlink.

getHyperlinkBytes()

public ByteString getHyperlinkBytes()

string hyperlink = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for hyperlink.

getLabel()

public String getLabel()

string label = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The label.

getLabelBytes()

public ByteString getLabelBytes()

string label = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for label.

getNewTab()

public boolean getNewTab()

Optional. Whether to open the link in a new tab.

bool new_tab = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The newTab.

getParserForType()

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

getProperties()

public Button.Properties getProperties()

.google.cloud.chronicle.v1.Button.Properties properties = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Button.Properties

The properties.

getPropertiesOrBuilder()

public Button.PropertiesOrBuilder getPropertiesOrBuilder()

.google.cloud.chronicle.v1.Button.Properties properties = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Button.PropertiesOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasProperties()

public boolean hasProperties()

.google.cloud.chronicle.v1.Button.Properties properties = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the properties field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(AbstractMessage.BuilderParent parent)

protected Button.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Button.Builder
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

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