public static final class ReplaceServicePerimetersRequest.Builder extends GeneratedMessageV3.Builder<ReplaceServicePerimetersRequest.Builder> implements ReplaceServicePerimetersRequestOrBuilder
A request to replace all existing Service Perimeters in an Access Policy
with the Service Perimeters provided. This is done atomically.
Protobuf type google.identity.accesscontextmanager.v1.ReplaceServicePerimetersRequest
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addAllServicePerimeters(Iterable<? extends ServicePerimeter> values)
public ReplaceServicePerimetersRequest.Builder addAllServicePerimeters(Iterable<? extends ServicePerimeter> values)
Required. The desired [Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter] that should
replace all existing [Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter] in the
[Access Policy]
[google.identity.accesscontextmanager.v1.AccessPolicy].
repeated .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeters = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name | Description |
values | Iterable<? extends com.google.identity.accesscontextmanager.v1.ServicePerimeter>
|
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ReplaceServicePerimetersRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
addServicePerimeters(ServicePerimeter value)
public ReplaceServicePerimetersRequest.Builder addServicePerimeters(ServicePerimeter value)
Required. The desired [Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter] that should
replace all existing [Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter] in the
[Access Policy]
[google.identity.accesscontextmanager.v1.AccessPolicy].
repeated .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeters = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
addServicePerimeters(ServicePerimeter.Builder builderForValue)
public ReplaceServicePerimetersRequest.Builder addServicePerimeters(ServicePerimeter.Builder builderForValue)
Required. The desired [Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter] that should
replace all existing [Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter] in the
[Access Policy]
[google.identity.accesscontextmanager.v1.AccessPolicy].
repeated .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeters = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
addServicePerimeters(int index, ServicePerimeter value)
public ReplaceServicePerimetersRequest.Builder addServicePerimeters(int index, ServicePerimeter value)
Required. The desired [Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter] that should
replace all existing [Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter] in the
[Access Policy]
[google.identity.accesscontextmanager.v1.AccessPolicy].
repeated .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeters = 2 [(.google.api.field_behavior) = REQUIRED];
Parameters
Returns
addServicePerimeters(int index, ServicePerimeter.Builder builderForValue)
public ReplaceServicePerimetersRequest.Builder addServicePerimeters(int index, ServicePerimeter.Builder builderForValue)
Required. The desired [Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter] that should
replace all existing [Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter] in the
[Access Policy]
[google.identity.accesscontextmanager.v1.AccessPolicy].
repeated .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeters = 2 [(.google.api.field_behavior) = REQUIRED];
Parameters
Returns
addServicePerimetersBuilder()
public ServicePerimeter.Builder addServicePerimetersBuilder()
Required. The desired [Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter] that should
replace all existing [Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter] in the
[Access Policy]
[google.identity.accesscontextmanager.v1.AccessPolicy].
repeated .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeters = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
addServicePerimetersBuilder(int index)
public ServicePerimeter.Builder addServicePerimetersBuilder(int index)
Required. The desired [Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter] that should
replace all existing [Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter] in the
[Access Policy]
[google.identity.accesscontextmanager.v1.AccessPolicy].
repeated .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeters = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
build()
public ReplaceServicePerimetersRequest build()
Returns
buildPartial()
public ReplaceServicePerimetersRequest buildPartial()
Returns
clear()
public ReplaceServicePerimetersRequest.Builder clear()
Returns
Overrides
clearEtag()
public ReplaceServicePerimetersRequest.Builder clearEtag()
Optional. The etag for the version of the [Access Policy]
[google.identity.accesscontextmanager.v1.AccessPolicy] that this
replace operation is to be performed on. If, at the time of replace, the
etag for the Access Policy stored in Access Context Manager is different
from the specified etag, then the replace operation will not be performed
and the call will fail. This field is not required. If etag is not
provided, the operation will be performed as if a valid etag is provided.
string etag = 3;
Returns
clearField(Descriptors.FieldDescriptor field)
public ReplaceServicePerimetersRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ReplaceServicePerimetersRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearParent()
public ReplaceServicePerimetersRequest.Builder clearParent()
Required. Resource name for the access policy which owns these
[Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter].
Format: accessPolicies/{policy_id}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
clearServicePerimeters()
public ReplaceServicePerimetersRequest.Builder clearServicePerimeters()
Required. The desired [Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter] that should
replace all existing [Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter] in the
[Access Policy]
[google.identity.accesscontextmanager.v1.AccessPolicy].
repeated .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeters = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
clone()
public ReplaceServicePerimetersRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public ReplaceServicePerimetersRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getEtag()
Optional. The etag for the version of the [Access Policy]
[google.identity.accesscontextmanager.v1.AccessPolicy] that this
replace operation is to be performed on. If, at the time of replace, the
etag for the Access Policy stored in Access Context Manager is different
from the specified etag, then the replace operation will not be performed
and the call will fail. This field is not required. If etag is not
provided, the operation will be performed as if a valid etag is provided.
string etag = 3;
Returns
Type | Description |
String | The etag.
|
getEtagBytes()
public ByteString getEtagBytes()
Optional. The etag for the version of the [Access Policy]
[google.identity.accesscontextmanager.v1.AccessPolicy] that this
replace operation is to be performed on. If, at the time of replace, the
etag for the Access Policy stored in Access Context Manager is different
from the specified etag, then the replace operation will not be performed
and the call will fail. This field is not required. If etag is not
provided, the operation will be performed as if a valid etag is provided.
string etag = 3;
Returns
getParent()
public String getParent()
Required. Resource name for the access policy which owns these
[Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter].
Format: accessPolicies/{policy_id}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
Type | Description |
String | The parent.
|
getParentBytes()
public ByteString getParentBytes()
Required. Resource name for the access policy which owns these
[Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter].
Format: accessPolicies/{policy_id}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
getServicePerimeters(int index)
public ServicePerimeter getServicePerimeters(int index)
Required. The desired [Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter] that should
replace all existing [Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter] in the
[Access Policy]
[google.identity.accesscontextmanager.v1.AccessPolicy].
repeated .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeters = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
getServicePerimetersBuilder(int index)
public ServicePerimeter.Builder getServicePerimetersBuilder(int index)
Required. The desired [Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter] that should
replace all existing [Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter] in the
[Access Policy]
[google.identity.accesscontextmanager.v1.AccessPolicy].
repeated .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeters = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
getServicePerimetersBuilderList()
public List<ServicePerimeter.Builder> getServicePerimetersBuilderList()
Required. The desired [Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter] that should
replace all existing [Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter] in the
[Access Policy]
[google.identity.accesscontextmanager.v1.AccessPolicy].
repeated .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeters = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getServicePerimetersCount()
public int getServicePerimetersCount()
Required. The desired [Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter] that should
replace all existing [Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter] in the
[Access Policy]
[google.identity.accesscontextmanager.v1.AccessPolicy].
repeated .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeters = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getServicePerimetersList()
public List<ServicePerimeter> getServicePerimetersList()
Required. The desired [Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter] that should
replace all existing [Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter] in the
[Access Policy]
[google.identity.accesscontextmanager.v1.AccessPolicy].
repeated .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeters = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getServicePerimetersOrBuilder(int index)
public ServicePerimeterOrBuilder getServicePerimetersOrBuilder(int index)
Required. The desired [Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter] that should
replace all existing [Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter] in the
[Access Policy]
[google.identity.accesscontextmanager.v1.AccessPolicy].
repeated .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeters = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
getServicePerimetersOrBuilderList()
public List<? extends ServicePerimeterOrBuilder> getServicePerimetersOrBuilderList()
Required. The desired [Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter] that should
replace all existing [Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter] in the
[Access Policy]
[google.identity.accesscontextmanager.v1.AccessPolicy].
repeated .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeters = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
List<? extends com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ReplaceServicePerimetersRequest other)
public ReplaceServicePerimetersRequest.Builder mergeFrom(ReplaceServicePerimetersRequest other)
Parameter
Returns
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ReplaceServicePerimetersRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ReplaceServicePerimetersRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ReplaceServicePerimetersRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeServicePerimeters(int index)
public ReplaceServicePerimetersRequest.Builder removeServicePerimeters(int index)
Required. The desired [Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter] that should
replace all existing [Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter] in the
[Access Policy]
[google.identity.accesscontextmanager.v1.AccessPolicy].
repeated .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeters = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setEtag(String value)
public ReplaceServicePerimetersRequest.Builder setEtag(String value)
Optional. The etag for the version of the [Access Policy]
[google.identity.accesscontextmanager.v1.AccessPolicy] that this
replace operation is to be performed on. If, at the time of replace, the
etag for the Access Policy stored in Access Context Manager is different
from the specified etag, then the replace operation will not be performed
and the call will fail. This field is not required. If etag is not
provided, the operation will be performed as if a valid etag is provided.
string etag = 3;
Parameter
Name | Description |
value | String
The etag to set.
|
Returns
setEtagBytes(ByteString value)
public ReplaceServicePerimetersRequest.Builder setEtagBytes(ByteString value)
Optional. The etag for the version of the [Access Policy]
[google.identity.accesscontextmanager.v1.AccessPolicy] that this
replace operation is to be performed on. If, at the time of replace, the
etag for the Access Policy stored in Access Context Manager is different
from the specified etag, then the replace operation will not be performed
and the call will fail. This field is not required. If etag is not
provided, the operation will be performed as if a valid etag is provided.
string etag = 3;
Parameter
Name | Description |
value | ByteString
The bytes for etag to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ReplaceServicePerimetersRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setParent(String value)
public ReplaceServicePerimetersRequest.Builder setParent(String value)
Required. Resource name for the access policy which owns these
[Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter].
Format: accessPolicies/{policy_id}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | String
The parent to set.
|
Returns
setParentBytes(ByteString value)
public ReplaceServicePerimetersRequest.Builder setParentBytes(ByteString value)
Required. Resource name for the access policy which owns these
[Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter].
Format: accessPolicies/{policy_id}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | ByteString
The bytes for parent to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ReplaceServicePerimetersRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setServicePerimeters(int index, ServicePerimeter value)
public ReplaceServicePerimetersRequest.Builder setServicePerimeters(int index, ServicePerimeter value)
Required. The desired [Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter] that should
replace all existing [Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter] in the
[Access Policy]
[google.identity.accesscontextmanager.v1.AccessPolicy].
repeated .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeters = 2 [(.google.api.field_behavior) = REQUIRED];
Parameters
Returns
setServicePerimeters(int index, ServicePerimeter.Builder builderForValue)
public ReplaceServicePerimetersRequest.Builder setServicePerimeters(int index, ServicePerimeter.Builder builderForValue)
Required. The desired [Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter] that should
replace all existing [Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter] in the
[Access Policy]
[google.identity.accesscontextmanager.v1.AccessPolicy].
repeated .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeters = 2 [(.google.api.field_behavior) = REQUIRED];
Parameters
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final ReplaceServicePerimetersRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides