Class PushNotificationConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<PushNotificationConfig.Builder>
com.google.protobuf.GeneratedMessage.Builder<PushNotificationConfig.Builder>
org.a2aproject.sdk.compat03.grpc.PushNotificationConfig.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, PushNotificationConfigOrBuilder
Enclosing class:
PushNotificationConfig

public static final class PushNotificationConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<PushNotificationConfig.Builder> implements PushNotificationConfigOrBuilder
Configuration for setting up push notifications for task updates.
Protobuf type a2a.v1.PushNotificationConfig
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<PushNotificationConfig.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<PushNotificationConfig.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<PushNotificationConfig.Builder>
    • getDefaultInstanceForType

      public PushNotificationConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public PushNotificationConfig build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public PushNotificationConfig buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public PushNotificationConfig.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PushNotificationConfig.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<PushNotificationConfig.Builder>
    • mergeFrom

      public PushNotificationConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PushNotificationConfig.Builder>
      Throws:
      IOException
    • getId

      public String getId()
      A unique id for this push notification.
      
      string id = 1;
      Specified by:
      getId in interface PushNotificationConfigOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
      A unique id for this push notification.
      
      string id = 1;
      Specified by:
      getIdBytes in interface PushNotificationConfigOrBuilder
      Returns:
      The bytes for id.
    • setId

      public PushNotificationConfig.Builder setId(String value)
      A unique id for this push notification.
      
      string id = 1;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      A unique id for this push notification.
      
      string id = 1;
      Returns:
      This builder for chaining.
    • setIdBytes

      public PushNotificationConfig.Builder setIdBytes(com.google.protobuf.ByteString value)
      A unique id for this push notification.
      
      string id = 1;
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • getUrl

      public String getUrl()
      Url to send the notification too
      
      string url = 2;
      Specified by:
      getUrl in interface PushNotificationConfigOrBuilder
      Returns:
      The url.
    • getUrlBytes

      public com.google.protobuf.ByteString getUrlBytes()
      Url to send the notification too
      
      string url = 2;
      Specified by:
      getUrlBytes in interface PushNotificationConfigOrBuilder
      Returns:
      The bytes for url.
    • setUrl

      public PushNotificationConfig.Builder setUrl(String value)
      Url to send the notification too
      
      string url = 2;
      Parameters:
      value - The url to set.
      Returns:
      This builder for chaining.
    • clearUrl

      public PushNotificationConfig.Builder clearUrl()
      Url to send the notification too
      
      string url = 2;
      Returns:
      This builder for chaining.
    • setUrlBytes

      public PushNotificationConfig.Builder setUrlBytes(com.google.protobuf.ByteString value)
      Url to send the notification too
      
      string url = 2;
      Parameters:
      value - The bytes for url to set.
      Returns:
      This builder for chaining.
    • getToken

      public String getToken()
      Token unique for this task/session
      
      string token = 3;
      Specified by:
      getToken in interface PushNotificationConfigOrBuilder
      Returns:
      The token.
    • getTokenBytes

      public com.google.protobuf.ByteString getTokenBytes()
      Token unique for this task/session
      
      string token = 3;
      Specified by:
      getTokenBytes in interface PushNotificationConfigOrBuilder
      Returns:
      The bytes for token.
    • setToken

      public PushNotificationConfig.Builder setToken(String value)
      Token unique for this task/session
      
      string token = 3;
      Parameters:
      value - The token to set.
      Returns:
      This builder for chaining.
    • clearToken

      public PushNotificationConfig.Builder clearToken()
      Token unique for this task/session
      
      string token = 3;
      Returns:
      This builder for chaining.
    • setTokenBytes

      public PushNotificationConfig.Builder setTokenBytes(com.google.protobuf.ByteString value)
      Token unique for this task/session
      
      string token = 3;
      Parameters:
      value - The bytes for token to set.
      Returns:
      This builder for chaining.
    • hasAuthentication

      public boolean hasAuthentication()
      Information about the authentication to sent with the notification
      
      .a2a.v1.AuthenticationInfo authentication = 4;
      Specified by:
      hasAuthentication in interface PushNotificationConfigOrBuilder
      Returns:
      Whether the authentication field is set.
    • getAuthentication

      public AuthenticationInfo getAuthentication()
      Information about the authentication to sent with the notification
      
      .a2a.v1.AuthenticationInfo authentication = 4;
      Specified by:
      getAuthentication in interface PushNotificationConfigOrBuilder
      Returns:
      The authentication.
    • setAuthentication

      public PushNotificationConfig.Builder setAuthentication(AuthenticationInfo value)
      Information about the authentication to sent with the notification
      
      .a2a.v1.AuthenticationInfo authentication = 4;
    • setAuthentication

      public PushNotificationConfig.Builder setAuthentication(AuthenticationInfo.Builder builderForValue)
      Information about the authentication to sent with the notification
      
      .a2a.v1.AuthenticationInfo authentication = 4;
    • mergeAuthentication

      public PushNotificationConfig.Builder mergeAuthentication(AuthenticationInfo value)
      Information about the authentication to sent with the notification
      
      .a2a.v1.AuthenticationInfo authentication = 4;
    • clearAuthentication

      public PushNotificationConfig.Builder clearAuthentication()
      Information about the authentication to sent with the notification
      
      .a2a.v1.AuthenticationInfo authentication = 4;
    • getAuthenticationBuilder

      public AuthenticationInfo.Builder getAuthenticationBuilder()
      Information about the authentication to sent with the notification
      
      .a2a.v1.AuthenticationInfo authentication = 4;
    • getAuthenticationOrBuilder

      public AuthenticationInfoOrBuilder getAuthenticationOrBuilder()
      Information about the authentication to sent with the notification
      
      .a2a.v1.AuthenticationInfo authentication = 4;
      Specified by:
      getAuthenticationOrBuilder in interface PushNotificationConfigOrBuilder