Class ServicePerimeterConfig.MethodSelector.Builder (1.2.10)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearKind()

public ServicePerimeterConfig.MethodSelector.Builder clearKind()
Returns
TypeDescription
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
TypeDescription
ServicePerimeterConfig.MethodSelector.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getKindCase()

public ServicePerimeterConfig.MethodSelector.KindCase getKindCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the permission field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ServicePerimeterConfig.MethodSelector other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ServicePerimeterConfig.MethodSelector.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ServicePerimeterConfig.MethodSelector.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

The method to set.

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

The bytes for method to set.

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

The permission to set.

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

The bytes for permission to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ServicePerimeterConfig.MethodSelector.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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