Class XyChart.Axis.Builder (2.21.0)

public static final class XyChart.Axis.Builder extends GeneratedMessageV3.Builder<XyChart.Axis.Builder> implements XyChart.AxisOrBuilder

A chart axis.

Protobuf type google.monitoring.dashboard.v1.XyChart.Axis

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public XyChart.Axis build()
Returns
TypeDescription
XyChart.Axis

buildPartial()

public XyChart.Axis buildPartial()
Returns
TypeDescription
XyChart.Axis

clear()

public XyChart.Axis.Builder clear()
Returns
TypeDescription
XyChart.Axis.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearLabel()

public XyChart.Axis.Builder clearLabel()

The label of the axis.

string label = 1;

Returns
TypeDescription
XyChart.Axis.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearScale()

public XyChart.Axis.Builder clearScale()

The axis scale. By default, a linear scale is used.

.google.monitoring.dashboard.v1.XyChart.Axis.Scale scale = 2;

Returns
TypeDescription
XyChart.Axis.Builder

This builder for chaining.

clone()

public XyChart.Axis.Builder clone()
Returns
TypeDescription
XyChart.Axis.Builder
Overrides

getDefaultInstanceForType()

public XyChart.Axis getDefaultInstanceForType()
Returns
TypeDescription
XyChart.Axis

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLabel()

public String getLabel()

The label of the axis.

string label = 1;

Returns
TypeDescription
String

The label.

getLabelBytes()

public ByteString getLabelBytes()

The label of the axis.

string label = 1;

Returns
TypeDescription
ByteString

The bytes for label.

getScale()

public XyChart.Axis.Scale getScale()

The axis scale. By default, a linear scale is used.

.google.monitoring.dashboard.v1.XyChart.Axis.Scale scale = 2;

Returns
TypeDescription
XyChart.Axis.Scale

The scale.

getScaleValue()

public int getScaleValue()

The axis scale. By default, a linear scale is used.

.google.monitoring.dashboard.v1.XyChart.Axis.Scale scale = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for scale.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(XyChart.Axis other)

public XyChart.Axis.Builder mergeFrom(XyChart.Axis other)
Parameter
NameDescription
otherXyChart.Axis
Returns
TypeDescription
XyChart.Axis.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setLabel(String value)

public XyChart.Axis.Builder setLabel(String value)

The label of the axis.

string label = 1;

Parameter
NameDescription
valueString

The label to set.

Returns
TypeDescription
XyChart.Axis.Builder

This builder for chaining.

setLabelBytes(ByteString value)

public XyChart.Axis.Builder setLabelBytes(ByteString value)

The label of the axis.

string label = 1;

Parameter
NameDescription
valueByteString

The bytes for label to set.

Returns
TypeDescription
XyChart.Axis.Builder

This builder for chaining.

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

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

setScale(XyChart.Axis.Scale value)

public XyChart.Axis.Builder setScale(XyChart.Axis.Scale value)

The axis scale. By default, a linear scale is used.

.google.monitoring.dashboard.v1.XyChart.Axis.Scale scale = 2;

Parameter
NameDescription
valueXyChart.Axis.Scale

The scale to set.

Returns
TypeDescription
XyChart.Axis.Builder

This builder for chaining.

setScaleValue(int value)

public XyChart.Axis.Builder setScaleValue(int value)

The axis scale. By default, a linear scale is used.

.google.monitoring.dashboard.v1.XyChart.Axis.Scale scale = 2;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
XyChart.Axis.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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