Class RestrictAllowedResourcesRequest.Builder (2.27.0)

public static final class RestrictAllowedResourcesRequest.Builder extends GeneratedMessageV3.Builder<RestrictAllowedResourcesRequest.Builder> implements RestrictAllowedResourcesRequestOrBuilder

Request for restricting list of available resources in Workload environment.

Protobuf type google.cloud.assuredworkloads.v1.RestrictAllowedResourcesRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RestrictAllowedResourcesRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RestrictAllowedResourcesRequest.Builder
Overrides

build()

public RestrictAllowedResourcesRequest build()
Returns
TypeDescription
RestrictAllowedResourcesRequest

buildPartial()

public RestrictAllowedResourcesRequest buildPartial()
Returns
TypeDescription
RestrictAllowedResourcesRequest

clear()

public RestrictAllowedResourcesRequest.Builder clear()
Returns
TypeDescription
RestrictAllowedResourcesRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public RestrictAllowedResourcesRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
RestrictAllowedResourcesRequest.Builder
Overrides

clearName()

public RestrictAllowedResourcesRequest.Builder clearName()

Required. The resource name of the Workload. This is the workloads's relative path in the API, formatted as "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For example, "organizations/123/locations/us-east1/workloads/assured-workload-1".

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
RestrictAllowedResourcesRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public RestrictAllowedResourcesRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
RestrictAllowedResourcesRequest.Builder
Overrides

clearRestrictionType()

public RestrictAllowedResourcesRequest.Builder clearRestrictionType()

Required. The type of restriction for using gcp products in the Workload environment.

.google.cloud.assuredworkloads.v1.RestrictAllowedResourcesRequest.RestrictionType restriction_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
RestrictAllowedResourcesRequest.Builder

This builder for chaining.

clone()

public RestrictAllowedResourcesRequest.Builder clone()
Returns
TypeDescription
RestrictAllowedResourcesRequest.Builder
Overrides

getDefaultInstanceForType()

public RestrictAllowedResourcesRequest getDefaultInstanceForType()
Returns
TypeDescription
RestrictAllowedResourcesRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. The resource name of the Workload. This is the workloads's relative path in the API, formatted as "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For example, "organizations/123/locations/us-east1/workloads/assured-workload-1".

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The resource name of the Workload. This is the workloads's relative path in the API, formatted as "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For example, "organizations/123/locations/us-east1/workloads/assured-workload-1".

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for name.

getRestrictionType()

public RestrictAllowedResourcesRequest.RestrictionType getRestrictionType()

Required. The type of restriction for using gcp products in the Workload environment.

.google.cloud.assuredworkloads.v1.RestrictAllowedResourcesRequest.RestrictionType restriction_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
RestrictAllowedResourcesRequest.RestrictionType

The restrictionType.

getRestrictionTypeValue()

public int getRestrictionTypeValue()

Required. The type of restriction for using gcp products in the Workload environment.

.google.cloud.assuredworkloads.v1.RestrictAllowedResourcesRequest.RestrictionType restriction_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The enum numeric value on the wire for restrictionType.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RestrictAllowedResourcesRequest other)

public RestrictAllowedResourcesRequest.Builder mergeFrom(RestrictAllowedResourcesRequest other)
Parameter
NameDescription
otherRestrictAllowedResourcesRequest
Returns
TypeDescription
RestrictAllowedResourcesRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RestrictAllowedResourcesRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RestrictAllowedResourcesRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public RestrictAllowedResourcesRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
RestrictAllowedResourcesRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RestrictAllowedResourcesRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RestrictAllowedResourcesRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public RestrictAllowedResourcesRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RestrictAllowedResourcesRequest.Builder
Overrides

setName(String value)

public RestrictAllowedResourcesRequest.Builder setName(String value)

Required. The resource name of the Workload. This is the workloads's relative path in the API, formatted as "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For example, "organizations/123/locations/us-east1/workloads/assured-workload-1".

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
RestrictAllowedResourcesRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public RestrictAllowedResourcesRequest.Builder setNameBytes(ByteString value)

Required. The resource name of the Workload. This is the workloads's relative path in the API, formatted as "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For example, "organizations/123/locations/us-east1/workloads/assured-workload-1".

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
RestrictAllowedResourcesRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public RestrictAllowedResourcesRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
RestrictAllowedResourcesRequest.Builder
Overrides

setRestrictionType(RestrictAllowedResourcesRequest.RestrictionType value)

public RestrictAllowedResourcesRequest.Builder setRestrictionType(RestrictAllowedResourcesRequest.RestrictionType value)

Required. The type of restriction for using gcp products in the Workload environment.

.google.cloud.assuredworkloads.v1.RestrictAllowedResourcesRequest.RestrictionType restriction_type = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueRestrictAllowedResourcesRequest.RestrictionType

The restrictionType to set.

Returns
TypeDescription
RestrictAllowedResourcesRequest.Builder

This builder for chaining.

setRestrictionTypeValue(int value)

public RestrictAllowedResourcesRequest.Builder setRestrictionTypeValue(int value)

Required. The type of restriction for using gcp products in the Workload environment.

.google.cloud.assuredworkloads.v1.RestrictAllowedResourcesRequest.RestrictionType restriction_type = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueint

The enum numeric value on the wire for restrictionType to set.

Returns
TypeDescription
RestrictAllowedResourcesRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final RestrictAllowedResourcesRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RestrictAllowedResourcesRequest.Builder
Overrides