Send feedback
Class AlternatePolicySpec (2.3.7-SNAPSHOT)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.3.7-SNAPSHOT keyboard_arrow_down
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
SPEC_FIELD_NUMBER
public static final int SPEC_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static AlternatePolicySpec getDefaultInstance ()
Returns
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
newBuilder()
public static AlternatePolicySpec . Builder newBuilder ()
Returns
newBuilder(AlternatePolicySpec prototype)
public static AlternatePolicySpec . Builder newBuilder ( AlternatePolicySpec prototype )
Parameter
Returns
public static AlternatePolicySpec parseDelimitedFrom ( InputStream input )
Parameter
Returns
Exceptions
public static AlternatePolicySpec parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static AlternatePolicySpec parseFrom ( byte [] data )
Parameter
Name Description data byte []
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AlternatePolicySpec parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static AlternatePolicySpec parseFrom ( ByteString data )
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AlternatePolicySpec parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static AlternatePolicySpec parseFrom ( CodedInputStream input )
Parameter
Returns
Exceptions
public static AlternatePolicySpec parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static AlternatePolicySpec parseFrom ( InputStream input )
Parameter
Returns
Exceptions
public static AlternatePolicySpec parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static AlternatePolicySpec parseFrom ( ByteBuffer data )
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AlternatePolicySpec parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parser()
public static Parser<AlternatePolicySpec> parser ()
Returns
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Returns
Overrides
getDefaultInstanceForType()
public AlternatePolicySpec getDefaultInstanceForType ()
Returns
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
getParserForType()
public Parser<AlternatePolicySpec> getParserForType ()
Returns
Overrides
getSerializedSize()
public int getSerializedSize ()
Returns
Overrides
getSpec()
public PolicySpec getSpec ()
Specify Constraint
for configurations of Cloud Platform resources.
.google.cloud.orgpolicy.v2.PolicySpec spec = 2;
Returns
getSpecOrBuilder()
public PolicySpecOrBuilder getSpecOrBuilder ()
Specify Constraint
for configurations of Cloud Platform resources.
.google.cloud.orgpolicy.v2.PolicySpec spec = 2;
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields ()
Returns
Overrides
hasSpec()
Specify Constraint
for configurations of Cloud Platform resources.
.google.cloud.orgpolicy.v2.PolicySpec spec = 2;
Returns
Type Description boolean Whether the spec field is set.
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
newBuilderForType()
public AlternatePolicySpec . Builder newBuilderForType ()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AlternatePolicySpec . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Parameter
Returns
Overrides
toBuilder()
public AlternatePolicySpec . Builder toBuilder ()
Returns
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Parameter
Overrides
Exceptions
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]