Package org.a2aproject.sdk.compat03.grpc
Class AgentExtension.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AgentExtension.Builder>
org.a2aproject.sdk.compat03.grpc.AgentExtension.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,AgentExtensionOrBuilder
- Enclosing class:
- AgentExtension
public static final class AgentExtension.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AgentExtension.Builder>
implements AgentExtensionOrBuilder
A declaration of an extension supported by an Agent.Protobuf type
a2a.v1.AgentExtension-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()A description of how this agent uses this extension.Optional configuration for the extension.Whether the client must follow specific requirements of the extension.clearUri()The URI of the extension.A description of how this agent uses this extension.com.google.protobuf.ByteStringA description of how this agent uses this extension.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.StructOptional configuration for the extension.com.google.protobuf.Struct.BuilderOptional configuration for the extension.com.google.protobuf.StructOrBuilderOptional configuration for the extension.booleanWhether the client must follow specific requirements of the extension.getUri()The URI of the extension.com.google.protobuf.ByteStringThe URI of the extension.booleanOptional configuration for the extension.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(AgentExtension other) mergeParams(com.google.protobuf.Struct value) Optional configuration for the extension.setDescription(String value) A description of how this agent uses this extension.setDescriptionBytes(com.google.protobuf.ByteString value) A description of how this agent uses this extension.setParams(com.google.protobuf.Struct value) Optional configuration for the extension.setParams(com.google.protobuf.Struct.Builder builderForValue) Optional configuration for the extension.setRequired(boolean value) Whether the client must follow specific requirements of the extension.The URI of the extension.setUriBytes(com.google.protobuf.ByteString value) The URI of the extension.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<AgentExtension.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<AgentExtension.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<AgentExtension.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<AgentExtension.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AgentExtension.Builder>
-
mergeFrom
public AgentExtension.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<AgentExtension.Builder>- Throws:
IOException
-
getUri
The URI of the extension. Example: "https://developers.google.com/identity/protocols/oauth2"
string uri = 1;- Specified by:
getUriin interfaceAgentExtensionOrBuilder- Returns:
- The uri.
-
getUriBytes
public com.google.protobuf.ByteString getUriBytes()The URI of the extension. Example: "https://developers.google.com/identity/protocols/oauth2"
string uri = 1;- Specified by:
getUriBytesin interfaceAgentExtensionOrBuilder- Returns:
- The bytes for uri.
-
setUri
The URI of the extension. Example: "https://developers.google.com/identity/protocols/oauth2"
string uri = 1;- Parameters:
value- The uri to set.- Returns:
- This builder for chaining.
-
clearUri
The URI of the extension. Example: "https://developers.google.com/identity/protocols/oauth2"
string uri = 1;- Returns:
- This builder for chaining.
-
setUriBytes
The URI of the extension. Example: "https://developers.google.com/identity/protocols/oauth2"
string uri = 1;- Parameters:
value- The bytes for uri to set.- Returns:
- This builder for chaining.
-
getDescription
A description of how this agent uses this extension. Example: "Google OAuth 2.0 authentication"
string description = 2;- Specified by:
getDescriptionin interfaceAgentExtensionOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()A description of how this agent uses this extension. Example: "Google OAuth 2.0 authentication"
string description = 2;- Specified by:
getDescriptionBytesin interfaceAgentExtensionOrBuilder- Returns:
- The bytes for description.
-
setDescription
A description of how this agent uses this extension. Example: "Google OAuth 2.0 authentication"
string description = 2;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
A description of how this agent uses this extension. Example: "Google OAuth 2.0 authentication"
string description = 2;- Returns:
- This builder for chaining.
-
setDescriptionBytes
A description of how this agent uses this extension. Example: "Google OAuth 2.0 authentication"
string description = 2;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getRequired
public boolean getRequired()Whether the client must follow specific requirements of the extension. Example: false
bool required = 3;- Specified by:
getRequiredin interfaceAgentExtensionOrBuilder- Returns:
- The required.
-
setRequired
Whether the client must follow specific requirements of the extension. Example: false
bool required = 3;- Parameters:
value- The required to set.- Returns:
- This builder for chaining.
-
clearRequired
Whether the client must follow specific requirements of the extension. Example: false
bool required = 3;- Returns:
- This builder for chaining.
-
hasParams
public boolean hasParams()Optional configuration for the extension.
.google.protobuf.Struct params = 4;- Specified by:
hasParamsin interfaceAgentExtensionOrBuilder- Returns:
- Whether the params field is set.
-
getParams
public com.google.protobuf.Struct getParams()Optional configuration for the extension.
.google.protobuf.Struct params = 4;- Specified by:
getParamsin interfaceAgentExtensionOrBuilder- Returns:
- The params.
-
setParams
Optional configuration for the extension.
.google.protobuf.Struct params = 4; -
setParams
Optional configuration for the extension.
.google.protobuf.Struct params = 4; -
mergeParams
Optional configuration for the extension.
.google.protobuf.Struct params = 4; -
clearParams
Optional configuration for the extension.
.google.protobuf.Struct params = 4; -
getParamsBuilder
public com.google.protobuf.Struct.Builder getParamsBuilder()Optional configuration for the extension.
.google.protobuf.Struct params = 4; -
getParamsOrBuilder
public com.google.protobuf.StructOrBuilder getParamsOrBuilder()Optional configuration for the extension.
.google.protobuf.Struct params = 4;- Specified by:
getParamsOrBuilderin interfaceAgentExtensionOrBuilder
-