Package org.a2aproject.sdk.grpc
Class OAuth2SecurityScheme.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<OAuth2SecurityScheme.Builder>
org.a2aproject.sdk.grpc.OAuth2SecurityScheme.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,OAuth2SecuritySchemeOrBuilder
- Enclosing class:
- OAuth2SecurityScheme
public static final class OAuth2SecurityScheme.Builder
extends com.google.protobuf.GeneratedMessage.Builder<OAuth2SecurityScheme.Builder>
implements OAuth2SecuritySchemeOrBuilder
Defines a security scheme using OAuth 2.0.Protobuf type
lf.a2a.v1.OAuth2SecurityScheme-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()An optional description for the security scheme.An object containing configuration information for the supported OAuth 2.0 flows.URL to the OAuth2 authorization server metadata [RFC 8414](https://datatracker.ietf.org/doc/html/rfc8414).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.DescriptorgetFlows()An object containing configuration information for the supported OAuth 2.0 flows.An object containing configuration information for the supported OAuth 2.0 flows.An object containing configuration information for the supported OAuth 2.0 flows.URL to the OAuth2 authorization server metadata [RFC 8414](https://datatracker.ietf.org/doc/html/rfc8414).com.google.protobuf.ByteStringURL to the OAuth2 authorization server metadata [RFC 8414](https://datatracker.ietf.org/doc/html/rfc8414).booleanhasFlows()An object containing configuration information for the supported OAuth 2.0 flows.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFlows(OAuthFlows value) An object containing configuration information for the supported OAuth 2.0 flows.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(OAuth2SecurityScheme other) setDescription(String value) An optional description for the security scheme.setDescriptionBytes(com.google.protobuf.ByteString value) An optional description for the security scheme.setFlows(OAuthFlows value) An object containing configuration information for the supported OAuth 2.0 flows.setFlows(OAuthFlows.Builder builderForValue) An object containing configuration information for the supported OAuth 2.0 flows.setOauth2MetadataUrl(String value) URL to the OAuth2 authorization server metadata [RFC 8414](https://datatracker.ietf.org/doc/html/rfc8414).setOauth2MetadataUrlBytes(com.google.protobuf.ByteString value) URL to the OAuth2 authorization server metadata [RFC 8414](https://datatracker.ietf.org/doc/html/rfc8414).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<OAuth2SecurityScheme.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<OAuth2SecurityScheme.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<OAuth2SecurityScheme.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<OAuth2SecurityScheme.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<OAuth2SecurityScheme.Builder>
-
mergeFrom
public OAuth2SecurityScheme.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<OAuth2SecurityScheme.Builder>- Throws:
IOException
-
getDescription
An optional description for the security scheme.
string description = 1;- Specified by:
getDescriptionin interfaceOAuth2SecuritySchemeOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()An optional description for the security scheme.
string description = 1;- Specified by:
getDescriptionBytesin interfaceOAuth2SecuritySchemeOrBuilder- 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.
-
hasFlows
public boolean hasFlows()An object containing configuration information for the supported OAuth 2.0 flows.
.lf.a2a.v1.OAuthFlows flows = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasFlowsin interfaceOAuth2SecuritySchemeOrBuilder- Returns:
- Whether the flows field is set.
-
getFlows
An object containing configuration information for the supported OAuth 2.0 flows.
.lf.a2a.v1.OAuthFlows flows = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getFlowsin interfaceOAuth2SecuritySchemeOrBuilder- Returns:
- The flows.
-
setFlows
An object containing configuration information for the supported OAuth 2.0 flows.
.lf.a2a.v1.OAuthFlows flows = 2 [(.google.api.field_behavior) = REQUIRED]; -
setFlows
An object containing configuration information for the supported OAuth 2.0 flows.
.lf.a2a.v1.OAuthFlows flows = 2 [(.google.api.field_behavior) = REQUIRED]; -
mergeFlows
An object containing configuration information for the supported OAuth 2.0 flows.
.lf.a2a.v1.OAuthFlows flows = 2 [(.google.api.field_behavior) = REQUIRED]; -
clearFlows
An object containing configuration information for the supported OAuth 2.0 flows.
.lf.a2a.v1.OAuthFlows flows = 2 [(.google.api.field_behavior) = REQUIRED]; -
getFlowsBuilder
An object containing configuration information for the supported OAuth 2.0 flows.
.lf.a2a.v1.OAuthFlows flows = 2 [(.google.api.field_behavior) = REQUIRED]; -
getFlowsOrBuilder
An object containing configuration information for the supported OAuth 2.0 flows.
.lf.a2a.v1.OAuthFlows flows = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getFlowsOrBuilderin interfaceOAuth2SecuritySchemeOrBuilder
-
getOauth2MetadataUrl
URL to the OAuth2 authorization server metadata [RFC 8414](https://datatracker.ietf.org/doc/html/rfc8414). TLS is required.
string oauth2_metadata_url = 3;- Specified by:
getOauth2MetadataUrlin interfaceOAuth2SecuritySchemeOrBuilder- Returns:
- The oauth2MetadataUrl.
-
getOauth2MetadataUrlBytes
public com.google.protobuf.ByteString getOauth2MetadataUrlBytes()URL to the OAuth2 authorization server metadata [RFC 8414](https://datatracker.ietf.org/doc/html/rfc8414). TLS is required.
string oauth2_metadata_url = 3;- Specified by:
getOauth2MetadataUrlBytesin interfaceOAuth2SecuritySchemeOrBuilder- Returns:
- The bytes for oauth2MetadataUrl.
-
setOauth2MetadataUrl
URL to the OAuth2 authorization server metadata [RFC 8414](https://datatracker.ietf.org/doc/html/rfc8414). TLS is required.
string oauth2_metadata_url = 3;- Parameters:
value- The oauth2MetadataUrl to set.- Returns:
- This builder for chaining.
-
clearOauth2MetadataUrl
URL to the OAuth2 authorization server metadata [RFC 8414](https://datatracker.ietf.org/doc/html/rfc8414). TLS is required.
string oauth2_metadata_url = 3;- Returns:
- This builder for chaining.
-
setOauth2MetadataUrlBytes
URL to the OAuth2 authorization server metadata [RFC 8414](https://datatracker.ietf.org/doc/html/rfc8414). TLS is required.
string oauth2_metadata_url = 3;- Parameters:
value- The bytes for oauth2MetadataUrl to set.- Returns:
- This builder for chaining.
-