Class TaskPushNotificationConfig.Builder

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

public static final class TaskPushNotificationConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<TaskPushNotificationConfig.Builder> implements TaskPushNotificationConfigOrBuilder
 A container associating a push notification configuration with a specific task.
 
Protobuf type lf.a2a.v1.TaskPushNotificationConfig
  • 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<TaskPushNotificationConfig.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<TaskPushNotificationConfig.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<TaskPushNotificationConfig.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public TaskPushNotificationConfig.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<TaskPushNotificationConfig.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<TaskPushNotificationConfig.Builder>
    • mergeFrom

      public TaskPushNotificationConfig.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<TaskPushNotificationConfig.Builder>
      Throws:
      IOException
    • getTenant

      public String getTenant()
       Optional. Tenant ID.
       
      string tenant = 1;
      Specified by:
      getTenant in interface TaskPushNotificationConfigOrBuilder
      Returns:
      The tenant.
    • getTenantBytes

      public com.google.protobuf.ByteString getTenantBytes()
       Optional. Tenant ID.
       
      string tenant = 1;
      Specified by:
      getTenantBytes in interface TaskPushNotificationConfigOrBuilder
      Returns:
      The bytes for tenant.
    • setTenant

      public TaskPushNotificationConfig.Builder setTenant(String value)
       Optional. Tenant ID.
       
      string tenant = 1;
      Parameters:
      value - The tenant to set.
      Returns:
      This builder for chaining.
    • clearTenant

      public TaskPushNotificationConfig.Builder clearTenant()
       Optional. Tenant ID.
       
      string tenant = 1;
      Returns:
      This builder for chaining.
    • setTenantBytes

      public TaskPushNotificationConfig.Builder setTenantBytes(com.google.protobuf.ByteString value)
       Optional. Tenant ID.
       
      string tenant = 1;
      Parameters:
      value - The bytes for tenant to set.
      Returns:
      This builder for chaining.
    • getId

      public String getId()
       The push notification configuration details.
       A unique identifier (e.g. UUID) for this push notification configuration.
       
      string id = 2;
      Specified by:
      getId in interface TaskPushNotificationConfigOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
       The push notification configuration details.
       A unique identifier (e.g. UUID) for this push notification configuration.
       
      string id = 2;
      Specified by:
      getIdBytes in interface TaskPushNotificationConfigOrBuilder
      Returns:
      The bytes for id.
    • setId

       The push notification configuration details.
       A unique identifier (e.g. UUID) for this push notification configuration.
       
      string id = 2;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

       The push notification configuration details.
       A unique identifier (e.g. UUID) for this push notification configuration.
       
      string id = 2;
      Returns:
      This builder for chaining.
    • setIdBytes

      public TaskPushNotificationConfig.Builder setIdBytes(com.google.protobuf.ByteString value)
       The push notification configuration details.
       A unique identifier (e.g. UUID) for this push notification configuration.
       
      string id = 2;
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • getTaskId

      public String getTaskId()
       The ID of the task this configuration is associated with.
       
      string task_id = 3;
      Specified by:
      getTaskId in interface TaskPushNotificationConfigOrBuilder
      Returns:
      The taskId.
    • getTaskIdBytes

      public com.google.protobuf.ByteString getTaskIdBytes()
       The ID of the task this configuration is associated with.
       
      string task_id = 3;
      Specified by:
      getTaskIdBytes in interface TaskPushNotificationConfigOrBuilder
      Returns:
      The bytes for taskId.
    • setTaskId

      public TaskPushNotificationConfig.Builder setTaskId(String value)
       The ID of the task this configuration is associated with.
       
      string task_id = 3;
      Parameters:
      value - The taskId to set.
      Returns:
      This builder for chaining.
    • clearTaskId

      public TaskPushNotificationConfig.Builder clearTaskId()
       The ID of the task this configuration is associated with.
       
      string task_id = 3;
      Returns:
      This builder for chaining.
    • setTaskIdBytes

      public TaskPushNotificationConfig.Builder setTaskIdBytes(com.google.protobuf.ByteString value)
       The ID of the task this configuration is associated with.
       
      string task_id = 3;
      Parameters:
      value - The bytes for taskId to set.
      Returns:
      This builder for chaining.
    • getUrl

      public String getUrl()
       The URL where the notification should be sent.
       
      string url = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getUrl in interface TaskPushNotificationConfigOrBuilder
      Returns:
      The url.
    • getUrlBytes

      public com.google.protobuf.ByteString getUrlBytes()
       The URL where the notification should be sent.
       
      string url = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getUrlBytes in interface TaskPushNotificationConfigOrBuilder
      Returns:
      The bytes for url.
    • setUrl

       The URL where the notification should be sent.
       
      string url = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The url to set.
      Returns:
      This builder for chaining.
    • clearUrl

       The URL where the notification should be sent.
       
      string url = 4 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setUrlBytes

      public TaskPushNotificationConfig.Builder setUrlBytes(com.google.protobuf.ByteString value)
       The URL where the notification should be sent.
       
      string url = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for url to set.
      Returns:
      This builder for chaining.
    • getToken

      public String getToken()
       A token unique for this task or session.
       
      string token = 5;
      Specified by:
      getToken in interface TaskPushNotificationConfigOrBuilder
      Returns:
      The token.
    • getTokenBytes

      public com.google.protobuf.ByteString getTokenBytes()
       A token unique for this task or session.
       
      string token = 5;
      Specified by:
      getTokenBytes in interface TaskPushNotificationConfigOrBuilder
      Returns:
      The bytes for token.
    • setToken

      public TaskPushNotificationConfig.Builder setToken(String value)
       A token unique for this task or session.
       
      string token = 5;
      Parameters:
      value - The token to set.
      Returns:
      This builder for chaining.
    • clearToken

       A token unique for this task or session.
       
      string token = 5;
      Returns:
      This builder for chaining.
    • setTokenBytes

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

      public boolean hasAuthentication()
       Authentication information required to send the notification.
       
      .lf.a2a.v1.AuthenticationInfo authentication = 6;
      Specified by:
      hasAuthentication in interface TaskPushNotificationConfigOrBuilder
      Returns:
      Whether the authentication field is set.
    • getAuthentication

      public AuthenticationInfo getAuthentication()
       Authentication information required to send the notification.
       
      .lf.a2a.v1.AuthenticationInfo authentication = 6;
      Specified by:
      getAuthentication in interface TaskPushNotificationConfigOrBuilder
      Returns:
      The authentication.
    • setAuthentication

      public TaskPushNotificationConfig.Builder setAuthentication(AuthenticationInfo value)
       Authentication information required to send the notification.
       
      .lf.a2a.v1.AuthenticationInfo authentication = 6;
    • setAuthentication

      public TaskPushNotificationConfig.Builder setAuthentication(AuthenticationInfo.Builder builderForValue)
       Authentication information required to send the notification.
       
      .lf.a2a.v1.AuthenticationInfo authentication = 6;
    • mergeAuthentication

      public TaskPushNotificationConfig.Builder mergeAuthentication(AuthenticationInfo value)
       Authentication information required to send the notification.
       
      .lf.a2a.v1.AuthenticationInfo authentication = 6;
    • clearAuthentication

      public TaskPushNotificationConfig.Builder clearAuthentication()
       Authentication information required to send the notification.
       
      .lf.a2a.v1.AuthenticationInfo authentication = 6;
    • getAuthenticationBuilder

      public AuthenticationInfo.Builder getAuthenticationBuilder()
       Authentication information required to send the notification.
       
      .lf.a2a.v1.AuthenticationInfo authentication = 6;
    • getAuthenticationOrBuilder

      public AuthenticationInfoOrBuilder getAuthenticationOrBuilder()
       Authentication information required to send the notification.
       
      .lf.a2a.v1.AuthenticationInfo authentication = 6;
      Specified by:
      getAuthenticationOrBuilder in interface TaskPushNotificationConfigOrBuilder