Class Agent.GitIntegrationSettings.GithubSettings.Builder (0.44.0)

public static final class Agent.GitIntegrationSettings.GithubSettings.Builder extends GeneratedMessageV3.Builder<Agent.GitIntegrationSettings.GithubSettings.Builder> implements Agent.GitIntegrationSettings.GithubSettingsOrBuilder

Settings of integration with GitHub.

Protobuf type google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings

Static Methods

getDescriptor()

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

Methods

addAllBranches(Iterable<String> values)

public Agent.GitIntegrationSettings.GithubSettings.Builder addAllBranches(Iterable<String> values)

A list of branches configured to be used from Dialogflow.

repeated string branches = 5;

Parameter
Name Description
values Iterable<String>

The branches to add.

Returns
Type Description
Agent.GitIntegrationSettings.GithubSettings.Builder

This builder for chaining.

addBranches(String value)

public Agent.GitIntegrationSettings.GithubSettings.Builder addBranches(String value)

A list of branches configured to be used from Dialogflow.

repeated string branches = 5;

Parameter
Name Description
value String

The branches to add.

Returns
Type Description
Agent.GitIntegrationSettings.GithubSettings.Builder

This builder for chaining.

addBranchesBytes(ByteString value)

public Agent.GitIntegrationSettings.GithubSettings.Builder addBranchesBytes(ByteString value)

A list of branches configured to be used from Dialogflow.

repeated string branches = 5;

Parameter
Name Description
value ByteString

The bytes of the branches to add.

Returns
Type Description
Agent.GitIntegrationSettings.GithubSettings.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Agent.GitIntegrationSettings.GithubSettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Agent.GitIntegrationSettings.GithubSettings.Builder
Overrides

build()

public Agent.GitIntegrationSettings.GithubSettings build()
Returns
Type Description
Agent.GitIntegrationSettings.GithubSettings

buildPartial()

public Agent.GitIntegrationSettings.GithubSettings buildPartial()
Returns
Type Description
Agent.GitIntegrationSettings.GithubSettings

clear()

public Agent.GitIntegrationSettings.GithubSettings.Builder clear()
Returns
Type Description
Agent.GitIntegrationSettings.GithubSettings.Builder
Overrides

clearAccessToken()

public Agent.GitIntegrationSettings.GithubSettings.Builder clearAccessToken()

The access token used to authenticate the access to the GitHub repository.

string access_token = 4;

Returns
Type Description
Agent.GitIntegrationSettings.GithubSettings.Builder

This builder for chaining.

clearBranches()

public Agent.GitIntegrationSettings.GithubSettings.Builder clearBranches()

A list of branches configured to be used from Dialogflow.

repeated string branches = 5;

Returns
Type Description
Agent.GitIntegrationSettings.GithubSettings.Builder

This builder for chaining.

clearDisplayName()

public Agent.GitIntegrationSettings.GithubSettings.Builder clearDisplayName()

The unique repository display name for the GitHub repository.

string display_name = 1;

Returns
Type Description
Agent.GitIntegrationSettings.GithubSettings.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Agent.GitIntegrationSettings.GithubSettings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Agent.GitIntegrationSettings.GithubSettings.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Agent.GitIntegrationSettings.GithubSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Agent.GitIntegrationSettings.GithubSettings.Builder
Overrides

clearRepositoryUri()

public Agent.GitIntegrationSettings.GithubSettings.Builder clearRepositoryUri()

The GitHub repository URI related to the agent.

string repository_uri = 2;

Returns
Type Description
Agent.GitIntegrationSettings.GithubSettings.Builder

This builder for chaining.

clearTrackingBranch()

public Agent.GitIntegrationSettings.GithubSettings.Builder clearTrackingBranch()

The branch of the GitHub repository tracked for this agent.

string tracking_branch = 3;

Returns
Type Description
Agent.GitIntegrationSettings.GithubSettings.Builder

This builder for chaining.

clone()

public Agent.GitIntegrationSettings.GithubSettings.Builder clone()
Returns
Type Description
Agent.GitIntegrationSettings.GithubSettings.Builder
Overrides

getAccessToken()

public String getAccessToken()

The access token used to authenticate the access to the GitHub repository.

string access_token = 4;

Returns
Type Description
String

The accessToken.

getAccessTokenBytes()

public ByteString getAccessTokenBytes()

The access token used to authenticate the access to the GitHub repository.

string access_token = 4;

Returns
Type Description
ByteString

The bytes for accessToken.

getBranches(int index)

public String getBranches(int index)

A list of branches configured to be used from Dialogflow.

repeated string branches = 5;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The branches at the given index.

getBranchesBytes(int index)

public ByteString getBranchesBytes(int index)

A list of branches configured to be used from Dialogflow.

repeated string branches = 5;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the branches at the given index.

getBranchesCount()

public int getBranchesCount()

A list of branches configured to be used from Dialogflow.

repeated string branches = 5;

Returns
Type Description
int

The count of branches.

getBranchesList()

public ProtocolStringList getBranchesList()

A list of branches configured to be used from Dialogflow.

repeated string branches = 5;

Returns
Type Description
ProtocolStringList

A list containing the branches.

getDefaultInstanceForType()

public Agent.GitIntegrationSettings.GithubSettings getDefaultInstanceForType()
Returns
Type Description
Agent.GitIntegrationSettings.GithubSettings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

The unique repository display name for the GitHub repository.

string display_name = 1;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The unique repository display name for the GitHub repository.

string display_name = 1;

Returns
Type Description
ByteString

The bytes for displayName.

getRepositoryUri()

public String getRepositoryUri()

The GitHub repository URI related to the agent.

string repository_uri = 2;

Returns
Type Description
String

The repositoryUri.

getRepositoryUriBytes()

public ByteString getRepositoryUriBytes()

The GitHub repository URI related to the agent.

string repository_uri = 2;

Returns
Type Description
ByteString

The bytes for repositoryUri.

getTrackingBranch()

public String getTrackingBranch()

The branch of the GitHub repository tracked for this agent.

string tracking_branch = 3;

Returns
Type Description
String

The trackingBranch.

getTrackingBranchBytes()

public ByteString getTrackingBranchBytes()

The branch of the GitHub repository tracked for this agent.

string tracking_branch = 3;

Returns
Type Description
ByteString

The bytes for trackingBranch.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Agent.GitIntegrationSettings.GithubSettings other)

public Agent.GitIntegrationSettings.GithubSettings.Builder mergeFrom(Agent.GitIntegrationSettings.GithubSettings other)
Parameter
Name Description
other Agent.GitIntegrationSettings.GithubSettings
Returns
Type Description
Agent.GitIntegrationSettings.GithubSettings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Agent.GitIntegrationSettings.GithubSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Agent.GitIntegrationSettings.GithubSettings.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Agent.GitIntegrationSettings.GithubSettings.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Agent.GitIntegrationSettings.GithubSettings.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Agent.GitIntegrationSettings.GithubSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Agent.GitIntegrationSettings.GithubSettings.Builder
Overrides

setAccessToken(String value)

public Agent.GitIntegrationSettings.GithubSettings.Builder setAccessToken(String value)

The access token used to authenticate the access to the GitHub repository.

string access_token = 4;

Parameter
Name Description
value String

The accessToken to set.

Returns
Type Description
Agent.GitIntegrationSettings.GithubSettings.Builder

This builder for chaining.

setAccessTokenBytes(ByteString value)

public Agent.GitIntegrationSettings.GithubSettings.Builder setAccessTokenBytes(ByteString value)

The access token used to authenticate the access to the GitHub repository.

string access_token = 4;

Parameter
Name Description
value ByteString

The bytes for accessToken to set.

Returns
Type Description
Agent.GitIntegrationSettings.GithubSettings.Builder

This builder for chaining.

setBranches(int index, String value)

public Agent.GitIntegrationSettings.GithubSettings.Builder setBranches(int index, String value)

A list of branches configured to be used from Dialogflow.

repeated string branches = 5;

Parameters
Name Description
index int

The index to set the value at.

value String

The branches to set.

Returns
Type Description
Agent.GitIntegrationSettings.GithubSettings.Builder

This builder for chaining.

setDisplayName(String value)

public Agent.GitIntegrationSettings.GithubSettings.Builder setDisplayName(String value)

The unique repository display name for the GitHub repository.

string display_name = 1;

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
Agent.GitIntegrationSettings.GithubSettings.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Agent.GitIntegrationSettings.GithubSettings.Builder setDisplayNameBytes(ByteString value)

The unique repository display name for the GitHub repository.

string display_name = 1;

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
Agent.GitIntegrationSettings.GithubSettings.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Agent.GitIntegrationSettings.GithubSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Agent.GitIntegrationSettings.GithubSettings.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Agent.GitIntegrationSettings.GithubSettings.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Agent.GitIntegrationSettings.GithubSettings.Builder
Overrides

setRepositoryUri(String value)

public Agent.GitIntegrationSettings.GithubSettings.Builder setRepositoryUri(String value)

The GitHub repository URI related to the agent.

string repository_uri = 2;

Parameter
Name Description
value String

The repositoryUri to set.

Returns
Type Description
Agent.GitIntegrationSettings.GithubSettings.Builder

This builder for chaining.

setRepositoryUriBytes(ByteString value)

public Agent.GitIntegrationSettings.GithubSettings.Builder setRepositoryUriBytes(ByteString value)

The GitHub repository URI related to the agent.

string repository_uri = 2;

Parameter
Name Description
value ByteString

The bytes for repositoryUri to set.

Returns
Type Description
Agent.GitIntegrationSettings.GithubSettings.Builder

This builder for chaining.

setTrackingBranch(String value)

public Agent.GitIntegrationSettings.GithubSettings.Builder setTrackingBranch(String value)

The branch of the GitHub repository tracked for this agent.

string tracking_branch = 3;

Parameter
Name Description
value String

The trackingBranch to set.

Returns
Type Description
Agent.GitIntegrationSettings.GithubSettings.Builder

This builder for chaining.

setTrackingBranchBytes(ByteString value)

public Agent.GitIntegrationSettings.GithubSettings.Builder setTrackingBranchBytes(ByteString value)

The branch of the GitHub repository tracked for this agent.

string tracking_branch = 3;

Parameter
Name Description
value ByteString

The bytes for trackingBranch to set.

Returns
Type Description
Agent.GitIntegrationSettings.GithubSettings.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Agent.GitIntegrationSettings.GithubSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Agent.GitIntegrationSettings.GithubSettings.Builder
Overrides