Class ServiceNowProfile (1.102.0)

public final class ServiceNowProfile extends GeneratedMessage implements ServiceNowProfileOrBuilder

Profile for connecting to a ServiceNow source.

Protobuf type google.cloud.datastream.v1.ServiceNowProfile

Static Fields

INSTANCE_FIELD_NUMBER

public static final int INSTANCE_FIELD_NUMBER
Field Value
Type Description
int

OAUTH_CLIENT_CREDENTIALS_FIELD_NUMBER

public static final int OAUTH_CLIENT_CREDENTIALS_FIELD_NUMBER
Field Value
Type Description
int

USER_PASSWORD_CREDENTIALS_FIELD_NUMBER

public static final int USER_PASSWORD_CREDENTIALS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ServiceNowProfile getDefaultInstance()
Returns
Type Description
ServiceNowProfile

getDescriptor()

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

newBuilder()

public static ServiceNowProfile.Builder newBuilder()
Returns
Type Description
ServiceNowProfile.Builder

newBuilder(ServiceNowProfile prototype)

public static ServiceNowProfile.Builder newBuilder(ServiceNowProfile prototype)
Parameter
Name Description
prototype ServiceNowProfile
Returns
Type Description
ServiceNowProfile.Builder

parseDelimitedFrom(InputStream input)

public static ServiceNowProfile parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ServiceNowProfile
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ServiceNowProfile parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ServiceNowProfile
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ServiceNowProfile parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ServiceNowProfile
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ServiceNowProfile parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ServiceNowProfile
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ServiceNowProfile parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ServiceNowProfile
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ServiceNowProfile parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ServiceNowProfile
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ServiceNowProfile parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ServiceNowProfile
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ServiceNowProfile parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ServiceNowProfile
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ServiceNowProfile parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ServiceNowProfile
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ServiceNowProfile parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ServiceNowProfile
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ServiceNowProfile parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ServiceNowProfile
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ServiceNowProfile parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ServiceNowProfile
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ServiceNowProfile> parser()
Returns
Type Description
Parser<ServiceNowProfile>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCredentialsCase()

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

getDefaultInstanceForType()

public ServiceNowProfile getDefaultInstanceForType()
Returns
Type Description
ServiceNowProfile

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.

getOauthClientCredentialsOrBuilder()

public OauthClientCredentialsOrBuilder getOauthClientCredentialsOrBuilder()

Credentials for authenticating with the ServiceNow API.

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

Returns
Type Description
OauthClientCredentialsOrBuilder

getParserForType()

public Parser<ServiceNowProfile> getParserForType()
Returns
Type Description
Parser<ServiceNowProfile>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getUserPasswordCredentials()

public UserPasswordCredentials getUserPasswordCredentials()

User-password authentication.

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

Returns
Type Description
UserPasswordCredentials

The userPasswordCredentials.

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(AbstractMessage.BuilderParent parent)

protected ServiceNowProfile.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ServiceNowProfile.Builder
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException