Class ServicePerimeterConfig.IngressSource (1.48.0)

public static final class ServicePerimeterConfig.IngressSource extends GeneratedMessageV3 implements ServicePerimeterConfig.IngressSourceOrBuilder

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

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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > ServicePerimeterConfig.IngressSource

Static Fields

ACCESS_LEVEL_FIELD_NUMBER

public static final int ACCESS_LEVEL_FIELD_NUMBER
Field Value
Type Description
int

RESOURCE_FIELD_NUMBER

public static final int RESOURCE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ServicePerimeterConfig.IngressSource getDefaultInstance()
Returns
Type Description
ServicePerimeterConfig.IngressSource

getDescriptor()

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

newBuilder()

public static ServicePerimeterConfig.IngressSource.Builder newBuilder()
Returns
Type Description
ServicePerimeterConfig.IngressSource.Builder

newBuilder(ServicePerimeterConfig.IngressSource prototype)

public static ServicePerimeterConfig.IngressSource.Builder newBuilder(ServicePerimeterConfig.IngressSource prototype)
Parameter
Name Description
prototype ServicePerimeterConfig.IngressSource
Returns
Type Description
ServicePerimeterConfig.IngressSource.Builder

parseDelimitedFrom(InputStream input)

public static ServicePerimeterConfig.IngressSource parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ServicePerimeterConfig.IngressSource
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ServicePerimeterConfig.IngressSource parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ServicePerimeterConfig.IngressSource
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ServicePerimeterConfig.IngressSource parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ServicePerimeterConfig.IngressSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ServicePerimeterConfig.IngressSource parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ServicePerimeterConfig.IngressSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ServicePerimeterConfig.IngressSource parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ServicePerimeterConfig.IngressSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ServicePerimeterConfig.IngressSource parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ServicePerimeterConfig.IngressSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ServicePerimeterConfig.IngressSource parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ServicePerimeterConfig.IngressSource
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ServicePerimeterConfig.IngressSource parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ServicePerimeterConfig.IngressSource
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ServicePerimeterConfig.IngressSource parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ServicePerimeterConfig.IngressSource
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ServicePerimeterConfig.IngressSource parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ServicePerimeterConfig.IngressSource
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ServicePerimeterConfig.IngressSource parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ServicePerimeterConfig.IngressSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ServicePerimeterConfig.IngressSource parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ServicePerimeterConfig.IngressSource
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ServicePerimeterConfig.IngressSource> parser()
Returns
Type Description
Parser<IngressSource>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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
Type Description
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
Type Description
ByteString

The bytes for accessLevel.

getDefaultInstanceForType()

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

getParserForType()

public Parser<ServicePerimeterConfig.IngressSource> getParserForType()
Returns
Type Description
Parser<IngressSource>
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
Type Description
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
Type Description
ByteString

The bytes for resource.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSourceCase()

public ServicePerimeterConfig.IngressSource.SourceCase getSourceCase()
Returns
Type Description
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
Type Description
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
Type Description
boolean

Whether the resource field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ServicePerimeterConfig.IngressSource.Builder newBuilderForType()
Returns
Type Description
ServicePerimeterConfig.IngressSource.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ServicePerimeterConfig.IngressSource.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ServicePerimeterConfig.IngressSource.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ServicePerimeterConfig.IngressSource.Builder toBuilder()
Returns
Type Description
ServicePerimeterConfig.IngressSource.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException