Class Artifacts.NpmPackage (3.38.0)

public static final class Artifacts.NpmPackage extends GeneratedMessageV3 implements Artifacts.NpmPackageOrBuilder

Npm package to upload to Artifact Registry upon successful completion of all build steps.

Protobuf type google.devtools.cloudbuild.v1.Artifacts.NpmPackage

Static Fields

PACKAGE_PATH_FIELD_NUMBER

public static final int PACKAGE_PATH_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 Artifacts.NpmPackage getDefaultInstance()
Returns
TypeDescription
Artifacts.NpmPackage

getDescriptor()

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

newBuilder()

public static Artifacts.NpmPackage.Builder newBuilder()
Returns
TypeDescription
Artifacts.NpmPackage.Builder

newBuilder(Artifacts.NpmPackage prototype)

public static Artifacts.NpmPackage.Builder newBuilder(Artifacts.NpmPackage prototype)
Parameter
NameDescription
prototypeArtifacts.NpmPackage
Returns
TypeDescription
Artifacts.NpmPackage.Builder

parseDelimitedFrom(InputStream input)

public static Artifacts.NpmPackage parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Artifacts.NpmPackage
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static Artifacts.NpmPackage parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Artifacts.NpmPackage
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static Artifacts.NpmPackage parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Artifacts.NpmPackage
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static Artifacts.NpmPackage parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Artifacts.NpmPackage
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static Artifacts.NpmPackage parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Artifacts.NpmPackage
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<Artifacts.NpmPackage> parser()
Returns
TypeDescription
Parser<NpmPackage>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public Artifacts.NpmPackage getDefaultInstanceForType()
Returns
TypeDescription
Artifacts.NpmPackage

getPackagePath()

public String getPackagePath()

Path to the package.json. e.g. workspace/path/to/package

string package_path = 2;

Returns
TypeDescription
String

The packagePath.

getPackagePathBytes()

public ByteString getPackagePathBytes()

Path to the package.json. e.g. workspace/path/to/package

string package_path = 2;

Returns
TypeDescription
ByteString

The bytes for packagePath.

getParserForType()

public Parser<Artifacts.NpmPackage> getParserForType()
Returns
TypeDescription
Parser<NpmPackage>
Overrides

getRepository()

public String getRepository()

Artifact Registry repository, in the form "https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY"

Npm package in the workspace specified by path will be zipped and uploaded to Artifact Registry with this location as a prefix.

string repository = 1;

Returns
TypeDescription
String

The repository.

getRepositoryBytes()

public ByteString getRepositoryBytes()

Artifact Registry repository, in the form "https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY"

Npm package in the workspace specified by path will be zipped and uploaded to Artifact Registry with this location as a prefix.

string repository = 1;

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public Artifacts.NpmPackage.Builder toBuilder()
Returns
TypeDescription
Artifacts.NpmPackage.Builder

writeTo(CodedOutputStream output)

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