Class SnapshotSettingsStorageLocationSettings (1.51.0)

public final class SnapshotSettingsStorageLocationSettings extends GeneratedMessageV3 implements SnapshotSettingsStorageLocationSettingsOrBuilder

Protobuf type google.cloud.compute.v1.SnapshotSettingsStorageLocationSettings

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > SnapshotSettingsStorageLocationSettings
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

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()

getDescriptor()

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

newBuilder()

public static SnapshotSettingsStorageLocationSettings.Builder newBuilder()

newBuilder(SnapshotSettingsStorageLocationSettings prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<SnapshotSettingsStorageLocationSettings> parser()

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()

getLocations() (deprecated)

public Map<String,SnapshotSettingsStorageLocationSettingsStorageLocationPreference> getLocations()

Use #getLocationsMap() instead.

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;

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;

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

getParserForType()

public Parser<SnapshotSettingsStorageLocationSettings> getParserForType()
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()

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public SnapshotSettingsStorageLocationSettings.Builder toBuilder()

writeTo(CodedOutputStream output)

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