Class Agent.GitIntegrationSettings.GitConnectionSettings.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Agent.GitIntegrationSettings.GitConnectionSettings.Builder>
com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GitConnectionSettings.Builder
- All Implemented Interfaces:
Agent.GitIntegrationSettings.GitConnectionSettingsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Agent.GitIntegrationSettings.GitConnectionSettings
public static final class Agent.GitIntegrationSettings.GitConnectionSettings.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Agent.GitIntegrationSettings.GitConnectionSettings.Builder>
implements Agent.GitIntegrationSettings.GitConnectionSettingsOrBuilder
Integration settings for a Git service hosted on Cloud Run.Protobuf type
google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GitConnectionSettings-
Method Summary
Modifier and TypeMethodDescriptionaddAllBranches(Iterable<String> values) Optional.addBranches(String value) Optional.addBranchesBytes(com.google.protobuf.ByteString value) Optional.build()clear()The name of the SecretManager secret version resource storing the git access token.Optional.Required.Required.Required.The name of the SecretManager secret version resource storing the git access token.com.google.protobuf.ByteStringThe name of the SecretManager secret version resource storing the git access token.getBranches(int index) Optional.com.google.protobuf.ByteStringgetBranchesBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.Required.com.google.protobuf.ByteStringRequired.Required.com.google.protobuf.ByteStringRequired.booleanThe name of the SecretManager secret version resource storing the git access token.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAccessTokenSecret(String value) The name of the SecretManager secret version resource storing the git access token.setAccessTokenSecretBytes(com.google.protobuf.ByteString value) The name of the SecretManager secret version resource storing the git access token.setBranches(int index, String value) Optional.setDisplayName(String value) Required.setDisplayNameBytes(com.google.protobuf.ByteString value) Required.setRepositoryUri(String value) Required.setRepositoryUriBytes(com.google.protobuf.ByteString value) Required.setTrackingBranch(String value) Required.setTrackingBranchBytes(com.google.protobuf.ByteString value) Required.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Agent.GitIntegrationSettings.GitConnectionSettings.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Agent.GitIntegrationSettings.GitConnectionSettings.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Agent.GitIntegrationSettings.GitConnectionSettings.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public Agent.GitIntegrationSettings.GitConnectionSettings.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Agent.GitIntegrationSettings.GitConnectionSettings.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Agent.GitIntegrationSettings.GitConnectionSettings.Builder>
-
mergeFrom
public Agent.GitIntegrationSettings.GitConnectionSettings.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Agent.GitIntegrationSettings.GitConnectionSettings.Builder>- Throws:
IOException
-
getGitAuthenticationCase
public Agent.GitIntegrationSettings.GitConnectionSettings.GitAuthenticationCase getGitAuthenticationCase()- Specified by:
getGitAuthenticationCasein interfaceAgent.GitIntegrationSettings.GitConnectionSettingsOrBuilder
-
clearGitAuthentication
-
getDisplayName
Required. Display name for the repository
string display_name = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDisplayNamein interfaceAgent.GitIntegrationSettings.GitConnectionSettingsOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()Required. Display name for the repository
string display_name = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDisplayNameBytesin interfaceAgent.GitIntegrationSettings.GitConnectionSettingsOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
Required. Display name for the repository
string display_name = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
Required. Display name for the repository
string display_name = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setDisplayNameBytes
public Agent.GitIntegrationSettings.GitConnectionSettings.Builder setDisplayNameBytes(com.google.protobuf.ByteString value) Required. Display name for the repository
string display_name = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
getRepositoryUri
Required. Git server reporitory URI.
string repository_uri = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getRepositoryUriin interfaceAgent.GitIntegrationSettings.GitConnectionSettingsOrBuilder- Returns:
- The repositoryUri.
-
getRepositoryUriBytes
public com.google.protobuf.ByteString getRepositoryUriBytes()Required. Git server reporitory URI.
string repository_uri = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getRepositoryUriBytesin interfaceAgent.GitIntegrationSettings.GitConnectionSettingsOrBuilder- Returns:
- The bytes for repositoryUri.
-
setRepositoryUri
Required. Git server reporitory URI.
string repository_uri = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The repositoryUri to set.- Returns:
- This builder for chaining.
-
clearRepositoryUri
Required. Git server reporitory URI.
string repository_uri = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setRepositoryUriBytes
public Agent.GitIntegrationSettings.GitConnectionSettings.Builder setRepositoryUriBytes(com.google.protobuf.ByteString value) Required. Git server reporitory URI.
string repository_uri = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for repositoryUri to set.- Returns:
- This builder for chaining.
-
getTrackingBranch
Required. Default branch of the repository.
string tracking_branch = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTrackingBranchin interfaceAgent.GitIntegrationSettings.GitConnectionSettingsOrBuilder- Returns:
- The trackingBranch.
-
getTrackingBranchBytes
public com.google.protobuf.ByteString getTrackingBranchBytes()Required. Default branch of the repository.
string tracking_branch = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTrackingBranchBytesin interfaceAgent.GitIntegrationSettings.GitConnectionSettingsOrBuilder- Returns:
- The bytes for trackingBranch.
-
setTrackingBranch
Required. Default branch of the repository.
string tracking_branch = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The trackingBranch to set.- Returns:
- This builder for chaining.
-
clearTrackingBranch
Required. Default branch of the repository.
string tracking_branch = 3 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setTrackingBranchBytes
public Agent.GitIntegrationSettings.GitConnectionSettings.Builder setTrackingBranchBytes(com.google.protobuf.ByteString value) Required. Default branch of the repository.
string tracking_branch = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for trackingBranch to set.- Returns:
- This builder for chaining.
-
getBranchesList
public com.google.protobuf.ProtocolStringList getBranchesList()Optional. List of branches configured for the repository.
repeated string branches = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getBranchesListin interfaceAgent.GitIntegrationSettings.GitConnectionSettingsOrBuilder- Returns:
- A list containing the branches.
-
getBranchesCount
public int getBranchesCount()Optional. List of branches configured for the repository.
repeated string branches = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getBranchesCountin interfaceAgent.GitIntegrationSettings.GitConnectionSettingsOrBuilder- Returns:
- The count of branches.
-
getBranches
Optional. List of branches configured for the repository.
repeated string branches = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getBranchesin interfaceAgent.GitIntegrationSettings.GitConnectionSettingsOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The branches at the given index.
-
getBranchesBytes
public com.google.protobuf.ByteString getBranchesBytes(int index) Optional. List of branches configured for the repository.
repeated string branches = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getBranchesBytesin interfaceAgent.GitIntegrationSettings.GitConnectionSettingsOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the branches at the given index.
-
setBranches
public Agent.GitIntegrationSettings.GitConnectionSettings.Builder setBranches(int index, String value) Optional. List of branches configured for the repository.
repeated string branches = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The branches to set.- Returns:
- This builder for chaining.
-
addBranches
Optional. List of branches configured for the repository.
repeated string branches = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The branches to add.- Returns:
- This builder for chaining.
-
addAllBranches
public Agent.GitIntegrationSettings.GitConnectionSettings.Builder addAllBranches(Iterable<String> values) Optional. List of branches configured for the repository.
repeated string branches = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The branches to add.- Returns:
- This builder for chaining.
-
clearBranches
Optional. List of branches configured for the repository.
repeated string branches = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
addBranchesBytes
public Agent.GitIntegrationSettings.GitConnectionSettings.Builder addBranchesBytes(com.google.protobuf.ByteString value) Optional. List of branches configured for the repository.
repeated string branches = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes of the branches to add.- Returns:
- This builder for chaining.
-
hasAccessTokenSecret
public boolean hasAccessTokenSecret()The name of the SecretManager secret version resource storing the git access token. Format: `projects/{project}/secrets/{secret}/versions/{version}`string access_token_secret = 5 [(.google.api.resource_reference) = { ... }- Specified by:
hasAccessTokenSecretin interfaceAgent.GitIntegrationSettings.GitConnectionSettingsOrBuilder- Returns:
- Whether the accessTokenSecret field is set.
-
getAccessTokenSecret
The name of the SecretManager secret version resource storing the git access token. Format: `projects/{project}/secrets/{secret}/versions/{version}`string access_token_secret = 5 [(.google.api.resource_reference) = { ... }- Specified by:
getAccessTokenSecretin interfaceAgent.GitIntegrationSettings.GitConnectionSettingsOrBuilder- Returns:
- The accessTokenSecret.
-
getAccessTokenSecretBytes
public com.google.protobuf.ByteString getAccessTokenSecretBytes()The name of the SecretManager secret version resource storing the git access token. Format: `projects/{project}/secrets/{secret}/versions/{version}`string access_token_secret = 5 [(.google.api.resource_reference) = { ... }- Specified by:
getAccessTokenSecretBytesin interfaceAgent.GitIntegrationSettings.GitConnectionSettingsOrBuilder- Returns:
- The bytes for accessTokenSecret.
-
setAccessTokenSecret
public Agent.GitIntegrationSettings.GitConnectionSettings.Builder setAccessTokenSecret(String value) The name of the SecretManager secret version resource storing the git access token. Format: `projects/{project}/secrets/{secret}/versions/{version}`string access_token_secret = 5 [(.google.api.resource_reference) = { ... }- Parameters:
value- The accessTokenSecret to set.- Returns:
- This builder for chaining.
-
clearAccessTokenSecret
The name of the SecretManager secret version resource storing the git access token. Format: `projects/{project}/secrets/{secret}/versions/{version}`string access_token_secret = 5 [(.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setAccessTokenSecretBytes
public Agent.GitIntegrationSettings.GitConnectionSettings.Builder setAccessTokenSecretBytes(com.google.protobuf.ByteString value) The name of the SecretManager secret version resource storing the git access token. Format: `projects/{project}/secrets/{secret}/versions/{version}`string access_token_secret = 5 [(.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for accessTokenSecret to set.- Returns:
- This builder for chaining.
-