Class ReplaceServicePerimetersRequest.Builder (1.56.0)

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
Type Description
Descriptor

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
Type Description
ReplaceServicePerimetersRequest.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ReplaceServicePerimetersRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ReplaceServicePerimetersRequest.Builder
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
Name Description
value ServicePerimeter
Returns
Type Description
ReplaceServicePerimetersRequest.Builder

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
Name Description
builderForValue ServicePerimeter.Builder
Returns
Type Description
ReplaceServicePerimetersRequest.Builder

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
Name Description
index int
value ServicePerimeter
Returns
Type Description
ReplaceServicePerimetersRequest.Builder

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
Name Description
index int
builderForValue ServicePerimeter.Builder
Returns
Type Description
ReplaceServicePerimetersRequest.Builder

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
Type Description
ServicePerimeter.Builder

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
Name Description
index int
Returns
Type Description
ServicePerimeter.Builder

build()

public ReplaceServicePerimetersRequest build()
Returns
Type Description
ReplaceServicePerimetersRequest

buildPartial()

public ReplaceServicePerimetersRequest buildPartial()
Returns
Type Description
ReplaceServicePerimetersRequest

clear()

public ReplaceServicePerimetersRequest.Builder clear()
Returns
Type Description
ReplaceServicePerimetersRequest.Builder
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
Type Description
ReplaceServicePerimetersRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ReplaceServicePerimetersRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ReplaceServicePerimetersRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ReplaceServicePerimetersRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ReplaceServicePerimetersRequest.Builder
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
Type Description
ReplaceServicePerimetersRequest.Builder

This builder for chaining.

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
Type Description
ReplaceServicePerimetersRequest.Builder

clone()

public ReplaceServicePerimetersRequest.Builder clone()
Returns
Type Description
ReplaceServicePerimetersRequest.Builder
Overrides

getDefaultInstanceForType()

public ReplaceServicePerimetersRequest getDefaultInstanceForType()
Returns
Type Description
ReplaceServicePerimetersRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEtag()

public String 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
Type Description
ByteString

The bytes for etag.

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
Type Description
ByteString

The bytes for parent.

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
Name Description
index int
Returns
Type Description
ServicePerimeter

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
Name Description
index int
Returns
Type Description
ServicePerimeter.Builder

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
Type Description
List<Builder>

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
Type Description
int

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
Type Description
List<ServicePerimeter>

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
Name Description
index int
Returns
Type Description
ServicePerimeterOrBuilder

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
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ReplaceServicePerimetersRequest other)

public ReplaceServicePerimetersRequest.Builder mergeFrom(ReplaceServicePerimetersRequest other)
Parameter
Name Description
other ReplaceServicePerimetersRequest
Returns
Type Description
ReplaceServicePerimetersRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ReplaceServicePerimetersRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReplaceServicePerimetersRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ReplaceServicePerimetersRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ReplaceServicePerimetersRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ReplaceServicePerimetersRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ReplaceServicePerimetersRequest.Builder
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
Name Description
index int
Returns
Type Description
ReplaceServicePerimetersRequest.Builder

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
Type Description
ReplaceServicePerimetersRequest.Builder

This builder for chaining.

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
Type Description
ReplaceServicePerimetersRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ReplaceServicePerimetersRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ReplaceServicePerimetersRequest.Builder
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
Type Description
ReplaceServicePerimetersRequest.Builder

This builder for chaining.

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
Type Description
ReplaceServicePerimetersRequest.Builder

This builder for chaining.

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

public ReplaceServicePerimetersRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ReplaceServicePerimetersRequest.Builder
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
Name Description
index int
value ServicePerimeter
Returns
Type Description
ReplaceServicePerimetersRequest.Builder

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
Name Description
index int
builderForValue ServicePerimeter.Builder
Returns
Type Description
ReplaceServicePerimetersRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ReplaceServicePerimetersRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ReplaceServicePerimetersRequest.Builder
Overrides