Class ChartOptions.Builder (2.34.0)

public static final class ChartOptions.Builder extends GeneratedMessageV3.Builder<ChartOptions.Builder> implements ChartOptionsOrBuilder

Options to control visual rendering of a chart.

Protobuf type google.monitoring.dashboard.v1.ChartOptions

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ChartOptions build()
Returns
TypeDescription
ChartOptions

buildPartial()

public ChartOptions buildPartial()
Returns
TypeDescription
ChartOptions

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMode()

public ChartOptions.Builder clearMode()

The chart mode.

.google.monitoring.dashboard.v1.ChartOptions.Mode mode = 1;

Returns
TypeDescription
ChartOptions.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ChartOptions getDefaultInstanceForType()
Returns
TypeDescription
ChartOptions

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMode()

public ChartOptions.Mode getMode()

The chart mode.

.google.monitoring.dashboard.v1.ChartOptions.Mode mode = 1;

Returns
TypeDescription
ChartOptions.Mode

The mode.

getModeValue()

public int getModeValue()

The chart mode.

.google.monitoring.dashboard.v1.ChartOptions.Mode mode = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for mode.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ChartOptions other)

public ChartOptions.Builder mergeFrom(ChartOptions other)
Parameter
NameDescription
otherChartOptions
Returns
TypeDescription
ChartOptions.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMode(ChartOptions.Mode value)

public ChartOptions.Builder setMode(ChartOptions.Mode value)

The chart mode.

.google.monitoring.dashboard.v1.ChartOptions.Mode mode = 1;

Parameter
NameDescription
valueChartOptions.Mode

The mode to set.

Returns
TypeDescription
ChartOptions.Builder

This builder for chaining.

setModeValue(int value)

public ChartOptions.Builder setModeValue(int value)

The chart mode.

.google.monitoring.dashboard.v1.ChartOptions.Mode mode = 1;

Parameter
NameDescription
valueint

The enum numeric value on the wire for mode to set.

Returns
TypeDescription
ChartOptions.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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