Class TimedCount (0.145.0-beta)

public final class TimedCount extends GeneratedMessageV3 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 Fields

COUNT_FIELD_NUMBER

public static final int COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

END_TIME_FIELD_NUMBER

public static final int END_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

START_TIME_FIELD_NUMBER

public static final int START_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static TimedCount getDefaultInstance()
Returns
TypeDescription
TimedCount

getDescriptor()

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

newBuilder()

public static TimedCount.Builder newBuilder()
Returns
TypeDescription
TimedCount.Builder

newBuilder(TimedCount prototype)

public static TimedCount.Builder newBuilder(TimedCount prototype)
Parameter
NameDescription
prototypeTimedCount
Returns
TypeDescription
TimedCount.Builder

parseDelimitedFrom(InputStream input)

public static TimedCount parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TimedCount
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TimedCount parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TimedCount
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static TimedCount parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
TimedCount
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TimedCount parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TimedCount
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TimedCount parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
TimedCount
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TimedCount parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TimedCount
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TimedCount parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
TimedCount
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TimedCount parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TimedCount
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static TimedCount parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TimedCount
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TimedCount parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TimedCount
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static TimedCount parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
TimedCount
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TimedCount parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TimedCount
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<TimedCount> parser()
Returns
TypeDescription
Parser<TimedCount>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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

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.

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

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

.google.protobuf.Timestamp end_time = 3;

Returns
TypeDescription
TimestampOrBuilder

getParserForType()

public Parser<TimedCount> getParserForType()
Returns
TypeDescription
Parser<TimedCount>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public TimedCount.Builder newBuilderForType()
Returns
TypeDescription
TimedCount.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TimedCount.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
TimedCount.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public TimedCount.Builder toBuilder()
Returns
TypeDescription
TimedCount.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException