public static final class Scopes.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Scopes.Builder> implements ScopesOrBuilder
`Scopes` is a representation of OpenAPI v2 specification's Scopes object. See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#scopesObject Lists the available scopes for an OAuth2 security scheme.Protobuf type
grpc.gateway.protoc_gen_openapiv2.options.Scopes| Modifier and Type | Method and Description |
|---|---|
Scopes |
build() |
Scopes |
buildPartial() |
Scopes.Builder |
clear() |
Scopes.Builder |
clearScope() |
boolean |
containsScope(String key)
Maps between a name of a scope to a short description of it (as the value
of the property).
|
Scopes |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Map<String,String> |
getMutableScope()
Deprecated.
|
Map<String,String> |
getScope()
Deprecated.
|
int |
getScopeCount()
Maps between a name of a scope to a short description of it (as the value
of the property).
|
Map<String,String> |
getScopeMap()
Maps between a name of a scope to a short description of it (as the value
of the property).
|
String |
getScopeOrDefault(String key,
String defaultValue)
Maps between a name of a scope to a short description of it (as the value
of the property).
|
String |
getScopeOrThrow(String key)
Maps between a name of a scope to a short description of it (as the value
of the property).
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
Scopes.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Scopes.Builder |
mergeFrom(com.google.protobuf.Message other) |
Scopes.Builder |
mergeFrom(Scopes other) |
Scopes.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Scopes.Builder |
putAllScope(Map<String,String> values)
Maps between a name of a scope to a short description of it (as the value
of the property).
|
Scopes.Builder |
putScope(String key,
String value)
Maps between a name of a scope to a short description of it (as the value
of the property).
|
Scopes.Builder |
removeScope(String key)
Maps between a name of a scope to a short description of it (as the value
of the property).
|
Scopes.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Scopes.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Scopes.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Scopes.Builder>public Scopes.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Scopes.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Scopes.Builder>public Scopes getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Scopes build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Scopes buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Scopes.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Scopes.Builder>public Scopes.Builder mergeFrom(Scopes other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Scopes.Builder>public Scopes.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Scopes.Builder>IOExceptionpublic int getScopeCount()
ScopesOrBuilderMaps between a name of a scope to a short description of it (as the value of the property).
map<string, string> scope = 1 [json_name = "scope"];getScopeCount in interface ScopesOrBuilderpublic boolean containsScope(String key)
Maps between a name of a scope to a short description of it (as the value of the property).
map<string, string> scope = 1 [json_name = "scope"];containsScope in interface ScopesOrBuilder@Deprecated public Map<String,String> getScope()
getScopeMap() instead.getScope in interface ScopesOrBuilderpublic Map<String,String> getScopeMap()
Maps between a name of a scope to a short description of it (as the value of the property).
map<string, string> scope = 1 [json_name = "scope"];getScopeMap in interface ScopesOrBuilderpublic String getScopeOrDefault(String key, String defaultValue)
Maps between a name of a scope to a short description of it (as the value of the property).
map<string, string> scope = 1 [json_name = "scope"];getScopeOrDefault in interface ScopesOrBuilderpublic String getScopeOrThrow(String key)
Maps between a name of a scope to a short description of it (as the value of the property).
map<string, string> scope = 1 [json_name = "scope"];getScopeOrThrow in interface ScopesOrBuilderpublic Scopes.Builder clearScope()
public Scopes.Builder removeScope(String key)
Maps between a name of a scope to a short description of it (as the value of the property).
map<string, string> scope = 1 [json_name = "scope"];@Deprecated public Map<String,String> getMutableScope()
public Scopes.Builder putScope(String key, String value)
Maps between a name of a scope to a short description of it (as the value of the property).
map<string, string> scope = 1 [json_name = "scope"];public Scopes.Builder putAllScope(Map<String,String> values)
Maps between a name of a scope to a short description of it (as the value of the property).
map<string, string> scope = 1 [json_name = "scope"];public final Scopes.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Scopes.Builder>public final Scopes.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Scopes.Builder>Copyright © 2023. All rights reserved.