public static final class Trend.Builder extends GeneratedMessage.Builder<Trend.Builder> implements TrendOrBuilderThe trend of a compliance metric.
Protobuf type google.cloud.cloudsecuritycompliance.v1.Trend
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Trend.BuilderImplements
TrendOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Trend build()| Returns | |
|---|---|
| Type | Description |
Trend |
|
buildPartial()
public Trend buildPartial()| Returns | |
|---|---|
| Type | Description |
Trend |
|
clear()
public Trend.Builder clear()| Returns | |
|---|---|
| Type | Description |
Trend.Builder |
|
clearDuration()
public Trend.Builder clearDuration()Output only. The duration for the trend.
.google.protobuf.Duration duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Trend.Builder |
|
clearValuePercent()
public Trend.Builder clearValuePercent()Output only. The trend value as a percentage. The value can be positive or negative.
double value_percent = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Trend.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public Trend getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Trend |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDuration()
public Duration getDuration()Output only. The duration for the trend.
.google.protobuf.Duration duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Duration |
The duration. |
getDurationBuilder()
public Duration.Builder getDurationBuilder()Output only. The duration for the trend.
.google.protobuf.Duration duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getDurationOrBuilder()
public DurationOrBuilder getDurationOrBuilder()Output only. The duration for the trend.
.google.protobuf.Duration duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
DurationOrBuilder |
|
getValuePercent()
public double getValuePercent()Output only. The trend value as a percentage. The value can be positive or negative.
double value_percent = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
double |
The valuePercent. |
hasDuration()
public boolean hasDuration()Output only. The duration for the trend.
.google.protobuf.Duration duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the duration field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeDuration(Duration value)
public Trend.Builder mergeDuration(Duration value)Output only. The duration for the trend.
.google.protobuf.Duration duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
Trend.Builder |
|
mergeFrom(Trend other)
public Trend.Builder mergeFrom(Trend other)| Parameter | |
|---|---|
| Name | Description |
other |
Trend |
| Returns | |
|---|---|
| Type | Description |
Trend.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Trend.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Trend.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Trend.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Trend.Builder |
|
setDuration(Duration value)
public Trend.Builder setDuration(Duration value)Output only. The duration for the trend.
.google.protobuf.Duration duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
Trend.Builder |
|
setDuration(Duration.Builder builderForValue)
public Trend.Builder setDuration(Duration.Builder builderForValue)Output only. The duration for the trend.
.google.protobuf.Duration duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Trend.Builder |
|
setValuePercent(double value)
public Trend.Builder setValuePercent(double value)Output only. The trend value as a percentage. The value can be positive or negative.
double value_percent = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
doubleThe valuePercent to set. |
| Returns | |
|---|---|
| Type | Description |
Trend.Builder |
This builder for chaining. |