Class ServicePerimeterConfig.ApiOperation.Builder (1.43.0)

public static final class ServicePerimeterConfig.ApiOperation.Builder extends GeneratedMessageV3.Builder<ServicePerimeterConfig.ApiOperation.Builder> implements ServicePerimeterConfig.ApiOperationOrBuilder

Identification for an API Operation.

Protobuf type google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllMethodSelectors(Iterable<? extends ServicePerimeterConfig.MethodSelector> values)

public ServicePerimeterConfig.ApiOperation.Builder addAllMethodSelectors(Iterable<? extends ServicePerimeterConfig.MethodSelector> values)

API methods or permissions to allow. Method or permission must belong to the service specified by service_name field. A single [MethodSelector] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.MethodSelector] entry with * specified for the method field will allow all methods AND permissions for the service specified in service_name.

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.MethodSelector method_selectors = 2;

Parameter
Name Description
values Iterable<? extends com.google.identity.accesscontextmanager.v1.ServicePerimeterConfig.MethodSelector>
Returns
Type Description
ServicePerimeterConfig.ApiOperation.Builder

addMethodSelectors(ServicePerimeterConfig.MethodSelector value)

public ServicePerimeterConfig.ApiOperation.Builder addMethodSelectors(ServicePerimeterConfig.MethodSelector value)

API methods or permissions to allow. Method or permission must belong to the service specified by service_name field. A single [MethodSelector] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.MethodSelector] entry with * specified for the method field will allow all methods AND permissions for the service specified in service_name.

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.MethodSelector method_selectors = 2;

Parameter
Name Description
value ServicePerimeterConfig.MethodSelector
Returns
Type Description
ServicePerimeterConfig.ApiOperation.Builder

addMethodSelectors(ServicePerimeterConfig.MethodSelector.Builder builderForValue)

public ServicePerimeterConfig.ApiOperation.Builder addMethodSelectors(ServicePerimeterConfig.MethodSelector.Builder builderForValue)

API methods or permissions to allow. Method or permission must belong to the service specified by service_name field. A single [MethodSelector] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.MethodSelector] entry with * specified for the method field will allow all methods AND permissions for the service specified in service_name.

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.MethodSelector method_selectors = 2;

Parameter
Name Description
builderForValue ServicePerimeterConfig.MethodSelector.Builder
Returns
Type Description
ServicePerimeterConfig.ApiOperation.Builder

addMethodSelectors(int index, ServicePerimeterConfig.MethodSelector value)

public ServicePerimeterConfig.ApiOperation.Builder addMethodSelectors(int index, ServicePerimeterConfig.MethodSelector value)

API methods or permissions to allow. Method or permission must belong to the service specified by service_name field. A single [MethodSelector] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.MethodSelector] entry with * specified for the method field will allow all methods AND permissions for the service specified in service_name.

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.MethodSelector method_selectors = 2;

Parameters
Name Description
index int
value ServicePerimeterConfig.MethodSelector
Returns
Type Description
ServicePerimeterConfig.ApiOperation.Builder

addMethodSelectors(int index, ServicePerimeterConfig.MethodSelector.Builder builderForValue)

public ServicePerimeterConfig.ApiOperation.Builder addMethodSelectors(int index, ServicePerimeterConfig.MethodSelector.Builder builderForValue)

API methods or permissions to allow. Method or permission must belong to the service specified by service_name field. A single [MethodSelector] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.MethodSelector] entry with * specified for the method field will allow all methods AND permissions for the service specified in service_name.

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.MethodSelector method_selectors = 2;

Parameters
Name Description
index int
builderForValue ServicePerimeterConfig.MethodSelector.Builder
Returns
Type Description
ServicePerimeterConfig.ApiOperation.Builder

addMethodSelectorsBuilder()

public ServicePerimeterConfig.MethodSelector.Builder addMethodSelectorsBuilder()

API methods or permissions to allow. Method or permission must belong to the service specified by service_name field. A single [MethodSelector] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.MethodSelector] entry with * specified for the method field will allow all methods AND permissions for the service specified in service_name.

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.MethodSelector method_selectors = 2;

Returns
Type Description
ServicePerimeterConfig.MethodSelector.Builder

addMethodSelectorsBuilder(int index)

public ServicePerimeterConfig.MethodSelector.Builder addMethodSelectorsBuilder(int index)

API methods or permissions to allow. Method or permission must belong to the service specified by service_name field. A single [MethodSelector] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.MethodSelector] entry with * specified for the method field will allow all methods AND permissions for the service specified in service_name.

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.MethodSelector method_selectors = 2;

Parameter
Name Description
index int
Returns
Type Description
ServicePerimeterConfig.MethodSelector.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ServicePerimeterConfig.ApiOperation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ServicePerimeterConfig.ApiOperation.Builder
Overrides

build()

public ServicePerimeterConfig.ApiOperation build()
Returns
Type Description
ServicePerimeterConfig.ApiOperation

buildPartial()

public ServicePerimeterConfig.ApiOperation buildPartial()
Returns
Type Description
ServicePerimeterConfig.ApiOperation

clear()

public ServicePerimeterConfig.ApiOperation.Builder clear()
Returns
Type Description
ServicePerimeterConfig.ApiOperation.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearMethodSelectors()

public ServicePerimeterConfig.ApiOperation.Builder clearMethodSelectors()

API methods or permissions to allow. Method or permission must belong to the service specified by service_name field. A single [MethodSelector] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.MethodSelector] entry with * specified for the method field will allow all methods AND permissions for the service specified in service_name.

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.MethodSelector method_selectors = 2;

Returns
Type Description
ServicePerimeterConfig.ApiOperation.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ServicePerimeterConfig.ApiOperation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ServicePerimeterConfig.ApiOperation.Builder
Overrides

clearServiceName()

public ServicePerimeterConfig.ApiOperation.Builder clearServiceName()

The name of the API whose methods or permissions the [IngressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] or [EgressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressPolicy] want to allow. A single [ApiOperation] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] with service_name field set to * will allow all methods AND permissions for all services.

string service_name = 1;

Returns
Type Description
ServicePerimeterConfig.ApiOperation.Builder

This builder for chaining.

clone()

public ServicePerimeterConfig.ApiOperation.Builder clone()
Returns
Type Description
ServicePerimeterConfig.ApiOperation.Builder
Overrides

getDefaultInstanceForType()

public ServicePerimeterConfig.ApiOperation getDefaultInstanceForType()
Returns
Type Description
ServicePerimeterConfig.ApiOperation

getDescriptorForType()

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

getMethodSelectors(int index)

public ServicePerimeterConfig.MethodSelector getMethodSelectors(int index)

API methods or permissions to allow. Method or permission must belong to the service specified by service_name field. A single [MethodSelector] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.MethodSelector] entry with * specified for the method field will allow all methods AND permissions for the service specified in service_name.

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.MethodSelector method_selectors = 2;

Parameter
Name Description
index int
Returns
Type Description
ServicePerimeterConfig.MethodSelector

getMethodSelectorsBuilder(int index)

public ServicePerimeterConfig.MethodSelector.Builder getMethodSelectorsBuilder(int index)

API methods or permissions to allow. Method or permission must belong to the service specified by service_name field. A single [MethodSelector] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.MethodSelector] entry with * specified for the method field will allow all methods AND permissions for the service specified in service_name.

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.MethodSelector method_selectors = 2;

Parameter
Name Description
index int
Returns
Type Description
ServicePerimeterConfig.MethodSelector.Builder

getMethodSelectorsBuilderList()

public List<ServicePerimeterConfig.MethodSelector.Builder> getMethodSelectorsBuilderList()

API methods or permissions to allow. Method or permission must belong to the service specified by service_name field. A single [MethodSelector] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.MethodSelector] entry with * specified for the method field will allow all methods AND permissions for the service specified in service_name.

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.MethodSelector method_selectors = 2;

Returns
Type Description
List<Builder>

getMethodSelectorsCount()

public int getMethodSelectorsCount()

API methods or permissions to allow. Method or permission must belong to the service specified by service_name field. A single [MethodSelector] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.MethodSelector] entry with * specified for the method field will allow all methods AND permissions for the service specified in service_name.

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.MethodSelector method_selectors = 2;

Returns
Type Description
int

getMethodSelectorsList()

public List<ServicePerimeterConfig.MethodSelector> getMethodSelectorsList()

API methods or permissions to allow. Method or permission must belong to the service specified by service_name field. A single [MethodSelector] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.MethodSelector] entry with * specified for the method field will allow all methods AND permissions for the service specified in service_name.

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.MethodSelector method_selectors = 2;

Returns
Type Description
List<MethodSelector>

getMethodSelectorsOrBuilder(int index)

public ServicePerimeterConfig.MethodSelectorOrBuilder getMethodSelectorsOrBuilder(int index)

API methods or permissions to allow. Method or permission must belong to the service specified by service_name field. A single [MethodSelector] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.MethodSelector] entry with * specified for the method field will allow all methods AND permissions for the service specified in service_name.

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.MethodSelector method_selectors = 2;

Parameter
Name Description
index int
Returns
Type Description
ServicePerimeterConfig.MethodSelectorOrBuilder

getMethodSelectorsOrBuilderList()

public List<? extends ServicePerimeterConfig.MethodSelectorOrBuilder> getMethodSelectorsOrBuilderList()

API methods or permissions to allow. Method or permission must belong to the service specified by service_name field. A single [MethodSelector] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.MethodSelector] entry with * specified for the method field will allow all methods AND permissions for the service specified in service_name.

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.MethodSelector method_selectors = 2;

Returns
Type Description
List<? extends com.google.identity.accesscontextmanager.v1.ServicePerimeterConfig.MethodSelectorOrBuilder>

getServiceName()

public String getServiceName()

The name of the API whose methods or permissions the [IngressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] or [EgressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressPolicy] want to allow. A single [ApiOperation] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] with service_name field set to * will allow all methods AND permissions for all services.

string service_name = 1;

Returns
Type Description
String

The serviceName.

getServiceNameBytes()

public ByteString getServiceNameBytes()

The name of the API whose methods or permissions the [IngressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] or [EgressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressPolicy] want to allow. A single [ApiOperation] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] with service_name field set to * will allow all methods AND permissions for all services.

string service_name = 1;

Returns
Type Description
ByteString

The bytes for serviceName.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ServicePerimeterConfig.ApiOperation other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ServicePerimeterConfig.ApiOperation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ServicePerimeterConfig.ApiOperation.Builder
Overrides

removeMethodSelectors(int index)

public ServicePerimeterConfig.ApiOperation.Builder removeMethodSelectors(int index)

API methods or permissions to allow. Method or permission must belong to the service specified by service_name field. A single [MethodSelector] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.MethodSelector] entry with * specified for the method field will allow all methods AND permissions for the service specified in service_name.

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.MethodSelector method_selectors = 2;

Parameter
Name Description
index int
Returns
Type Description
ServicePerimeterConfig.ApiOperation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ServicePerimeterConfig.ApiOperation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ServicePerimeterConfig.ApiOperation.Builder
Overrides

setMethodSelectors(int index, ServicePerimeterConfig.MethodSelector value)

public ServicePerimeterConfig.ApiOperation.Builder setMethodSelectors(int index, ServicePerimeterConfig.MethodSelector value)

API methods or permissions to allow. Method or permission must belong to the service specified by service_name field. A single [MethodSelector] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.MethodSelector] entry with * specified for the method field will allow all methods AND permissions for the service specified in service_name.

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.MethodSelector method_selectors = 2;

Parameters
Name Description
index int
value ServicePerimeterConfig.MethodSelector
Returns
Type Description
ServicePerimeterConfig.ApiOperation.Builder

setMethodSelectors(int index, ServicePerimeterConfig.MethodSelector.Builder builderForValue)

public ServicePerimeterConfig.ApiOperation.Builder setMethodSelectors(int index, ServicePerimeterConfig.MethodSelector.Builder builderForValue)

API methods or permissions to allow. Method or permission must belong to the service specified by service_name field. A single [MethodSelector] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.MethodSelector] entry with * specified for the method field will allow all methods AND permissions for the service specified in service_name.

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.MethodSelector method_selectors = 2;

Parameters
Name Description
index int
builderForValue ServicePerimeterConfig.MethodSelector.Builder
Returns
Type Description
ServicePerimeterConfig.ApiOperation.Builder

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

public ServicePerimeterConfig.ApiOperation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ServicePerimeterConfig.ApiOperation.Builder
Overrides

setServiceName(String value)

public ServicePerimeterConfig.ApiOperation.Builder setServiceName(String value)

The name of the API whose methods or permissions the [IngressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] or [EgressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressPolicy] want to allow. A single [ApiOperation] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] with service_name field set to * will allow all methods AND permissions for all services.

string service_name = 1;

Parameter
Name Description
value String

The serviceName to set.

Returns
Type Description
ServicePerimeterConfig.ApiOperation.Builder

This builder for chaining.

setServiceNameBytes(ByteString value)

public ServicePerimeterConfig.ApiOperation.Builder setServiceNameBytes(ByteString value)

The name of the API whose methods or permissions the [IngressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] or [EgressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressPolicy] want to allow. A single [ApiOperation] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] with service_name field set to * will allow all methods AND permissions for all services.

string service_name = 1;

Parameter
Name Description
value ByteString

The bytes for serviceName to set.

Returns
Type Description
ServicePerimeterConfig.ApiOperation.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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