Class SnapshotSettingsStorageLocationSettings (1.47.0)

public final class SnapshotSettingsStorageLocationSettings extends GeneratedMessageV3 implements SnapshotSettingsStorageLocationSettingsOrBuilder

Protobuf type google.cloud.compute.v1.SnapshotSettingsStorageLocationSettings

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > SnapshotSettingsStorageLocationSettings

Static Fields

LOCATIONS_FIELD_NUMBER

public static final int LOCATIONS_FIELD_NUMBER
Field Value
TypeDescription
int

POLICY_FIELD_NUMBER

public static final int POLICY_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SnapshotSettingsStorageLocationSettings getDefaultInstance()
Returns
TypeDescription
SnapshotSettingsStorageLocationSettings

getDescriptor()

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

newBuilder()

public static SnapshotSettingsStorageLocationSettings.Builder newBuilder()
Returns
TypeDescription
SnapshotSettingsStorageLocationSettings.Builder

newBuilder(SnapshotSettingsStorageLocationSettings prototype)

public static SnapshotSettingsStorageLocationSettings.Builder newBuilder(SnapshotSettingsStorageLocationSettings prototype)
Parameter
NameDescription
prototypeSnapshotSettingsStorageLocationSettings
Returns
TypeDescription
SnapshotSettingsStorageLocationSettings.Builder

parseDelimitedFrom(InputStream input)

public static SnapshotSettingsStorageLocationSettings parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SnapshotSettingsStorageLocationSettings
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SnapshotSettingsStorageLocationSettings parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SnapshotSettingsStorageLocationSettings
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static SnapshotSettingsStorageLocationSettings parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
SnapshotSettingsStorageLocationSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SnapshotSettingsStorageLocationSettings parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SnapshotSettingsStorageLocationSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SnapshotSettingsStorageLocationSettings parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
SnapshotSettingsStorageLocationSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SnapshotSettingsStorageLocationSettings parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SnapshotSettingsStorageLocationSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SnapshotSettingsStorageLocationSettings parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
SnapshotSettingsStorageLocationSettings
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SnapshotSettingsStorageLocationSettings parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SnapshotSettingsStorageLocationSettings
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static SnapshotSettingsStorageLocationSettings parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SnapshotSettingsStorageLocationSettings
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SnapshotSettingsStorageLocationSettings parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SnapshotSettingsStorageLocationSettings
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static SnapshotSettingsStorageLocationSettings parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
SnapshotSettingsStorageLocationSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SnapshotSettingsStorageLocationSettings parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SnapshotSettingsStorageLocationSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<SnapshotSettingsStorageLocationSettings> parser()
Returns
TypeDescription
Parser<SnapshotSettingsStorageLocationSettings>

Methods

containsLocations(String key)

public boolean containsLocations(String key)

When the policy is SPECIFIC_LOCATIONS, snapshots will be stored in the locations listed in this field. Keys are GCS bucket locations.

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

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public SnapshotSettingsStorageLocationSettings getDefaultInstanceForType()
Returns
TypeDescription
SnapshotSettingsStorageLocationSettings

getLocations() (deprecated)

public Map<String,SnapshotSettingsStorageLocationSettingsStorageLocationPreference> getLocations()

Use #getLocationsMap() instead.

Returns
TypeDescription
Map<String,SnapshotSettingsStorageLocationSettingsStorageLocationPreference>

getLocationsCount()

public int getLocationsCount()

When the policy is SPECIFIC_LOCATIONS, snapshots will be stored in the locations listed in this field. Keys are GCS bucket locations.

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

Returns
TypeDescription
int

getLocationsMap()

public Map<String,SnapshotSettingsStorageLocationSettingsStorageLocationPreference> getLocationsMap()

When the policy is SPECIFIC_LOCATIONS, snapshots will be stored in the locations listed in this field. Keys are GCS bucket locations.

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

Returns
TypeDescription
Map<String,SnapshotSettingsStorageLocationSettingsStorageLocationPreference>

getLocationsOrDefault(String key, SnapshotSettingsStorageLocationSettingsStorageLocationPreference defaultValue)

public SnapshotSettingsStorageLocationSettingsStorageLocationPreference getLocationsOrDefault(String key, SnapshotSettingsStorageLocationSettingsStorageLocationPreference defaultValue)

When the policy is SPECIFIC_LOCATIONS, snapshots will be stored in the locations listed in this field. Keys are GCS bucket locations.

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

Parameters
NameDescription
keyString
defaultValueSnapshotSettingsStorageLocationSettingsStorageLocationPreference
Returns
TypeDescription
SnapshotSettingsStorageLocationSettingsStorageLocationPreference

getLocationsOrThrow(String key)

public SnapshotSettingsStorageLocationSettingsStorageLocationPreference getLocationsOrThrow(String key)

When the policy is SPECIFIC_LOCATIONS, snapshots will be stored in the locations listed in this field. Keys are GCS bucket locations.

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

Parameter
NameDescription
keyString
Returns
TypeDescription
SnapshotSettingsStorageLocationSettingsStorageLocationPreference

getParserForType()

public Parser<SnapshotSettingsStorageLocationSettings> getParserForType()
Returns
TypeDescription
Parser<SnapshotSettingsStorageLocationSettings>
Overrides

getPolicy()

public String getPolicy()

The chosen location policy. Check the Policy enum for the list of possible values.

optional string policy = 91071794;

Returns
TypeDescription
String

The policy.

getPolicyBytes()

public ByteString getPolicyBytes()

The chosen location policy. Check the Policy enum for the list of possible values.

optional string policy = 91071794;

Returns
TypeDescription
ByteString

The bytes for policy.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasPolicy()

public boolean hasPolicy()

The chosen location policy. Check the Policy enum for the list of possible values.

optional string policy = 91071794;

Returns
TypeDescription
boolean

Whether the policy field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public SnapshotSettingsStorageLocationSettings.Builder newBuilderForType()
Returns
TypeDescription
SnapshotSettingsStorageLocationSettings.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SnapshotSettingsStorageLocationSettings.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
SnapshotSettingsStorageLocationSettings.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public SnapshotSettingsStorageLocationSettings.Builder toBuilder()
Returns
TypeDescription
SnapshotSettingsStorageLocationSettings.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException