Class AlternatePolicySpec.Builder (2.44.0)

public static final class AlternatePolicySpec.Builder extends GeneratedMessageV3.Builder<AlternatePolicySpec.Builder> implements AlternatePolicySpecOrBuilder

Similar to PolicySpec but with an extra 'launch' field for launch reference. The PolicySpec here is specific for dry-run/darklaunch.

Protobuf type google.cloud.orgpolicy.v2.AlternatePolicySpec

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AlternatePolicySpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AlternatePolicySpec.Builder
Overrides

build()

public AlternatePolicySpec build()
Returns
Type Description
AlternatePolicySpec

buildPartial()

public AlternatePolicySpec buildPartial()
Returns
Type Description
AlternatePolicySpec

clear()

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

clearField(Descriptors.FieldDescriptor field)

public AlternatePolicySpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AlternatePolicySpec.Builder
Overrides

clearLaunch()

public AlternatePolicySpec.Builder clearLaunch()

Reference to the launch that will be used while audit logging and to control the launch. Should be set only in the alternate policy.

string launch = 1;

Returns
Type Description
AlternatePolicySpec.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AlternatePolicySpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AlternatePolicySpec.Builder
Overrides

clearSpec()

public AlternatePolicySpec.Builder clearSpec()

Specify constraint for configurations of Google Cloud resources.

.google.cloud.orgpolicy.v2.PolicySpec spec = 2;

Returns
Type Description
AlternatePolicySpec.Builder

clone()

public AlternatePolicySpec.Builder clone()
Returns
Type Description
AlternatePolicySpec.Builder
Overrides

getDefaultInstanceForType()

public AlternatePolicySpec getDefaultInstanceForType()
Returns
Type Description
AlternatePolicySpec

getDescriptorForType()

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

getLaunch()

public String getLaunch()

Reference to the launch that will be used while audit logging and to control the launch. Should be set only in the alternate policy.

string launch = 1;

Returns
Type Description
String

The launch.

getLaunchBytes()

public ByteString getLaunchBytes()

Reference to the launch that will be used while audit logging and to control the launch. Should be set only in the alternate policy.

string launch = 1;

Returns
Type Description
ByteString

The bytes for launch.

getSpec()

public PolicySpec getSpec()

Specify constraint for configurations of Google Cloud resources.

.google.cloud.orgpolicy.v2.PolicySpec spec = 2;

Returns
Type Description
PolicySpec

The spec.

getSpecBuilder()

public PolicySpec.Builder getSpecBuilder()

Specify constraint for configurations of Google Cloud resources.

.google.cloud.orgpolicy.v2.PolicySpec spec = 2;

Returns
Type Description
PolicySpec.Builder

getSpecOrBuilder()

public PolicySpecOrBuilder getSpecOrBuilder()

Specify constraint for configurations of Google Cloud resources.

.google.cloud.orgpolicy.v2.PolicySpec spec = 2;

Returns
Type Description
PolicySpecOrBuilder

hasSpec()

public boolean hasSpec()

Specify constraint for configurations of Google Cloud resources.

.google.cloud.orgpolicy.v2.PolicySpec spec = 2;

Returns
Type Description
boolean

Whether the spec field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AlternatePolicySpec other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSpec(PolicySpec value)

public AlternatePolicySpec.Builder mergeSpec(PolicySpec value)

Specify constraint for configurations of Google Cloud resources.

.google.cloud.orgpolicy.v2.PolicySpec spec = 2;

Parameter
Name Description
value PolicySpec
Returns
Type Description
AlternatePolicySpec.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AlternatePolicySpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AlternatePolicySpec.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public AlternatePolicySpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AlternatePolicySpec.Builder
Overrides

setLaunch(String value)

public AlternatePolicySpec.Builder setLaunch(String value)

Reference to the launch that will be used while audit logging and to control the launch. Should be set only in the alternate policy.

string launch = 1;

Parameter
Name Description
value String

The launch to set.

Returns
Type Description
AlternatePolicySpec.Builder

This builder for chaining.

setLaunchBytes(ByteString value)

public AlternatePolicySpec.Builder setLaunchBytes(ByteString value)

Reference to the launch that will be used while audit logging and to control the launch. Should be set only in the alternate policy.

string launch = 1;

Parameter
Name Description
value ByteString

The bytes for launch to set.

Returns
Type Description
AlternatePolicySpec.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AlternatePolicySpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AlternatePolicySpec.Builder
Overrides

setSpec(PolicySpec value)

public AlternatePolicySpec.Builder setSpec(PolicySpec value)

Specify constraint for configurations of Google Cloud resources.

.google.cloud.orgpolicy.v2.PolicySpec spec = 2;

Parameter
Name Description
value PolicySpec
Returns
Type Description
AlternatePolicySpec.Builder

setSpec(PolicySpec.Builder builderForValue)

public AlternatePolicySpec.Builder setSpec(PolicySpec.Builder builderForValue)

Specify constraint for configurations of Google Cloud resources.

.google.cloud.orgpolicy.v2.PolicySpec spec = 2;

Parameter
Name Description
builderForValue PolicySpec.Builder
Returns
Type Description
AlternatePolicySpec.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final AlternatePolicySpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AlternatePolicySpec.Builder
Overrides