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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ServicePerimeterConfig.MethodSelector.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ServicePerimeterConfig.MethodSelector build()
Returns
buildPartial()
public ServicePerimeterConfig.MethodSelector buildPartial()
Returns
clear()
public ServicePerimeterConfig.MethodSelector.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public ServicePerimeterConfig.MethodSelector.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearKind()
public ServicePerimeterConfig.MethodSelector.Builder clearKind()
Returns
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
clearOneof(Descriptors.OneofDescriptor oneof)
public ServicePerimeterConfig.MethodSelector.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
clone()
public ServicePerimeterConfig.MethodSelector.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public ServicePerimeterConfig.MethodSelector getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getKindCase()
public ServicePerimeterConfig.MethodSelector.KindCase getKindCase()
Returns
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
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ServicePerimeterConfig.MethodSelector other)
public ServicePerimeterConfig.MethodSelector.Builder mergeFrom(ServicePerimeterConfig.MethodSelector other)
Parameter
Returns
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ServicePerimeterConfig.MethodSelector.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ServicePerimeterConfig.MethodSelector.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ServicePerimeterConfig.MethodSelector.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public ServicePerimeterConfig.MethodSelector.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
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
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ServicePerimeterConfig.MethodSelector.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ServicePerimeterConfig.MethodSelector.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides