Class ShareSettings (1.49.0)

public final class ShareSettings extends GeneratedMessageV3 implements ShareSettingsOrBuilder

The share setting for reservations and sole tenancy node groups.

Protobuf type google.cloud.compute.v1.ShareSettings

Static Fields

PROJECT_MAP_FIELD_NUMBER

public static final int PROJECT_MAP_FIELD_NUMBER
Field Value
TypeDescription
int

SHARE_TYPE_FIELD_NUMBER

public static final int SHARE_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ShareSettings getDefaultInstance()
Returns
TypeDescription
ShareSettings

getDescriptor()

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

newBuilder()

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

newBuilder(ShareSettings prototype)

public static ShareSettings.Builder newBuilder(ShareSettings prototype)
Parameter
NameDescription
prototypeShareSettings
Returns
TypeDescription
ShareSettings.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

containsProjectMap(String key)

public boolean containsProjectMap(String key)

A map of project id and project config. This is only valid when share_type's value is SPECIFIC_PROJECTS.

map<string, .google.cloud.compute.v1.ShareSettingsProjectConfig> project_map = 134212406;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

equals(Object obj)

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

getDefaultInstanceForType()

public ShareSettings getDefaultInstanceForType()
Returns
TypeDescription
ShareSettings

getParserForType()

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

getProjectMap() (deprecated)

public Map<String,ShareSettingsProjectConfig> getProjectMap()

Use #getProjectMapMap() instead.

Returns
TypeDescription
Map<String,ShareSettingsProjectConfig>

getProjectMapCount()

public int getProjectMapCount()

A map of project id and project config. This is only valid when share_type's value is SPECIFIC_PROJECTS.

map<string, .google.cloud.compute.v1.ShareSettingsProjectConfig> project_map = 134212406;

Returns
TypeDescription
int

getProjectMapMap()

public Map<String,ShareSettingsProjectConfig> getProjectMapMap()

A map of project id and project config. This is only valid when share_type's value is SPECIFIC_PROJECTS.

map<string, .google.cloud.compute.v1.ShareSettingsProjectConfig> project_map = 134212406;

Returns
TypeDescription
Map<String,ShareSettingsProjectConfig>

getProjectMapOrDefault(String key, ShareSettingsProjectConfig defaultValue)

public ShareSettingsProjectConfig getProjectMapOrDefault(String key, ShareSettingsProjectConfig defaultValue)

A map of project id and project config. This is only valid when share_type's value is SPECIFIC_PROJECTS.

map<string, .google.cloud.compute.v1.ShareSettingsProjectConfig> project_map = 134212406;

Parameters
NameDescription
keyString
defaultValueShareSettingsProjectConfig
Returns
TypeDescription
ShareSettingsProjectConfig

getProjectMapOrThrow(String key)

public ShareSettingsProjectConfig getProjectMapOrThrow(String key)

A map of project id and project config. This is only valid when share_type's value is SPECIFIC_PROJECTS.

map<string, .google.cloud.compute.v1.ShareSettingsProjectConfig> project_map = 134212406;

Parameter
NameDescription
keyString
Returns
TypeDescription
ShareSettingsProjectConfig

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getShareType()

public String getShareType()

Type of sharing for this shared-reservation Check the ShareType enum for the list of possible values.

optional string share_type = 359533466;

Returns
TypeDescription
String

The shareType.

getShareTypeBytes()

public ByteString getShareTypeBytes()

Type of sharing for this shared-reservation Check the ShareType enum for the list of possible values.

optional string share_type = 359533466;

Returns
TypeDescription
ByteString

The bytes for shareType.

hasShareType()

public boolean hasShareType()

Type of sharing for this shared-reservation Check the ShareType enum for the list of possible values.

optional string share_type = 359533466;

Returns
TypeDescription
boolean

Whether the shareType 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 ShareSettings.Builder newBuilderForType()
Returns
TypeDescription
ShareSettings.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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