Class UpstreamPolicy (1.29.0)

public final class UpstreamPolicy extends GeneratedMessageV3 implements UpstreamPolicyOrBuilder

Artifact policy configuration for the repository contents.

Protobuf type google.devtools.artifactregistry.v1.UpstreamPolicy

Static Fields

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
TypeDescription
int

PRIORITY_FIELD_NUMBER

public static final int PRIORITY_FIELD_NUMBER
Field Value
TypeDescription
int

REPOSITORY_FIELD_NUMBER

public static final int REPOSITORY_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static UpstreamPolicy getDefaultInstance()
Returns
TypeDescription
UpstreamPolicy

getDescriptor()

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

newBuilder()

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

newBuilder(UpstreamPolicy prototype)

public static UpstreamPolicy.Builder newBuilder(UpstreamPolicy prototype)
Parameter
NameDescription
prototypeUpstreamPolicy
Returns
TypeDescription
UpstreamPolicy.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public UpstreamPolicy getDefaultInstanceForType()
Returns
TypeDescription
UpstreamPolicy

getId()

public String getId()

The user-provided ID of the upstream policy.

string id = 1;

Returns
TypeDescription
String

The id.

getIdBytes()

public ByteString getIdBytes()

The user-provided ID of the upstream policy.

string id = 1;

Returns
TypeDescription
ByteString

The bytes for id.

getParserForType()

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

getPriority()

public int getPriority()

Entries with a greater priority value take precedence in the pull order.

int32 priority = 3;

Returns
TypeDescription
int

The priority.

getRepository()

public String getRepository()

A reference to the repository resource, for example: projects/p1/locations/us-central1/repositories/repo1.

string repository = 2 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The repository.

getRepositoryBytes()

public ByteString getRepositoryBytes()

A reference to the repository resource, for example: projects/p1/locations/us-central1/repositories/repo1.

string repository = 2 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for repository.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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 UpstreamPolicy.Builder newBuilderForType()
Returns
TypeDescription
UpstreamPolicy.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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