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.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AlternatePolicySpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public AlternatePolicySpec build()
buildPartial()
public AlternatePolicySpec buildPartial()
clear()
public AlternatePolicySpec.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public AlternatePolicySpec.Builder clearField(Descriptors.FieldDescriptor field)
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;
clearOneof(Descriptors.OneofDescriptor oneof)
public AlternatePolicySpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearSpec()
public AlternatePolicySpec.Builder clearSpec()
Specify constraint for configurations of Google Cloud resources.
.google.cloud.orgpolicy.v2.PolicySpec spec = 2;
clone()
public AlternatePolicySpec.Builder clone()
Overrides
getDefaultInstanceForType()
public AlternatePolicySpec getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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 |
---|
Type | Description |
ByteString | The bytes for launch.
|
getSpec()
public PolicySpec getSpec()
Specify constraint for configurations of Google Cloud resources.
.google.cloud.orgpolicy.v2.PolicySpec spec = 2;
getSpecBuilder()
public PolicySpec.Builder getSpecBuilder()
Specify constraint for configurations of Google Cloud resources.
.google.cloud.orgpolicy.v2.PolicySpec spec = 2;
getSpecOrBuilder()
public PolicySpecOrBuilder getSpecOrBuilder()
Specify constraint for configurations of Google Cloud resources.
.google.cloud.orgpolicy.v2.PolicySpec spec = 2;
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.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(AlternatePolicySpec other)
public AlternatePolicySpec.Builder mergeFrom(AlternatePolicySpec other)
public AlternatePolicySpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public AlternatePolicySpec.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeSpec(PolicySpec value)
public AlternatePolicySpec.Builder mergeSpec(PolicySpec value)
Specify constraint for configurations of Google Cloud resources.
.google.cloud.orgpolicy.v2.PolicySpec spec = 2;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AlternatePolicySpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public AlternatePolicySpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AlternatePolicySpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setSpec(PolicySpec value)
public AlternatePolicySpec.Builder setSpec(PolicySpec value)
Specify constraint for configurations of Google Cloud resources.
.google.cloud.orgpolicy.v2.PolicySpec spec = 2;
setSpec(PolicySpec.Builder builderForValue)
public AlternatePolicySpec.Builder setSpec(PolicySpec.Builder builderForValue)
Specify constraint for configurations of Google Cloud resources.
.google.cloud.orgpolicy.v2.PolicySpec spec = 2;
setUnknownFields(UnknownFieldSet unknownFields)
public final AlternatePolicySpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides