public static final class SecurityRequirement.SecurityRequirementValue.Builder extends com.google.protobuf.GeneratedMessage.Builder<SecurityRequirement.SecurityRequirementValue.Builder> implements SecurityRequirement.SecurityRequirementValueOrBuilder
If the security scheme is of type "oauth2", then the value is a list of scope names required for the execution. For other security scheme types, the array MUST be empty.Protobuf type
grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue
Modifier and Type | Method and Description |
---|---|
SecurityRequirement.SecurityRequirementValue.Builder |
addAllScope(java.lang.Iterable<java.lang.String> values)
repeated string scope = 1 [json_name = "scope"]; |
SecurityRequirement.SecurityRequirementValue.Builder |
addScope(java.lang.String value)
repeated string scope = 1 [json_name = "scope"]; |
SecurityRequirement.SecurityRequirementValue.Builder |
addScopeBytes(com.google.protobuf.ByteString value)
repeated string scope = 1 [json_name = "scope"]; |
SecurityRequirement.SecurityRequirementValue |
build() |
SecurityRequirement.SecurityRequirementValue |
buildPartial() |
SecurityRequirement.SecurityRequirementValue.Builder |
clear() |
SecurityRequirement.SecurityRequirementValue.Builder |
clearScope()
repeated string scope = 1 [json_name = "scope"]; |
SecurityRequirement.SecurityRequirementValue |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getScope(int index)
repeated string scope = 1 [json_name = "scope"]; |
com.google.protobuf.ByteString |
getScopeBytes(int index)
repeated string scope = 1 [json_name = "scope"]; |
int |
getScopeCount()
repeated string scope = 1 [json_name = "scope"]; |
com.google.protobuf.ProtocolStringList |
getScopeList()
repeated string scope = 1 [json_name = "scope"]; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
SecurityRequirement.SecurityRequirementValue.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SecurityRequirement.SecurityRequirementValue.Builder |
mergeFrom(com.google.protobuf.Message other) |
SecurityRequirement.SecurityRequirementValue.Builder |
mergeFrom(SecurityRequirement.SecurityRequirementValue other) |
SecurityRequirement.SecurityRequirementValue.Builder |
setScope(int index,
java.lang.String value)
repeated string scope = 1 [json_name = "scope"]; |
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, 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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage.Builder<SecurityRequirement.SecurityRequirementValue.Builder>
public SecurityRequirement.SecurityRequirementValue.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<SecurityRequirement.SecurityRequirementValue.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<SecurityRequirement.SecurityRequirementValue.Builder>
public SecurityRequirement.SecurityRequirementValue getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public SecurityRequirement.SecurityRequirementValue build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public SecurityRequirement.SecurityRequirementValue buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public SecurityRequirement.SecurityRequirementValue.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<SecurityRequirement.SecurityRequirementValue.Builder>
public SecurityRequirement.SecurityRequirementValue.Builder mergeFrom(SecurityRequirement.SecurityRequirementValue other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage.Builder<SecurityRequirement.SecurityRequirementValue.Builder>
public SecurityRequirement.SecurityRequirementValue.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<SecurityRequirement.SecurityRequirementValue.Builder>
java.io.IOException
public com.google.protobuf.ProtocolStringList getScopeList()
repeated string scope = 1 [json_name = "scope"];
getScopeList
in interface SecurityRequirement.SecurityRequirementValueOrBuilder
public int getScopeCount()
repeated string scope = 1 [json_name = "scope"];
getScopeCount
in interface SecurityRequirement.SecurityRequirementValueOrBuilder
public java.lang.String getScope(int index)
repeated string scope = 1 [json_name = "scope"];
getScope
in interface SecurityRequirement.SecurityRequirementValueOrBuilder
index
- The index of the element to return.public com.google.protobuf.ByteString getScopeBytes(int index)
repeated string scope = 1 [json_name = "scope"];
getScopeBytes
in interface SecurityRequirement.SecurityRequirementValueOrBuilder
index
- The index of the value to return.public SecurityRequirement.SecurityRequirementValue.Builder setScope(int index, java.lang.String value)
repeated string scope = 1 [json_name = "scope"];
index
- The index to set the value at.value
- The scope to set.public SecurityRequirement.SecurityRequirementValue.Builder addScope(java.lang.String value)
repeated string scope = 1 [json_name = "scope"];
value
- The scope to add.public SecurityRequirement.SecurityRequirementValue.Builder addAllScope(java.lang.Iterable<java.lang.String> values)
repeated string scope = 1 [json_name = "scope"];
values
- The scope to add.public SecurityRequirement.SecurityRequirementValue.Builder clearScope()
repeated string scope = 1 [json_name = "scope"];
public SecurityRequirement.SecurityRequirementValue.Builder addScopeBytes(com.google.protobuf.ByteString value)
repeated string scope = 1 [json_name = "scope"];
value
- The bytes of the scope to add.