Class Tenant.Builder (0.99.0)

public static final class Tenant.Builder extends GeneratedMessage.Builder<Tenant.Builder> implements TenantOrBuilder

Tenant information for a connector source. This includes some of the same information stored in the Credential message, but is limited to only what is needed to provide a list of accessible tenants to the user.

Protobuf type google.cloud.discoveryengine.v1.Tenant

Implements

TenantOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public Tenant build()
Returns
Type Description
Tenant

buildPartial()

public Tenant buildPartial()
Returns
Type Description
Tenant

clear()

public Tenant.Builder clear()
Returns
Type Description
Tenant.Builder
Overrides

clearDisplayName()

public Tenant.Builder clearDisplayName()

Optional display name for the tenant, e.g. "My Slack Team".

string display_name = 3;

Returns
Type Description
Tenant.Builder

This builder for chaining.

clearId()

public Tenant.Builder clearId()

The tenant's instance ID. Examples: Jira ("8594f221-9797-5f78-1fa4-485e198d7cd0"), Slack ("T123456").

string id = 1;

Returns
Type Description
Tenant.Builder

This builder for chaining.

clearUri()

public Tenant.Builder clearUri()

The URI of the tenant, if applicable. For example, the URI of a Jira instance is https://my-jira-instance.atlassian.net, and a Slack tenant does not have a URI.

string uri = 2;

Returns
Type Description
Tenant.Builder

This builder for chaining.

getDefaultInstanceForType()

public Tenant getDefaultInstanceForType()
Returns
Type Description
Tenant

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

Optional display name for the tenant, e.g. "My Slack Team".

string display_name = 3;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Optional display name for the tenant, e.g. "My Slack Team".

string display_name = 3;

Returns
Type Description
ByteString

The bytes for displayName.

getId()

public String getId()

The tenant's instance ID. Examples: Jira ("8594f221-9797-5f78-1fa4-485e198d7cd0"), Slack ("T123456").

string id = 1;

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

The tenant's instance ID. Examples: Jira ("8594f221-9797-5f78-1fa4-485e198d7cd0"), Slack ("T123456").

string id = 1;

Returns
Type Description
ByteString

The bytes for id.

getUri()

public String getUri()

The URI of the tenant, if applicable. For example, the URI of a Jira instance is https://my-jira-instance.atlassian.net, and a Slack tenant does not have a URI.

string uri = 2;

Returns
Type Description
String

The uri.

getUriBytes()

public ByteString getUriBytes()

The URI of the tenant, if applicable. For example, the URI of a Jira instance is https://my-jira-instance.atlassian.net, and a Slack tenant does not have a URI.

string uri = 2;

Returns
Type Description
ByteString

The bytes for uri.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Tenant other)

public Tenant.Builder mergeFrom(Tenant other)
Parameter
Name Description
other Tenant
Returns
Type Description
Tenant.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Tenant.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Tenant.Builder
Overrides

setDisplayName(String value)

public Tenant.Builder setDisplayName(String value)

Optional display name for the tenant, e.g. "My Slack Team".

string display_name = 3;

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
Tenant.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Tenant.Builder setDisplayNameBytes(ByteString value)

Optional display name for the tenant, e.g. "My Slack Team".

string display_name = 3;

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
Tenant.Builder

This builder for chaining.

setId(String value)

public Tenant.Builder setId(String value)

The tenant's instance ID. Examples: Jira ("8594f221-9797-5f78-1fa4-485e198d7cd0"), Slack ("T123456").

string id = 1;

Parameter
Name Description
value String

The id to set.

Returns
Type Description
Tenant.Builder

This builder for chaining.

setIdBytes(ByteString value)

public Tenant.Builder setIdBytes(ByteString value)

The tenant's instance ID. Examples: Jira ("8594f221-9797-5f78-1fa4-485e198d7cd0"), Slack ("T123456").

string id = 1;

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
Tenant.Builder

This builder for chaining.

setUri(String value)

public Tenant.Builder setUri(String value)

The URI of the tenant, if applicable. For example, the URI of a Jira instance is https://my-jira-instance.atlassian.net, and a Slack tenant does not have a URI.

string uri = 2;

Parameter
Name Description
value String

The uri to set.

Returns
Type Description
Tenant.Builder

This builder for chaining.

setUriBytes(ByteString value)

public Tenant.Builder setUriBytes(ByteString value)

The URI of the tenant, if applicable. For example, the URI of a Jira instance is https://my-jira-instance.atlassian.net, and a Slack tenant does not have a URI.

string uri = 2;

Parameter
Name Description
value ByteString

The bytes for uri to set.

Returns
Type Description
Tenant.Builder

This builder for chaining.