Class MaintenanceSummary.Aggregate.Builder (0.19.0)

public static final class MaintenanceSummary.Aggregate.Builder extends GeneratedMessage.Builder<MaintenanceSummary.Aggregate.Builder> implements MaintenanceSummary.AggregateOrBuilder

Aggregate is a <group, count> pair.

Protobuf type google.cloud.maintenance.api.v1beta.MaintenanceSummary.Aggregate

Static Methods

getDescriptor()

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

Methods

build()

public MaintenanceSummary.Aggregate build()
Returns
Type Description
MaintenanceSummary.Aggregate

buildPartial()

public MaintenanceSummary.Aggregate buildPartial()
Returns
Type Description
MaintenanceSummary.Aggregate

clear()

public MaintenanceSummary.Aggregate.Builder clear()
Returns
Type Description
MaintenanceSummary.Aggregate.Builder
Overrides

clearCount()

public MaintenanceSummary.Aggregate.Builder clearCount()

The count of the group.

int64 count = 2;

Returns
Type Description
MaintenanceSummary.Aggregate.Builder

This builder for chaining.

clearGroup()

public MaintenanceSummary.Aggregate.Builder clearGroup()

Specifies what specific value of the group_by the count represents. For example if group_by is "state" its corresponding group could be "SCHEDULED".

string group = 1;

Returns
Type Description
MaintenanceSummary.Aggregate.Builder

This builder for chaining.

getCount()

public long getCount()

The count of the group.

int64 count = 2;

Returns
Type Description
long

The count.

getDefaultInstanceForType()

public MaintenanceSummary.Aggregate getDefaultInstanceForType()
Returns
Type Description
MaintenanceSummary.Aggregate

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getGroup()

public String getGroup()

Specifies what specific value of the group_by the count represents. For example if group_by is "state" its corresponding group could be "SCHEDULED".

string group = 1;

Returns
Type Description
String

The group.

getGroupBytes()

public ByteString getGroupBytes()

Specifies what specific value of the group_by the count represents. For example if group_by is "state" its corresponding group could be "SCHEDULED".

string group = 1;

Returns
Type Description
ByteString

The bytes for group.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MaintenanceSummary.Aggregate other)

public MaintenanceSummary.Aggregate.Builder mergeFrom(MaintenanceSummary.Aggregate other)
Parameter
Name Description
other MaintenanceSummary.Aggregate
Returns
Type Description
MaintenanceSummary.Aggregate.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MaintenanceSummary.Aggregate.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MaintenanceSummary.Aggregate.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public MaintenanceSummary.Aggregate.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
MaintenanceSummary.Aggregate.Builder
Overrides

setCount(long value)

public MaintenanceSummary.Aggregate.Builder setCount(long value)

The count of the group.

int64 count = 2;

Parameter
Name Description
value long

The count to set.

Returns
Type Description
MaintenanceSummary.Aggregate.Builder

This builder for chaining.

setGroup(String value)

public MaintenanceSummary.Aggregate.Builder setGroup(String value)

Specifies what specific value of the group_by the count represents. For example if group_by is "state" its corresponding group could be "SCHEDULED".

string group = 1;

Parameter
Name Description
value String

The group to set.

Returns
Type Description
MaintenanceSummary.Aggregate.Builder

This builder for chaining.

setGroupBytes(ByteString value)

public MaintenanceSummary.Aggregate.Builder setGroupBytes(ByteString value)

Specifies what specific value of the group_by the count represents. For example if group_by is "state" its corresponding group could be "SCHEDULED".

string group = 1;

Parameter
Name Description
value ByteString

The bytes for group to set.

Returns
Type Description
MaintenanceSummary.Aggregate.Builder

This builder for chaining.