Class TableDisplayOptions.Builder (2.7.0)

public static final class TableDisplayOptions.Builder extends GeneratedMessageV3.Builder<TableDisplayOptions.Builder> implements TableDisplayOptionsOrBuilder

Table display options that can be reused.

Protobuf type google.monitoring.dashboard.v1.TableDisplayOptions

Static Methods

getDescriptor()

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

Methods

addAllShownColumns(Iterable<String> values)

public TableDisplayOptions.Builder addAllShownColumns(Iterable<String> values)

Optional. Columns to display in the table. Leave empty to display all available columns. Note: This field is for future features and is not currently used.

repeated string shown_columns = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesIterable<String>

The shownColumns to add.

Returns
TypeDescription
TableDisplayOptions.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TableDisplayOptions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TableDisplayOptions.Builder
Overrides

addShownColumns(String value)

public TableDisplayOptions.Builder addShownColumns(String value)

Optional. Columns to display in the table. Leave empty to display all available columns. Note: This field is for future features and is not currently used.

repeated string shown_columns = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The shownColumns to add.

Returns
TypeDescription
TableDisplayOptions.Builder

This builder for chaining.

addShownColumnsBytes(ByteString value)

public TableDisplayOptions.Builder addShownColumnsBytes(ByteString value)

Optional. Columns to display in the table. Leave empty to display all available columns. Note: This field is for future features and is not currently used.

repeated string shown_columns = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes of the shownColumns to add.

Returns
TypeDescription
TableDisplayOptions.Builder

This builder for chaining.

build()

public TableDisplayOptions build()
Returns
TypeDescription
TableDisplayOptions

buildPartial()

public TableDisplayOptions buildPartial()
Returns
TypeDescription
TableDisplayOptions

clear()

public TableDisplayOptions.Builder clear()
Returns
TypeDescription
TableDisplayOptions.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public TableDisplayOptions.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
TableDisplayOptions.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public TableDisplayOptions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
TableDisplayOptions.Builder
Overrides

clearShownColumns()

public TableDisplayOptions.Builder clearShownColumns()

Optional. Columns to display in the table. Leave empty to display all available columns. Note: This field is for future features and is not currently used.

repeated string shown_columns = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
TableDisplayOptions.Builder

This builder for chaining.

clone()

public TableDisplayOptions.Builder clone()
Returns
TypeDescription
TableDisplayOptions.Builder
Overrides

getDefaultInstanceForType()

public TableDisplayOptions getDefaultInstanceForType()
Returns
TypeDescription
TableDisplayOptions

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getShownColumns(int index)

public String getShownColumns(int index)

Optional. Columns to display in the table. Leave empty to display all available columns. Note: This field is for future features and is not currently used.

repeated string shown_columns = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The shownColumns at the given index.

getShownColumnsBytes(int index)

public ByteString getShownColumnsBytes(int index)

Optional. Columns to display in the table. Leave empty to display all available columns. Note: This field is for future features and is not currently used.

repeated string shown_columns = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the shownColumns at the given index.

getShownColumnsCount()

public int getShownColumnsCount()

Optional. Columns to display in the table. Leave empty to display all available columns. Note: This field is for future features and is not currently used.

repeated string shown_columns = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The count of shownColumns.

getShownColumnsList()

public ProtocolStringList getShownColumnsList()

Optional. Columns to display in the table. Leave empty to display all available columns. Note: This field is for future features and is not currently used.

repeated string shown_columns = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ProtocolStringList

A list containing the shownColumns.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TableDisplayOptions other)

public TableDisplayOptions.Builder mergeFrom(TableDisplayOptions other)
Parameter
NameDescription
otherTableDisplayOptions
Returns
TypeDescription
TableDisplayOptions.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TableDisplayOptions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TableDisplayOptions.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public TableDisplayOptions.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
TableDisplayOptions.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TableDisplayOptions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TableDisplayOptions.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public TableDisplayOptions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TableDisplayOptions.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public TableDisplayOptions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TableDisplayOptions.Builder
Overrides

setShownColumns(int index, String value)

public TableDisplayOptions.Builder setShownColumns(int index, String value)

Optional. Columns to display in the table. Leave empty to display all available columns. Note: This field is for future features and is not currently used.

repeated string shown_columns = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The shownColumns to set.

Returns
TypeDescription
TableDisplayOptions.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final TableDisplayOptions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TableDisplayOptions.Builder
Overrides