Package io.spine.net
Class Uri.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Uri.Builder>
-
- io.spine.net.Uri.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,UriOrBuilder
,io.spine.validate.ValidatingBuilder<Uri>
,Cloneable
- Enclosing class:
- Uri
public static final class Uri.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Uri.Builder> implements io.spine.validate.ValidatingBuilder<Uri>, UriOrBuilder
A URL in a structured form. This type represents URL according to RFC 3986. Using this type makes it easier to operate concrete URL attributes. Please see https://tools.ietf.org/html/rfc3986. This type is intended to be used only by parsing or validating utilities. For general purpose usage, please use `Url`.
Protobuf typespine.net.Uri
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Uri.Builder
addAllQuery(Iterable<? extends Uri.QueryParameter> values)
A list of key-value pairs (?key1=value1&key2=value2).Uri.Builder
addQuery(int index, Uri.QueryParameter value)
A list of key-value pairs (?key1=value1&key2=value2).Uri.Builder
addQuery(int index, Uri.QueryParameter.Builder builderForValue)
A list of key-value pairs (?key1=value1&key2=value2).Uri.Builder
addQuery(Uri.QueryParameter value)
A list of key-value pairs (?key1=value1&key2=value2).Uri.Builder
addQuery(Uri.QueryParameter.Builder builderForValue)
A list of key-value pairs (?key1=value1&key2=value2).Uri.QueryParameter.Builder
addQueryBuilder()
A list of key-value pairs (?key1=value1&key2=value2).Uri.QueryParameter.Builder
addQueryBuilder(int index)
A list of key-value pairs (?key1=value1&key2=value2).Uri.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Uri
build()
Uri
buildPartial()
Uri.Builder
clear()
Uri.Builder
clearAuth()
User's email and password (both optional).Uri.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Uri.Builder
clearFragment()
Sub-resource (e.g.Uri.Builder
clearHost()
Domain name.Uri.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Uri.Builder
clearPath()
Relative path to desired resource (e.g.Uri.Builder
clearPort()
Server's port (e.g.Uri.Builder
clearProtocol()
Application layer protocol.Uri.Builder
clearQuery()
A list of key-value pairs (?key1=value1&key2=value2).Uri.Builder
clone()
Uri.Authorization
getAuth()
User's email and password (both optional).Uri.Authorization.Builder
getAuthBuilder()
User's email and password (both optional).Uri.AuthorizationOrBuilder
getAuthOrBuilder()
User's email and password (both optional).Uri
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getFragment()
Sub-resource (e.g.com.google.protobuf.ByteString
getFragmentBytes()
Sub-resource (e.g.String
getHost()
Domain name.com.google.protobuf.ByteString
getHostBytes()
Domain name.String
getPath()
Relative path to desired resource (e.g.com.google.protobuf.ByteString
getPathBytes()
Relative path to desired resource (e.g.String
getPort()
Server's port (e.g.com.google.protobuf.ByteString
getPortBytes()
Server's port (e.g.Uri.Protocol
getProtocol()
Application layer protocol.Uri.Protocol.Builder
getProtocolBuilder()
Application layer protocol.Uri.ProtocolOrBuilder
getProtocolOrBuilder()
Application layer protocol.Uri.QueryParameter
getQuery(int index)
A list of key-value pairs (?key1=value1&key2=value2).Uri.QueryParameter.Builder
getQueryBuilder(int index)
A list of key-value pairs (?key1=value1&key2=value2).List<Uri.QueryParameter.Builder>
getQueryBuilderList()
A list of key-value pairs (?key1=value1&key2=value2).int
getQueryCount()
A list of key-value pairs (?key1=value1&key2=value2).List<Uri.QueryParameter>
getQueryList()
A list of key-value pairs (?key1=value1&key2=value2).Uri.QueryParameterOrBuilder
getQueryOrBuilder(int index)
A list of key-value pairs (?key1=value1&key2=value2).List<? extends Uri.QueryParameterOrBuilder>
getQueryOrBuilderList()
A list of key-value pairs (?key1=value1&key2=value2).boolean
hasAuth()
User's email and password (both optional).boolean
hasProtocol()
Application layer protocol.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Uri.Builder
mergeAuth(Uri.Authorization value)
User's email and password (both optional).Uri.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Uri.Builder
mergeFrom(com.google.protobuf.Message other)
Uri.Builder
mergeFrom(Uri other)
Uri.Builder
mergeProtocol(Uri.Protocol value)
Application layer protocol.Uri.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Uri.Builder
removeQuery(int index)
A list of key-value pairs (?key1=value1&key2=value2).Uri.Builder
setAuth(Uri.Authorization value)
User's email and password (both optional).Uri.Builder
setAuth(Uri.Authorization.Builder builderForValue)
User's email and password (both optional).Uri.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Uri.Builder
setFragment(String value)
Sub-resource (e.g.Uri.Builder
setFragmentBytes(com.google.protobuf.ByteString value)
Sub-resource (e.g.Uri.Builder
setHost(String value)
Domain name.Uri.Builder
setHostBytes(com.google.protobuf.ByteString value)
Domain name.Uri.Builder
setPath(String value)
Relative path to desired resource (e.g.Uri.Builder
setPathBytes(com.google.protobuf.ByteString value)
Relative path to desired resource (e.g.Uri.Builder
setPort(String value)
Server's port (e.g.Uri.Builder
setPortBytes(com.google.protobuf.ByteString value)
Server's port (e.g.Uri.Builder
setProtocol(Uri.Protocol value)
Application layer protocol.Uri.Builder
setProtocol(Uri.Protocol.Builder builderForValue)
Application layer protocol.Uri.Builder
setQuery(int index, Uri.QueryParameter value)
A list of key-value pairs (?key1=value1&key2=value2).Uri.Builder
setQuery(int index, Uri.QueryParameter.Builder builderForValue)
A list of key-value pairs (?key1=value1&key2=value2).Uri.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Uri.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, 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
-
Methods inherited from interface com.google.protobuf.Message.Builder
getFieldBuilder, getRepeatedFieldBuilder, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newBuilderForField
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Uri.Builder>
-
clear
public Uri.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.GeneratedMessageV3.Builder<Uri.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.GeneratedMessageV3.Builder<Uri.Builder>
-
getDefaultInstanceForType
public Uri getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Uri build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
- Specified by:
build
in interfaceio.spine.validate.ValidatingBuilder<Uri>
-
buildPartial
public Uri buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
- Specified by:
buildPartial
in interfaceio.spine.validate.ValidatingBuilder<Uri>
-
clone
public Uri.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Uri.Builder>
-
setField
public Uri.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Uri.Builder>
-
clearField
public Uri.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Uri.Builder>
-
clearOneof
public Uri.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Uri.Builder>
-
setRepeatedField
public Uri.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Uri.Builder>
-
addRepeatedField
public Uri.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Uri.Builder>
-
mergeFrom
public Uri.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Uri.Builder>
-
mergeFrom
public Uri.Builder mergeFrom(Uri other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Uri.Builder>
-
mergeFrom
public Uri.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws 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<Uri.Builder>
- Throws:
IOException
-
hasProtocol
public boolean hasProtocol()
Application layer protocol.
.spine.net.Uri.Protocol protocol = 1;
- Specified by:
hasProtocol
in interfaceUriOrBuilder
- Returns:
- Whether the protocol field is set.
-
getProtocol
public Uri.Protocol getProtocol()
Application layer protocol.
.spine.net.Uri.Protocol protocol = 1;
- Specified by:
getProtocol
in interfaceUriOrBuilder
- Returns:
- The protocol.
-
setProtocol
public Uri.Builder setProtocol(Uri.Protocol value)
Application layer protocol.
.spine.net.Uri.Protocol protocol = 1;
-
setProtocol
public Uri.Builder setProtocol(Uri.Protocol.Builder builderForValue)
Application layer protocol.
.spine.net.Uri.Protocol protocol = 1;
-
mergeProtocol
public Uri.Builder mergeProtocol(Uri.Protocol value)
Application layer protocol.
.spine.net.Uri.Protocol protocol = 1;
-
clearProtocol
public Uri.Builder clearProtocol()
Application layer protocol.
.spine.net.Uri.Protocol protocol = 1;
-
getProtocolBuilder
public Uri.Protocol.Builder getProtocolBuilder()
Application layer protocol.
.spine.net.Uri.Protocol protocol = 1;
-
getProtocolOrBuilder
public Uri.ProtocolOrBuilder getProtocolOrBuilder()
Application layer protocol.
.spine.net.Uri.Protocol protocol = 1;
- Specified by:
getProtocolOrBuilder
in interfaceUriOrBuilder
-
hasAuth
public boolean hasAuth()
User's email and password (both optional).
.spine.net.Uri.Authorization auth = 2 [(.required) = false, (.validate) = true];
- Specified by:
hasAuth
in interfaceUriOrBuilder
- Returns:
- Whether the auth field is set.
-
getAuth
public Uri.Authorization getAuth()
User's email and password (both optional).
.spine.net.Uri.Authorization auth = 2 [(.required) = false, (.validate) = true];
- Specified by:
getAuth
in interfaceUriOrBuilder
- Returns:
- The auth.
-
setAuth
public Uri.Builder setAuth(Uri.Authorization value)
User's email and password (both optional).
.spine.net.Uri.Authorization auth = 2 [(.required) = false, (.validate) = true];
-
setAuth
public Uri.Builder setAuth(Uri.Authorization.Builder builderForValue)
User's email and password (both optional).
.spine.net.Uri.Authorization auth = 2 [(.required) = false, (.validate) = true];
-
mergeAuth
public Uri.Builder mergeAuth(Uri.Authorization value)
User's email and password (both optional).
.spine.net.Uri.Authorization auth = 2 [(.required) = false, (.validate) = true];
-
clearAuth
public Uri.Builder clearAuth()
User's email and password (both optional).
.spine.net.Uri.Authorization auth = 2 [(.required) = false, (.validate) = true];
-
getAuthBuilder
public Uri.Authorization.Builder getAuthBuilder()
User's email and password (both optional).
.spine.net.Uri.Authorization auth = 2 [(.required) = false, (.validate) = true];
-
getAuthOrBuilder
public Uri.AuthorizationOrBuilder getAuthOrBuilder()
User's email and password (both optional).
.spine.net.Uri.Authorization auth = 2 [(.required) = false, (.validate) = true];
- Specified by:
getAuthOrBuilder
in interfaceUriOrBuilder
-
getHost
public String getHost()
Domain name.
string host = 3;
- Specified by:
getHost
in interfaceUriOrBuilder
- Returns:
- The host.
-
getHostBytes
public com.google.protobuf.ByteString getHostBytes()
Domain name.
string host = 3;
- Specified by:
getHostBytes
in interfaceUriOrBuilder
- Returns:
- The bytes for host.
-
setHost
public Uri.Builder setHost(String value)
Domain name.
string host = 3;
- Parameters:
value
- The host to set.- Returns:
- This builder for chaining.
-
clearHost
public Uri.Builder clearHost()
Domain name.
string host = 3;
- Returns:
- This builder for chaining.
-
setHostBytes
public Uri.Builder setHostBytes(com.google.protobuf.ByteString value)
Domain name.
string host = 3;
- Parameters:
value
- The bytes for host to set.- Returns:
- This builder for chaining.
-
getPort
public String getPort()
Server's port (e.g. :8080). We leave port as string, because port 0 is hypothetically possible to use.
string port = 4;
- Specified by:
getPort
in interfaceUriOrBuilder
- Returns:
- The port.
-
getPortBytes
public com.google.protobuf.ByteString getPortBytes()
Server's port (e.g. :8080). We leave port as string, because port 0 is hypothetically possible to use.
string port = 4;
- Specified by:
getPortBytes
in interfaceUriOrBuilder
- Returns:
- The bytes for port.
-
setPort
public Uri.Builder setPort(String value)
Server's port (e.g. :8080). We leave port as string, because port 0 is hypothetically possible to use.
string port = 4;
- Parameters:
value
- The port to set.- Returns:
- This builder for chaining.
-
clearPort
public Uri.Builder clearPort()
Server's port (e.g. :8080). We leave port as string, because port 0 is hypothetically possible to use.
string port = 4;
- Returns:
- This builder for chaining.
-
setPortBytes
public Uri.Builder setPortBytes(com.google.protobuf.ByteString value)
Server's port (e.g. :8080). We leave port as string, because port 0 is hypothetically possible to use.
string port = 4;
- Parameters:
value
- The bytes for port to set.- Returns:
- This builder for chaining.
-
getPath
public String getPath()
Relative path to desired resource (e.g. "/index" or "/js/app.js").
string path = 5;
- Specified by:
getPath
in interfaceUriOrBuilder
- Returns:
- The path.
-
getPathBytes
public com.google.protobuf.ByteString getPathBytes()
Relative path to desired resource (e.g. "/index" or "/js/app.js").
string path = 5;
- Specified by:
getPathBytes
in interfaceUriOrBuilder
- Returns:
- The bytes for path.
-
setPath
public Uri.Builder setPath(String value)
Relative path to desired resource (e.g. "/index" or "/js/app.js").
string path = 5;
- Parameters:
value
- The path to set.- Returns:
- This builder for chaining.
-
clearPath
public Uri.Builder clearPath()
Relative path to desired resource (e.g. "/index" or "/js/app.js").
string path = 5;
- Returns:
- This builder for chaining.
-
setPathBytes
public Uri.Builder setPathBytes(com.google.protobuf.ByteString value)
Relative path to desired resource (e.g. "/index" or "/js/app.js").
string path = 5;
- Parameters:
value
- The bytes for path to set.- Returns:
- This builder for chaining.
-
getQueryList
public List<Uri.QueryParameter> getQueryList()
A list of key-value pairs (?key1=value1&key2=value2).
repeated .spine.net.Uri.QueryParameter query = 6;
- Specified by:
getQueryList
in interfaceUriOrBuilder
-
getQueryCount
public int getQueryCount()
A list of key-value pairs (?key1=value1&key2=value2).
repeated .spine.net.Uri.QueryParameter query = 6;
- Specified by:
getQueryCount
in interfaceUriOrBuilder
-
getQuery
public Uri.QueryParameter getQuery(int index)
A list of key-value pairs (?key1=value1&key2=value2).
repeated .spine.net.Uri.QueryParameter query = 6;
- Specified by:
getQuery
in interfaceUriOrBuilder
-
setQuery
public Uri.Builder setQuery(int index, Uri.QueryParameter value)
A list of key-value pairs (?key1=value1&key2=value2).
repeated .spine.net.Uri.QueryParameter query = 6;
-
setQuery
public Uri.Builder setQuery(int index, Uri.QueryParameter.Builder builderForValue)
A list of key-value pairs (?key1=value1&key2=value2).
repeated .spine.net.Uri.QueryParameter query = 6;
-
addQuery
public Uri.Builder addQuery(Uri.QueryParameter value)
A list of key-value pairs (?key1=value1&key2=value2).
repeated .spine.net.Uri.QueryParameter query = 6;
-
addQuery
public Uri.Builder addQuery(int index, Uri.QueryParameter value)
A list of key-value pairs (?key1=value1&key2=value2).
repeated .spine.net.Uri.QueryParameter query = 6;
-
addQuery
public Uri.Builder addQuery(Uri.QueryParameter.Builder builderForValue)
A list of key-value pairs (?key1=value1&key2=value2).
repeated .spine.net.Uri.QueryParameter query = 6;
-
addQuery
public Uri.Builder addQuery(int index, Uri.QueryParameter.Builder builderForValue)
A list of key-value pairs (?key1=value1&key2=value2).
repeated .spine.net.Uri.QueryParameter query = 6;
-
addAllQuery
public Uri.Builder addAllQuery(Iterable<? extends Uri.QueryParameter> values)
A list of key-value pairs (?key1=value1&key2=value2).
repeated .spine.net.Uri.QueryParameter query = 6;
-
clearQuery
public Uri.Builder clearQuery()
A list of key-value pairs (?key1=value1&key2=value2).
repeated .spine.net.Uri.QueryParameter query = 6;
-
removeQuery
public Uri.Builder removeQuery(int index)
A list of key-value pairs (?key1=value1&key2=value2).
repeated .spine.net.Uri.QueryParameter query = 6;
-
getQueryBuilder
public Uri.QueryParameter.Builder getQueryBuilder(int index)
A list of key-value pairs (?key1=value1&key2=value2).
repeated .spine.net.Uri.QueryParameter query = 6;
-
getQueryOrBuilder
public Uri.QueryParameterOrBuilder getQueryOrBuilder(int index)
A list of key-value pairs (?key1=value1&key2=value2).
repeated .spine.net.Uri.QueryParameter query = 6;
- Specified by:
getQueryOrBuilder
in interfaceUriOrBuilder
-
getQueryOrBuilderList
public List<? extends Uri.QueryParameterOrBuilder> getQueryOrBuilderList()
A list of key-value pairs (?key1=value1&key2=value2).
repeated .spine.net.Uri.QueryParameter query = 6;
- Specified by:
getQueryOrBuilderList
in interfaceUriOrBuilder
-
addQueryBuilder
public Uri.QueryParameter.Builder addQueryBuilder()
A list of key-value pairs (?key1=value1&key2=value2).
repeated .spine.net.Uri.QueryParameter query = 6;
-
addQueryBuilder
public Uri.QueryParameter.Builder addQueryBuilder(int index)
A list of key-value pairs (?key1=value1&key2=value2).
repeated .spine.net.Uri.QueryParameter query = 6;
-
getQueryBuilderList
public List<Uri.QueryParameter.Builder> getQueryBuilderList()
A list of key-value pairs (?key1=value1&key2=value2).
repeated .spine.net.Uri.QueryParameter query = 6;
-
getFragment
public String getFragment()
Sub-resource (e.g. "#article").
string fragment = 7;
- Specified by:
getFragment
in interfaceUriOrBuilder
- Returns:
- The fragment.
-
getFragmentBytes
public com.google.protobuf.ByteString getFragmentBytes()
Sub-resource (e.g. "#article").
string fragment = 7;
- Specified by:
getFragmentBytes
in interfaceUriOrBuilder
- Returns:
- The bytes for fragment.
-
setFragment
public Uri.Builder setFragment(String value)
Sub-resource (e.g. "#article").
string fragment = 7;
- Parameters:
value
- The fragment to set.- Returns:
- This builder for chaining.
-
clearFragment
public Uri.Builder clearFragment()
Sub-resource (e.g. "#article").
string fragment = 7;
- Returns:
- This builder for chaining.
-
setFragmentBytes
public Uri.Builder setFragmentBytes(com.google.protobuf.ByteString value)
Sub-resource (e.g. "#article").
string fragment = 7;
- Parameters:
value
- The bytes for fragment to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Uri.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Uri.Builder>
-
mergeUnknownFields
public final Uri.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Uri.Builder>
-
-