Class OSPolicy.Resource.RepositoryResource (2.41.0)

public static final class OSPolicy.Resource.RepositoryResource extends GeneratedMessageV3 implements OSPolicy.Resource.RepositoryResourceOrBuilder

A resource that manages a package repository.

Protobuf type google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > OSPolicy.Resource.RepositoryResource

Static Fields

APT_FIELD_NUMBER

public static final int APT_FIELD_NUMBER
Field Value
TypeDescription
int

GOO_FIELD_NUMBER

public static final int GOO_FIELD_NUMBER
Field Value
TypeDescription
int

YUM_FIELD_NUMBER

public static final int YUM_FIELD_NUMBER
Field Value
TypeDescription
int

ZYPPER_FIELD_NUMBER

public static final int ZYPPER_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static OSPolicy.Resource.RepositoryResource getDefaultInstance()
Returns
TypeDescription
OSPolicy.Resource.RepositoryResource

getDescriptor()

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

newBuilder()

public static OSPolicy.Resource.RepositoryResource.Builder newBuilder()
Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.Builder

newBuilder(OSPolicy.Resource.RepositoryResource prototype)

public static OSPolicy.Resource.RepositoryResource.Builder newBuilder(OSPolicy.Resource.RepositoryResource prototype)
Parameter
NameDescription
prototypeOSPolicy.Resource.RepositoryResource
Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.Builder

parseDelimitedFrom(InputStream input)

public static OSPolicy.Resource.RepositoryResource parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
OSPolicy.Resource.RepositoryResource
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static OSPolicy.Resource.RepositoryResource parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OSPolicy.Resource.RepositoryResource
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static OSPolicy.Resource.RepositoryResource parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
OSPolicy.Resource.RepositoryResource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static OSPolicy.Resource.RepositoryResource parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
OSPolicy.Resource.RepositoryResource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static OSPolicy.Resource.RepositoryResource parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OSPolicy.Resource.RepositoryResource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static OSPolicy.Resource.RepositoryResource parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
OSPolicy.Resource.RepositoryResource
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static OSPolicy.Resource.RepositoryResource parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OSPolicy.Resource.RepositoryResource
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static OSPolicy.Resource.RepositoryResource parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
OSPolicy.Resource.RepositoryResource
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static OSPolicy.Resource.RepositoryResource parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OSPolicy.Resource.RepositoryResource
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static OSPolicy.Resource.RepositoryResource parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
OSPolicy.Resource.RepositoryResource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static OSPolicy.Resource.RepositoryResource parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OSPolicy.Resource.RepositoryResource
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<OSPolicy.Resource.RepositoryResource> parser()
Returns
TypeDescription
Parser<RepositoryResource>

Methods

equals(Object obj)

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

getApt()

public OSPolicy.Resource.RepositoryResource.AptRepository getApt()

An Apt Repository.

.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository apt = 1;

Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.AptRepository

The apt.

getAptOrBuilder()

public OSPolicy.Resource.RepositoryResource.AptRepositoryOrBuilder getAptOrBuilder()

An Apt Repository.

.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository apt = 1;

Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.AptRepositoryOrBuilder

getDefaultInstanceForType()

public OSPolicy.Resource.RepositoryResource getDefaultInstanceForType()
Returns
TypeDescription
OSPolicy.Resource.RepositoryResource

getGoo()

public OSPolicy.Resource.RepositoryResource.GooRepository getGoo()

A Goo Repository.

.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.GooRepository goo = 4;

Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.GooRepository

The goo.

getGooOrBuilder()

public OSPolicy.Resource.RepositoryResource.GooRepositoryOrBuilder getGooOrBuilder()

A Goo Repository.

.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.GooRepository goo = 4;

Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.GooRepositoryOrBuilder

getParserForType()

public Parser<OSPolicy.Resource.RepositoryResource> getParserForType()
Returns
TypeDescription
Parser<RepositoryResource>
Overrides

getRepositoryCase()

public OSPolicy.Resource.RepositoryResource.RepositoryCase getRepositoryCase()
Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.RepositoryCase

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getYum()

public OSPolicy.Resource.RepositoryResource.YumRepository getYum()

A Yum Repository.

.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository yum = 2;

Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.YumRepository

The yum.

getYumOrBuilder()

public OSPolicy.Resource.RepositoryResource.YumRepositoryOrBuilder getYumOrBuilder()

A Yum Repository.

.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository yum = 2;

Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.YumRepositoryOrBuilder

getZypper()

public OSPolicy.Resource.RepositoryResource.ZypperRepository getZypper()

A Zypper Repository.

.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository zypper = 3;

Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.ZypperRepository

The zypper.

getZypperOrBuilder()

public OSPolicy.Resource.RepositoryResource.ZypperRepositoryOrBuilder getZypperOrBuilder()

A Zypper Repository.

.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository zypper = 3;

Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.ZypperRepositoryOrBuilder

hasApt()

public boolean hasApt()

An Apt Repository.

.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository apt = 1;

Returns
TypeDescription
boolean

Whether the apt field is set.

hasGoo()

public boolean hasGoo()

A Goo Repository.

.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.GooRepository goo = 4;

Returns
TypeDescription
boolean

Whether the goo field is set.

hasYum()

public boolean hasYum()

A Yum Repository.

.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository yum = 2;

Returns
TypeDescription
boolean

Whether the yum field is set.

hasZypper()

public boolean hasZypper()

A Zypper Repository.

.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository zypper = 3;

Returns
TypeDescription
boolean

Whether the zypper field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public OSPolicy.Resource.RepositoryResource.Builder newBuilderForType()
Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected OSPolicy.Resource.RepositoryResource.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public OSPolicy.Resource.RepositoryResource.Builder toBuilder()
Returns
TypeDescription
OSPolicy.Resource.RepositoryResource.Builder

writeTo(CodedOutputStream output)

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