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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<InstanceInfo.Builder>
    • clear

      public InstanceInfo.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<InstanceInfo.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<InstanceInfo.Builder>
    • getDefaultInstanceForType

      public InstanceInfo getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public InstanceInfo build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public InstanceInfo buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public InstanceInfo.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<InstanceInfo.Builder>
    • mergeFrom

      public InstanceInfo.Builder mergeFrom(InstanceInfo other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<InstanceInfo.Builder>
      Throws:
      IOException
    • getDisplayName

      public String getDisplayName()
       Name of a Compute Engine instance.
       
      string display_name = 1;
      Specified by:
      getDisplayName in interface InstanceInfoOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Name of a Compute Engine instance.
       
      string display_name = 1;
      Specified by:
      getDisplayNameBytes in interface InstanceInfoOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public InstanceInfo.Builder setDisplayName(String value)
       Name of a Compute Engine instance.
       
      string display_name = 1;
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public InstanceInfo.Builder clearDisplayName()
       Name of a Compute Engine instance.
       
      string display_name = 1;
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public InstanceInfo.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Name of a Compute Engine instance.
       
      string display_name = 1;
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • getUri

      public String getUri()
       URI of a Compute Engine instance.
       
      string uri = 2;
      Specified by:
      getUri in interface InstanceInfoOrBuilder
      Returns:
      The uri.
    • getUriBytes

      public com.google.protobuf.ByteString getUriBytes()
       URI of a Compute Engine instance.
       
      string uri = 2;
      Specified by:
      getUriBytes in interface InstanceInfoOrBuilder
      Returns:
      The bytes for uri.
    • setUri

      public InstanceInfo.Builder setUri(String value)
       URI of a Compute Engine instance.
       
      string uri = 2;
      Parameters:
      value - The uri to set.
      Returns:
      This builder for chaining.
    • clearUri

      public InstanceInfo.Builder clearUri()
       URI of a Compute Engine instance.
       
      string uri = 2;
      Returns:
      This builder for chaining.
    • setUriBytes

      public InstanceInfo.Builder setUriBytes(com.google.protobuf.ByteString value)
       URI of a Compute Engine instance.
       
      string uri = 2;
      Parameters:
      value - The bytes for uri to set.
      Returns:
      This builder for chaining.
    • getInterface

      public String getInterface()
       Name of the network interface of a Compute Engine instance.
       
      string interface = 3;
      Specified by:
      getInterface in interface InstanceInfoOrBuilder
      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:
      getInterfaceBytes in interface InstanceInfoOrBuilder
      Returns:
      The bytes for interface.
    • setInterface

      public InstanceInfo.Builder setInterface(String value)
       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

      public InstanceInfo.Builder clearInterface()
       Name of the network interface of a Compute Engine instance.
       
      string interface = 3;
      Returns:
      This builder for chaining.
    • setInterfaceBytes

      public InstanceInfo.Builder setInterfaceBytes(com.google.protobuf.ByteString value)
       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

      public String getNetworkUri()
       URI of a Compute Engine network.
       
      string network_uri = 4;
      Specified by:
      getNetworkUri in interface InstanceInfoOrBuilder
      Returns:
      The networkUri.
    • getNetworkUriBytes

      public com.google.protobuf.ByteString getNetworkUriBytes()
       URI of a Compute Engine network.
       
      string network_uri = 4;
      Specified by:
      getNetworkUriBytes in interface InstanceInfoOrBuilder
      Returns:
      The bytes for networkUri.
    • setNetworkUri

      public InstanceInfo.Builder setNetworkUri(String value)
       URI of a Compute Engine network.
       
      string network_uri = 4;
      Parameters:
      value - The networkUri to set.
      Returns:
      This builder for chaining.
    • clearNetworkUri

      public InstanceInfo.Builder clearNetworkUri()
       URI of a Compute Engine network.
       
      string network_uri = 4;
      Returns:
      This builder for chaining.
    • setNetworkUriBytes

      public InstanceInfo.Builder setNetworkUriBytes(com.google.protobuf.ByteString value)
       URI of a Compute Engine network.
       
      string network_uri = 4;
      Parameters:
      value - The bytes for networkUri to set.
      Returns:
      This builder for chaining.
    • getInternalIp

      public String getInternalIp()
       Internal IP address of the network interface.
       
      string internal_ip = 5;
      Specified by:
      getInternalIp in interface InstanceInfoOrBuilder
      Returns:
      The internalIp.
    • getInternalIpBytes

      public com.google.protobuf.ByteString getInternalIpBytes()
       Internal IP address of the network interface.
       
      string internal_ip = 5;
      Specified by:
      getInternalIpBytes in interface InstanceInfoOrBuilder
      Returns:
      The bytes for internalIp.
    • setInternalIp

      public InstanceInfo.Builder setInternalIp(String value)
       Internal IP address of the network interface.
       
      string internal_ip = 5;
      Parameters:
      value - The internalIp to set.
      Returns:
      This builder for chaining.
    • clearInternalIp

      public InstanceInfo.Builder clearInternalIp()
       Internal IP address of the network interface.
       
      string internal_ip = 5;
      Returns:
      This builder for chaining.
    • setInternalIpBytes

      public InstanceInfo.Builder setInternalIpBytes(com.google.protobuf.ByteString value)
       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

      public String getExternalIp()
       External IP address of the network interface.
       
      string external_ip = 6;
      Specified by:
      getExternalIp in interface InstanceInfoOrBuilder
      Returns:
      The externalIp.
    • getExternalIpBytes

      public com.google.protobuf.ByteString getExternalIpBytes()
       External IP address of the network interface.
       
      string external_ip = 6;
      Specified by:
      getExternalIpBytes in interface InstanceInfoOrBuilder
      Returns:
      The bytes for externalIp.
    • setExternalIp

      public InstanceInfo.Builder setExternalIp(String value)
       External IP address of the network interface.
       
      string external_ip = 6;
      Parameters:
      value - The externalIp to set.
      Returns:
      This builder for chaining.
    • clearExternalIp

      public InstanceInfo.Builder clearExternalIp()
       External IP address of the network interface.
       
      string external_ip = 6;
      Returns:
      This builder for chaining.
    • setExternalIpBytes

      public InstanceInfo.Builder setExternalIpBytes(com.google.protobuf.ByteString value)
       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:
      getNetworkTagsList in interface InstanceInfoOrBuilder
      Returns:
      A list containing the networkTags.
    • getNetworkTagsCount

      public int getNetworkTagsCount()
       Network tags configured on the instance.
       
      repeated string network_tags = 7;
      Specified by:
      getNetworkTagsCount in interface InstanceInfoOrBuilder
      Returns:
      The count of networkTags.
    • getNetworkTags

      public String getNetworkTags(int index)
       Network tags configured on the instance.
       
      repeated string network_tags = 7;
      Specified by:
      getNetworkTags in interface InstanceInfoOrBuilder
      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:
      getNetworkTagsBytes in interface InstanceInfoOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the networkTags at the given index.
    • setNetworkTags

      public InstanceInfo.Builder setNetworkTags(int index, String value)
       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

      public InstanceInfo.Builder addNetworkTags(String value)
       Network tags configured on the instance.
       
      repeated string network_tags = 7;
      Parameters:
      value - The networkTags to add.
      Returns:
      This builder for chaining.
    • addAllNetworkTags

      public InstanceInfo.Builder addAllNetworkTags(Iterable<String> values)
       Network tags configured on the instance.
       
      repeated string network_tags = 7;
      Parameters:
      values - The networkTags to add.
      Returns:
      This builder for chaining.
    • clearNetworkTags

      public InstanceInfo.Builder clearNetworkTags()
       Network tags configured on the instance.
       
      repeated string network_tags = 7;
      Returns:
      This builder for chaining.
    • addNetworkTagsBytes

      public InstanceInfo.Builder addNetworkTagsBytes(com.google.protobuf.ByteString value)
       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 public String getServiceAccount()
      Deprecated.
      google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=413
       Service account authorized for the instance.
       
      string service_account = 8 [deprecated = true];
      Specified by:
      getServiceAccount in interface InstanceInfoOrBuilder
      Returns:
      The serviceAccount.
    • getServiceAccountBytes

      @Deprecated public com.google.protobuf.ByteString getServiceAccountBytes()
      Deprecated.
      google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=413
       Service account authorized for the instance.
       
      string service_account = 8 [deprecated = true];
      Specified by:
      getServiceAccountBytes in interface InstanceInfoOrBuilder
      Returns:
      The bytes for serviceAccount.
    • setServiceAccount

      @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=413
       Service account authorized for the instance.
       
      string service_account = 8 [deprecated = true];
      Parameters:
      value - The serviceAccount to set.
      Returns:
      This builder for chaining.
    • clearServiceAccount

      @Deprecated public InstanceInfo.Builder clearServiceAccount()
      Deprecated.
      google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=413
       Service 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=413
       Service 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

      public String getPscNetworkAttachmentUri()
       URI of the PSC network attachment the NIC is attached to (if relevant).
       
      string psc_network_attachment_uri = 9;
      Specified by:
      getPscNetworkAttachmentUri in interface InstanceInfoOrBuilder
      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:
      getPscNetworkAttachmentUriBytes in interface InstanceInfoOrBuilder
      Returns:
      The bytes for pscNetworkAttachmentUri.
    • setPscNetworkAttachmentUri

      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;
      Parameters:
      value - The pscNetworkAttachmentUri to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setPscNetworkAttachmentUriBytes

      public InstanceInfo.Builder setPscNetworkAttachmentUriBytes(com.google.protobuf.ByteString value)
       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 public boolean getRunning()
      Deprecated.
      google.cloud.networkmanagement.v1beta1.InstanceInfo.running is deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=420
       Indicates whether the Compute Engine instance is running.
       Deprecated: use the `status` field instead.
       
      bool running = 10 [deprecated = true];
      Specified by:
      getRunning in interface InstanceInfoOrBuilder
      Returns:
      The running.
    • setRunning

      @Deprecated public InstanceInfo.Builder setRunning(boolean value)
      Deprecated.
      google.cloud.networkmanagement.v1beta1.InstanceInfo.running is deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=420
       Indicates 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 public InstanceInfo.Builder clearRunning()
      Deprecated.
      google.cloud.networkmanagement.v1beta1.InstanceInfo.running is deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=420
       Indicates 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:
      getStatusValue in interface InstanceInfoOrBuilder
      Returns:
      The enum numeric value on the wire for status.
    • setStatusValue

      public InstanceInfo.Builder setStatusValue(int value)
       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

      public InstanceInfo.Status getStatus()
       The status of the instance.
       
      .google.cloud.networkmanagement.v1beta1.InstanceInfo.Status status = 11;
      Specified by:
      getStatus in interface InstanceInfoOrBuilder
      Returns:
      The status.
    • setStatus

      public InstanceInfo.Builder setStatus(InstanceInfo.Status value)
       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

      public InstanceInfo.Builder clearStatus()
       The status of the instance.
       
      .google.cloud.networkmanagement.v1beta1.InstanceInfo.Status status = 11;
      Returns:
      This builder for chaining.