Class SnapshotSettingsAccessLocation (1.105.0)

public final class SnapshotSettingsAccessLocation extends GeneratedMessage implements SnapshotSettingsAccessLocationOrBuilder

Protobuf type google.cloud.compute.v1.SnapshotSettingsAccessLocation

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > SnapshotSettingsAccessLocation

Static Fields

LOCATIONS_FIELD_NUMBER

public static final int LOCATIONS_FIELD_NUMBER
Field Value
Type Description
int

POLICY_FIELD_NUMBER

public static final int POLICY_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SnapshotSettingsAccessLocation getDefaultInstance()
Returns
Type Description
SnapshotSettingsAccessLocation

getDescriptor()

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

newBuilder()

public static SnapshotSettingsAccessLocation.Builder newBuilder()
Returns
Type Description
SnapshotSettingsAccessLocation.Builder

newBuilder(SnapshotSettingsAccessLocation prototype)

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

parseDelimitedFrom(InputStream input)

public static SnapshotSettingsAccessLocation parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SnapshotSettingsAccessLocation
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static SnapshotSettingsAccessLocation parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
SnapshotSettingsAccessLocation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static SnapshotSettingsAccessLocation parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SnapshotSettingsAccessLocation
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static SnapshotSettingsAccessLocation parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SnapshotSettingsAccessLocation
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static SnapshotSettingsAccessLocation parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SnapshotSettingsAccessLocation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<SnapshotSettingsAccessLocation> parser()
Returns
Type Description
Parser<SnapshotSettingsAccessLocation>

Methods

containsLocations(String key)

public boolean containsLocations(String key)

List of regions that can restore a regional snapshot from the current region

map<string, .google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference> locations = 413423454;

Parameter
Name Description
key String
Returns
Type Description
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public SnapshotSettingsAccessLocation getDefaultInstanceForType()
Returns
Type Description
SnapshotSettingsAccessLocation

getLocations() (deprecated)

public Map<String,SnapshotSettingsAccessLocationAccessLocationPreference> getLocations()

Use #getLocationsMap() instead.

Returns
Type Description
Map<String,SnapshotSettingsAccessLocationAccessLocationPreference>

getLocationsCount()

public int getLocationsCount()

List of regions that can restore a regional snapshot from the current region

map<string, .google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference> locations = 413423454;

Returns
Type Description
int

getLocationsMap()

public Map<String,SnapshotSettingsAccessLocationAccessLocationPreference> getLocationsMap()

List of regions that can restore a regional snapshot from the current region

map<string, .google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference> locations = 413423454;

Returns
Type Description
Map<String,SnapshotSettingsAccessLocationAccessLocationPreference>

getLocationsOrDefault(String key, SnapshotSettingsAccessLocationAccessLocationPreference defaultValue)

public SnapshotSettingsAccessLocationAccessLocationPreference getLocationsOrDefault(String key, SnapshotSettingsAccessLocationAccessLocationPreference defaultValue)

List of regions that can restore a regional snapshot from the current region

map<string, .google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference> locations = 413423454;

Parameters
Name Description
key String
defaultValue SnapshotSettingsAccessLocationAccessLocationPreference
Returns
Type Description
SnapshotSettingsAccessLocationAccessLocationPreference

getLocationsOrThrow(String key)

public SnapshotSettingsAccessLocationAccessLocationPreference getLocationsOrThrow(String key)

List of regions that can restore a regional snapshot from the current region

map<string, .google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference> locations = 413423454;

Parameter
Name Description
key String
Returns
Type Description
SnapshotSettingsAccessLocationAccessLocationPreference

getParserForType()

public Parser<SnapshotSettingsAccessLocation> getParserForType()
Returns
Type Description
Parser<SnapshotSettingsAccessLocation>
Overrides

getPolicy()

public String getPolicy()

Policy of which location is allowed to access snapshot. Check the Policy enum for the list of possible values.

optional string policy = 91071794;

Returns
Type Description
String

The policy.

getPolicyBytes()

public ByteString getPolicyBytes()

Policy of which location is allowed to access snapshot. Check the Policy enum for the list of possible values.

optional string policy = 91071794;

Returns
Type Description
ByteString

The bytes for policy.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasPolicy()

public boolean hasPolicy()

Policy of which location is allowed to access snapshot. Check the Policy enum for the list of possible values.

optional string policy = 91071794;

Returns
Type Description
boolean

Whether the policy field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public SnapshotSettingsAccessLocation.Builder newBuilderForType()
Returns
Type Description
SnapshotSettingsAccessLocation.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected SnapshotSettingsAccessLocation.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
SnapshotSettingsAccessLocation.Builder
Overrides

toBuilder()

public SnapshotSettingsAccessLocation.Builder toBuilder()
Returns
Type Description
SnapshotSettingsAccessLocation.Builder

writeTo(CodedOutputStream output)

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