Class ServiceNowProfile.Builder (1.102.0)

public static final class ServiceNowProfile.Builder extends GeneratedMessage.Builder<ServiceNowProfile.Builder> implements ServiceNowProfileOrBuilder

Profile for connecting to a ServiceNow source.

Protobuf type google.cloud.datastream.v1.ServiceNowProfile

Static Methods

getDescriptor()

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

Methods

build()

public ServiceNowProfile build()
Returns
Type Description
ServiceNowProfile

buildPartial()

public ServiceNowProfile buildPartial()
Returns
Type Description
ServiceNowProfile

clear()

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

clearCredentials()

public ServiceNowProfile.Builder clearCredentials()
Returns
Type Description
ServiceNowProfile.Builder

clearInstance()

public ServiceNowProfile.Builder clearInstance()

Required. The instance of the ServiceNow account. This is the <instance> part of the URL https://<instance>.service-now.com.

string instance = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ServiceNowProfile.Builder

This builder for chaining.

clearOauthClientCredentials()

public ServiceNowProfile.Builder clearOauthClientCredentials()

Credentials for authenticating with the ServiceNow API.

.google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3;

Returns
Type Description
ServiceNowProfile.Builder

clearUserPasswordCredentials()

public ServiceNowProfile.Builder clearUserPasswordCredentials()

User-password authentication.

.google.cloud.datastream.v1.UserPasswordCredentials user_password_credentials = 2;

Returns
Type Description
ServiceNowProfile.Builder

getCredentialsCase()

public ServiceNowProfile.CredentialsCase getCredentialsCase()
Returns
Type Description
ServiceNowProfile.CredentialsCase

getDefaultInstanceForType()

public ServiceNowProfile getDefaultInstanceForType()
Returns
Type Description
ServiceNowProfile

getDescriptorForType()

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

getInstance()

public String getInstance()

Required. The instance of the ServiceNow account. This is the <instance> part of the URL https://<instance>.service-now.com.

string instance = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The instance.

getInstanceBytes()

public ByteString getInstanceBytes()

Required. The instance of the ServiceNow account. This is the <instance> part of the URL https://<instance>.service-now.com.

string instance = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for instance.

getOauthClientCredentials()

public OauthClientCredentials getOauthClientCredentials()

Credentials for authenticating with the ServiceNow API.

.google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3;

Returns
Type Description
OauthClientCredentials

The oauthClientCredentials.

getOauthClientCredentialsBuilder()

public OauthClientCredentials.Builder getOauthClientCredentialsBuilder()

Credentials for authenticating with the ServiceNow API.

.google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3;

Returns
Type Description
OauthClientCredentials.Builder

getOauthClientCredentialsOrBuilder()

public OauthClientCredentialsOrBuilder getOauthClientCredentialsOrBuilder()

Credentials for authenticating with the ServiceNow API.

.google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3;

Returns
Type Description
OauthClientCredentialsOrBuilder

getUserPasswordCredentials()

public UserPasswordCredentials getUserPasswordCredentials()

User-password authentication.

.google.cloud.datastream.v1.UserPasswordCredentials user_password_credentials = 2;

Returns
Type Description
UserPasswordCredentials

The userPasswordCredentials.

getUserPasswordCredentialsBuilder()

public UserPasswordCredentials.Builder getUserPasswordCredentialsBuilder()

User-password authentication.

.google.cloud.datastream.v1.UserPasswordCredentials user_password_credentials = 2;

Returns
Type Description
UserPasswordCredentials.Builder

getUserPasswordCredentialsOrBuilder()

public UserPasswordCredentialsOrBuilder getUserPasswordCredentialsOrBuilder()

User-password authentication.

.google.cloud.datastream.v1.UserPasswordCredentials user_password_credentials = 2;

Returns
Type Description
UserPasswordCredentialsOrBuilder

hasOauthClientCredentials()

public boolean hasOauthClientCredentials()

Credentials for authenticating with the ServiceNow API.

.google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3;

Returns
Type Description
boolean

Whether the oauthClientCredentials field is set.

hasUserPasswordCredentials()

public boolean hasUserPasswordCredentials()

User-password authentication.

.google.cloud.datastream.v1.UserPasswordCredentials user_password_credentials = 2;

Returns
Type Description
boolean

Whether the userPasswordCredentials field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ServiceNowProfile other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeOauthClientCredentials(OauthClientCredentials value)

public ServiceNowProfile.Builder mergeOauthClientCredentials(OauthClientCredentials value)

Credentials for authenticating with the ServiceNow API.

.google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3;

Parameter
Name Description
value OauthClientCredentials
Returns
Type Description
ServiceNowProfile.Builder

mergeUserPasswordCredentials(UserPasswordCredentials value)

public ServiceNowProfile.Builder mergeUserPasswordCredentials(UserPasswordCredentials value)

User-password authentication.

.google.cloud.datastream.v1.UserPasswordCredentials user_password_credentials = 2;

Parameter
Name Description
value UserPasswordCredentials
Returns
Type Description
ServiceNowProfile.Builder

setInstance(String value)

public ServiceNowProfile.Builder setInstance(String value)

Required. The instance of the ServiceNow account. This is the <instance> part of the URL https://<instance>.service-now.com.

string instance = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The instance to set.

Returns
Type Description
ServiceNowProfile.Builder

This builder for chaining.

setInstanceBytes(ByteString value)

public ServiceNowProfile.Builder setInstanceBytes(ByteString value)

Required. The instance of the ServiceNow account. This is the <instance> part of the URL https://<instance>.service-now.com.

string instance = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for instance to set.

Returns
Type Description
ServiceNowProfile.Builder

This builder for chaining.

setOauthClientCredentials(OauthClientCredentials value)

public ServiceNowProfile.Builder setOauthClientCredentials(OauthClientCredentials value)

Credentials for authenticating with the ServiceNow API.

.google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3;

Parameter
Name Description
value OauthClientCredentials
Returns
Type Description
ServiceNowProfile.Builder

setOauthClientCredentials(OauthClientCredentials.Builder builderForValue)

public ServiceNowProfile.Builder setOauthClientCredentials(OauthClientCredentials.Builder builderForValue)

Credentials for authenticating with the ServiceNow API.

.google.cloud.datastream.v1.OauthClientCredentials oauth_client_credentials = 3;

Parameter
Name Description
builderForValue OauthClientCredentials.Builder
Returns
Type Description
ServiceNowProfile.Builder

setUserPasswordCredentials(UserPasswordCredentials value)

public ServiceNowProfile.Builder setUserPasswordCredentials(UserPasswordCredentials value)

User-password authentication.

.google.cloud.datastream.v1.UserPasswordCredentials user_password_credentials = 2;

Parameter
Name Description
value UserPasswordCredentials
Returns
Type Description
ServiceNowProfile.Builder

setUserPasswordCredentials(UserPasswordCredentials.Builder builderForValue)

public ServiceNowProfile.Builder setUserPasswordCredentials(UserPasswordCredentials.Builder builderForValue)

User-password authentication.

.google.cloud.datastream.v1.UserPasswordCredentials user_password_credentials = 2;

Parameter
Name Description
builderForValue UserPasswordCredentials.Builder
Returns
Type Description
ServiceNowProfile.Builder