Class GitConfig
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig
-
- All Implemented Interfaces:
GitConfigOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class GitConfig extends com.google.protobuf.GeneratedMessageV3 implements GitConfigOrBuilder
Git repo configuration for a single cluster.
Protobuf typegoogle.cloud.gkehub.configmanagement.v1alpha.GitConfig
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GitConfig.Builder
Git repo configuration for a single cluster.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
GCP_SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER
static int
HTTPS_PROXY_FIELD_NUMBER
static int
POLICY_DIR_FIELD_NUMBER
static int
SECRET_TYPE_FIELD_NUMBER
static int
SYNC_BRANCH_FIELD_NUMBER
static int
SYNC_REPO_FIELD_NUMBER
static int
SYNC_REV_FIELD_NUMBER
static int
SYNC_WAIT_SECS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static GitConfig
getDefaultInstance()
GitConfig
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
String
getGcpServiceAccountEmail()
The GCP Service Account Email used for auth when secret_type is gcpServiceAccount.com.google.protobuf.ByteString
getGcpServiceAccountEmailBytes()
The GCP Service Account Email used for auth when secret_type is gcpServiceAccount.String
getHttpsProxy()
URL for the HTTPS proxy to be used when communicating with the Git repo.com.google.protobuf.ByteString
getHttpsProxyBytes()
URL for the HTTPS proxy to be used when communicating with the Git repo.com.google.protobuf.Parser<GitConfig>
getParserForType()
String
getPolicyDir()
The path within the Git repository that represents the top level of the repo to sync.com.google.protobuf.ByteString
getPolicyDirBytes()
The path within the Git repository that represents the top level of the repo to sync.String
getSecretType()
Type of secret configured for access to the Git repo.com.google.protobuf.ByteString
getSecretTypeBytes()
Type of secret configured for access to the Git repo.int
getSerializedSize()
String
getSyncBranch()
The branch of the repository to sync from.com.google.protobuf.ByteString
getSyncBranchBytes()
The branch of the repository to sync from.String
getSyncRepo()
The URL of the Git repository to use as the source of truth.com.google.protobuf.ByteString
getSyncRepoBytes()
The URL of the Git repository to use as the source of truth.String
getSyncRev()
Git revision (tag or hash) to check out.com.google.protobuf.ByteString
getSyncRevBytes()
Git revision (tag or hash) to check out.long
getSyncWaitSecs()
Period in seconds between consecutive syncs.int
hashCode()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static GitConfig.Builder
newBuilder()
static GitConfig.Builder
newBuilder(GitConfig prototype)
GitConfig.Builder
newBuilderForType()
protected GitConfig.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static GitConfig
parseDelimitedFrom(InputStream input)
static GitConfig
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static GitConfig
parseFrom(byte[] data)
static GitConfig
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static GitConfig
parseFrom(com.google.protobuf.ByteString data)
static GitConfig
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static GitConfig
parseFrom(com.google.protobuf.CodedInputStream input)
static GitConfig
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static GitConfig
parseFrom(InputStream input)
static GitConfig
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static GitConfig
parseFrom(ByteBuffer data)
static GitConfig
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<GitConfig>
parser()
GitConfig.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
SYNC_REPO_FIELD_NUMBER
public static final int SYNC_REPO_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SYNC_BRANCH_FIELD_NUMBER
public static final int SYNC_BRANCH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
POLICY_DIR_FIELD_NUMBER
public static final int POLICY_DIR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SYNC_WAIT_SECS_FIELD_NUMBER
public static final int SYNC_WAIT_SECS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SYNC_REV_FIELD_NUMBER
public static final int SYNC_REV_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SECRET_TYPE_FIELD_NUMBER
public static final int SECRET_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HTTPS_PROXY_FIELD_NUMBER
public static final int HTTPS_PROXY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
GCP_SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER
public static final int GCP_SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getSyncRepo
public String getSyncRepo()
The URL of the Git repository to use as the source of truth.
string sync_repo = 1;
- Specified by:
getSyncRepo
in interfaceGitConfigOrBuilder
- Returns:
- The syncRepo.
-
getSyncRepoBytes
public com.google.protobuf.ByteString getSyncRepoBytes()
The URL of the Git repository to use as the source of truth.
string sync_repo = 1;
- Specified by:
getSyncRepoBytes
in interfaceGitConfigOrBuilder
- Returns:
- The bytes for syncRepo.
-
getSyncBranch
public String getSyncBranch()
The branch of the repository to sync from. Default: master.
string sync_branch = 2;
- Specified by:
getSyncBranch
in interfaceGitConfigOrBuilder
- Returns:
- The syncBranch.
-
getSyncBranchBytes
public com.google.protobuf.ByteString getSyncBranchBytes()
The branch of the repository to sync from. Default: master.
string sync_branch = 2;
- Specified by:
getSyncBranchBytes
in interfaceGitConfigOrBuilder
- Returns:
- The bytes for syncBranch.
-
getPolicyDir
public String getPolicyDir()
The path within the Git repository that represents the top level of the repo to sync. Default: the root directory of the repository.
string policy_dir = 3;
- Specified by:
getPolicyDir
in interfaceGitConfigOrBuilder
- Returns:
- The policyDir.
-
getPolicyDirBytes
public com.google.protobuf.ByteString getPolicyDirBytes()
The path within the Git repository that represents the top level of the repo to sync. Default: the root directory of the repository.
string policy_dir = 3;
- Specified by:
getPolicyDirBytes
in interfaceGitConfigOrBuilder
- Returns:
- The bytes for policyDir.
-
getSyncWaitSecs
public long getSyncWaitSecs()
Period in seconds between consecutive syncs. Default: 15.
int64 sync_wait_secs = 4;
- Specified by:
getSyncWaitSecs
in interfaceGitConfigOrBuilder
- Returns:
- The syncWaitSecs.
-
getSyncRev
public String getSyncRev()
Git revision (tag or hash) to check out. Default HEAD.
string sync_rev = 5;
- Specified by:
getSyncRev
in interfaceGitConfigOrBuilder
- Returns:
- The syncRev.
-
getSyncRevBytes
public com.google.protobuf.ByteString getSyncRevBytes()
Git revision (tag or hash) to check out. Default HEAD.
string sync_rev = 5;
- Specified by:
getSyncRevBytes
in interfaceGitConfigOrBuilder
- Returns:
- The bytes for syncRev.
-
getSecretType
public String getSecretType()
Type of secret configured for access to the Git repo.
string secret_type = 6;
- Specified by:
getSecretType
in interfaceGitConfigOrBuilder
- Returns:
- The secretType.
-
getSecretTypeBytes
public com.google.protobuf.ByteString getSecretTypeBytes()
Type of secret configured for access to the Git repo.
string secret_type = 6;
- Specified by:
getSecretTypeBytes
in interfaceGitConfigOrBuilder
- Returns:
- The bytes for secretType.
-
getHttpsProxy
public String getHttpsProxy()
URL for the HTTPS proxy to be used when communicating with the Git repo.
string https_proxy = 7;
- Specified by:
getHttpsProxy
in interfaceGitConfigOrBuilder
- Returns:
- The httpsProxy.
-
getHttpsProxyBytes
public com.google.protobuf.ByteString getHttpsProxyBytes()
URL for the HTTPS proxy to be used when communicating with the Git repo.
string https_proxy = 7;
- Specified by:
getHttpsProxyBytes
in interfaceGitConfigOrBuilder
- Returns:
- The bytes for httpsProxy.
-
getGcpServiceAccountEmail
public String getGcpServiceAccountEmail()
The GCP Service Account Email used for auth when secret_type is gcpServiceAccount.
string gcp_service_account_email = 8;
- Specified by:
getGcpServiceAccountEmail
in interfaceGitConfigOrBuilder
- Returns:
- The gcpServiceAccountEmail.
-
getGcpServiceAccountEmailBytes
public com.google.protobuf.ByteString getGcpServiceAccountEmailBytes()
The GCP Service Account Email used for auth when secret_type is gcpServiceAccount.
string gcp_service_account_email = 8;
- Specified by:
getGcpServiceAccountEmailBytes
in interfaceGitConfigOrBuilder
- Returns:
- The bytes for gcpServiceAccountEmail.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static GitConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GitConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GitConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GitConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GitConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GitConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GitConfig parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static GitConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static GitConfig parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static GitConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static GitConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static GitConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public GitConfig.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static GitConfig.Builder newBuilder()
-
newBuilder
public static GitConfig.Builder newBuilder(GitConfig prototype)
-
toBuilder
public GitConfig.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected GitConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static GitConfig getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<GitConfig> parser()
-
getParserForType
public com.google.protobuf.Parser<GitConfig> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public GitConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-