Class AggregatedMetrics.ToolMetrics.Builder (0.3.0)

public static final class AggregatedMetrics.ToolMetrics.Builder extends GeneratedMessage.Builder<AggregatedMetrics.ToolMetrics.Builder> implements AggregatedMetrics.ToolMetricsOrBuilder

Metrics for a single tool.

Protobuf type google.cloud.ces.v1beta.AggregatedMetrics.ToolMetrics

Static Methods

getDescriptor()

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

Methods

build()

public AggregatedMetrics.ToolMetrics build()
Returns
Type Description
AggregatedMetrics.ToolMetrics

buildPartial()

public AggregatedMetrics.ToolMetrics buildPartial()
Returns
Type Description
AggregatedMetrics.ToolMetrics

clear()

public AggregatedMetrics.ToolMetrics.Builder clear()
Returns
Type Description
AggregatedMetrics.ToolMetrics.Builder
Overrides

clearFailCount()

public AggregatedMetrics.ToolMetrics.Builder clearFailCount()

Output only. The number of times the tool failed.

int32 fail_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AggregatedMetrics.ToolMetrics.Builder

This builder for chaining.

clearPassCount()

public AggregatedMetrics.ToolMetrics.Builder clearPassCount()

Output only. The number of times the tool passed.

int32 pass_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AggregatedMetrics.ToolMetrics.Builder

This builder for chaining.

clearTool()

public AggregatedMetrics.ToolMetrics.Builder clearTool()

Output only. The name of the tool.

string tool = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
AggregatedMetrics.ToolMetrics.Builder

This builder for chaining.

getDefaultInstanceForType()

public AggregatedMetrics.ToolMetrics getDefaultInstanceForType()
Returns
Type Description
AggregatedMetrics.ToolMetrics

getDescriptorForType()

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

getFailCount()

public int getFailCount()

Output only. The number of times the tool failed.

int32 fail_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The failCount.

getPassCount()

public int getPassCount()

Output only. The number of times the tool passed.

int32 pass_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The passCount.

getTool()

public String getTool()

Output only. The name of the tool.

string tool = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The tool.

getToolBytes()

public ByteString getToolBytes()

Output only. The name of the tool.

string tool = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for tool.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AggregatedMetrics.ToolMetrics other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setFailCount(int value)

public AggregatedMetrics.ToolMetrics.Builder setFailCount(int value)

Output only. The number of times the tool failed.

int32 fail_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The failCount to set.

Returns
Type Description
AggregatedMetrics.ToolMetrics.Builder

This builder for chaining.

setPassCount(int value)

public AggregatedMetrics.ToolMetrics.Builder setPassCount(int value)

Output only. The number of times the tool passed.

int32 pass_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The passCount to set.

Returns
Type Description
AggregatedMetrics.ToolMetrics.Builder

This builder for chaining.

setTool(String value)

public AggregatedMetrics.ToolMetrics.Builder setTool(String value)

Output only. The name of the tool.

string tool = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The tool to set.

Returns
Type Description
AggregatedMetrics.ToolMetrics.Builder

This builder for chaining.

setToolBytes(ByteString value)

public AggregatedMetrics.ToolMetrics.Builder setToolBytes(ByteString value)

Output only. The name of the tool.

string tool = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for tool to set.

Returns
Type Description
AggregatedMetrics.ToolMetrics.Builder

This builder for chaining.