Class InstanceInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<InstanceInfo.Builder>
com.google.cloud.networkmanagement.v1beta1.InstanceInfo.Builder
- All Implemented Interfaces:
InstanceInfoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- InstanceInfo
public static final class InstanceInfo.Builder
extends com.google.protobuf.GeneratedMessage.Builder<InstanceInfo.Builder>
implements InstanceInfoOrBuilder
For display only. Metadata associated with a Compute Engine instance.Protobuf type
google.cloud.networkmanagement.v1beta1.InstanceInfo-
Method Summary
Modifier and TypeMethodDescriptionaddAllNetworkTags(Iterable<String> values) Network tags configured on the instance.addNetworkTags(String value) Network tags configured on the instance.addNetworkTagsBytes(com.google.protobuf.ByteString value) Network tags configured on the instance.build()clear()Name of a Compute Engine instance.External IP address of the network interface.Name of the network interface of a Compute Engine instance.Internal IP address of the network interface.Network tags configured on the instance.URI of a Compute Engine network.URI of the PSC network attachment the NIC is attached to (if relevant).Deprecated.google.cloud.networkmanagement.v1beta1.InstanceInfo.running is deprecated.Deprecated.google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is deprecated.The status of the instance.clearUri()URI of a Compute Engine instance.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorName of a Compute Engine instance.com.google.protobuf.ByteStringName of a Compute Engine instance.External IP address of the network interface.com.google.protobuf.ByteStringExternal IP address of the network interface.Name of the network interface of a Compute Engine instance.com.google.protobuf.ByteStringName of the network interface of a Compute Engine instance.Internal IP address of the network interface.com.google.protobuf.ByteStringInternal IP address of the network interface.getNetworkTags(int index) Network tags configured on the instance.com.google.protobuf.ByteStringgetNetworkTagsBytes(int index) Network tags configured on the instance.intNetwork tags configured on the instance.com.google.protobuf.ProtocolStringListNetwork tags configured on the instance.URI of a Compute Engine network.com.google.protobuf.ByteStringURI of a Compute Engine network.URI of the PSC network attachment the NIC is attached to (if relevant).com.google.protobuf.ByteStringURI of the PSC network attachment the NIC is attached to (if relevant).booleanDeprecated.google.cloud.networkmanagement.v1beta1.InstanceInfo.running is deprecated.Deprecated.google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is deprecated.com.google.protobuf.ByteStringDeprecated.google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is deprecated.The status of the instance.intThe status of the instance.getUri()URI of a Compute Engine instance.com.google.protobuf.ByteStringURI of a Compute Engine instance.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(InstanceInfo other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setDisplayName(String value) Name of a Compute Engine instance.setDisplayNameBytes(com.google.protobuf.ByteString value) Name of a Compute Engine instance.setExternalIp(String value) External IP address of the network interface.setExternalIpBytes(com.google.protobuf.ByteString value) External IP address of the network interface.setInterface(String value) Name of the network interface of a Compute Engine instance.setInterfaceBytes(com.google.protobuf.ByteString value) Name of the network interface of a Compute Engine instance.setInternalIp(String value) Internal IP address of the network interface.setInternalIpBytes(com.google.protobuf.ByteString value) Internal IP address of the network interface.setNetworkTags(int index, String value) Network tags configured on the instance.setNetworkUri(String value) URI of a Compute Engine network.setNetworkUriBytes(com.google.protobuf.ByteString value) URI of a Compute Engine network.setPscNetworkAttachmentUri(String value) URI of the PSC network attachment the NIC is attached to (if relevant).setPscNetworkAttachmentUriBytes(com.google.protobuf.ByteString value) URI of the PSC network attachment the NIC is attached to (if relevant).setRunning(boolean value) Deprecated.google.cloud.networkmanagement.v1beta1.InstanceInfo.running is deprecated.setServiceAccount(String value) Deprecated.google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is deprecated.setServiceAccountBytes(com.google.protobuf.ByteString value) Deprecated.google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is deprecated.setStatus(InstanceInfo.Status value) The status of the instance.setStatusValue(int value) The status of the instance.URI of a Compute Engine instance.setUriBytes(com.google.protobuf.ByteString value) URI of a Compute Engine instance.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<InstanceInfo.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<InstanceInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<InstanceInfo.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<InstanceInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<InstanceInfo.Builder>
-
mergeFrom
public InstanceInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<InstanceInfo.Builder>- Throws:
IOException
-
getDisplayName
Name of a Compute Engine instance.
string display_name = 1;- Specified by:
getDisplayNamein interfaceInstanceInfoOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()Name of a Compute Engine instance.
string display_name = 1;- Specified by:
getDisplayNameBytesin interfaceInstanceInfoOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
Name of a Compute Engine instance.
string display_name = 1;- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
Name of a Compute Engine instance.
string display_name = 1;- Returns:
- This builder for chaining.
-
setDisplayNameBytes
Name of a Compute Engine instance.
string display_name = 1;- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
getUri
URI of a Compute Engine instance.
string uri = 2;- Specified by:
getUriin interfaceInstanceInfoOrBuilder- Returns:
- The uri.
-
getUriBytes
public com.google.protobuf.ByteString getUriBytes()URI of a Compute Engine instance.
string uri = 2;- Specified by:
getUriBytesin interfaceInstanceInfoOrBuilder- Returns:
- The bytes for uri.
-
setUri
URI of a Compute Engine instance.
string uri = 2;- Parameters:
value- The uri to set.- Returns:
- This builder for chaining.
-
clearUri
URI of a Compute Engine instance.
string uri = 2;- Returns:
- This builder for chaining.
-
setUriBytes
URI of a Compute Engine instance.
string uri = 2;- Parameters:
value- The bytes for uri to set.- Returns:
- This builder for chaining.
-
getInterface
Name of the network interface of a Compute Engine instance.
string interface = 3;- Specified by:
getInterfacein interfaceInstanceInfoOrBuilder- Returns:
- The interface.
-
getInterfaceBytes
public com.google.protobuf.ByteString getInterfaceBytes()Name of the network interface of a Compute Engine instance.
string interface = 3;- Specified by:
getInterfaceBytesin interfaceInstanceInfoOrBuilder- Returns:
- The bytes for interface.
-
setInterface
Name of the network interface of a Compute Engine instance.
string interface = 3;- Parameters:
value- The interface to set.- Returns:
- This builder for chaining.
-
clearInterface
Name of the network interface of a Compute Engine instance.
string interface = 3;- Returns:
- This builder for chaining.
-
setInterfaceBytes
Name of the network interface of a Compute Engine instance.
string interface = 3;- Parameters:
value- The bytes for interface to set.- Returns:
- This builder for chaining.
-
getNetworkUri
URI of a Compute Engine network.
string network_uri = 4;- Specified by:
getNetworkUriin interfaceInstanceInfoOrBuilder- Returns:
- The networkUri.
-
getNetworkUriBytes
public com.google.protobuf.ByteString getNetworkUriBytes()URI of a Compute Engine network.
string network_uri = 4;- Specified by:
getNetworkUriBytesin interfaceInstanceInfoOrBuilder- Returns:
- The bytes for networkUri.
-
setNetworkUri
URI of a Compute Engine network.
string network_uri = 4;- Parameters:
value- The networkUri to set.- Returns:
- This builder for chaining.
-
clearNetworkUri
URI of a Compute Engine network.
string network_uri = 4;- Returns:
- This builder for chaining.
-
setNetworkUriBytes
URI of a Compute Engine network.
string network_uri = 4;- Parameters:
value- The bytes for networkUri to set.- Returns:
- This builder for chaining.
-
getInternalIp
Internal IP address of the network interface.
string internal_ip = 5;- Specified by:
getInternalIpin interfaceInstanceInfoOrBuilder- Returns:
- The internalIp.
-
getInternalIpBytes
public com.google.protobuf.ByteString getInternalIpBytes()Internal IP address of the network interface.
string internal_ip = 5;- Specified by:
getInternalIpBytesin interfaceInstanceInfoOrBuilder- Returns:
- The bytes for internalIp.
-
setInternalIp
Internal IP address of the network interface.
string internal_ip = 5;- Parameters:
value- The internalIp to set.- Returns:
- This builder for chaining.
-
clearInternalIp
Internal IP address of the network interface.
string internal_ip = 5;- Returns:
- This builder for chaining.
-
setInternalIpBytes
Internal IP address of the network interface.
string internal_ip = 5;- Parameters:
value- The bytes for internalIp to set.- Returns:
- This builder for chaining.
-
getExternalIp
External IP address of the network interface.
string external_ip = 6;- Specified by:
getExternalIpin interfaceInstanceInfoOrBuilder- Returns:
- The externalIp.
-
getExternalIpBytes
public com.google.protobuf.ByteString getExternalIpBytes()External IP address of the network interface.
string external_ip = 6;- Specified by:
getExternalIpBytesin interfaceInstanceInfoOrBuilder- Returns:
- The bytes for externalIp.
-
setExternalIp
External IP address of the network interface.
string external_ip = 6;- Parameters:
value- The externalIp to set.- Returns:
- This builder for chaining.
-
clearExternalIp
External IP address of the network interface.
string external_ip = 6;- Returns:
- This builder for chaining.
-
setExternalIpBytes
External IP address of the network interface.
string external_ip = 6;- Parameters:
value- The bytes for externalIp to set.- Returns:
- This builder for chaining.
-
getNetworkTagsList
public com.google.protobuf.ProtocolStringList getNetworkTagsList()Network tags configured on the instance.
repeated string network_tags = 7;- Specified by:
getNetworkTagsListin interfaceInstanceInfoOrBuilder- Returns:
- A list containing the networkTags.
-
getNetworkTagsCount
public int getNetworkTagsCount()Network tags configured on the instance.
repeated string network_tags = 7;- Specified by:
getNetworkTagsCountin interfaceInstanceInfoOrBuilder- Returns:
- The count of networkTags.
-
getNetworkTags
Network tags configured on the instance.
repeated string network_tags = 7;- Specified by:
getNetworkTagsin interfaceInstanceInfoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The networkTags at the given index.
-
getNetworkTagsBytes
public com.google.protobuf.ByteString getNetworkTagsBytes(int index) Network tags configured on the instance.
repeated string network_tags = 7;- Specified by:
getNetworkTagsBytesin interfaceInstanceInfoOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the networkTags at the given index.
-
setNetworkTags
Network tags configured on the instance.
repeated string network_tags = 7;- Parameters:
index- The index to set the value at.value- The networkTags to set.- Returns:
- This builder for chaining.
-
addNetworkTags
Network tags configured on the instance.
repeated string network_tags = 7;- Parameters:
value- The networkTags to add.- Returns:
- This builder for chaining.
-
addAllNetworkTags
Network tags configured on the instance.
repeated string network_tags = 7;- Parameters:
values- The networkTags to add.- Returns:
- This builder for chaining.
-
clearNetworkTags
Network tags configured on the instance.
repeated string network_tags = 7;- Returns:
- This builder for chaining.
-
addNetworkTagsBytes
Network tags configured on the instance.
repeated string network_tags = 7;- Parameters:
value- The bytes of the networkTags to add.- Returns:
- This builder for chaining.
-
getServiceAccount
Deprecated.google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=413Service account authorized for the instance.
string service_account = 8 [deprecated = true];- Specified by:
getServiceAccountin interfaceInstanceInfoOrBuilder- Returns:
- The serviceAccount.
-
getServiceAccountBytes
Deprecated.google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=413Service account authorized for the instance.
string service_account = 8 [deprecated = true];- Specified by:
getServiceAccountBytesin interfaceInstanceInfoOrBuilder- Returns:
- The bytes for serviceAccount.
-
setServiceAccount
Deprecated.google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=413Service account authorized for the instance.
string service_account = 8 [deprecated = true];- Parameters:
value- The serviceAccount to set.- Returns:
- This builder for chaining.
-
clearServiceAccount
Deprecated.google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=413Service account authorized for the instance.
string service_account = 8 [deprecated = true];- Returns:
- This builder for chaining.
-
setServiceAccountBytes
@Deprecated public InstanceInfo.Builder setServiceAccountBytes(com.google.protobuf.ByteString value) Deprecated.google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=413Service account authorized for the instance.
string service_account = 8 [deprecated = true];- Parameters:
value- The bytes for serviceAccount to set.- Returns:
- This builder for chaining.
-
getPscNetworkAttachmentUri
URI of the PSC network attachment the NIC is attached to (if relevant).
string psc_network_attachment_uri = 9;- Specified by:
getPscNetworkAttachmentUriin interfaceInstanceInfoOrBuilder- Returns:
- The pscNetworkAttachmentUri.
-
getPscNetworkAttachmentUriBytes
public com.google.protobuf.ByteString getPscNetworkAttachmentUriBytes()URI of the PSC network attachment the NIC is attached to (if relevant).
string psc_network_attachment_uri = 9;- Specified by:
getPscNetworkAttachmentUriBytesin interfaceInstanceInfoOrBuilder- Returns:
- The bytes for pscNetworkAttachmentUri.
-
setPscNetworkAttachmentUri
URI of the PSC network attachment the NIC is attached to (if relevant).
string psc_network_attachment_uri = 9;- Parameters:
value- The pscNetworkAttachmentUri to set.- Returns:
- This builder for chaining.
-
clearPscNetworkAttachmentUri
URI of the PSC network attachment the NIC is attached to (if relevant).
string psc_network_attachment_uri = 9;- Returns:
- This builder for chaining.
-
setPscNetworkAttachmentUriBytes
URI of the PSC network attachment the NIC is attached to (if relevant).
string psc_network_attachment_uri = 9;- Parameters:
value- The bytes for pscNetworkAttachmentUri to set.- Returns:
- This builder for chaining.
-
getRunning
Deprecated.google.cloud.networkmanagement.v1beta1.InstanceInfo.running is deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=420Indicates whether the Compute Engine instance is running. Deprecated: use the `status` field instead.
bool running = 10 [deprecated = true];- Specified by:
getRunningin interfaceInstanceInfoOrBuilder- Returns:
- The running.
-
setRunning
Deprecated.google.cloud.networkmanagement.v1beta1.InstanceInfo.running is deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=420Indicates whether the Compute Engine instance is running. Deprecated: use the `status` field instead.
bool running = 10 [deprecated = true];- Parameters:
value- The running to set.- Returns:
- This builder for chaining.
-
clearRunning
Deprecated.google.cloud.networkmanagement.v1beta1.InstanceInfo.running is deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=420Indicates whether the Compute Engine instance is running. Deprecated: use the `status` field instead.
bool running = 10 [deprecated = true];- Returns:
- This builder for chaining.
-
getStatusValue
public int getStatusValue()The status of the instance.
.google.cloud.networkmanagement.v1beta1.InstanceInfo.Status status = 11;- Specified by:
getStatusValuein interfaceInstanceInfoOrBuilder- Returns:
- The enum numeric value on the wire for status.
-
setStatusValue
The status of the instance.
.google.cloud.networkmanagement.v1beta1.InstanceInfo.Status status = 11;- Parameters:
value- The enum numeric value on the wire for status to set.- Returns:
- This builder for chaining.
-
getStatus
The status of the instance.
.google.cloud.networkmanagement.v1beta1.InstanceInfo.Status status = 11;- Specified by:
getStatusin interfaceInstanceInfoOrBuilder- Returns:
- The status.
-
setStatus
The status of the instance.
.google.cloud.networkmanagement.v1beta1.InstanceInfo.Status status = 11;- Parameters:
value- The status to set.- Returns:
- This builder for chaining.
-
clearStatus
The status of the instance.
.google.cloud.networkmanagement.v1beta1.InstanceInfo.Status status = 11;- Returns:
- This builder for chaining.
-