Class ReplaceServicePerimetersRequest.Builder (1.11.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.identity.accesscontextmanager.v1.ServicePerimeter>
Returns
TypeDescription
ReplaceServicePerimetersRequest.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ReplaceServicePerimetersRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueServicePerimeter
Returns
TypeDescription
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
NameDescription
builderForValueServicePerimeter.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueServicePerimeter
Returns
TypeDescription
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
NameDescription
indexint
builderForValueServicePerimeter.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ServicePerimeter.Builder

build()

public ReplaceServicePerimetersRequest build()
Returns
TypeDescription
ReplaceServicePerimetersRequest

buildPartial()

public ReplaceServicePerimetersRequest buildPartial()
Returns
TypeDescription
ReplaceServicePerimetersRequest

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public ReplaceServicePerimetersRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ReplaceServicePerimetersRequest.Builder

clone()

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

getDefaultInstanceForType()

public ReplaceServicePerimetersRequest getDefaultInstanceForType()
Returns
TypeDescription
ReplaceServicePerimetersRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ReplaceServicePerimetersRequest other)

public ReplaceServicePerimetersRequest.Builder mergeFrom(ReplaceServicePerimetersRequest other)
Parameter
NameDescription
otherReplaceServicePerimetersRequest
Returns
TypeDescription
ReplaceServicePerimetersRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ReplaceServicePerimetersRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueString

The etag to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for etag to set.

Returns
TypeDescription
ReplaceServicePerimetersRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ReplaceServicePerimetersRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueServicePerimeter
Returns
TypeDescription
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
NameDescription
indexint
builderForValueServicePerimeter.Builder
Returns
TypeDescription
ReplaceServicePerimetersRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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