public static final class InstanceInfo.Builder extends GeneratedMessageV3.Builder<InstanceInfo.Builder> implements InstanceInfoOrBuilder
For display only. Metadata associated with a Compute Engine instance.
Protobuf type google.cloud.networkmanagement.v1beta1.InstanceInfo
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > InstanceInfo.BuilderImplements
InstanceInfoOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllNetworkTags(Iterable<String> values)
public InstanceInfo.Builder addAllNetworkTags(Iterable<String> values)
Network tags configured on the instance.
repeated string network_tags = 7;
Parameter | |
---|---|
Name | Description |
values | Iterable<String> The networkTags to add. |
Returns | |
---|---|
Type | Description |
InstanceInfo.Builder | This builder for chaining. |
addNetworkTags(String value)
public InstanceInfo.Builder addNetworkTags(String value)
Network tags configured on the instance.
repeated string network_tags = 7;
Parameter | |
---|---|
Name | Description |
value | String The networkTags to add. |
Returns | |
---|---|
Type | Description |
InstanceInfo.Builder | This builder for chaining. |
addNetworkTagsBytes(ByteString value)
public InstanceInfo.Builder addNetworkTagsBytes(ByteString value)
Network tags configured on the instance.
repeated string network_tags = 7;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes of the networkTags to add. |
Returns | |
---|---|
Type | Description |
InstanceInfo.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public InstanceInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
InstanceInfo.Builder |
build()
public InstanceInfo build()
Returns | |
---|---|
Type | Description |
InstanceInfo |
buildPartial()
public InstanceInfo buildPartial()
Returns | |
---|---|
Type | Description |
InstanceInfo |
clear()
public InstanceInfo.Builder clear()
Returns | |
---|---|
Type | Description |
InstanceInfo.Builder |
clearDisplayName()
public InstanceInfo.Builder clearDisplayName()
Name of a Compute Engine instance.
string display_name = 1;
Returns | |
---|---|
Type | Description |
InstanceInfo.Builder | This builder for chaining. |
clearExternalIp()
public InstanceInfo.Builder clearExternalIp()
External IP address of the network interface.
string external_ip = 6;
Returns | |
---|---|
Type | Description |
InstanceInfo.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public InstanceInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
InstanceInfo.Builder |
clearInterface()
public InstanceInfo.Builder clearInterface()
Name of the network interface of a Compute Engine instance.
string interface = 3;
Returns | |
---|---|
Type | Description |
InstanceInfo.Builder | This builder for chaining. |
clearInternalIp()
public InstanceInfo.Builder clearInternalIp()
Internal IP address of the network interface.
string internal_ip = 5;
Returns | |
---|---|
Type | Description |
InstanceInfo.Builder | This builder for chaining. |
clearNetworkTags()
public InstanceInfo.Builder clearNetworkTags()
Network tags configured on the instance.
repeated string network_tags = 7;
Returns | |
---|---|
Type | Description |
InstanceInfo.Builder | This builder for chaining. |
clearNetworkUri()
public InstanceInfo.Builder clearNetworkUri()
URI of a Compute Engine network.
string network_uri = 4;
Returns | |
---|---|
Type | Description |
InstanceInfo.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public InstanceInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
InstanceInfo.Builder |
clearServiceAccount() (deprecated)
public InstanceInfo.Builder clearServiceAccount()
Deprecated. google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=245
Service account authorized for the instance.
string service_account = 8 [deprecated = true];
Returns | |
---|---|
Type | Description |
InstanceInfo.Builder | This builder for chaining. |
clearUri()
public InstanceInfo.Builder clearUri()
URI of a Compute Engine instance.
string uri = 2;
Returns | |
---|---|
Type | Description |
InstanceInfo.Builder | This builder for chaining. |
clone()
public InstanceInfo.Builder clone()
Returns | |
---|---|
Type | Description |
InstanceInfo.Builder |
getDefaultInstanceForType()
public InstanceInfo getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
InstanceInfo |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getDisplayName()
public String getDisplayName()
Name of a Compute Engine instance.
string display_name = 1;
Returns | |
---|---|
Type | Description |
String | The displayName. |
getDisplayNameBytes()
public ByteString getDisplayNameBytes()
Name of a Compute Engine instance.
string display_name = 1;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for displayName. |
getExternalIp()
public String getExternalIp()
External IP address of the network interface.
string external_ip = 6;
Returns | |
---|---|
Type | Description |
String | The externalIp. |
getExternalIpBytes()
public ByteString getExternalIpBytes()
External IP address of the network interface.
string external_ip = 6;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for externalIp. |
getInterface()
public String getInterface()
Name of the network interface of a Compute Engine instance.
string interface = 3;
Returns | |
---|---|
Type | Description |
String | The interface. |
getInterfaceBytes()
public ByteString getInterfaceBytes()
Name of the network interface of a Compute Engine instance.
string interface = 3;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for interface. |
getInternalIp()
public String getInternalIp()
Internal IP address of the network interface.
string internal_ip = 5;
Returns | |
---|---|
Type | Description |
String | The internalIp. |
getInternalIpBytes()
public ByteString getInternalIpBytes()
Internal IP address of the network interface.
string internal_ip = 5;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for internalIp. |
getNetworkTags(int index)
public String getNetworkTags(int index)
Network tags configured on the instance.
repeated string network_tags = 7;
Parameter | |
---|---|
Name | Description |
index | int The index of the element to return. |
Returns | |
---|---|
Type | Description |
String | The networkTags at the given index. |
getNetworkTagsBytes(int index)
public ByteString getNetworkTagsBytes(int index)
Network tags configured on the instance.
repeated string network_tags = 7;
Parameter | |
---|---|
Name | Description |
index | int The index of the value to return. |
Returns | |
---|---|
Type | Description |
ByteString | The bytes of the networkTags at the given index. |
getNetworkTagsCount()
public int getNetworkTagsCount()
Network tags configured on the instance.
repeated string network_tags = 7;
Returns | |
---|---|
Type | Description |
int | The count of networkTags. |
getNetworkTagsList()
public ProtocolStringList getNetworkTagsList()
Network tags configured on the instance.
repeated string network_tags = 7;
Returns | |
---|---|
Type | Description |
ProtocolStringList | A list containing the networkTags. |
getNetworkUri()
public String getNetworkUri()
URI of a Compute Engine network.
string network_uri = 4;
Returns | |
---|---|
Type | Description |
String | The networkUri. |
getNetworkUriBytes()
public ByteString getNetworkUriBytes()
URI of a Compute Engine network.
string network_uri = 4;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for networkUri. |
getServiceAccount() (deprecated)
public String getServiceAccount()
Deprecated. google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=245
Service account authorized for the instance.
string service_account = 8 [deprecated = true];
Returns | |
---|---|
Type | Description |
String | The serviceAccount. |
getServiceAccountBytes() (deprecated)
public ByteString getServiceAccountBytes()
Deprecated. google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=245
Service account authorized for the instance.
string service_account = 8 [deprecated = true];
Returns | |
---|---|
Type | Description |
ByteString | The bytes for serviceAccount. |
getUri()
public String getUri()
URI of a Compute Engine instance.
string uri = 2;
Returns | |
---|---|
Type | Description |
String | The uri. |
getUriBytes()
public ByteString getUriBytes()
URI of a Compute Engine instance.
string uri = 2;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for uri. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(InstanceInfo other)
public InstanceInfo.Builder mergeFrom(InstanceInfo other)
Parameter | |
---|---|
Name | Description |
other | InstanceInfo |
Returns | |
---|---|
Type | Description |
|