Class Aggregate.Builder (0.15.0)

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

Represents the aggregation of a set of population of like records by a certain group. For example, a collection of unit counts can be aggregated and grouped by their state.

Protobuf type google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate

Implements

AggregateOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public Aggregate build()
Returns
Type Description
Aggregate

buildPartial()

public Aggregate buildPartial()
Returns
Type Description
Aggregate

clear()

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

clearCount()

public Aggregate.Builder clearCount()

Required. Number of records in the group.

int32 count = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Aggregate.Builder

This builder for chaining.

clearGroup()

public Aggregate.Builder clearGroup()

Required. Group by which to aggregate.

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

Returns
Type Description
Aggregate.Builder

This builder for chaining.

getCount()

public int getCount()

Required. Number of records in the group.

int32 count = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The count.

getDefaultInstanceForType()

public Aggregate getDefaultInstanceForType()
Returns
Type Description
Aggregate

getDescriptorForType()

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

getGroup()

public String getGroup()

Required. Group by which to aggregate.

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

Returns
Type Description
String

The group.

getGroupBytes()

public ByteString getGroupBytes()

Required. Group by which to aggregate.

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

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(Aggregate other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setCount(int value)

public Aggregate.Builder setCount(int value)

Required. Number of records in the group.

int32 count = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The count to set.

Returns
Type Description
Aggregate.Builder

This builder for chaining.

setGroup(String value)

public Aggregate.Builder setGroup(String value)

Required. Group by which to aggregate.

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

Parameter
Name Description
value String

The group to set.

Returns
Type Description
Aggregate.Builder

This builder for chaining.

setGroupBytes(ByteString value)

public Aggregate.Builder setGroupBytes(ByteString value)

Required. Group by which to aggregate.

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

Parameter
Name Description
value ByteString

The bytes for group to set.

Returns
Type Description
Aggregate.Builder

This builder for chaining.