public static final class MaintenanceSummary.Stats.Builder extends GeneratedMessage.Builder<MaintenanceSummary.Stats.Builder> implements MaintenanceSummary.StatsOrBuilderStats indicates the type of aggregate and the corresponding aggregates.
Protobuf type google.cloud.maintenance.api.v1.MaintenanceSummary.Stats
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > MaintenanceSummary.Stats.BuilderImplements
MaintenanceSummary.StatsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAggregates(MaintenanceSummary.Aggregate value)
public MaintenanceSummary.Stats.Builder addAggregates(MaintenanceSummary.Aggregate value) Aggregates is a list <group, count> pairs. For example, if the
group_by is "state" a possible tuple in the aggregates list could be
"SCHEDULED" : 11,
repeated .google.cloud.maintenance.api.v1.MaintenanceSummary.Aggregate aggregates = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
MaintenanceSummary.Aggregate |
| Returns | |
|---|---|
| Type | Description |
MaintenanceSummary.Stats.Builder |
|
addAggregates(MaintenanceSummary.Aggregate.Builder builderForValue)
public MaintenanceSummary.Stats.Builder addAggregates(MaintenanceSummary.Aggregate.Builder builderForValue) Aggregates is a list <group, count> pairs. For example, if the
group_by is "state" a possible tuple in the aggregates list could be
"SCHEDULED" : 11,
repeated .google.cloud.maintenance.api.v1.MaintenanceSummary.Aggregate aggregates = 2;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
MaintenanceSummary.Aggregate.Builder |
| Returns | |
|---|---|
| Type | Description |
MaintenanceSummary.Stats.Builder |
|
addAggregates(int index, MaintenanceSummary.Aggregate value)
public MaintenanceSummary.Stats.Builder addAggregates(int index, MaintenanceSummary.Aggregate value) Aggregates is a list <group, count> pairs. For example, if the
group_by is "state" a possible tuple in the aggregates list could be
"SCHEDULED" : 11,
repeated .google.cloud.maintenance.api.v1.MaintenanceSummary.Aggregate aggregates = 2;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
MaintenanceSummary.Aggregate |
| Returns | |
|---|---|
| Type | Description |
MaintenanceSummary.Stats.Builder |
|
addAggregates(int index, MaintenanceSummary.Aggregate.Builder builderForValue)
public MaintenanceSummary.Stats.Builder addAggregates(int index, MaintenanceSummary.Aggregate.Builder builderForValue) Aggregates is a list <group, count> pairs. For example, if the
group_by is "state" a possible tuple in the aggregates list could be
"SCHEDULED" : 11,
repeated .google.cloud.maintenance.api.v1.MaintenanceSummary.Aggregate aggregates = 2;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
MaintenanceSummary.Aggregate.Builder |
| Returns | |
|---|---|
| Type | Description |
MaintenanceSummary.Stats.Builder |
|
addAggregatesBuilder()
public MaintenanceSummary.Aggregate.Builder addAggregatesBuilder() Aggregates is a list <group, count> pairs. For example, if the
group_by is "state" a possible tuple in the aggregates list could be
"SCHEDULED" : 11,
repeated .google.cloud.maintenance.api.v1.MaintenanceSummary.Aggregate aggregates = 2;
| Returns | |
|---|---|
| Type | Description |
MaintenanceSummary.Aggregate.Builder |
|
addAggregatesBuilder(int index)
public MaintenanceSummary.Aggregate.Builder addAggregatesBuilder(int index) Aggregates is a list <group, count> pairs. For example, if the
group_by is "state" a possible tuple in the aggregates list could be
"SCHEDULED" : 11,
repeated .google.cloud.maintenance.api.v1.MaintenanceSummary.Aggregate aggregates = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
MaintenanceSummary.Aggregate.Builder |
|
addAllAggregates(Iterable<? extends MaintenanceSummary.Aggregate> values)
public MaintenanceSummary.Stats.Builder addAllAggregates(Iterable<? extends MaintenanceSummary.Aggregate> values) Aggregates is a list <group, count> pairs. For example, if the
group_by is "state" a possible tuple in the aggregates list could be
"SCHEDULED" : 11,
repeated .google.cloud.maintenance.api.v1.MaintenanceSummary.Aggregate aggregates = 2;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.maintenance.api.v1.MaintenanceSummary.Aggregate> |
| Returns | |
|---|---|
| Type | Description |
MaintenanceSummary.Stats.Builder |
|
build()
public MaintenanceSummary.Stats build()| Returns | |
|---|---|
| Type | Description |
MaintenanceSummary.Stats |
|
buildPartial()
public MaintenanceSummary.Stats buildPartial()| Returns | |
|---|---|
| Type | Description |
MaintenanceSummary.Stats |
|
clear()
public MaintenanceSummary.Stats.Builder clear()| Returns | |
|---|---|
| Type | Description |
MaintenanceSummary.Stats.Builder |
|
clearAggregates()
public MaintenanceSummary.Stats.Builder clearAggregates() Aggregates is a list <group, count> pairs. For example, if the
group_by is "state" a possible tuple in the aggregates list could be
"SCHEDULED" : 11,
repeated .google.cloud.maintenance.api.v1.MaintenanceSummary.Aggregate aggregates = 2;
| Returns | |
|---|---|
| Type | Description |
MaintenanceSummary.Stats.Builder |
|
clearGroupBy()
public MaintenanceSummary.Stats.Builder clearGroupBy() groupBy specifies the type of aggregate.
For example a group_by might be "state"
string group_by = 1;
| Returns | |
|---|---|
| Type | Description |
MaintenanceSummary.Stats.Builder |
This builder for chaining. |
getAggregates(int index)
public MaintenanceSummary.Aggregate getAggregates(int index) Aggregates is a list <group, count> pairs. For example, if the
group_by is "state" a possible tuple in the aggregates list could be
"SCHEDULED" : 11,
repeated .google.cloud.maintenance.api.v1.MaintenanceSummary.Aggregate aggregates = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
MaintenanceSummary.Aggregate |
|
getAggregatesBuilder(int index)
public MaintenanceSummary.Aggregate.Builder getAggregatesBuilder(int index) Aggregates is a list <group, count> pairs. For example, if the
group_by is "state" a possible tuple in the aggregates list could be
"SCHEDULED" : 11,
repeated .google.cloud.maintenance.api.v1.MaintenanceSummary.Aggregate aggregates = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
MaintenanceSummary.Aggregate.Builder |
|
getAggregatesBuilderList()
public List<MaintenanceSummary.Aggregate.Builder> getAggregatesBuilderList() Aggregates is a list <group, count> pairs. For example, if the
group_by is "state" a possible tuple in the aggregates list could be
"SCHEDULED" : 11,
repeated .google.cloud.maintenance.api.v1.MaintenanceSummary.Aggregate aggregates = 2;
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getAggregatesCount()
public int getAggregatesCount() Aggregates is a list <group, count> pairs. For example, if the
group_by is "state" a possible tuple in the aggregates list could be
"SCHEDULED" : 11,
repeated .google.cloud.maintenance.api.v1.MaintenanceSummary.Aggregate aggregates = 2;
| Returns | |
|---|---|
| Type | Description |
int |
|
getAggregatesList()
public List<MaintenanceSummary.Aggregate> getAggregatesList() Aggregates is a list <group, count> pairs. For example, if the
group_by is "state" a possible tuple in the aggregates list could be
"SCHEDULED" : 11,
repeated .google.cloud.maintenance.api.v1.MaintenanceSummary.Aggregate aggregates = 2;
| Returns | |
|---|---|
| Type | Description |
List<Aggregate> |
|
getAggregatesOrBuilder(int index)
public MaintenanceSummary.AggregateOrBuilder getAggregatesOrBuilder(int index) Aggregates is a list <group, count> pairs. For example, if the
group_by is "state" a possible tuple in the aggregates list could be
"SCHEDULED" : 11,
repeated .google.cloud.maintenance.api.v1.MaintenanceSummary.Aggregate aggregates = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
MaintenanceSummary.AggregateOrBuilder |
|
getAggregatesOrBuilderList()
public List<? extends MaintenanceSummary.AggregateOrBuilder> getAggregatesOrBuilderList() Aggregates is a list <group, count> pairs. For example, if the
group_by is "state" a possible tuple in the aggregates list could be
"SCHEDULED" : 11,
repeated .google.cloud.maintenance.api.v1.MaintenanceSummary.Aggregate aggregates = 2;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.maintenance.api.v1.MaintenanceSummary.AggregateOrBuilder> |
|
getDefaultInstanceForType()
public MaintenanceSummary.Stats getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
MaintenanceSummary.Stats |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getGroupBy()
public String getGroupBy() groupBy specifies the type of aggregate.
For example a group_by might be "state"
string group_by = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The groupBy. |
getGroupByBytes()
public ByteString getGroupByBytes() groupBy specifies the type of aggregate.
For example a group_by might be "state"
string group_by = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for groupBy. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(MaintenanceSummary.Stats other)
public MaintenanceSummary.Stats.Builder mergeFrom(MaintenanceSummary.Stats other)| Parameter | |
|---|---|
| Name | Description |
other |
MaintenanceSummary.Stats |
| Returns | |
|---|---|
| Type | Description |
MaintenanceSummary.Stats.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public MaintenanceSummary.Stats.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
MaintenanceSummary.Stats.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public MaintenanceSummary.Stats.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
MaintenanceSummary.Stats.Builder |
|
removeAggregates(int index)
public MaintenanceSummary.Stats.Builder removeAggregates(int index) Aggregates is a list <group, count> pairs. For example, if the
group_by is "state" a possible tuple in the aggregates list could be
"SCHEDULED" : 11,
repeated .google.cloud.maintenance.api.v1.MaintenanceSummary.Aggregate aggregates = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
MaintenanceSummary.Stats.Builder |
|
setAggregates(int index, MaintenanceSummary.Aggregate value)
public MaintenanceSummary.Stats.Builder setAggregates(int index, MaintenanceSummary.Aggregate value) Aggregates is a list <group, count> pairs. For example, if the
group_by is "state" a possible tuple in the aggregates list could be
"SCHEDULED" : 11,
repeated .google.cloud.maintenance.api.v1.MaintenanceSummary.Aggregate aggregates = 2;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
MaintenanceSummary.Aggregate |
| Returns | |
|---|---|
| Type | Description |
MaintenanceSummary.Stats.Builder |
|
setAggregates(int index, MaintenanceSummary.Aggregate.Builder builderForValue)
public MaintenanceSummary.Stats.Builder setAggregates(int index, MaintenanceSummary.Aggregate.Builder builderForValue) Aggregates is a list <group, count> pairs. For example, if the
group_by is "state" a possible tuple in the aggregates list could be
"SCHEDULED" : 11,
repeated .google.cloud.maintenance.api.v1.MaintenanceSummary.Aggregate aggregates = 2;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
MaintenanceSummary.Aggregate.Builder |
| Returns | |
|---|---|
| Type | Description |
MaintenanceSummary.Stats.Builder |
|
setGroupBy(String value)
public MaintenanceSummary.Stats.Builder setGroupBy(String value) groupBy specifies the type of aggregate.
For example a group_by might be "state"
string group_by = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe groupBy to set. |
| Returns | |
|---|---|
| Type | Description |
MaintenanceSummary.Stats.Builder |
This builder for chaining. |
setGroupByBytes(ByteString value)
public MaintenanceSummary.Stats.Builder setGroupByBytes(ByteString value) groupBy specifies the type of aggregate.
For example a group_by might be "state"
string group_by = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for groupBy to set. |
| Returns | |
|---|---|
| Type | Description |
MaintenanceSummary.Stats.Builder |
This builder for chaining. |