Class DeveloperConnectSourceConfig (0.3.0)

public final class DeveloperConnectSourceConfig extends GeneratedMessage implements DeveloperConnectSourceConfigOrBuilder

This config specifies the location of a source (such as GitHub or Bitbucket) through Developer Connect.

Protobuf type google.cloud.designcenter.v1.DeveloperConnectSourceConfig

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > DeveloperConnectSourceConfig

Static Fields

DEVELOPER_CONNECT_REPO_URI_FIELD_NUMBER

public static final int DEVELOPER_CONNECT_REPO_URI_FIELD_NUMBER
Field Value
Type Description
int

DIR_FIELD_NUMBER

public static final int DIR_FIELD_NUMBER
Field Value
Type Description
int

FETCHED_COMMIT_SHA_FIELD_NUMBER

public static final int FETCHED_COMMIT_SHA_FIELD_NUMBER
Field Value
Type Description
int

REFERENCE_FIELD_NUMBER

public static final int REFERENCE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static DeveloperConnectSourceConfig getDefaultInstance()
Returns
Type Description
DeveloperConnectSourceConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static DeveloperConnectSourceConfig.Builder newBuilder()
Returns
Type Description
DeveloperConnectSourceConfig.Builder

newBuilder(DeveloperConnectSourceConfig prototype)

public static DeveloperConnectSourceConfig.Builder newBuilder(DeveloperConnectSourceConfig prototype)
Parameter
Name Description
prototype DeveloperConnectSourceConfig
Returns
Type Description
DeveloperConnectSourceConfig.Builder

parseDelimitedFrom(InputStream input)

public static DeveloperConnectSourceConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DeveloperConnectSourceConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DeveloperConnectSourceConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeveloperConnectSourceConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static DeveloperConnectSourceConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
DeveloperConnectSourceConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static DeveloperConnectSourceConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeveloperConnectSourceConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static DeveloperConnectSourceConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
DeveloperConnectSourceConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static DeveloperConnectSourceConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeveloperConnectSourceConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static DeveloperConnectSourceConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
DeveloperConnectSourceConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static DeveloperConnectSourceConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeveloperConnectSourceConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static DeveloperConnectSourceConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DeveloperConnectSourceConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DeveloperConnectSourceConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeveloperConnectSourceConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static DeveloperConnectSourceConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
DeveloperConnectSourceConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static DeveloperConnectSourceConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeveloperConnectSourceConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<DeveloperConnectSourceConfig> parser()
Returns
Type Description
Parser<DeveloperConnectSourceConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public DeveloperConnectSourceConfig getDefaultInstanceForType()
Returns
Type Description
DeveloperConnectSourceConfig

getDeveloperConnectRepoUri()

public String getDeveloperConnectRepoUri()

Required. The Developer Connect Git repository link, formatted as projects/*/locations/*/connections/*/gitRepositoryLinks/*.

string developer_connect_repo_uri = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The developerConnectRepoUri.

getDeveloperConnectRepoUriBytes()

public ByteString getDeveloperConnectRepoUriBytes()

Required. The Developer Connect Git repository link, formatted as projects/*/locations/*/connections/*/gitRepositoryLinks/*.

string developer_connect_repo_uri = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for developerConnectRepoUri.

getDir()

public String getDir()

Required. The sub-directory within the repository from which to read content. The path must be relative to the repository's root such as dir1/dir2. To read content from the root dir, provide "/" as the value of the field.

string dir = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The dir.

getDirBytes()

public ByteString getDirBytes()

Required. The sub-directory within the repository from which to read content. The path must be relative to the repository's root such as dir1/dir2. To read content from the root dir, provide "/" as the value of the field.

string dir = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for dir.

getFetchedCommitSha()

public String getFetchedCommitSha()

Output only. The SHA of the commit deduced from GitReference.

string fetched_commit_sha = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The fetchedCommitSha.

getFetchedCommitShaBytes()

public ByteString getFetchedCommitShaBytes()

Output only. The SHA of the commit deduced from GitReference.

string fetched_commit_sha = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for fetchedCommitSha.

getParserForType()

public Parser<DeveloperConnectSourceConfig> getParserForType()
Returns
Type Description
Parser<DeveloperConnectSourceConfig>
Overrides

getReference()

public GitReference getReference()

Required. The reference (for example, a branch, tag, or commit SHA) from which the content should be read.

.google.cloud.designcenter.v1.GitReference reference = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GitReference

The reference.

getReferenceOrBuilder()

public GitReferenceOrBuilder getReferenceOrBuilder()

Required. The reference (for example, a branch, tag, or commit SHA) from which the content should be read.

.google.cloud.designcenter.v1.GitReference reference = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GitReferenceOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasReference()

public boolean hasReference()

Required. The reference (for example, a branch, tag, or commit SHA) from which the content should be read.

.google.cloud.designcenter.v1.GitReference reference = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the reference field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public DeveloperConnectSourceConfig.Builder newBuilderForType()
Returns
Type Description
DeveloperConnectSourceConfig.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected DeveloperConnectSourceConfig.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
DeveloperConnectSourceConfig.Builder
Overrides

toBuilder()

public DeveloperConnectSourceConfig.Builder toBuilder()
Returns
Type Description
DeveloperConnectSourceConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException