Interface Service.UpdatePolicyRequestOrBuilder (1.15.0)

public static interface Service.UpdatePolicyRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getPolicy()

public abstract Resources.Policy getPolicy()

Required. A new or updated policy value. The service will overwrite the policy name field with the resource name in the request URL, in the format projects/*/policy.

.google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Resources.Policy

The policy.

getPolicyOrBuilder()

public abstract Resources.PolicyOrBuilder getPolicyOrBuilder()

Required. A new or updated policy value. The service will overwrite the policy name field with the resource name in the request URL, in the format projects/*/policy.

.google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Resources.PolicyOrBuilder

hasPolicy()

public abstract boolean hasPolicy()

Required. A new or updated policy value. The service will overwrite the policy name field with the resource name in the request URL, in the format projects/*/policy.

.google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the policy field is set.