Package s2.v1alpha
Class ResourceSet.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<ResourceSet.Builder>
-
- s2.v1alpha.ResourceSet.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.Cloneable
,ResourceSetOrBuilder
- Enclosing class:
- ResourceSet
public static final class ResourceSet.Builder extends com.google.protobuf.GeneratedMessage.Builder<ResourceSet.Builder> implements ResourceSetOrBuilder
Set of named resources.
Protobuf types2.v1alpha.ResourceSet
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceSet
build()
ResourceSet
buildPartial()
ResourceSet.Builder
clear()
ResourceSet.Builder
clearExact()
Match only the resource with this exact name.ResourceSet.Builder
clearMatching()
ResourceSet.Builder
clearPrefix()
Match all resources that start with this prefix.ResourceSet
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
java.lang.String
getExact()
Match only the resource with this exact name.com.google.protobuf.ByteString
getExactBytes()
Match only the resource with this exact name.ResourceSet.MatchingCase
getMatchingCase()
java.lang.String
getPrefix()
Match all resources that start with this prefix.com.google.protobuf.ByteString
getPrefixBytes()
Match all resources that start with this prefix.boolean
hasExact()
Match only the resource with this exact name.boolean
hasPrefix()
Match all resources that start with this prefix.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ResourceSet.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ResourceSet.Builder
mergeFrom(com.google.protobuf.Message other)
ResourceSet.Builder
mergeFrom(ResourceSet other)
ResourceSet.Builder
setExact(java.lang.String value)
Match only the resource with this exact name.ResourceSet.Builder
setExactBytes(com.google.protobuf.ByteString value)
Match only the resource with this exact name.ResourceSet.Builder
setPrefix(java.lang.String value)
Match all resources that start with this prefix.ResourceSet.Builder
setPrefixBytes(com.google.protobuf.ByteString value)
Match all resources that start with this prefix.-
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
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
-
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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<ResourceSet.Builder>
-
clear
public ResourceSet.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<ResourceSet.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<ResourceSet.Builder>
-
getDefaultInstanceForType
public ResourceSet getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ResourceSet build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ResourceSet buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public ResourceSet.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ResourceSet.Builder>
-
mergeFrom
public ResourceSet.Builder mergeFrom(ResourceSet other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<ResourceSet.Builder>
-
mergeFrom
public ResourceSet.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ResourceSet.Builder>
- Throws:
java.io.IOException
-
getMatchingCase
public ResourceSet.MatchingCase getMatchingCase()
- Specified by:
getMatchingCase
in interfaceResourceSetOrBuilder
-
clearMatching
public ResourceSet.Builder clearMatching()
-
hasExact
public boolean hasExact()
Match only the resource with this exact name. Use an empty string to match no resources.
string exact = 1;
- Specified by:
hasExact
in interfaceResourceSetOrBuilder
- Returns:
- Whether the exact field is set.
-
getExact
public java.lang.String getExact()
Match only the resource with this exact name. Use an empty string to match no resources.
string exact = 1;
- Specified by:
getExact
in interfaceResourceSetOrBuilder
- Returns:
- The exact.
-
getExactBytes
public com.google.protobuf.ByteString getExactBytes()
Match only the resource with this exact name. Use an empty string to match no resources.
string exact = 1;
- Specified by:
getExactBytes
in interfaceResourceSetOrBuilder
- Returns:
- The bytes for exact.
-
setExact
public ResourceSet.Builder setExact(java.lang.String value)
Match only the resource with this exact name. Use an empty string to match no resources.
string exact = 1;
- Parameters:
value
- The exact to set.- Returns:
- This builder for chaining.
-
clearExact
public ResourceSet.Builder clearExact()
Match only the resource with this exact name. Use an empty string to match no resources.
string exact = 1;
- Returns:
- This builder for chaining.
-
setExactBytes
public ResourceSet.Builder setExactBytes(com.google.protobuf.ByteString value)
Match only the resource with this exact name. Use an empty string to match no resources.
string exact = 1;
- Parameters:
value
- The bytes for exact to set.- Returns:
- This builder for chaining.
-
hasPrefix
public boolean hasPrefix()
Match all resources that start with this prefix. Use an empty string to match all resource.
string prefix = 2;
- Specified by:
hasPrefix
in interfaceResourceSetOrBuilder
- Returns:
- Whether the prefix field is set.
-
getPrefix
public java.lang.String getPrefix()
Match all resources that start with this prefix. Use an empty string to match all resource.
string prefix = 2;
- Specified by:
getPrefix
in interfaceResourceSetOrBuilder
- Returns:
- The prefix.
-
getPrefixBytes
public com.google.protobuf.ByteString getPrefixBytes()
Match all resources that start with this prefix. Use an empty string to match all resource.
string prefix = 2;
- Specified by:
getPrefixBytes
in interfaceResourceSetOrBuilder
- Returns:
- The bytes for prefix.
-
setPrefix
public ResourceSet.Builder setPrefix(java.lang.String value)
Match all resources that start with this prefix. Use an empty string to match all resource.
string prefix = 2;
- Parameters:
value
- The prefix to set.- Returns:
- This builder for chaining.
-
clearPrefix
public ResourceSet.Builder clearPrefix()
Match all resources that start with this prefix. Use an empty string to match all resource.
string prefix = 2;
- Returns:
- This builder for chaining.
-
setPrefixBytes
public ResourceSet.Builder setPrefixBytes(com.google.protobuf.ByteString value)
Match all resources that start with this prefix. Use an empty string to match all resource.
string prefix = 2;
- Parameters:
value
- The bytes for prefix to set.- Returns:
- This builder for chaining.
-
-