Class ServicePerimeterConfig.ApiOperation.Builder (1.4.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.identity.accesscontextmanager.v1.ServicePerimeterConfig.MethodSelector>
Returns
TypeDescription
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
NameDescription
valueServicePerimeterConfig.MethodSelector
Returns
TypeDescription
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
NameDescription
builderForValueServicePerimeterConfig.MethodSelector.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueServicePerimeterConfig.MethodSelector
Returns
TypeDescription
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
NameDescription
indexint
builderForValueServicePerimeterConfig.MethodSelector.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ServicePerimeterConfig.MethodSelector.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ServicePerimeterConfig.ApiOperation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ServicePerimeterConfig.ApiOperation.Builder
Overrides

build()

public ServicePerimeterConfig.ApiOperation build()
Returns
TypeDescription
ServicePerimeterConfig.ApiOperation

buildPartial()

public ServicePerimeterConfig.ApiOperation buildPartial()
Returns
TypeDescription
ServicePerimeterConfig.ApiOperation

clear()

public ServicePerimeterConfig.ApiOperation.Builder clear()
Returns
TypeDescription
ServicePerimeterConfig.ApiOperation.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ServicePerimeterConfig.ApiOperation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ServicePerimeterConfig.ApiOperation.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

public ServicePerimeterConfig.ApiOperation.Builder clone()
Returns
TypeDescription
ServicePerimeterConfig.ApiOperation.Builder
Overrides

getDefaultInstanceForType()

public ServicePerimeterConfig.ApiOperation getDefaultInstanceForType()
Returns
TypeDescription
ServicePerimeterConfig.ApiOperation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for serviceName.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ServicePerimeterConfig.ApiOperation other)

public ServicePerimeterConfig.ApiOperation.Builder mergeFrom(ServicePerimeterConfig.ApiOperation other)
Parameter
NameDescription
otherServicePerimeterConfig.ApiOperation
Returns
TypeDescription
ServicePerimeterConfig.ApiOperation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public ServicePerimeterConfig.ApiOperation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueServicePerimeterConfig.MethodSelector
Returns
TypeDescription
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
NameDescription
indexint
builderForValueServicePerimeterConfig.MethodSelector.Builder
Returns
TypeDescription
ServicePerimeterConfig.ApiOperation.Builder

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

public ServicePerimeterConfig.ApiOperation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The serviceName to set.

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

The bytes for serviceName to set.

Returns
TypeDescription
ServicePerimeterConfig.ApiOperation.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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