Class GitSource (0.10.0)

public final class GitSource extends GeneratedMessageV3 implements GitSourceOrBuilder

A set of files in a Git repository.

Protobuf type google.cloud.config.v1.GitSource

Implements

GitSourceOrBuilder

Static Fields

DIRECTORY_FIELD_NUMBER

public static final int DIRECTORY_FIELD_NUMBER
Field Value
TypeDescription
int

REF_FIELD_NUMBER

public static final int REF_FIELD_NUMBER
Field Value
TypeDescription
int

REPO_FIELD_NUMBER

public static final int REPO_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static GitSource getDefaultInstance()
Returns
TypeDescription
GitSource

getDescriptor()

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

newBuilder()

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

newBuilder(GitSource prototype)

public static GitSource.Builder newBuilder(GitSource prototype)
Parameter
NameDescription
prototypeGitSource
Returns
TypeDescription
GitSource.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public GitSource getDefaultInstanceForType()
Returns
TypeDescription
GitSource

getDirectory()

public String getDirectory()

Optional. Subdirectory inside the repository. Example: 'staging/my-package'

optional string directory = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The directory.

getDirectoryBytes()

public ByteString getDirectoryBytes()

Optional. Subdirectory inside the repository. Example: 'staging/my-package'

optional string directory = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for directory.

getParserForType()

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

getRef()

public String getRef()

Optional. Git reference (e.g. branch or tag).

optional string ref = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The ref.

getRefBytes()

public ByteString getRefBytes()

Optional. Git reference (e.g. branch or tag).

optional string ref = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for ref.

getRepo()

public String getRepo()

Optional. Repository URL. Example: 'https://github.com/kubernetes/examples.git'

optional string repo = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The repo.

getRepoBytes()

public ByteString getRepoBytes()

Optional. Repository URL. Example: 'https://github.com/kubernetes/examples.git'

optional string repo = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for repo.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasDirectory()

public boolean hasDirectory()

Optional. Subdirectory inside the repository. Example: 'staging/my-package'

optional string directory = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the directory field is set.

hasRef()

public boolean hasRef()

Optional. Git reference (e.g. branch or tag).

optional string ref = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the ref field is set.

hasRepo()

public boolean hasRepo()

Optional. Repository URL. Example: 'https://github.com/kubernetes/examples.git'

optional string repo = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the repo 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 GitSource.Builder newBuilderForType()
Returns
TypeDescription
GitSource.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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