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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public 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.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessage.Builder<Scopes.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessage.Builder<Scopes.Builder>
public Scopes getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Scopes build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Scopes buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Scopes.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Scopes.Builder>
java.io.IOException
public int getScopeCount()
ScopesOrBuilder
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"];
getScopeCount
in interface ScopesOrBuilder
public 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 ScopesOrBuilder
public 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 ScopesOrBuilder
public 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 ScopesOrBuilder
public 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 ScopesOrBuilder
public 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"];