Class InstanceInfo.Builder (1.56.0)

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.v1.InstanceInfo

Static 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
Overrides

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
Overrides

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
Overrides

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
Overrides

clearPscNetworkAttachmentUri()

public InstanceInfo.Builder clearPscNetworkAttachmentUri()

URI of the PSC network attachment the NIC is attached to (if relevant).

string psc_network_attachment_uri = 9;

Returns
Type Description
InstanceInfo.Builder

This builder for chaining.

clearServiceAccount() (deprecated)

public InstanceInfo.Builder clearServiceAccount()

Deprecated. google.cloud.networkmanagement.v1.InstanceInfo.service_account is deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=322

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
Overrides

getDefaultInstanceForType()

public InstanceInfo getDefaultInstanceForType()
Returns
Type Description
InstanceInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

getPscNetworkAttachmentUri()

public String getPscNetworkAttachmentUri()

URI of the PSC network attachment the NIC is attached to (if relevant).

string psc_network_attachment_uri = 9;

Returns
Type Description
String

The pscNetworkAttachmentUri.

getPscNetworkAttachmentUriBytes()

public ByteString getPscNetworkAttachmentUriBytes()

URI of the PSC network attachment the NIC is attached to (if relevant).

string psc_network_attachment_uri = 9;

Returns
Type Description
ByteString

The bytes for pscNetworkAttachmentUri.

getServiceAccount() (deprecated)

public String getServiceAccount()

Deprecated. google.cloud.networkmanagement.v1.InstanceInfo.service_account is deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=322

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.v1.InstanceInfo.service_account is deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=322

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
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(InstanceInfo other)

public InstanceInfo.Builder mergeFrom(InstanceInfo other)
Parameter
Name Description
other InstanceInfo
Returns
Type Description
InstanceInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InstanceInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InstanceInfo.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public InstanceInfo.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
InstanceInfo.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InstanceInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
InstanceInfo.Builder
Overrides

setDisplayName(String value)

public InstanceInfo.Builder setDisplayName(String value)

Name of a Compute Engine instance.

string display_name = 1;

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
InstanceInfo.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public InstanceInfo.Builder setDisplayNameBytes(ByteString value)

Name of a Compute Engine instance.

string display_name = 1;

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
InstanceInfo.Builder

This builder for chaining.

setExternalIp(String value)

public InstanceInfo.Builder setExternalIp(String value)

External IP address of the network interface.

string external_ip = 6;

Parameter
Name Description
value String

The externalIp to set.

Returns
Type Description
InstanceInfo.Builder

This builder for chaining.

setExternalIpBytes(ByteString value)

public InstanceInfo.Builder setExternalIpBytes(ByteString value)

External IP address of the network interface.

string external_ip = 6;

Parameter
Name Description
value ByteString

The bytes for externalIp to set.

Returns
Type Description
InstanceInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public InstanceInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
InstanceInfo.Builder
Overrides

setInterface(String value)

public InstanceInfo.Builder setInterface(String value)

Name of the network interface of a Compute Engine instance.

string interface = 3;

Parameter
Name Description
value String

The interface to set.

Returns
Type Description
InstanceInfo.Builder

This builder for chaining.

setInterfaceBytes(ByteString value)

public InstanceInfo.Builder setInterfaceBytes(ByteString value)

Name of the network interface of a Compute Engine instance.

string interface = 3;

Parameter
Name Description
value ByteString

The bytes for interface to set.

Returns
Type Description
InstanceInfo.Builder

This builder for chaining.

setInternalIp(String value)

public InstanceInfo.Builder setInternalIp(String value)

Internal IP address of the network interface.

string internal_ip = 5;

Parameter
Name Description
value String

The internalIp to set.

Returns
Type Description
InstanceInfo.Builder

This builder for chaining.

setInternalIpBytes(ByteString value)

public InstanceInfo.Builder setInternalIpBytes(ByteString value)

Internal IP address of the network interface.

string internal_ip = 5;

Parameter
Name Description
value ByteString

The bytes for internalIp to set.

Returns
Type Description
InstanceInfo.Builder

This builder for chaining.

setNetworkTags(int index, String value)

public InstanceInfo.Builder setNetworkTags(int index, String value)

Network tags configured on the instance.

repeated string network_tags = 7;

Parameters
Name Description
index int

The index to set the value at.

value String

The networkTags to set.

Returns
Type Description
InstanceInfo.Builder

This builder for chaining.

setNetworkUri(String value)

public InstanceInfo.Builder setNetworkUri(String value)

URI of a Compute Engine network.

string network_uri = 4;

Parameter
Name Description
value String

The networkUri to set.

Returns
Type Description
InstanceInfo.Builder

This builder for chaining.

setNetworkUriBytes(ByteString value)

public InstanceInfo.Builder setNetworkUriBytes(ByteString value)

URI of a Compute Engine network.

string network_uri = 4;

Parameter
Name Description
value ByteString

The bytes for networkUri to set.

Returns
Type Description
InstanceInfo.Builder

This builder for chaining.

setPscNetworkAttachmentUri(String value)

public InstanceInfo.Builder setPscNetworkAttachmentUri(String value)

URI of the PSC network attachment the NIC is attached to (if relevant).

string psc_network_attachment_uri = 9;

Parameter
Name Description
value String

The pscNetworkAttachmentUri to set.

Returns
Type Description
InstanceInfo.Builder

This builder for chaining.

setPscNetworkAttachmentUriBytes(ByteString value)

public InstanceInfo.Builder setPscNetworkAttachmentUriBytes(ByteString value)

URI of the PSC network attachment the NIC is attached to (if relevant).

string psc_network_attachment_uri = 9;

Parameter
Name Description
value ByteString

The bytes for pscNetworkAttachmentUri to set.

Returns
Type Description
InstanceInfo.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public InstanceInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
InstanceInfo.Builder
Overrides

setServiceAccount(String value) (deprecated)

public InstanceInfo.Builder setServiceAccount(String value)

Deprecated. google.cloud.networkmanagement.v1.InstanceInfo.service_account is deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=322

Service account authorized for the instance.

string service_account = 8 [deprecated = true];

Parameter
Name Description
value String

The serviceAccount to set.

Returns
Type Description
InstanceInfo.Builder

This builder for chaining.

setServiceAccountBytes(ByteString value) (deprecated)

public InstanceInfo.Builder setServiceAccountBytes(ByteString value)

Deprecated. google.cloud.networkmanagement.v1.InstanceInfo.service_account is deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=322

Service account authorized for the instance.

string service_account = 8 [deprecated = true];

Parameter
Name Description
value ByteString

The bytes for serviceAccount to set.

Returns
Type Description
InstanceInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final InstanceInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
InstanceInfo.Builder
Overrides

setUri(String value)

public InstanceInfo.Builder setUri(String value)

URI of a Compute Engine instance.

string uri = 2;

Parameter
Name Description
value String

The uri to set.

Returns
Type Description
InstanceInfo.Builder

This builder for chaining.

setUriBytes(ByteString value)

public InstanceInfo.Builder setUriBytes(ByteString value)

URI of a Compute Engine instance.

string uri = 2;

Parameter
Name Description
value ByteString

The bytes for uri to set.

Returns
Type Description
InstanceInfo.Builder

This builder for chaining.