Class ProjectRepoId (2.22.0)

public final class ProjectRepoId extends GeneratedMessageV3 implements ProjectRepoIdOrBuilder

Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project.

Protobuf type grafeas.v1.ProjectRepoId

Static Fields

PROJECT_ID_FIELD_NUMBER

public static final int PROJECT_ID_FIELD_NUMBER
Field Value
TypeDescription
int

REPO_NAME_FIELD_NUMBER

public static final int REPO_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ProjectRepoId getDefaultInstance()
Returns
TypeDescription
ProjectRepoId

getDescriptor()

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

newBuilder()

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

newBuilder(ProjectRepoId prototype)

public static ProjectRepoId.Builder newBuilder(ProjectRepoId prototype)
Parameter
NameDescription
prototypeProjectRepoId
Returns
TypeDescription
ProjectRepoId.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public ProjectRepoId getDefaultInstanceForType()
Returns
TypeDescription
ProjectRepoId

getParserForType()

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

getProjectId()

public String getProjectId()

The ID of the project.

string project_id = 1;

Returns
TypeDescription
String

The projectId.

getProjectIdBytes()

public ByteString getProjectIdBytes()

The ID of the project.

string project_id = 1;

Returns
TypeDescription
ByteString

The bytes for projectId.

getRepoName()

public String getRepoName()

The name of the repo. Leave empty for the default repo.

string repo_name = 2;

Returns
TypeDescription
String

The repoName.

getRepoNameBytes()

public ByteString getRepoNameBytes()

The name of the repo. Leave empty for the default repo.

string repo_name = 2;

Returns
TypeDescription
ByteString

The bytes for repoName.

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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