Class GuestPolicies.EffectiveGuestPolicy (2.48.0)

public static final class GuestPolicies.EffectiveGuestPolicy extends GeneratedMessageV3 implements GuestPolicies.EffectiveGuestPolicyOrBuilder

The effective guest policy that applies to a VM instance.

Protobuf type google.cloud.osconfig.v1beta.EffectiveGuestPolicy

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > GuestPolicies.EffectiveGuestPolicy

Static Fields

PACKAGES_FIELD_NUMBER

public static final int PACKAGES_FIELD_NUMBER
Field Value
Type Description
int

PACKAGE_REPOSITORIES_FIELD_NUMBER

public static final int PACKAGE_REPOSITORIES_FIELD_NUMBER
Field Value
Type Description
int

SOFTWARE_RECIPES_FIELD_NUMBER

public static final int SOFTWARE_RECIPES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static GuestPolicies.EffectiveGuestPolicy getDefaultInstance()
Returns
Type Description
GuestPolicies.EffectiveGuestPolicy

getDescriptor()

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

newBuilder()

public static GuestPolicies.EffectiveGuestPolicy.Builder newBuilder()
Returns
Type Description
GuestPolicies.EffectiveGuestPolicy.Builder

newBuilder(GuestPolicies.EffectiveGuestPolicy prototype)

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

parseDelimitedFrom(InputStream input)

public static GuestPolicies.EffectiveGuestPolicy parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
GuestPolicies.EffectiveGuestPolicy
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static GuestPolicies.EffectiveGuestPolicy parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
GuestPolicies.EffectiveGuestPolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static GuestPolicies.EffectiveGuestPolicy parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
GuestPolicies.EffectiveGuestPolicy
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static GuestPolicies.EffectiveGuestPolicy parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
GuestPolicies.EffectiveGuestPolicy
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static GuestPolicies.EffectiveGuestPolicy parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
GuestPolicies.EffectiveGuestPolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<GuestPolicies.EffectiveGuestPolicy> parser()
Returns
Type Description
Parser<EffectiveGuestPolicy>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public GuestPolicies.EffectiveGuestPolicy getDefaultInstanceForType()
Returns
Type Description
GuestPolicies.EffectiveGuestPolicy

getPackageRepositories(int index)

public GuestPolicies.EffectiveGuestPolicy.SourcedPackageRepository getPackageRepositories(int index)

List of package repository configurations assigned to the VM instance.

repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedPackageRepository package_repositories = 2;

Parameter
Name Description
index int
Returns
Type Description
GuestPolicies.EffectiveGuestPolicy.SourcedPackageRepository

getPackageRepositoriesCount()

public int getPackageRepositoriesCount()

List of package repository configurations assigned to the VM instance.

repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedPackageRepository package_repositories = 2;

Returns
Type Description
int

getPackageRepositoriesList()

public List<GuestPolicies.EffectiveGuestPolicy.SourcedPackageRepository> getPackageRepositoriesList()

List of package repository configurations assigned to the VM instance.

repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedPackageRepository package_repositories = 2;

Returns
Type Description
List<SourcedPackageRepository>

getPackageRepositoriesOrBuilder(int index)

public GuestPolicies.EffectiveGuestPolicy.SourcedPackageRepositoryOrBuilder getPackageRepositoriesOrBuilder(int index)

List of package repository configurations assigned to the VM instance.

repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedPackageRepository package_repositories = 2;

Parameter
Name Description
index int
Returns
Type Description
GuestPolicies.EffectiveGuestPolicy.SourcedPackageRepositoryOrBuilder

getPackageRepositoriesOrBuilderList()

public List<? extends GuestPolicies.EffectiveGuestPolicy.SourcedPackageRepositoryOrBuilder> getPackageRepositoriesOrBuilderList()

List of package repository configurations assigned to the VM instance.

repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedPackageRepository package_repositories = 2;

Returns
Type Description
List<? extends com.google.cloud.osconfig.v1beta.GuestPolicies.EffectiveGuestPolicy.SourcedPackageRepositoryOrBuilder>

getPackages(int index)

public GuestPolicies.EffectiveGuestPolicy.SourcedPackage getPackages(int index)

List of package configurations assigned to the VM instance.

repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedPackage packages = 1;

Parameter
Name Description
index int
Returns
Type Description
GuestPolicies.EffectiveGuestPolicy.SourcedPackage

getPackagesCount()

public int getPackagesCount()

List of package configurations assigned to the VM instance.

repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedPackage packages = 1;

Returns
Type Description
int

getPackagesList()

public List<GuestPolicies.EffectiveGuestPolicy.SourcedPackage> getPackagesList()

List of package configurations assigned to the VM instance.

repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedPackage packages = 1;

Returns
Type Description
List<SourcedPackage>

getPackagesOrBuilder(int index)

public GuestPolicies.EffectiveGuestPolicy.SourcedPackageOrBuilder getPackagesOrBuilder(int index)

List of package configurations assigned to the VM instance.

repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedPackage packages = 1;

Parameter
Name Description
index int
Returns
Type Description
GuestPolicies.EffectiveGuestPolicy.SourcedPackageOrBuilder

getPackagesOrBuilderList()

public List<? extends GuestPolicies.EffectiveGuestPolicy.SourcedPackageOrBuilder> getPackagesOrBuilderList()

List of package configurations assigned to the VM instance.

repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedPackage packages = 1;

Returns
Type Description
List<? extends com.google.cloud.osconfig.v1beta.GuestPolicies.EffectiveGuestPolicy.SourcedPackageOrBuilder>

getParserForType()

public Parser<GuestPolicies.EffectiveGuestPolicy> getParserForType()
Returns
Type Description
Parser<EffectiveGuestPolicy>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSoftwareRecipes(int index)

public GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe getSoftwareRecipes(int index)

List of recipes assigned to the VM instance.

repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedSoftwareRecipe software_recipes = 3;

Parameter
Name Description
index int
Returns
Type Description
GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe

getSoftwareRecipesCount()

public int getSoftwareRecipesCount()

List of recipes assigned to the VM instance.

repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedSoftwareRecipe software_recipes = 3;

Returns
Type Description
int

getSoftwareRecipesList()

public List<GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipe> getSoftwareRecipesList()

List of recipes assigned to the VM instance.

repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedSoftwareRecipe software_recipes = 3;

Returns
Type Description
List<SourcedSoftwareRecipe>

getSoftwareRecipesOrBuilder(int index)

public GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipeOrBuilder getSoftwareRecipesOrBuilder(int index)

List of recipes assigned to the VM instance.

repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedSoftwareRecipe software_recipes = 3;

Parameter
Name Description
index int
Returns
Type Description
GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipeOrBuilder

getSoftwareRecipesOrBuilderList()

public List<? extends GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipeOrBuilder> getSoftwareRecipesOrBuilderList()

List of recipes assigned to the VM instance.

repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedSoftwareRecipe software_recipes = 3;

Returns
Type Description
List<? extends com.google.cloud.osconfig.v1beta.GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipeOrBuilder>

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public GuestPolicies.EffectiveGuestPolicy.Builder newBuilderForType()
Returns
Type Description
GuestPolicies.EffectiveGuestPolicy.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected GuestPolicies.EffectiveGuestPolicy.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
GuestPolicies.EffectiveGuestPolicy.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public GuestPolicies.EffectiveGuestPolicy.Builder toBuilder()
Returns
Type Description
GuestPolicies.EffectiveGuestPolicy.Builder

writeTo(CodedOutputStream output)

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