Class AlternatePolicySpec (2.52.0)

public final class AlternatePolicySpec extends GeneratedMessageV3 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 Fields

LAUNCH_FIELD_NUMBER

public static final int LAUNCH_FIELD_NUMBER
Field Value
Type Description
int

SPEC_FIELD_NUMBER

public static final int SPEC_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AlternatePolicySpec getDefaultInstance()
Returns
Type Description
AlternatePolicySpec

getDescriptor()

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

newBuilder()

public static AlternatePolicySpec.Builder newBuilder()
Returns
Type Description
AlternatePolicySpec.Builder

newBuilder(AlternatePolicySpec prototype)

public static AlternatePolicySpec.Builder newBuilder(AlternatePolicySpec prototype)
Parameter
Name Description
prototype AlternatePolicySpec
Returns
Type Description
AlternatePolicySpec.Builder

parseDelimitedFrom(InputStream input)

public static AlternatePolicySpec parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AlternatePolicySpec
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AlternatePolicySpec parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AlternatePolicySpec
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AlternatePolicySpec parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AlternatePolicySpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AlternatePolicySpec parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AlternatePolicySpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AlternatePolicySpec parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AlternatePolicySpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AlternatePolicySpec parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AlternatePolicySpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AlternatePolicySpec parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AlternatePolicySpec
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AlternatePolicySpec parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AlternatePolicySpec
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AlternatePolicySpec parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AlternatePolicySpec
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AlternatePolicySpec parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AlternatePolicySpec
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AlternatePolicySpec parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AlternatePolicySpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AlternatePolicySpec parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AlternatePolicySpec
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AlternatePolicySpec> parser()
Returns
Type Description
Parser<AlternatePolicySpec>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public AlternatePolicySpec getDefaultInstanceForType()
Returns
Type Description
AlternatePolicySpec

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.

getParserForType()

public Parser<AlternatePolicySpec> getParserForType()
Returns
Type Description
Parser<AlternatePolicySpec>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public AlternatePolicySpec.Builder newBuilderForType()
Returns
Type Description
AlternatePolicySpec.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AlternatePolicySpec.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AlternatePolicySpec.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public AlternatePolicySpec.Builder toBuilder()
Returns
Type Description
AlternatePolicySpec.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException