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.v1beta1.RestrictAllowedResourcesRequest
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 RestrictAllowedResourcesRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public RestrictAllowedResourcesRequest build()
buildPartial()
public RestrictAllowedResourcesRequest buildPartial()
clear()
public RestrictAllowedResourcesRequest.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public RestrictAllowedResourcesRequest.Builder clearField(Descriptors.FieldDescriptor field)
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];
clearOneof(Descriptors.OneofDescriptor oneof)
public RestrictAllowedResourcesRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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];
clone()
public RestrictAllowedResourcesRequest.Builder clone()
Overrides
getDefaultInstanceForType()
public RestrictAllowedResourcesRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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];
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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(RestrictAllowedResourcesRequest other)
public RestrictAllowedResourcesRequest.Builder mergeFrom(RestrictAllowedResourcesRequest other)
public RestrictAllowedResourcesRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public RestrictAllowedResourcesRequest.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final RestrictAllowedResourcesRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public RestrictAllowedResourcesRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
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 |
Name |
Description |
value |
String
The name to set.
|
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 |
ByteString
The bytes for name to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public RestrictAllowedResourcesRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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.v1beta1.RestrictAllowedResourcesRequest.RestrictionType restriction_type = 2 [(.google.api.field_behavior) = REQUIRED];
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 |
int
The enum numeric value on the wire for restrictionType to set.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final RestrictAllowedResourcesRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides