publicfinalclass GitFileSourceextendsGeneratedMessageV3implementsGitFileSourceOrBuilder
GitFileSource describes a file within a (possibly remote) code repository.
Protobuf type google.devtools.cloudbuild.v1.GitFileSource
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
GITHUB_ENTERPRISE_CONFIG_FIELD_NUMBER
publicstaticfinalintGITHUB_ENTERPRISE_CONFIG_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
PATH_FIELD_NUMBER
publicstaticfinalintPATH_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
REPOSITORY_FIELD_NUMBER
publicstaticfinalintREPOSITORY_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
REPO_TYPE_FIELD_NUMBER
publicstaticfinalintREPO_TYPE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
REVISION_FIELD_NUMBER
publicstaticfinalintREVISION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
URI_FIELD_NUMBER
publicstaticfinalintURI_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
Static Methods
getDefaultInstance()
publicstaticGitFileSourcegetDefaultInstance()
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
newBuilder()
publicstaticGitFileSource.BuildernewBuilder()
newBuilder(GitFileSource prototype)
publicstaticGitFileSource.BuildernewBuilder(GitFileSourceprototype)
publicstaticGitFileSourceparseDelimitedFrom(InputStreaminput)
publicstaticGitFileSourceparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(byte[] data)
publicstaticGitFileSourceparseFrom(byte[]data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticGitFileSourceparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteString data)
publicstaticGitFileSourceparseFrom(ByteStringdata)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticGitFileSourceparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
publicstaticGitFileSourceparseFrom(CodedInputStreaminput)
publicstaticGitFileSourceparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
publicstaticGitFileSourceparseFrom(InputStreaminput)
publicstaticGitFileSourceparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteBuffer data)
publicstaticGitFileSourceparseFrom(ByteBufferdata)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticGitFileSourceparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
parser()
publicstaticParser<GitFileSource>parser()
Methods
equals(Object obj)
publicbooleanequals(Objectobj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
publicGitFileSourcegetDefaultInstanceForType()
getEnterpriseConfigCase()
publicGitFileSource.EnterpriseConfigCasegetEnterpriseConfigCase()
getGithubEnterpriseConfig()
publicStringgetGithubEnterpriseConfig()
The full resource name of the github enterprise config.
Format:
projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}.
projects/{project}/githubEnterpriseConfigs/{id}.
string github_enterprise_config = 5 [(.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
String |
The githubEnterpriseConfig.
|
getGithubEnterpriseConfigBytes()
publicByteStringgetGithubEnterpriseConfigBytes()
The full resource name of the github enterprise config.
Format:
projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}.
projects/{project}/githubEnterpriseConfigs/{id}.
string github_enterprise_config = 5 [(.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
ByteString |
The bytes for githubEnterpriseConfig.
|
getParserForType()
publicParser<GitFileSource>getParserForType()
Overrides
getPath()
The path of the file, with the repo root as the root of the path.
string path = 1;
| Returns |
| Type |
Description |
String |
The path.
|
getPathBytes()
publicByteStringgetPathBytes()
The path of the file, with the repo root as the root of the path.
string path = 1;
| Returns |
| Type |
Description |
ByteString |
The bytes for path.
|
getRepoType()
publicGitFileSource.RepoTypegetRepoType()
See RepoType above.
.google.devtools.cloudbuild.v1.GitFileSource.RepoType repo_type = 3;
getRepoTypeValue()
publicintgetRepoTypeValue()
See RepoType above.
.google.devtools.cloudbuild.v1.GitFileSource.RepoType repo_type = 3;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for repoType.
|
getRepository()
publicStringgetRepository()
The fully qualified resource name of the Repos API repository.
Either URI or repository can be specified.
If unspecified, the repo from which the trigger invocation originated is
assumed to be the repo from which to read the specified path.
string repository = 7 [(.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
String |
The repository.
|
getRepositoryBytes()
publicByteStringgetRepositoryBytes()
The fully qualified resource name of the Repos API repository.
Either URI or repository can be specified.
If unspecified, the repo from which the trigger invocation originated is
assumed to be the repo from which to read the specified path.
string repository = 7 [(.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
ByteString |
The bytes for repository.
|
getRevision()
publicStringgetRevision()
The branch, tag, arbitrary ref, or SHA version of the repo to use when
resolving the filename (optional).
This field respects the same syntax/resolution as described here:
https://git-scm.com/docs/gitrevisions
If unspecified, the revision from which the trigger invocation originated
is assumed to be the revision from which to read the specified path.
string revision = 4;
| Returns |
| Type |
Description |
String |
The revision.
|
getRevisionBytes()
publicByteStringgetRevisionBytes()
The branch, tag, arbitrary ref, or SHA version of the repo to use when
resolving the filename (optional).
This field respects the same syntax/resolution as described here:
https://git-scm.com/docs/gitrevisions
If unspecified, the revision from which the trigger invocation originated
is assumed to be the revision from which to read the specified path.
string revision = 4;
| Returns |
| Type |
Description |
ByteString |
The bytes for revision.
|
getSerializedSize()
publicintgetSerializedSize()
| Returns |
| Type |
Description |
int |
Overrides
getSourceCase()
publicGitFileSource.SourceCasegetSourceCase()
getUri()
The URI of the repo.
Either uri or repository can be specified.
If unspecified, the repo from which the trigger invocation originated is
assumed to be the repo from which to read the specified path.
string uri = 2;
| Returns |
| Type |
Description |
String |
The uri.
|
getUriBytes()
publicByteStringgetUriBytes()
The URI of the repo.
Either uri or repository can be specified.
If unspecified, the repo from which the trigger invocation originated is
assumed to be the repo from which to read the specified path.
string uri = 2;
| Returns |
| Type |
Description |
ByteString |
The bytes for uri.
|
hasGithubEnterpriseConfig()
publicbooleanhasGithubEnterpriseConfig()
The full resource name of the github enterprise config.
Format:
projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}.
projects/{project}/githubEnterpriseConfigs/{id}.
string github_enterprise_config = 5 [(.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
boolean |
Whether the githubEnterpriseConfig field is set.
|
hasRepository()
publicbooleanhasRepository()
The fully qualified resource name of the Repos API repository.
Either URI or repository can be specified.
If unspecified, the repo from which the trigger invocation originated is
assumed to be the repo from which to read the specified path.
string repository = 7 [(.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
boolean |
Whether the repository field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
Overrides
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
isInitialized()
publicfinalbooleanisInitialized()
Overrides
newBuilderForType()
publicGitFileSource.BuildernewBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedGitFileSource.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
| Returns |
| Type |
Description |
Object |
Overrides
toBuilder()
publicGitFileSource.BuildertoBuilder()
writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)
Overrides