Class XpnResourceId.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<XpnResourceId.Builder>
com.google.cloud.compute.v1.XpnResourceId.Builder
All Implemented Interfaces:
XpnResourceIdOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
XpnResourceId

public static final class XpnResourceId.Builder extends com.google.protobuf.GeneratedMessage.Builder<XpnResourceId.Builder> implements XpnResourceIdOrBuilder
 Service resource (a.k.a service project) ID.
 
Protobuf type google.cloud.compute.v1.XpnResourceId
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    The ID of the service resource.
    The type of the service resource.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    The ID of the service resource.
    com.google.protobuf.ByteString
    The ID of the service resource.
    The type of the service resource.
    com.google.protobuf.ByteString
    The type of the service resource.
    boolean
    The ID of the service resource.
    boolean
    The type of the service resource.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    setId(String value)
    The ID of the service resource.
    setIdBytes(com.google.protobuf.ByteString value)
    The ID of the service resource.
    setType(String value)
    The type of the service resource.
    setTypeBytes(com.google.protobuf.ByteString value)
    The type of the service resource.

    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, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods 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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<XpnResourceId.Builder>
    • clear

      public XpnResourceId.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<XpnResourceId.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<XpnResourceId.Builder>
    • getDefaultInstanceForType

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

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

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

      public XpnResourceId.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<XpnResourceId.Builder>
    • mergeFrom

      public XpnResourceId.Builder mergeFrom(XpnResourceId other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<XpnResourceId.Builder>
    • mergeFrom

      public XpnResourceId.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<XpnResourceId.Builder>
      Throws:
      IOException
    • hasId

      public boolean hasId()
       The ID of the service resource. In the case of projects, this field
       supports project id (e.g., my-project-123) and project number
       (e.g. 12345678).
       
      optional string id = 3355;
      Specified by:
      hasId in interface XpnResourceIdOrBuilder
      Returns:
      Whether the id field is set.
    • getId

      public String getId()
       The ID of the service resource. In the case of projects, this field
       supports project id (e.g., my-project-123) and project number
       (e.g. 12345678).
       
      optional string id = 3355;
      Specified by:
      getId in interface XpnResourceIdOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
       The ID of the service resource. In the case of projects, this field
       supports project id (e.g., my-project-123) and project number
       (e.g. 12345678).
       
      optional string id = 3355;
      Specified by:
      getIdBytes in interface XpnResourceIdOrBuilder
      Returns:
      The bytes for id.
    • setId

      public XpnResourceId.Builder setId(String value)
       The ID of the service resource. In the case of projects, this field
       supports project id (e.g., my-project-123) and project number
       (e.g. 12345678).
       
      optional string id = 3355;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public XpnResourceId.Builder clearId()
       The ID of the service resource. In the case of projects, this field
       supports project id (e.g., my-project-123) and project number
       (e.g. 12345678).
       
      optional string id = 3355;
      Returns:
      This builder for chaining.
    • setIdBytes

      public XpnResourceId.Builder setIdBytes(com.google.protobuf.ByteString value)
       The ID of the service resource. In the case of projects, this field
       supports project id (e.g., my-project-123) and project number
       (e.g. 12345678).
       
      optional string id = 3355;
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • hasType

      public boolean hasType()
       The type of the service resource.
       Check the Type enum for the list of possible values.
       
      optional string type = 3575610;
      Specified by:
      hasType in interface XpnResourceIdOrBuilder
      Returns:
      Whether the type field is set.
    • getType

      public String getType()
       The type of the service resource.
       Check the Type enum for the list of possible values.
       
      optional string type = 3575610;
      Specified by:
      getType in interface XpnResourceIdOrBuilder
      Returns:
      The type.
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
       The type of the service resource.
       Check the Type enum for the list of possible values.
       
      optional string type = 3575610;
      Specified by:
      getTypeBytes in interface XpnResourceIdOrBuilder
      Returns:
      The bytes for type.
    • setType

      public XpnResourceId.Builder setType(String value)
       The type of the service resource.
       Check the Type enum for the list of possible values.
       
      optional string type = 3575610;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public XpnResourceId.Builder clearType()
       The type of the service resource.
       Check the Type enum for the list of possible values.
       
      optional string type = 3575610;
      Returns:
      This builder for chaining.
    • setTypeBytes

      public XpnResourceId.Builder setTypeBytes(com.google.protobuf.ByteString value)
       The type of the service resource.
       Check the Type enum for the list of possible values.
       
      optional string type = 3575610;
      Parameters:
      value - The bytes for type to set.
      Returns:
      This builder for chaining.