Class PushNotificationConfig.Builder (0.27.0)

public static final class PushNotificationConfig.Builder extends GeneratedMessage.Builder<PushNotificationConfig.Builder> implements PushNotificationConfigOrBuilder

Configuration for setting up push notifications for task updates.

Protobuf type google.cloud.geminidataanalytics.v1beta.PushNotificationConfig

Static Methods

getDescriptor()

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

Methods

build()

public PushNotificationConfig build()
Returns
Type Description
PushNotificationConfig

buildPartial()

public PushNotificationConfig buildPartial()
Returns
Type Description
PushNotificationConfig

clear()

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

clearAuthentication()

public PushNotificationConfig.Builder clearAuthentication()

Optional. Information about the authentication to send with the notification.

.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo authentication = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PushNotificationConfig.Builder

clearId()

public PushNotificationConfig.Builder clearId()

Optional. A unique identifier (e.g. UUID) for this push notification.

string id = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PushNotificationConfig.Builder

This builder for chaining.

clearToken()

public PushNotificationConfig.Builder clearToken()

Optional. Token unique for this task/session.

string token = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PushNotificationConfig.Builder

This builder for chaining.

clearUrl()

public PushNotificationConfig.Builder clearUrl()

Optional. Url to send the notification to.

string url = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PushNotificationConfig.Builder

This builder for chaining.

getAuthentication()

public AuthenticationInfo getAuthentication()

Optional. Information about the authentication to send with the notification.

.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo authentication = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AuthenticationInfo

The authentication.

getAuthenticationBuilder()

public AuthenticationInfo.Builder getAuthenticationBuilder()

Optional. Information about the authentication to send with the notification.

.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo authentication = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AuthenticationInfo.Builder

getAuthenticationOrBuilder()

public AuthenticationInfoOrBuilder getAuthenticationOrBuilder()

Optional. Information about the authentication to send with the notification.

.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo authentication = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AuthenticationInfoOrBuilder

getDefaultInstanceForType()

public PushNotificationConfig getDefaultInstanceForType()
Returns
Type Description
PushNotificationConfig

getDescriptorForType()

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

getId()

public String getId()

Optional. A unique identifier (e.g. UUID) for this push notification.

string id = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

Optional. A unique identifier (e.g. UUID) for this push notification.

string id = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for id.

getToken()

public String getToken()

Optional. Token unique for this task/session.

string token = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The token.

getTokenBytes()

public ByteString getTokenBytes()

Optional. Token unique for this task/session.

string token = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for token.

getUrl()

public String getUrl()

Optional. Url to send the notification to.

string url = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The url.

getUrlBytes()

public ByteString getUrlBytes()

Optional. Url to send the notification to.

string url = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for url.

hasAuthentication()

public boolean hasAuthentication()

Optional. Information about the authentication to send with the notification.

.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo authentication = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the authentication field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAuthentication(AuthenticationInfo value)

public PushNotificationConfig.Builder mergeAuthentication(AuthenticationInfo value)

Optional. Information about the authentication to send with the notification.

.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo authentication = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AuthenticationInfo
Returns
Type Description
PushNotificationConfig.Builder

mergeFrom(PushNotificationConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setAuthentication(AuthenticationInfo value)

public PushNotificationConfig.Builder setAuthentication(AuthenticationInfo value)

Optional. Information about the authentication to send with the notification.

.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo authentication = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AuthenticationInfo
Returns
Type Description
PushNotificationConfig.Builder

setAuthentication(AuthenticationInfo.Builder builderForValue)

public PushNotificationConfig.Builder setAuthentication(AuthenticationInfo.Builder builderForValue)

Optional. Information about the authentication to send with the notification.

.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo authentication = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue AuthenticationInfo.Builder
Returns
Type Description
PushNotificationConfig.Builder

setId(String value)

public PushNotificationConfig.Builder setId(String value)

Optional. A unique identifier (e.g. UUID) for this push notification.

string id = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The id to set.

Returns
Type Description
PushNotificationConfig.Builder

This builder for chaining.

setIdBytes(ByteString value)

public PushNotificationConfig.Builder setIdBytes(ByteString value)

Optional. A unique identifier (e.g. UUID) for this push notification.

string id = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
PushNotificationConfig.Builder

This builder for chaining.

setToken(String value)

public PushNotificationConfig.Builder setToken(String value)

Optional. Token unique for this task/session.

string token = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The token to set.

Returns
Type Description
PushNotificationConfig.Builder

This builder for chaining.

setTokenBytes(ByteString value)

public PushNotificationConfig.Builder setTokenBytes(ByteString value)

Optional. Token unique for this task/session.

string token = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for token to set.

Returns
Type Description
PushNotificationConfig.Builder

This builder for chaining.

setUrl(String value)

public PushNotificationConfig.Builder setUrl(String value)

Optional. Url to send the notification to.

string url = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The url to set.

Returns
Type Description
PushNotificationConfig.Builder

This builder for chaining.

setUrlBytes(ByteString value)

public PushNotificationConfig.Builder setUrlBytes(ByteString value)

Optional. Url to send the notification to.

string url = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for url to set.

Returns
Type Description
PushNotificationConfig.Builder

This builder for chaining.