Class ServicePerimeterConfig.IngressSource.Builder (1.38.0)

public static final class ServicePerimeterConfig.IngressSource.Builder extends GeneratedMessageV3.Builder<ServicePerimeterConfig.IngressSource.Builder> implements ServicePerimeterConfig.IngressSourceOrBuilder

The source that [IngressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] authorizes access from.

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearAccessLevel()

public ServicePerimeterConfig.IngressSource.Builder clearAccessLevel()

An [AccessLevel] [google.identity.accesscontextmanager.v1.AccessLevel] resource name that allow resources within the [ServicePerimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] to be accessed from the internet. [AccessLevels] [google.identity.accesscontextmanager.v1.AccessLevel] listed must be in the same policy as this [ServicePerimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter]. Referencing a nonexistent [AccessLevel] [google.identity.accesscontextmanager.v1.AccessLevel] will cause an error. If no [AccessLevel] [google.identity.accesscontextmanager.v1.AccessLevel] names are listed, resources within the perimeter can only be accessed via Google Cloud calls with request origins within the perimeter. Example: accessPolicies/MY_POLICY/accessLevels/MY_LEVEL. If a single * is specified for access_level, then all [IngressSources] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressSource] will be allowed.

string access_level = 1;

Returns
TypeDescription
ServicePerimeterConfig.IngressSource.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public ServicePerimeterConfig.IngressSource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ServicePerimeterConfig.IngressSource.Builder
Overrides

clearResource()

public ServicePerimeterConfig.IngressSource.Builder clearResource()

A Google Cloud resource that is allowed to ingress the perimeter. Requests from these resources will be allowed to access perimeter data. Currently only projects are allowed. Format: projects/{project_number} The project may be in any Google Cloud organization, not just the organization that the perimeter is defined in. * is not allowed, the case of allowing all Google Cloud resources only is not supported.

string resource = 2;

Returns
TypeDescription
ServicePerimeterConfig.IngressSource.Builder

This builder for chaining.

clearSource()

public ServicePerimeterConfig.IngressSource.Builder clearSource()
Returns
TypeDescription
ServicePerimeterConfig.IngressSource.Builder

clone()

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

getAccessLevel()

public String getAccessLevel()

An [AccessLevel] [google.identity.accesscontextmanager.v1.AccessLevel] resource name that allow resources within the [ServicePerimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] to be accessed from the internet. [AccessLevels] [google.identity.accesscontextmanager.v1.AccessLevel] listed must be in the same policy as this [ServicePerimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter]. Referencing a nonexistent [AccessLevel] [google.identity.accesscontextmanager.v1.AccessLevel] will cause an error. If no [AccessLevel] [google.identity.accesscontextmanager.v1.AccessLevel] names are listed, resources within the perimeter can only be accessed via Google Cloud calls with request origins within the perimeter. Example: accessPolicies/MY_POLICY/accessLevels/MY_LEVEL. If a single * is specified for access_level, then all [IngressSources] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressSource] will be allowed.

string access_level = 1;

Returns
TypeDescription
String

The accessLevel.

getAccessLevelBytes()

public ByteString getAccessLevelBytes()

An [AccessLevel] [google.identity.accesscontextmanager.v1.AccessLevel] resource name that allow resources within the [ServicePerimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] to be accessed from the internet. [AccessLevels] [google.identity.accesscontextmanager.v1.AccessLevel] listed must be in the same policy as this [ServicePerimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter]. Referencing a nonexistent [AccessLevel] [google.identity.accesscontextmanager.v1.AccessLevel] will cause an error. If no [AccessLevel] [google.identity.accesscontextmanager.v1.AccessLevel] names are listed, resources within the perimeter can only be accessed via Google Cloud calls with request origins within the perimeter. Example: accessPolicies/MY_POLICY/accessLevels/MY_LEVEL. If a single * is specified for access_level, then all [IngressSources] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressSource] will be allowed.

string access_level = 1;

Returns
TypeDescription
ByteString

The bytes for accessLevel.

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getResource()

public String getResource()

A Google Cloud resource that is allowed to ingress the perimeter. Requests from these resources will be allowed to access perimeter data. Currently only projects are allowed. Format: projects/{project_number} The project may be in any Google Cloud organization, not just the organization that the perimeter is defined in. * is not allowed, the case of allowing all Google Cloud resources only is not supported.

string resource = 2;

Returns
TypeDescription
String

The resource.

getResourceBytes()

public ByteString getResourceBytes()

A Google Cloud resource that is allowed to ingress the perimeter. Requests from these resources will be allowed to access perimeter data. Currently only projects are allowed. Format: projects/{project_number} The project may be in any Google Cloud organization, not just the organization that the perimeter is defined in. * is not allowed, the case of allowing all Google Cloud resources only is not supported.

string resource = 2;

Returns
TypeDescription
ByteString

The bytes for resource.

getSourceCase()

public ServicePerimeterConfig.IngressSource.SourceCase getSourceCase()
Returns
TypeDescription
ServicePerimeterConfig.IngressSource.SourceCase

hasAccessLevel()

public boolean hasAccessLevel()

An [AccessLevel] [google.identity.accesscontextmanager.v1.AccessLevel] resource name that allow resources within the [ServicePerimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] to be accessed from the internet. [AccessLevels] [google.identity.accesscontextmanager.v1.AccessLevel] listed must be in the same policy as this [ServicePerimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter]. Referencing a nonexistent [AccessLevel] [google.identity.accesscontextmanager.v1.AccessLevel] will cause an error. If no [AccessLevel] [google.identity.accesscontextmanager.v1.AccessLevel] names are listed, resources within the perimeter can only be accessed via Google Cloud calls with request origins within the perimeter. Example: accessPolicies/MY_POLICY/accessLevels/MY_LEVEL. If a single * is specified for access_level, then all [IngressSources] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressSource] will be allowed.

string access_level = 1;

Returns
TypeDescription
boolean

Whether the accessLevel field is set.

hasResource()

public boolean hasResource()

A Google Cloud resource that is allowed to ingress the perimeter. Requests from these resources will be allowed to access perimeter data. Currently only projects are allowed. Format: projects/{project_number} The project may be in any Google Cloud organization, not just the organization that the perimeter is defined in. * is not allowed, the case of allowing all Google Cloud resources only is not supported.

string resource = 2;

Returns
TypeDescription
boolean

Whether the resource field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ServicePerimeterConfig.IngressSource other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAccessLevel(String value)

public ServicePerimeterConfig.IngressSource.Builder setAccessLevel(String value)

An [AccessLevel] [google.identity.accesscontextmanager.v1.AccessLevel] resource name that allow resources within the [ServicePerimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] to be accessed from the internet. [AccessLevels] [google.identity.accesscontextmanager.v1.AccessLevel] listed must be in the same policy as this [ServicePerimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter]. Referencing a nonexistent [AccessLevel] [google.identity.accesscontextmanager.v1.AccessLevel] will cause an error. If no [AccessLevel] [google.identity.accesscontextmanager.v1.AccessLevel] names are listed, resources within the perimeter can only be accessed via Google Cloud calls with request origins within the perimeter. Example: accessPolicies/MY_POLICY/accessLevels/MY_LEVEL. If a single * is specified for access_level, then all [IngressSources] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressSource] will be allowed.

string access_level = 1;

Parameter
NameDescription
valueString

The accessLevel to set.

Returns
TypeDescription
ServicePerimeterConfig.IngressSource.Builder

This builder for chaining.

setAccessLevelBytes(ByteString value)

public ServicePerimeterConfig.IngressSource.Builder setAccessLevelBytes(ByteString value)

An [AccessLevel] [google.identity.accesscontextmanager.v1.AccessLevel] resource name that allow resources within the [ServicePerimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] to be accessed from the internet. [AccessLevels] [google.identity.accesscontextmanager.v1.AccessLevel] listed must be in the same policy as this [ServicePerimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter]. Referencing a nonexistent [AccessLevel] [google.identity.accesscontextmanager.v1.AccessLevel] will cause an error. If no [AccessLevel] [google.identity.accesscontextmanager.v1.AccessLevel] names are listed, resources within the perimeter can only be accessed via Google Cloud calls with request origins within the perimeter. Example: accessPolicies/MY_POLICY/accessLevels/MY_LEVEL. If a single * is specified for access_level, then all [IngressSources] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressSource] will be allowed.

string access_level = 1;

Parameter
NameDescription
valueByteString

The bytes for accessLevel to set.

Returns
TypeDescription
ServicePerimeterConfig.IngressSource.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public ServicePerimeterConfig.IngressSource.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ServicePerimeterConfig.IngressSource.Builder
Overrides

setResource(String value)

public ServicePerimeterConfig.IngressSource.Builder setResource(String value)

A Google Cloud resource that is allowed to ingress the perimeter. Requests from these resources will be allowed to access perimeter data. Currently only projects are allowed. Format: projects/{project_number} The project may be in any Google Cloud organization, not just the organization that the perimeter is defined in. * is not allowed, the case of allowing all Google Cloud resources only is not supported.

string resource = 2;

Parameter
NameDescription
valueString

The resource to set.

Returns
TypeDescription
ServicePerimeterConfig.IngressSource.Builder

This builder for chaining.

setResourceBytes(ByteString value)

public ServicePerimeterConfig.IngressSource.Builder setResourceBytes(ByteString value)

A Google Cloud resource that is allowed to ingress the perimeter. Requests from these resources will be allowed to access perimeter data. Currently only projects are allowed. Format: projects/{project_number} The project may be in any Google Cloud organization, not just the organization that the perimeter is defined in. * is not allowed, the case of allowing all Google Cloud resources only is not supported.

string resource = 2;

Parameter
NameDescription
valueByteString

The bytes for resource to set.

Returns
TypeDescription
ServicePerimeterConfig.IngressSource.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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