Class ServicePerimeterConfig.MethodSelector.Builder (1.55.0)

public static final class ServicePerimeterConfig.MethodSelector.Builder extends GeneratedMessageV3.Builder<ServicePerimeterConfig.MethodSelector.Builder> implements ServicePerimeterConfig.MethodSelectorOrBuilder

An allowed method or permission of a service specified in [ApiOperation] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation].

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearKind()

public ServicePerimeterConfig.MethodSelector.Builder clearKind()
Returns
Type Description
ServicePerimeterConfig.MethodSelector.Builder

clearMethod()

public ServicePerimeterConfig.MethodSelector.Builder clearMethod()

Value for method should be a valid method name for the corresponding service_name in [ApiOperation] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation]. If * used as value for method, then ALL methods and permissions are allowed.

string method = 1;

Returns
Type Description
ServicePerimeterConfig.MethodSelector.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPermission()

public ServicePerimeterConfig.MethodSelector.Builder clearPermission()

Value for permission should be a valid Cloud IAM permission for the corresponding service_name in [ApiOperation] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation].

string permission = 2;

Returns
Type Description
ServicePerimeterConfig.MethodSelector.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

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

getKindCase()

public ServicePerimeterConfig.MethodSelector.KindCase getKindCase()
Returns
Type Description
ServicePerimeterConfig.MethodSelector.KindCase

getMethod()

public String getMethod()

Value for method should be a valid method name for the corresponding service_name in [ApiOperation] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation]. If * used as value for method, then ALL methods and permissions are allowed.

string method = 1;

Returns
Type Description
String

The method.

getMethodBytes()

public ByteString getMethodBytes()

Value for method should be a valid method name for the corresponding service_name in [ApiOperation] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation]. If * used as value for method, then ALL methods and permissions are allowed.

string method = 1;

Returns
Type Description
ByteString

The bytes for method.

getPermission()

public String getPermission()

Value for permission should be a valid Cloud IAM permission for the corresponding service_name in [ApiOperation] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation].

string permission = 2;

Returns
Type Description
String

The permission.

getPermissionBytes()

public ByteString getPermissionBytes()

Value for permission should be a valid Cloud IAM permission for the corresponding service_name in [ApiOperation] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation].

string permission = 2;

Returns
Type Description
ByteString

The bytes for permission.

hasMethod()

public boolean hasMethod()

Value for method should be a valid method name for the corresponding service_name in [ApiOperation] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation]. If * used as value for method, then ALL methods and permissions are allowed.

string method = 1;

Returns
Type Description
boolean

Whether the method field is set.

hasPermission()

public boolean hasPermission()

Value for permission should be a valid Cloud IAM permission for the corresponding service_name in [ApiOperation] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation].

string permission = 2;

Returns
Type Description
boolean

Whether the permission field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ServicePerimeterConfig.MethodSelector other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMethod(String value)

public ServicePerimeterConfig.MethodSelector.Builder setMethod(String value)

Value for method should be a valid method name for the corresponding service_name in [ApiOperation] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation]. If * used as value for method, then ALL methods and permissions are allowed.

string method = 1;

Parameter
Name Description
value String

The method to set.

Returns
Type Description
ServicePerimeterConfig.MethodSelector.Builder

This builder for chaining.

setMethodBytes(ByteString value)

public ServicePerimeterConfig.MethodSelector.Builder setMethodBytes(ByteString value)

Value for method should be a valid method name for the corresponding service_name in [ApiOperation] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation]. If * used as value for method, then ALL methods and permissions are allowed.

string method = 1;

Parameter
Name Description
value ByteString

The bytes for method to set.

Returns
Type Description
ServicePerimeterConfig.MethodSelector.Builder

This builder for chaining.

setPermission(String value)

public ServicePerimeterConfig.MethodSelector.Builder setPermission(String value)

Value for permission should be a valid Cloud IAM permission for the corresponding service_name in [ApiOperation] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation].

string permission = 2;

Parameter
Name Description
value String

The permission to set.

Returns
Type Description
ServicePerimeterConfig.MethodSelector.Builder

This builder for chaining.

setPermissionBytes(ByteString value)

public ServicePerimeterConfig.MethodSelector.Builder setPermissionBytes(ByteString value)

Value for permission should be a valid Cloud IAM permission for the corresponding service_name in [ApiOperation] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation].

string permission = 2;

Parameter
Name Description
value ByteString

The bytes for permission to set.

Returns
Type Description
ServicePerimeterConfig.MethodSelector.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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