Package com.google.api.apikeys.v2
Class ServerKeyRestrictions.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ServerKeyRestrictions.Builder>
-
- com.google.api.apikeys.v2.ServerKeyRestrictions.Builder
-
- All Implemented Interfaces:
ServerKeyRestrictionsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ServerKeyRestrictions
public static final class ServerKeyRestrictions.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ServerKeyRestrictions.Builder> implements ServerKeyRestrictionsOrBuilder
The IP addresses of callers that are allowed to use the key.
Protobuf typegoogle.api.apikeys.v2.ServerKeyRestrictions
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerKeyRestrictions.BuilderaddAllAllowedIps(Iterable<String> values)A list of the caller IP addresses that are allowed to make API calls with this key.ServerKeyRestrictions.BuilderaddAllowedIps(String value)A list of the caller IP addresses that are allowed to make API calls with this key.ServerKeyRestrictions.BuilderaddAllowedIpsBytes(com.google.protobuf.ByteString value)A list of the caller IP addresses that are allowed to make API calls with this key.ServerKeyRestrictions.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ServerKeyRestrictionsbuild()ServerKeyRestrictionsbuildPartial()ServerKeyRestrictions.Builderclear()ServerKeyRestrictions.BuilderclearAllowedIps()A list of the caller IP addresses that are allowed to make API calls with this key.ServerKeyRestrictions.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ServerKeyRestrictions.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ServerKeyRestrictions.Builderclone()StringgetAllowedIps(int index)A list of the caller IP addresses that are allowed to make API calls with this key.com.google.protobuf.ByteStringgetAllowedIpsBytes(int index)A list of the caller IP addresses that are allowed to make API calls with this key.intgetAllowedIpsCount()A list of the caller IP addresses that are allowed to make API calls with this key.com.google.protobuf.ProtocolStringListgetAllowedIpsList()A list of the caller IP addresses that are allowed to make API calls with this key.ServerKeyRestrictionsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ServerKeyRestrictions.BuildermergeFrom(ServerKeyRestrictions other)ServerKeyRestrictions.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ServerKeyRestrictions.BuildermergeFrom(com.google.protobuf.Message other)ServerKeyRestrictions.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ServerKeyRestrictions.BuildersetAllowedIps(int index, String value)A list of the caller IP addresses that are allowed to make API calls with this key.ServerKeyRestrictions.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ServerKeyRestrictions.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ServerKeyRestrictions.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ServerKeyRestrictions.Builder>
-
clear
public ServerKeyRestrictions.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ServerKeyRestrictions.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.GeneratedMessageV3.Builder<ServerKeyRestrictions.Builder>
-
getDefaultInstanceForType
public ServerKeyRestrictions getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ServerKeyRestrictions build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ServerKeyRestrictions buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ServerKeyRestrictions.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ServerKeyRestrictions.Builder>
-
setField
public ServerKeyRestrictions.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ServerKeyRestrictions.Builder>
-
clearField
public ServerKeyRestrictions.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ServerKeyRestrictions.Builder>
-
clearOneof
public ServerKeyRestrictions.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ServerKeyRestrictions.Builder>
-
setRepeatedField
public ServerKeyRestrictions.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ServerKeyRestrictions.Builder>
-
addRepeatedField
public ServerKeyRestrictions.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ServerKeyRestrictions.Builder>
-
mergeFrom
public ServerKeyRestrictions.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ServerKeyRestrictions.Builder>
-
mergeFrom
public ServerKeyRestrictions.Builder mergeFrom(ServerKeyRestrictions other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ServerKeyRestrictions.Builder>
-
mergeFrom
public ServerKeyRestrictions.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<ServerKeyRestrictions.Builder>- Throws:
IOException
-
getAllowedIpsList
public com.google.protobuf.ProtocolStringList getAllowedIpsList()
A list of the caller IP addresses that are allowed to make API calls with this key.
repeated string allowed_ips = 1;- Specified by:
getAllowedIpsListin interfaceServerKeyRestrictionsOrBuilder- Returns:
- A list containing the allowedIps.
-
getAllowedIpsCount
public int getAllowedIpsCount()
A list of the caller IP addresses that are allowed to make API calls with this key.
repeated string allowed_ips = 1;- Specified by:
getAllowedIpsCountin interfaceServerKeyRestrictionsOrBuilder- Returns:
- The count of allowedIps.
-
getAllowedIps
public String getAllowedIps(int index)
A list of the caller IP addresses that are allowed to make API calls with this key.
repeated string allowed_ips = 1;- Specified by:
getAllowedIpsin interfaceServerKeyRestrictionsOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The allowedIps at the given index.
-
getAllowedIpsBytes
public com.google.protobuf.ByteString getAllowedIpsBytes(int index)
A list of the caller IP addresses that are allowed to make API calls with this key.
repeated string allowed_ips = 1;- Specified by:
getAllowedIpsBytesin interfaceServerKeyRestrictionsOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the allowedIps at the given index.
-
setAllowedIps
public ServerKeyRestrictions.Builder setAllowedIps(int index, String value)
A list of the caller IP addresses that are allowed to make API calls with this key.
repeated string allowed_ips = 1;- Parameters:
index- The index to set the value at.value- The allowedIps to set.- Returns:
- This builder for chaining.
-
addAllowedIps
public ServerKeyRestrictions.Builder addAllowedIps(String value)
A list of the caller IP addresses that are allowed to make API calls with this key.
repeated string allowed_ips = 1;- Parameters:
value- The allowedIps to add.- Returns:
- This builder for chaining.
-
addAllAllowedIps
public ServerKeyRestrictions.Builder addAllAllowedIps(Iterable<String> values)
A list of the caller IP addresses that are allowed to make API calls with this key.
repeated string allowed_ips = 1;- Parameters:
values- The allowedIps to add.- Returns:
- This builder for chaining.
-
clearAllowedIps
public ServerKeyRestrictions.Builder clearAllowedIps()
A list of the caller IP addresses that are allowed to make API calls with this key.
repeated string allowed_ips = 1;- Returns:
- This builder for chaining.
-
addAllowedIpsBytes
public ServerKeyRestrictions.Builder addAllowedIpsBytes(com.google.protobuf.ByteString value)
A list of the caller IP addresses that are allowed to make API calls with this key.
repeated string allowed_ips = 1;- Parameters:
value- The bytes of the allowedIps to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ServerKeyRestrictions.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ServerKeyRestrictions.Builder>
-
mergeUnknownFields
public final ServerKeyRestrictions.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ServerKeyRestrictions.Builder>
-
-