Class RestrictAllowedServicesRequest.Builder (2.1.0)

public static final class RestrictAllowedServicesRequest.Builder extends GeneratedMessageV3.Builder<RestrictAllowedServicesRequest.Builder> implements RestrictAllowedServicesRequestOrBuilder

Request for restricting list of available services in Workload environment.

Protobuf type google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RestrictAllowedServicesRequest build()
Returns
TypeDescription
RestrictAllowedServicesRequest

buildPartial()

public RestrictAllowedServicesRequest buildPartial()
Returns
TypeDescription
RestrictAllowedServicesRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public RestrictAllowedServicesRequest.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
RestrictAllowedServicesRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRestrictionType()

public RestrictAllowedServicesRequest.Builder clearRestrictionType()

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

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

Returns
TypeDescription
RestrictAllowedServicesRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public RestrictAllowedServicesRequest getDefaultInstanceForType()
Returns
TypeDescription
RestrictAllowedServicesRequest

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 RestrictAllowedServicesRequest.RestrictionType getRestrictionType()

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

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

Returns
TypeDescription
RestrictAllowedServicesRequest.RestrictionType

The restrictionType.

getRestrictionTypeValue()

public int getRestrictionTypeValue()

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

.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest.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(RestrictAllowedServicesRequest other)

public RestrictAllowedServicesRequest.Builder mergeFrom(RestrictAllowedServicesRequest other)
Parameter
NameDescription
otherRestrictAllowedServicesRequest
Returns
TypeDescription
RestrictAllowedServicesRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public RestrictAllowedServicesRequest.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
RestrictAllowedServicesRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public RestrictAllowedServicesRequest.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
RestrictAllowedServicesRequest.Builder

This builder for chaining.

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

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

setRestrictionType(RestrictAllowedServicesRequest.RestrictionType value)

public RestrictAllowedServicesRequest.Builder setRestrictionType(RestrictAllowedServicesRequest.RestrictionType value)

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

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

Parameter
NameDescription
valueRestrictAllowedServicesRequest.RestrictionType

The restrictionType to set.

Returns
TypeDescription
RestrictAllowedServicesRequest.Builder

This builder for chaining.

setRestrictionTypeValue(int value)

public RestrictAllowedServicesRequest.Builder setRestrictionTypeValue(int value)

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

.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest.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
RestrictAllowedServicesRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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