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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AlternatePolicySpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public AlternatePolicySpec build()
Returns
buildPartial()
public AlternatePolicySpec buildPartial()
Returns
clear()
public AlternatePolicySpec.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public AlternatePolicySpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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
clearOneof(Descriptors.OneofDescriptor oneof)
public AlternatePolicySpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearSpec()
public AlternatePolicySpec.Builder clearSpec()
Specify Constraint
for configurations of Cloud Platform resources.
.google.cloud.orgpolicy.v2.PolicySpec spec = 2;
Returns
clone()
public AlternatePolicySpec.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public AlternatePolicySpec getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
getSpec()
public PolicySpec getSpec()
Specify Constraint
for configurations of Cloud Platform resources.
.google.cloud.orgpolicy.v2.PolicySpec spec = 2;
Returns
getSpecBuilder()
public PolicySpec.Builder getSpecBuilder()
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
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.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(AlternatePolicySpec other)
public AlternatePolicySpec.Builder mergeFrom(AlternatePolicySpec other)
Parameter
Returns
public AlternatePolicySpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public AlternatePolicySpec.Builder mergeFrom(Message other)
Parameter
Returns
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
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AlternatePolicySpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public AlternatePolicySpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AlternatePolicySpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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
Returns
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
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final AlternatePolicySpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides