Package org.a2aproject.sdk.grpc
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 Summary
Modifier and TypeMethodDescriptionbuild()clear()Authentication information required to send the notification.clearId()The push notification configuration details.The ID of the task this configuration is associated with.Optional.A token unique for this task or session.clearUrl()The URL where the notification should be sent.Authentication information required to send the notification.Authentication information required to send the notification.Authentication information required to send the notification.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetId()The push notification configuration details.com.google.protobuf.ByteStringThe push notification configuration details.The ID of the task this configuration is associated with.com.google.protobuf.ByteStringThe ID of the task this configuration is associated with.Optional.com.google.protobuf.ByteStringOptional.getToken()A token unique for this task or session.com.google.protobuf.ByteStringA token unique for this task or session.getUrl()The URL where the notification should be sent.com.google.protobuf.ByteStringThe URL where the notification should be sent.booleanAuthentication information required to send the notification.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanAuthentication information required to send the notification.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Authentication information required to send the notification.setAuthentication(AuthenticationInfo.Builder builderForValue) Authentication information required to send the notification.The push notification configuration details.setIdBytes(com.google.protobuf.ByteString value) The push notification configuration details.The ID of the task this configuration is associated with.setTaskIdBytes(com.google.protobuf.ByteString value) The ID of the task this configuration is associated with.Optional.setTenantBytes(com.google.protobuf.ByteString value) Optional.A token unique for this task or session.setTokenBytes(com.google.protobuf.ByteString value) A token unique for this task or session.The URL where the notification should be sent.setUrlBytes(com.google.protobuf.ByteString value) The URL where the notification should be sent.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<TaskPushNotificationConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<TaskPushNotificationConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<TaskPushNotificationConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TaskPushNotificationConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TaskPushNotificationConfig.Builder>- Throws:
IOException
-
getTenant
Optional. Tenant ID.
string tenant = 1;- Specified by:
getTenantin interfaceTaskPushNotificationConfigOrBuilder- Returns:
- The tenant.
-
getTenantBytes
public com.google.protobuf.ByteString getTenantBytes()Optional. Tenant ID.
string tenant = 1;- Specified by:
getTenantBytesin interfaceTaskPushNotificationConfigOrBuilder- Returns:
- The bytes for tenant.
-
setTenant
Optional. Tenant ID.
string tenant = 1;- Parameters:
value- The tenant to set.- Returns:
- This builder for chaining.
-
clearTenant
Optional. Tenant ID.
string tenant = 1;- Returns:
- This builder for chaining.
-
setTenantBytes
Optional. Tenant ID.
string tenant = 1;- Parameters:
value- The bytes for tenant to set.- Returns:
- This builder for chaining.
-
getId
The push notification configuration details. A unique identifier (e.g. UUID) for this push notification configuration.
string id = 2;- Specified by:
getIdin interfaceTaskPushNotificationConfigOrBuilder- 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:
getIdBytesin interfaceTaskPushNotificationConfigOrBuilder- 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
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
The ID of the task this configuration is associated with.
string task_id = 3;- Specified by:
getTaskIdin interfaceTaskPushNotificationConfigOrBuilder- 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:
getTaskIdBytesin interfaceTaskPushNotificationConfigOrBuilder- Returns:
- The bytes for taskId.
-
setTaskId
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
The ID of the task this configuration is associated with.
string task_id = 3;- Returns:
- This builder for chaining.
-
setTaskIdBytes
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
The URL where the notification should be sent.
string url = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getUrlin interfaceTaskPushNotificationConfigOrBuilder- 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:
getUrlBytesin interfaceTaskPushNotificationConfigOrBuilder- 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
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
A token unique for this task or session.
string token = 5;- Specified by:
getTokenin interfaceTaskPushNotificationConfigOrBuilder- Returns:
- The token.
-
getTokenBytes
public com.google.protobuf.ByteString getTokenBytes()A token unique for this task or session.
string token = 5;- Specified by:
getTokenBytesin interfaceTaskPushNotificationConfigOrBuilder- Returns:
- The bytes for token.
-
setToken
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
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:
hasAuthenticationin interfaceTaskPushNotificationConfigOrBuilder- Returns:
- Whether the authentication field is set.
-
getAuthentication
Authentication information required to send the notification.
.lf.a2a.v1.AuthenticationInfo authentication = 6;- Specified by:
getAuthenticationin interfaceTaskPushNotificationConfigOrBuilder- Returns:
- The authentication.
-
setAuthentication
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
Authentication information required to send the notification.
.lf.a2a.v1.AuthenticationInfo authentication = 6; -
clearAuthentication
Authentication information required to send the notification.
.lf.a2a.v1.AuthenticationInfo authentication = 6; -
getAuthenticationBuilder
Authentication information required to send the notification.
.lf.a2a.v1.AuthenticationInfo authentication = 6; -
getAuthenticationOrBuilder
Authentication information required to send the notification.
.lf.a2a.v1.AuthenticationInfo authentication = 6;- Specified by:
getAuthenticationOrBuilderin interfaceTaskPushNotificationConfigOrBuilder
-