Package org.a2aproject.sdk.grpc
Class HTTPAuthSecurityScheme.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<HTTPAuthSecurityScheme.Builder>
org.a2aproject.sdk.grpc.HTTPAuthSecurityScheme.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,HTTPAuthSecuritySchemeOrBuilder
- Enclosing class:
- HTTPAuthSecurityScheme
public static final class HTTPAuthSecurityScheme.Builder
extends com.google.protobuf.GeneratedMessage.Builder<HTTPAuthSecurityScheme.Builder>
implements HTTPAuthSecuritySchemeOrBuilder
Defines a security scheme using HTTP authentication.Protobuf type
lf.a2a.v1.HTTPAuthSecurityScheme-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()A hint to the client to identify how the bearer token is formatted (e.g., "JWT").An optional description for the security scheme.The name of the HTTP Authentication scheme to be used in the Authorization header, as defined in RFC7235 (e.g., "Bearer").A hint to the client to identify how the bearer token is formatted (e.g., "JWT").com.google.protobuf.ByteStringA hint to the client to identify how the bearer token is formatted (e.g., "JWT").An optional description for the security scheme.com.google.protobuf.ByteStringAn optional description for the security scheme.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe name of the HTTP Authentication scheme to be used in the Authorization header, as defined in RFC7235 (e.g., "Bearer").com.google.protobuf.ByteStringThe name of the HTTP Authentication scheme to be used in the Authorization header, as defined in RFC7235 (e.g., "Bearer").protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(HTTPAuthSecurityScheme other) setBearerFormat(String value) A hint to the client to identify how the bearer token is formatted (e.g., "JWT").setBearerFormatBytes(com.google.protobuf.ByteString value) A hint to the client to identify how the bearer token is formatted (e.g., "JWT").setDescription(String value) An optional description for the security scheme.setDescriptionBytes(com.google.protobuf.ByteString value) An optional description for the security scheme.The name of the HTTP Authentication scheme to be used in the Authorization header, as defined in RFC7235 (e.g., "Bearer").setSchemeBytes(com.google.protobuf.ByteString value) The name of the HTTP Authentication scheme to be used in the Authorization header, as defined in RFC7235 (e.g., "Bearer").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<HTTPAuthSecurityScheme.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<HTTPAuthSecurityScheme.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<HTTPAuthSecurityScheme.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<HTTPAuthSecurityScheme.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<HTTPAuthSecurityScheme.Builder>
-
mergeFrom
public HTTPAuthSecurityScheme.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<HTTPAuthSecurityScheme.Builder>- Throws:
IOException
-
getDescription
An optional description for the security scheme.
string description = 1;- Specified by:
getDescriptionin interfaceHTTPAuthSecuritySchemeOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()An optional description for the security scheme.
string description = 1;- Specified by:
getDescriptionBytesin interfaceHTTPAuthSecuritySchemeOrBuilder- Returns:
- The bytes for description.
-
setDescription
An optional description for the security scheme.
string description = 1;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
An optional description for the security scheme.
string description = 1;- Returns:
- This builder for chaining.
-
setDescriptionBytes
An optional description for the security scheme.
string description = 1;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getScheme
The name of the HTTP Authentication scheme to be used in the Authorization header, as defined in RFC7235 (e.g., "Bearer"). This value should be registered in the IANA Authentication Scheme registry.
string scheme = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getSchemein interfaceHTTPAuthSecuritySchemeOrBuilder- Returns:
- The scheme.
-
getSchemeBytes
public com.google.protobuf.ByteString getSchemeBytes()The name of the HTTP Authentication scheme to be used in the Authorization header, as defined in RFC7235 (e.g., "Bearer"). This value should be registered in the IANA Authentication Scheme registry.
string scheme = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getSchemeBytesin interfaceHTTPAuthSecuritySchemeOrBuilder- Returns:
- The bytes for scheme.
-
setScheme
The name of the HTTP Authentication scheme to be used in the Authorization header, as defined in RFC7235 (e.g., "Bearer"). This value should be registered in the IANA Authentication Scheme registry.
string scheme = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The scheme to set.- Returns:
- This builder for chaining.
-
clearScheme
The name of the HTTP Authentication scheme to be used in the Authorization header, as defined in RFC7235 (e.g., "Bearer"). This value should be registered in the IANA Authentication Scheme registry.
string scheme = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setSchemeBytes
The name of the HTTP Authentication scheme to be used in the Authorization header, as defined in RFC7235 (e.g., "Bearer"). This value should be registered in the IANA Authentication Scheme registry.
string scheme = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for scheme to set.- Returns:
- This builder for chaining.
-
getBearerFormat
A hint to the client to identify how the bearer token is formatted (e.g., "JWT"). Primarily for documentation purposes.
string bearer_format = 3;- Specified by:
getBearerFormatin interfaceHTTPAuthSecuritySchemeOrBuilder- Returns:
- The bearerFormat.
-
getBearerFormatBytes
public com.google.protobuf.ByteString getBearerFormatBytes()A hint to the client to identify how the bearer token is formatted (e.g., "JWT"). Primarily for documentation purposes.
string bearer_format = 3;- Specified by:
getBearerFormatBytesin interfaceHTTPAuthSecuritySchemeOrBuilder- Returns:
- The bytes for bearerFormat.
-
setBearerFormat
A hint to the client to identify how the bearer token is formatted (e.g., "JWT"). Primarily for documentation purposes.
string bearer_format = 3;- Parameters:
value- The bearerFormat to set.- Returns:
- This builder for chaining.
-
clearBearerFormat
A hint to the client to identify how the bearer token is formatted (e.g., "JWT"). Primarily for documentation purposes.
string bearer_format = 3;- Returns:
- This builder for chaining.
-
setBearerFormatBytes
A hint to the client to identify how the bearer token is formatted (e.g., "JWT"). Primarily for documentation purposes.
string bearer_format = 3;- Parameters:
value- The bytes for bearerFormat to set.- Returns:
- This builder for chaining.
-