Class ApplyCondition.Builder (0.3.0)

public static final class ApplyCondition.Builder extends GeneratedMessage.Builder<ApplyCondition.Builder> implements ApplyConditionOrBuilder

Condition for applying the policy. Accepts the criticality and environment parameters from the application template.

Protobuf type google.cloud.designcenter.v1.ApplyCondition

Static Methods

getDescriptor()

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

Methods

build()

public ApplyCondition build()
Returns
Type Description
ApplyCondition

buildPartial()

public ApplyCondition buildPartial()
Returns
Type Description
ApplyCondition

clear()

public ApplyCondition.Builder clear()
Returns
Type Description
ApplyCondition.Builder
Overrides

clearConditionKey()

public ApplyCondition.Builder clearConditionKey()

Required. The key of the parameter for the condition.

string condition_key = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ApplyCondition.Builder

This builder for chaining.

clearConditionValue()

public ApplyCondition.Builder clearConditionValue()

Required. The value of the parameter for the condition.

string condition_value = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ApplyCondition.Builder

This builder for chaining.

getConditionKey()

public String getConditionKey()

Required. The key of the parameter for the condition.

string condition_key = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The conditionKey.

getConditionKeyBytes()

public ByteString getConditionKeyBytes()

Required. The key of the parameter for the condition.

string condition_key = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for conditionKey.

getConditionValue()

public String getConditionValue()

Required. The value of the parameter for the condition.

string condition_value = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The conditionValue.

getConditionValueBytes()

public ByteString getConditionValueBytes()

Required. The value of the parameter for the condition.

string condition_value = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for conditionValue.

getDefaultInstanceForType()

public ApplyCondition getDefaultInstanceForType()
Returns
Type Description
ApplyCondition

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ApplyCondition other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setConditionKey(String value)

public ApplyCondition.Builder setConditionKey(String value)

Required. The key of the parameter for the condition.

string condition_key = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The conditionKey to set.

Returns
Type Description
ApplyCondition.Builder

This builder for chaining.

setConditionKeyBytes(ByteString value)

public ApplyCondition.Builder setConditionKeyBytes(ByteString value)

Required. The key of the parameter for the condition.

string condition_key = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for conditionKey to set.

Returns
Type Description
ApplyCondition.Builder

This builder for chaining.

setConditionValue(String value)

public ApplyCondition.Builder setConditionValue(String value)

Required. The value of the parameter for the condition.

string condition_value = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The conditionValue to set.

Returns
Type Description
ApplyCondition.Builder

This builder for chaining.

setConditionValueBytes(ByteString value)

public ApplyCondition.Builder setConditionValueBytes(ByteString value)

Required. The value of the parameter for the condition.

string condition_value = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for conditionValue to set.

Returns
Type Description
ApplyCondition.Builder

This builder for chaining.