Class AlternatePolicySpec.Builder (2.18.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AlternatePolicySpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AlternatePolicySpec.Builder
Overrides

build()

public AlternatePolicySpec build()
Returns
TypeDescription
AlternatePolicySpec

buildPartial()

public AlternatePolicySpec buildPartial()
Returns
TypeDescription
AlternatePolicySpec

clear()

public AlternatePolicySpec.Builder clear()
Returns
TypeDescription
AlternatePolicySpec.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public AlternatePolicySpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
AlternatePolicySpec.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AlternatePolicySpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AlternatePolicySpec.Builder
Overrides

clearSpec()

public AlternatePolicySpec.Builder clearSpec()

Specify Constraint for configurations of Cloud Platform resources.

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

Returns
TypeDescription
AlternatePolicySpec.Builder

clone()

public AlternatePolicySpec.Builder clone()
Returns
TypeDescription
AlternatePolicySpec.Builder
Overrides

getDefaultInstanceForType()

public AlternatePolicySpec getDefaultInstanceForType()
Returns
TypeDescription
AlternatePolicySpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for launch.

getSpec()

public PolicySpec getSpec()

Specify Constraint for configurations of Cloud Platform resources.

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

Returns
TypeDescription
PolicySpec

The spec.

getSpecBuilder()

public PolicySpec.Builder getSpecBuilder()

Specify Constraint for configurations of Cloud Platform resources.

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

Returns
TypeDescription
PolicySpec.Builder

getSpecOrBuilder()

public PolicySpecOrBuilder getSpecOrBuilder()

Specify Constraint for configurations of Cloud Platform resources.

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

Returns
TypeDescription
PolicySpecOrBuilder

hasSpec()

public boolean hasSpec()

Specify Constraint for configurations of Cloud Platform resources.

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

Returns
TypeDescription
boolean

Whether the spec field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AlternatePolicySpec other)

public AlternatePolicySpec.Builder mergeFrom(AlternatePolicySpec other)
Parameter
NameDescription
otherAlternatePolicySpec
Returns
TypeDescription
AlternatePolicySpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AlternatePolicySpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AlternatePolicySpec.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AlternatePolicySpec.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AlternatePolicySpec.Builder
Overrides

mergeSpec(PolicySpec value)

public AlternatePolicySpec.Builder mergeSpec(PolicySpec value)

Specify Constraint for configurations of Cloud Platform resources.

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

Parameter
NameDescription
valuePolicySpec
Returns
TypeDescription
AlternatePolicySpec.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AlternatePolicySpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AlternatePolicySpec.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public AlternatePolicySpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The launch to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for launch to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AlternatePolicySpec.Builder
Overrides

setSpec(PolicySpec value)

public AlternatePolicySpec.Builder setSpec(PolicySpec value)

Specify Constraint for configurations of Cloud Platform resources.

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

Parameter
NameDescription
valuePolicySpec
Returns
TypeDescription
AlternatePolicySpec.Builder

setSpec(PolicySpec.Builder builderForValue)

public AlternatePolicySpec.Builder setSpec(PolicySpec.Builder builderForValue)

Specify Constraint for configurations of Cloud Platform resources.

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

Parameter
NameDescription
builderForValuePolicySpec.Builder
Returns
TypeDescription
AlternatePolicySpec.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final AlternatePolicySpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AlternatePolicySpec.Builder
Overrides