public static final class RestrictAllowedResourcesRequest.Builder extends GeneratedMessage.Builder<RestrictAllowedResourcesRequest.Builder> implements RestrictAllowedResourcesRequestOrBuilderRequest for restricting list of available resources in Workload environment.
Protobuf type google.cloud.assuredworkloads.v1beta1.RestrictAllowedResourcesRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > RestrictAllowedResourcesRequest.BuilderImplements
RestrictAllowedResourcesRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public RestrictAllowedResourcesRequest build()| Returns | |
|---|---|
| Type | Description |
RestrictAllowedResourcesRequest |
|
buildPartial()
public RestrictAllowedResourcesRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
RestrictAllowedResourcesRequest |
|
clear()
public RestrictAllowedResourcesRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
RestrictAllowedResourcesRequest.Builder |
|
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 | |
|---|---|
| Type | Description |
RestrictAllowedResourcesRequest.Builder |
This builder for chaining. |
clearRestrictionType()
public RestrictAllowedResourcesRequest.Builder clearRestrictionType()Required. The type of restriction for using gcp products in the Workload environment.
.google.cloud.assuredworkloads.v1beta1.RestrictAllowedResourcesRequest.RestrictionType restriction_type = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
RestrictAllowedResourcesRequest.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public RestrictAllowedResourcesRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
RestrictAllowedResourcesRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
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.v1beta1.RestrictAllowedResourcesRequest.RestrictionType restriction_type = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
RestrictAllowedResourcesRequest.RestrictionType |
The restrictionType. |
getRestrictionTypeValue()
public int getRestrictionTypeValue()Required. The type of restriction for using gcp products in the Workload environment.
.google.cloud.assuredworkloads.v1beta1.RestrictAllowedResourcesRequest.RestrictionType restriction_type = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for restrictionType. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(RestrictAllowedResourcesRequest other)
public RestrictAllowedResourcesRequest.Builder mergeFrom(RestrictAllowedResourcesRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
RestrictAllowedResourcesRequest |
| Returns | |
|---|---|
| Type | Description |
RestrictAllowedResourcesRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public RestrictAllowedResourcesRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
RestrictAllowedResourcesRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public RestrictAllowedResourcesRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
RestrictAllowedResourcesRequest.Builder |
|
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 | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
RestrictAllowedResourcesRequest.Builder |
This builder for chaining. |
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.v1beta1.RestrictAllowedResourcesRequest.RestrictionType restriction_type = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
RestrictAllowedResourcesRequest.RestrictionTypeThe restrictionType to set. |
| Returns | |
|---|---|
| Type | Description |
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.v1beta1.RestrictAllowedResourcesRequest.RestrictionType restriction_type = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for restrictionType to set. |
| Returns | |
|---|---|
| Type | Description |
RestrictAllowedResourcesRequest.Builder |
This builder for chaining. |