Class Url (2.28.0)

public final class Url extends GeneratedMessageV3 implements UrlOrBuilder

The proto definition of url. A url represents a URL and the general form represented is:

scheme://[path]

Protobuf type google.cloud.apigeeconnect.v1.Url

Implements

UrlOrBuilder

Static Fields

HOST_FIELD_NUMBER

public static final int HOST_FIELD_NUMBER
Field Value
TypeDescription
int

PATH_FIELD_NUMBER

public static final int PATH_FIELD_NUMBER
Field Value
TypeDescription
int

SCHEME_FIELD_NUMBER

public static final int SCHEME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Url getDefaultInstance()
Returns
TypeDescription
Url

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Url.Builder newBuilder()
Returns
TypeDescription
Url.Builder

newBuilder(Url prototype)

public static Url.Builder newBuilder(Url prototype)
Parameter
NameDescription
prototypeUrl
Returns
TypeDescription
Url.Builder

parseDelimitedFrom(InputStream input)

public static Url parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Url
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Url parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Url
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Url parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Url
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Url parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Url
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Url parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Url
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Url parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Url
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Url parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Url
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Url parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Url
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Url parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Url
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Url parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Url
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Url parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Url
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Url parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Url
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Url> parser()
Returns
TypeDescription
Parser<Url>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public Url getDefaultInstanceForType()
Returns
TypeDescription
Url

getHost()

public String getHost()

Host or Host:Port.

string host = 2;

Returns
TypeDescription
String

The host.

getHostBytes()

public ByteString getHostBytes()

Host or Host:Port.

string host = 2;

Returns
TypeDescription
ByteString

The bytes for host.

getParserForType()

public Parser<Url> getParserForType()
Returns
TypeDescription
Parser<Url>
Overrides

getPath()

public String getPath()

Path starts with /.

string path = 3;

Returns
TypeDescription
String

The path.

getPathBytes()

public ByteString getPathBytes()

Path starts with /.

string path = 3;

Returns
TypeDescription
ByteString

The bytes for path.

getScheme()

public Scheme getScheme()

Scheme.

.google.cloud.apigeeconnect.v1.Scheme scheme = 1;

Returns
TypeDescription
Scheme

The scheme.

getSchemeValue()

public int getSchemeValue()

Scheme.

.google.cloud.apigeeconnect.v1.Scheme scheme = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for scheme.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Url.Builder newBuilderForType()
Returns
TypeDescription
Url.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Url.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Url.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Url.Builder toBuilder()
Returns
TypeDescription
Url.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException