Package com.google.storage.v2
Class Bucket.IpFilter
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.storage.v2.Bucket.IpFilter
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Bucket.IpFilterOrBuilder,Serializable
- Enclosing class:
- Bucket
public static final class Bucket.IpFilter
extends com.google.protobuf.GeneratedMessageV3
implements Bucket.IpFilterOrBuilder
The [bucket IP filtering](https://cloud.google.com/storage/docs/ip-filtering-overview) configuration. Specifies the network sources that can access the bucket, as well as its underlying objects.Protobuf type
google.storage.v2.Bucket.IpFilter- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe [bucket IP filtering](https://cloud.google.com/storage/docs/ip-filtering-overview) configuration.static final classThe public network IP address ranges that can access the bucket and its data.static interfacestatic final classThe list of VPC networks that can access the bucket.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanWhether or not to allow all P4SA access to the bucket.booleanOptional.static Bucket.IpFilterstatic final com.google.protobuf.Descriptors.DescriptorgetMode()The state of the IP filter configuration.com.google.protobuf.ByteStringThe state of the IP filter configuration.com.google.protobuf.Parser<Bucket.IpFilter>Public IPs allowed to operate or access the bucket.Public IPs allowed to operate or access the bucket.intgetVpcNetworkSources(int index) Optional.intOptional.Optional.getVpcNetworkSourcesOrBuilder(int index) Optional.List<? extends Bucket.IpFilter.VpcNetworkSourceOrBuilder>Optional.booleanWhether or not to allow all P4SA access to the bucket.inthashCode()booleanhasMode()The state of the IP filter configuration.booleanPublic IPs allowed to operate or access the bucket.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic Bucket.IpFilter.Builderstatic Bucket.IpFilter.BuildernewBuilder(Bucket.IpFilter prototype) protected Bucket.IpFilter.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static Bucket.IpFilterparseDelimitedFrom(InputStream input) static Bucket.IpFilterparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Bucket.IpFilterparseFrom(byte[] data) static Bucket.IpFilterparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Bucket.IpFilterparseFrom(com.google.protobuf.ByteString data) static Bucket.IpFilterparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Bucket.IpFilterparseFrom(com.google.protobuf.CodedInputStream input) static Bucket.IpFilterparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Bucket.IpFilterparseFrom(InputStream input) static Bucket.IpFilterparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Bucket.IpFilterparseFrom(ByteBuffer data) static Bucket.IpFilterparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Bucket.IpFilter>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
MODE_FIELD_NUMBER
public static final int MODE_FIELD_NUMBER- See Also:
-
PUBLIC_NETWORK_SOURCE_FIELD_NUMBER
public static final int PUBLIC_NETWORK_SOURCE_FIELD_NUMBER- See Also:
-
VPC_NETWORK_SOURCES_FIELD_NUMBER
public static final int VPC_NETWORK_SOURCES_FIELD_NUMBER- See Also:
-
ALLOW_CROSS_ORG_VPCS_FIELD_NUMBER
public static final int ALLOW_CROSS_ORG_VPCS_FIELD_NUMBER- See Also:
-
ALLOW_ALL_SERVICE_AGENT_ACCESS_FIELD_NUMBER
public static final int ALLOW_ALL_SERVICE_AGENT_ACCESS_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasMode
public boolean hasMode()The state of the IP filter configuration. Valid values are `Enabled` and `Disabled`. When set to `Enabled`, IP filtering rules are applied to a bucket and all incoming requests to the bucket are evaluated against these rules. When set to `Disabled`, IP filtering rules are not applied to a bucket.".
optional string mode = 1;- Specified by:
hasModein interfaceBucket.IpFilterOrBuilder- Returns:
- Whether the mode field is set.
-
getMode
The state of the IP filter configuration. Valid values are `Enabled` and `Disabled`. When set to `Enabled`, IP filtering rules are applied to a bucket and all incoming requests to the bucket are evaluated against these rules. When set to `Disabled`, IP filtering rules are not applied to a bucket.".
optional string mode = 1;- Specified by:
getModein interfaceBucket.IpFilterOrBuilder- Returns:
- The mode.
-
getModeBytes
public com.google.protobuf.ByteString getModeBytes()The state of the IP filter configuration. Valid values are `Enabled` and `Disabled`. When set to `Enabled`, IP filtering rules are applied to a bucket and all incoming requests to the bucket are evaluated against these rules. When set to `Disabled`, IP filtering rules are not applied to a bucket.".
optional string mode = 1;- Specified by:
getModeBytesin interfaceBucket.IpFilterOrBuilder- Returns:
- The bytes for mode.
-
hasPublicNetworkSource
public boolean hasPublicNetworkSource()Public IPs allowed to operate or access the bucket.
optional .google.storage.v2.Bucket.IpFilter.PublicNetworkSource public_network_source = 2;- Specified by:
hasPublicNetworkSourcein interfaceBucket.IpFilterOrBuilder- Returns:
- Whether the publicNetworkSource field is set.
-
getPublicNetworkSource
Public IPs allowed to operate or access the bucket.
optional .google.storage.v2.Bucket.IpFilter.PublicNetworkSource public_network_source = 2;- Specified by:
getPublicNetworkSourcein interfaceBucket.IpFilterOrBuilder- Returns:
- The publicNetworkSource.
-
getPublicNetworkSourceOrBuilder
Public IPs allowed to operate or access the bucket.
optional .google.storage.v2.Bucket.IpFilter.PublicNetworkSource public_network_source = 2;- Specified by:
getPublicNetworkSourceOrBuilderin interfaceBucket.IpFilterOrBuilder
-
getVpcNetworkSourcesList
Optional. The list of network sources that are allowed to access operations on the bucket or the underlying objects.
repeated .google.storage.v2.Bucket.IpFilter.VpcNetworkSource vpc_network_sources = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getVpcNetworkSourcesListin interfaceBucket.IpFilterOrBuilder
-
getVpcNetworkSourcesOrBuilderList
public List<? extends Bucket.IpFilter.VpcNetworkSourceOrBuilder> getVpcNetworkSourcesOrBuilderList()Optional. The list of network sources that are allowed to access operations on the bucket or the underlying objects.
repeated .google.storage.v2.Bucket.IpFilter.VpcNetworkSource vpc_network_sources = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getVpcNetworkSourcesOrBuilderListin interfaceBucket.IpFilterOrBuilder
-
getVpcNetworkSourcesCount
public int getVpcNetworkSourcesCount()Optional. The list of network sources that are allowed to access operations on the bucket or the underlying objects.
repeated .google.storage.v2.Bucket.IpFilter.VpcNetworkSource vpc_network_sources = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getVpcNetworkSourcesCountin interfaceBucket.IpFilterOrBuilder
-
getVpcNetworkSources
Optional. The list of network sources that are allowed to access operations on the bucket or the underlying objects.
repeated .google.storage.v2.Bucket.IpFilter.VpcNetworkSource vpc_network_sources = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getVpcNetworkSourcesin interfaceBucket.IpFilterOrBuilder
-
getVpcNetworkSourcesOrBuilder
Optional. The list of network sources that are allowed to access operations on the bucket or the underlying objects.
repeated .google.storage.v2.Bucket.IpFilter.VpcNetworkSource vpc_network_sources = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getVpcNetworkSourcesOrBuilderin interfaceBucket.IpFilterOrBuilder
-
getAllowCrossOrgVpcs
public boolean getAllowCrossOrgVpcs()Optional. Whether or not to allow VPCs from orgs different than the bucket's parent org to access the bucket. When set to true, validations on the existence of the VPCs won't be performed. If set to false, each VPC network source will be checked to belong to the same org as the bucket as well as validated for existence.
bool allow_cross_org_vpcs = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAllowCrossOrgVpcsin interfaceBucket.IpFilterOrBuilder- Returns:
- The allowCrossOrgVpcs.
-
hasAllowAllServiceAgentAccess
public boolean hasAllowAllServiceAgentAccess()Whether or not to allow all P4SA access to the bucket. When set to true, IP filter config validation will not apply.
optional bool allow_all_service_agent_access = 5;- Specified by:
hasAllowAllServiceAgentAccessin interfaceBucket.IpFilterOrBuilder- Returns:
- Whether the allowAllServiceAgentAccess field is set.
-
getAllowAllServiceAgentAccess
public boolean getAllowAllServiceAgentAccess()Whether or not to allow all P4SA access to the bucket. When set to true, IP filter config validation will not apply.
optional bool allow_all_service_agent_access = 5;- Specified by:
getAllowAllServiceAgentAccessin interfaceBucket.IpFilterOrBuilder- Returns:
- The allowAllServiceAgentAccess.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Bucket.IpFilter parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Bucket.IpFilter parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Bucket.IpFilter parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Bucket.IpFilter parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Bucket.IpFilter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Bucket.IpFilter parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Bucket.IpFilter parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Bucket.IpFilter parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Bucket.IpFilter parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Bucket.IpFilter parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Bucket.IpFilter.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-