public static final class Scopes.Builder extends com.google.protobuf.GeneratedMessage.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(java.lang.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() |
java.util.Map<java.lang.String,java.lang.String> |
getMutableScope()
Deprecated.
|
java.util.Map<java.lang.String,java.lang.String> |
getScope()
Deprecated.
|
int |
getScopeCount()
Maps between a name of a scope to a short description of it (as the value
of the property).
|
java.util.Map<java.lang.String,java.lang.String> |
getScopeMap()
Maps between a name of a scope to a short description of it (as the value
of the property).
|
java.lang.String |
getScopeOrDefault(java.lang.String key,
java.lang.String defaultValue)
Maps between a name of a scope to a short description of it (as the value
of the property).
|
java.lang.String |
getScopeOrThrow(java.lang.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.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMutableMapFieldReflection(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 |
putAllScope(java.util.Map<java.lang.String,java.lang.String> values)
Maps between a name of a scope to a short description of it (as the value
of the property).
|
Scopes.Builder |
putScope(java.lang.String key,
java.lang.String value)
Maps between a name of a scope to a short description of it (as the value
of the property).
|
Scopes.Builder |
removeScope(java.lang.String key)
Maps between a name of a scope to a short description of it (as the value
of the property).
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Scopes.Builder>protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Scopes.Builder>protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.Builder<Scopes.Builder>public Scopes.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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>java.io.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(java.lang.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 java.util.Map<java.lang.String,java.lang.String> getScope()
getScopeMap() instead.getScope in interface ScopesOrBuilderpublic java.util.Map<java.lang.String,java.lang.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 java.lang.String getScopeOrDefault(java.lang.String key,
java.lang.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 java.lang.String getScopeOrThrow(java.lang.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(java.lang.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 java.util.Map<java.lang.String,java.lang.String> getMutableScope()
public Scopes.Builder putScope(java.lang.String key, java.lang.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(java.util.Map<java.lang.String,java.lang.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"];