Class TimedCount.Builder (0.162.0-beta)

public static final class TimedCount.Builder extends GeneratedMessageV3.Builder<TimedCount.Builder> implements TimedCountOrBuilder

The number of errors in a given time period. All numbers are approximate since the error events are sampled before counting them.

Protobuf type google.devtools.clouderrorreporting.v1beta1.TimedCount

Implements

TimedCountOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TimedCount build()
Returns
TypeDescription
TimedCount

buildPartial()

public TimedCount buildPartial()
Returns
TypeDescription
TimedCount

clear()

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

clearCount()

public TimedCount.Builder clearCount()

Approximate number of occurrences in the given time period.

int64 count = 1;

Returns
TypeDescription
TimedCount.Builder

This builder for chaining.

clearEndTime()

public TimedCount.Builder clearEndTime()

End of the time period to which count refers (excluded).

.google.protobuf.Timestamp end_time = 3;

Returns
TypeDescription
TimedCount.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStartTime()

public TimedCount.Builder clearStartTime()

Start of the time period to which count refers (included).

.google.protobuf.Timestamp start_time = 2;

Returns
TypeDescription
TimedCount.Builder

clone()

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

getCount()

public long getCount()

Approximate number of occurrences in the given time period.

int64 count = 1;

Returns
TypeDescription
long

The count.

getDefaultInstanceForType()

public TimedCount getDefaultInstanceForType()
Returns
TypeDescription
TimedCount

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEndTime()

public Timestamp getEndTime()

End of the time period to which count refers (excluded).

.google.protobuf.Timestamp end_time = 3;

Returns
TypeDescription
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

End of the time period to which count refers (excluded).

.google.protobuf.Timestamp end_time = 3;

Returns
TypeDescription
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

End of the time period to which count refers (excluded).

.google.protobuf.Timestamp end_time = 3;

Returns
TypeDescription
TimestampOrBuilder

getStartTime()

public Timestamp getStartTime()

Start of the time period to which count refers (included).

.google.protobuf.Timestamp start_time = 2;

Returns
TypeDescription
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Start of the time period to which count refers (included).

.google.protobuf.Timestamp start_time = 2;

Returns
TypeDescription
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Start of the time period to which count refers (included).

.google.protobuf.Timestamp start_time = 2;

Returns
TypeDescription
TimestampOrBuilder

hasEndTime()

public boolean hasEndTime()

End of the time period to which count refers (excluded).

.google.protobuf.Timestamp end_time = 3;

Returns
TypeDescription
boolean

Whether the endTime field is set.

hasStartTime()

public boolean hasStartTime()

Start of the time period to which count refers (included).

.google.protobuf.Timestamp start_time = 2;

Returns
TypeDescription
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeEndTime(Timestamp value)

public TimedCount.Builder mergeEndTime(Timestamp value)

End of the time period to which count refers (excluded).

.google.protobuf.Timestamp end_time = 3;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
TimedCount.Builder

mergeFrom(TimedCount other)

public TimedCount.Builder mergeFrom(TimedCount other)
Parameter
NameDescription
otherTimedCount
Returns
TypeDescription
TimedCount.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStartTime(Timestamp value)

public TimedCount.Builder mergeStartTime(Timestamp value)

Start of the time period to which count refers (included).

.google.protobuf.Timestamp start_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
TimedCount.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCount(long value)

public TimedCount.Builder setCount(long value)

Approximate number of occurrences in the given time period.

int64 count = 1;

Parameter
NameDescription
valuelong

The count to set.

Returns
TypeDescription
TimedCount.Builder

This builder for chaining.

setEndTime(Timestamp value)

public TimedCount.Builder setEndTime(Timestamp value)

End of the time period to which count refers (excluded).

.google.protobuf.Timestamp end_time = 3;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
TimedCount.Builder

setEndTime(Timestamp.Builder builderForValue)

public TimedCount.Builder setEndTime(Timestamp.Builder builderForValue)

End of the time period to which count refers (excluded).

.google.protobuf.Timestamp end_time = 3;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
TimedCount.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setStartTime(Timestamp value)

public TimedCount.Builder setStartTime(Timestamp value)

Start of the time period to which count refers (included).

.google.protobuf.Timestamp start_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
TimedCount.Builder

setStartTime(Timestamp.Builder builderForValue)

public TimedCount.Builder setStartTime(Timestamp.Builder builderForValue)

Start of the time period to which count refers (included).

.google.protobuf.Timestamp start_time = 2;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
TimedCount.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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