Interface HostAddressOrBuilder (1.92.0)
Stay organized with collections
Save and categorize content based on your preferences.
public interface HostAddressOrBuilder extends MessageOrBuilder
Methods
getHostname()
public abstract String getHostname()
Required. Hostname for the connection.
string hostname = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
String |
The hostname.
|
getHostnameBytes()
public abstract ByteString getHostnameBytes()
Required. Hostname for the connection.
string hostname = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
ByteString |
The bytes for hostname.
|
getPort()
public abstract int getPort()
Optional. Port for the connection.
int32 port = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
int |
The port.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-06-19 UTC.
[null,null,["Last updated 2026-06-19 UTC."],[],[]]