Class InstanceInfo.Builder (1.28.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.v1beta1.InstanceInfo

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The networkTags to add.

Returns
TypeDescription
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
NameDescription
valueString

The networkTags to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the networkTags to add.

Returns
TypeDescription
InstanceInfo.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public InstanceInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
InstanceInfo.Builder
Overrides

build()

public InstanceInfo build()
Returns
TypeDescription
InstanceInfo

buildPartial()

public InstanceInfo buildPartial()
Returns
TypeDescription
InstanceInfo

clear()

public InstanceInfo.Builder clear()
Returns
TypeDescription
InstanceInfo.Builder
Overrides

clearDisplayName()

public InstanceInfo.Builder clearDisplayName()

Name of a Compute Engine instance.

string display_name = 1;

Returns
TypeDescription
InstanceInfo.Builder

This builder for chaining.

clearExternalIp()

public InstanceInfo.Builder clearExternalIp()

External IP address of the network interface.

string external_ip = 6;

Returns
TypeDescription
InstanceInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public InstanceInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
InstanceInfo.Builder
Overrides

clearInterface()

public InstanceInfo.Builder clearInterface()

Name of the network interface of a Compute Engine instance.

string interface = 3;

Returns
TypeDescription
InstanceInfo.Builder

This builder for chaining.

clearInternalIp()

public InstanceInfo.Builder clearInternalIp()

Internal IP address of the network interface.

string internal_ip = 5;

Returns
TypeDescription
InstanceInfo.Builder

This builder for chaining.

clearNetworkTags()

public InstanceInfo.Builder clearNetworkTags()

Network tags configured on the instance.

repeated string network_tags = 7;

Returns
TypeDescription
InstanceInfo.Builder

This builder for chaining.

clearNetworkUri()

public InstanceInfo.Builder clearNetworkUri()

URI of a Compute Engine network.

string network_uri = 4;

Returns
TypeDescription
InstanceInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public InstanceInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
InstanceInfo.Builder
Overrides

clearServiceAccount() (deprecated)

public InstanceInfo.Builder clearServiceAccount()

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

Service account authorized for the instance.

string service_account = 8 [deprecated = true];

Returns
TypeDescription
InstanceInfo.Builder

This builder for chaining.

clearUri()

public InstanceInfo.Builder clearUri()

URI of a Compute Engine instance.

string uri = 2;

Returns
TypeDescription
InstanceInfo.Builder

This builder for chaining.

clone()

public InstanceInfo.Builder clone()
Returns
TypeDescription
InstanceInfo.Builder
Overrides

getDefaultInstanceForType()

public InstanceInfo getDefaultInstanceForType()
Returns
TypeDescription
InstanceInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Name of a Compute Engine instance.

string display_name = 1;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Name of a Compute Engine instance.

string display_name = 1;

Returns
TypeDescription
ByteString

The bytes for displayName.

getExternalIp()

public String getExternalIp()

External IP address of the network interface.

string external_ip = 6;

Returns
TypeDescription
String

The externalIp.

getExternalIpBytes()

public ByteString getExternalIpBytes()

External IP address of the network interface.

string external_ip = 6;

Returns
TypeDescription
ByteString

The bytes for externalIp.

getInterface()

public String getInterface()

Name of the network interface of a Compute Engine instance.

string interface = 3;

Returns
TypeDescription
String

The interface.

getInterfaceBytes()

public ByteString getInterfaceBytes()

Name of the network interface of a Compute Engine instance.

string interface = 3;

Returns
TypeDescription
ByteString

The bytes for interface.

getInternalIp()

public String getInternalIp()

Internal IP address of the network interface.

string internal_ip = 5;

Returns
TypeDescription
String

The internalIp.

getInternalIpBytes()

public ByteString getInternalIpBytes()

Internal IP address of the network interface.

string internal_ip = 5;

Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
int

The count of networkTags.

getNetworkTagsList()

public ProtocolStringList getNetworkTagsList()

Network tags configured on the instance.

repeated string network_tags = 7;

Returns
TypeDescription
ProtocolStringList

A list containing the networkTags.

getNetworkUri()

public String getNetworkUri()

URI of a Compute Engine network.

string network_uri = 4;

Returns
TypeDescription
String

The networkUri.

getNetworkUriBytes()

public ByteString getNetworkUriBytes()

URI of a Compute Engine network.

string network_uri = 4;

Returns
TypeDescription
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=268

Service account authorized for the instance.

string service_account = 8 [deprecated = true];

Returns
TypeDescription
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=268

Service account authorized for the instance.

string service_account = 8 [deprecated = true];

Returns
TypeDescription
ByteString

The bytes for serviceAccount.

getUri()

public String getUri()

URI of a Compute Engine instance.

string uri = 2;

Returns
TypeDescription
String

The uri.

getUriBytes()

public ByteString getUriBytes()

URI of a Compute Engine instance.

string uri = 2;

Returns
TypeDescription
ByteString

The bytes for uri.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(InstanceInfo other)

public InstanceInfo.Builder mergeFrom(InstanceInfo other)
Parameter
NameDescription
otherInstanceInfo
Returns
TypeDescription
InstanceInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InstanceInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InstanceInfo.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public InstanceInfo.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
InstanceInfo.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InstanceInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
InstanceInfo.Builder
Overrides

setDisplayName(String value)

public InstanceInfo.Builder setDisplayName(String value)

Name of a Compute Engine instance.

string display_name = 1;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
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
NameDescription
valueString

The externalIp to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for externalIp to set.

Returns
TypeDescription
InstanceInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public InstanceInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The interface to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for interface to set.

Returns
TypeDescription
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
NameDescription
valueString

The internalIp to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for internalIp to set.

Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The networkTags to set.

Returns
TypeDescription
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
NameDescription
valueString

The networkUri to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for networkUri to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
InstanceInfo.Builder
Overrides

setServiceAccount(String value) (deprecated)

public InstanceInfo.Builder setServiceAccount(String value)

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

Service account authorized for the instance.

string service_account = 8 [deprecated = true];

Parameter
NameDescription
valueString

The serviceAccount to set.

Returns
TypeDescription
InstanceInfo.Builder

This builder for chaining.

setServiceAccountBytes(ByteString value) (deprecated)

public InstanceInfo.Builder setServiceAccountBytes(ByteString value)

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

Service account authorized for the instance.

string service_account = 8 [deprecated = true];

Parameter
NameDescription
valueByteString

The bytes for serviceAccount to set.

Returns
TypeDescription
InstanceInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final InstanceInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
InstanceInfo.Builder
Overrides

setUri(String value)

public InstanceInfo.Builder setUri(String value)

URI of a Compute Engine instance.

string uri = 2;

Parameter
NameDescription
valueString

The uri to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for uri to set.

Returns
TypeDescription
InstanceInfo.Builder

This builder for chaining.