Class CreateCloudControlRequest.Builder (0.10.0)

public static final class CreateCloudControlRequest.Builder extends GeneratedMessage.Builder<CreateCloudControlRequest.Builder> implements CreateCloudControlRequestOrBuilder

The request message for [CreateCloudControl][].

Protobuf type google.cloud.cloudsecuritycompliance.v1.CreateCloudControlRequest

Static Methods

getDescriptor()

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

Methods

build()

public CreateCloudControlRequest build()
Returns
Type Description
CreateCloudControlRequest

buildPartial()

public CreateCloudControlRequest buildPartial()
Returns
Type Description
CreateCloudControlRequest

clear()

public CreateCloudControlRequest.Builder clear()
Returns
Type Description
CreateCloudControlRequest.Builder
Overrides

clearCloudControl()

public CreateCloudControlRequest.Builder clearCloudControl()

Required. The cloud control that's being created.

.google.cloud.cloudsecuritycompliance.v1.CloudControl cloud_control = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateCloudControlRequest.Builder

clearCloudControlId()

public CreateCloudControlRequest.Builder clearCloudControlId()

Required. The identifier for the cloud control, which is the last segment of the cloud control name. The format is ^a-zA-Z{0,61}[a-zA-Z0-9]$.

string cloud_control_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateCloudControlRequest.Builder

This builder for chaining.

clearParent()

public CreateCloudControlRequest.Builder clearParent()

Required. The parent resource name, in the format organizations/{organization}/locations/{location}. The only supported location is global.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateCloudControlRequest.Builder

This builder for chaining.

getCloudControl()

public CloudControl getCloudControl()

Required. The cloud control that's being created.

.google.cloud.cloudsecuritycompliance.v1.CloudControl cloud_control = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CloudControl

The cloudControl.

getCloudControlBuilder()

public CloudControl.Builder getCloudControlBuilder()

Required. The cloud control that's being created.

.google.cloud.cloudsecuritycompliance.v1.CloudControl cloud_control = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CloudControl.Builder

getCloudControlId()

public String getCloudControlId()

Required. The identifier for the cloud control, which is the last segment of the cloud control name. The format is ^a-zA-Z{0,61}[a-zA-Z0-9]$.

string cloud_control_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The cloudControlId.

getCloudControlIdBytes()

public ByteString getCloudControlIdBytes()

Required. The identifier for the cloud control, which is the last segment of the cloud control name. The format is ^a-zA-Z{0,61}[a-zA-Z0-9]$.

string cloud_control_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for cloudControlId.

getCloudControlOrBuilder()

public CloudControlOrBuilder getCloudControlOrBuilder()

Required. The cloud control that's being created.

.google.cloud.cloudsecuritycompliance.v1.CloudControl cloud_control = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CloudControlOrBuilder

getDefaultInstanceForType()

public CreateCloudControlRequest getDefaultInstanceForType()
Returns
Type Description
CreateCloudControlRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getParent()

public String getParent()

Required. The parent resource name, in the format organizations/{organization}/locations/{location}. The only supported location is global.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent resource name, in the format organizations/{organization}/locations/{location}. The only supported location is global.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

hasCloudControl()

public boolean hasCloudControl()

Required. The cloud control that's being created.

.google.cloud.cloudsecuritycompliance.v1.CloudControl cloud_control = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the cloudControl field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCloudControl(CloudControl value)

public CreateCloudControlRequest.Builder mergeCloudControl(CloudControl value)

Required. The cloud control that's being created.

.google.cloud.cloudsecuritycompliance.v1.CloudControl cloud_control = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value CloudControl
Returns
Type Description
CreateCloudControlRequest.Builder

mergeFrom(CreateCloudControlRequest other)

public CreateCloudControlRequest.Builder mergeFrom(CreateCloudControlRequest other)
Parameter
Name Description
other CreateCloudControlRequest
Returns
Type Description
CreateCloudControlRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateCloudControlRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateCloudControlRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CreateCloudControlRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CreateCloudControlRequest.Builder
Overrides

setCloudControl(CloudControl value)

public CreateCloudControlRequest.Builder setCloudControl(CloudControl value)

Required. The cloud control that's being created.

.google.cloud.cloudsecuritycompliance.v1.CloudControl cloud_control = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value CloudControl
Returns
Type Description
CreateCloudControlRequest.Builder

setCloudControl(CloudControl.Builder builderForValue)

public CreateCloudControlRequest.Builder setCloudControl(CloudControl.Builder builderForValue)

Required. The cloud control that's being created.

.google.cloud.cloudsecuritycompliance.v1.CloudControl cloud_control = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue CloudControl.Builder
Returns
Type Description
CreateCloudControlRequest.Builder

setCloudControlId(String value)

public CreateCloudControlRequest.Builder setCloudControlId(String value)

Required. The identifier for the cloud control, which is the last segment of the cloud control name. The format is ^a-zA-Z{0,61}[a-zA-Z0-9]$.

string cloud_control_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The cloudControlId to set.

Returns
Type Description
CreateCloudControlRequest.Builder

This builder for chaining.

setCloudControlIdBytes(ByteString value)

public CreateCloudControlRequest.Builder setCloudControlIdBytes(ByteString value)

Required. The identifier for the cloud control, which is the last segment of the cloud control name. The format is ^a-zA-Z{0,61}[a-zA-Z0-9]$.

string cloud_control_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for cloudControlId to set.

Returns
Type Description
CreateCloudControlRequest.Builder

This builder for chaining.

setParent(String value)

public CreateCloudControlRequest.Builder setParent(String value)

Required. The parent resource name, in the format organizations/{organization}/locations/{location}. The only supported location is global.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateCloudControlRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateCloudControlRequest.Builder setParentBytes(ByteString value)

Required. The parent resource name, in the format organizations/{organization}/locations/{location}. The only supported location is global.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateCloudControlRequest.Builder

This builder for chaining.