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

SPEC_FIELD_NUMBER

public static final int SPEC_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AlternatePolicySpec getDefaultInstance()
Returns
TypeDescription
AlternatePolicySpec

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static AlternatePolicySpec.Builder newBuilder()
Returns
TypeDescription
AlternatePolicySpec.Builder

newBuilder(AlternatePolicySpec prototype)

public static AlternatePolicySpec.Builder newBuilder(AlternatePolicySpec prototype)
Parameter
NameDescription
prototypeAlternatePolicySpec
Returns
TypeDescription
AlternatePolicySpec.Builder

parseDelimitedFrom(InputStream input)

public static AlternatePolicySpec parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AlternatePolicySpec
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AlternatePolicySpec parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AlternatePolicySpec
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static AlternatePolicySpec parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
AlternatePolicySpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AlternatePolicySpec parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AlternatePolicySpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AlternatePolicySpec parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
AlternatePolicySpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AlternatePolicySpec parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AlternatePolicySpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AlternatePolicySpec parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
AlternatePolicySpec
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AlternatePolicySpec parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AlternatePolicySpec
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static AlternatePolicySpec parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AlternatePolicySpec
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AlternatePolicySpec parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AlternatePolicySpec
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static AlternatePolicySpec parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
AlternatePolicySpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AlternatePolicySpec parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AlternatePolicySpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<AlternatePolicySpec> parser()
Returns
TypeDescription
Parser<AlternatePolicySpec>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public AlternatePolicySpec getDefaultInstanceForType()
Returns
TypeDescription
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
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.

getParserForType()

public Parser<AlternatePolicySpec> getParserForType()
Returns
TypeDescription
Parser<AlternatePolicySpec>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSpec()

public PolicySpec getSpec()

Specify Constraint for configurations of Cloud Platform resources.

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

Returns
TypeDescription
PolicySpec

The spec.

getSpecOrBuilder()

public PolicySpecOrBuilder getSpecOrBuilder()

Specify Constraint for configurations of Cloud Platform resources.

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

Returns
TypeDescription
PolicySpecOrBuilder

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public AlternatePolicySpec.Builder newBuilderForType()
Returns
TypeDescription
AlternatePolicySpec.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AlternatePolicySpec.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
AlternatePolicySpec.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public AlternatePolicySpec.Builder toBuilder()
Returns
TypeDescription
AlternatePolicySpec.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException