Class SnapshotList.Builder

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

public static final class SnapshotList.Builder extends com.google.protobuf.GeneratedMessage.Builder<SnapshotList.Builder> implements SnapshotListOrBuilder
 Contains a list of Snapshot resources.
 
Protobuf type google.cloud.compute.v1.SnapshotList
  • 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<SnapshotList.Builder>
    • clear

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

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

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

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

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

      public SnapshotList.Builder mergeFrom(SnapshotList other)
    • isInitialized

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

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

      public boolean hasId()
       [Output Only] Unique identifier for the resource; defined by the server.
       
      optional string id = 3355;
      Specified by:
      hasId in interface SnapshotListOrBuilder
      Returns:
      Whether the id field is set.
    • getId

      public String getId()
       [Output Only] Unique identifier for the resource; defined by the server.
       
      optional string id = 3355;
      Specified by:
      getId in interface SnapshotListOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
       [Output Only] Unique identifier for the resource; defined by the server.
       
      optional string id = 3355;
      Specified by:
      getIdBytes in interface SnapshotListOrBuilder
      Returns:
      The bytes for id.
    • setId

      public SnapshotList.Builder setId(String value)
       [Output Only] Unique identifier for the resource; defined by the server.
       
      optional string id = 3355;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public SnapshotList.Builder clearId()
       [Output Only] Unique identifier for the resource; defined by the server.
       
      optional string id = 3355;
      Returns:
      This builder for chaining.
    • setIdBytes

      public SnapshotList.Builder setIdBytes(com.google.protobuf.ByteString value)
       [Output Only] Unique identifier for the resource; defined by the server.
       
      optional string id = 3355;
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • getItemsList

      public List<Snapshot> getItemsList()
       A list of Snapshot resources.
       
      repeated .google.cloud.compute.v1.Snapshot items = 100526016;
      Specified by:
      getItemsList in interface SnapshotListOrBuilder
    • getItemsCount

      public int getItemsCount()
       A list of Snapshot resources.
       
      repeated .google.cloud.compute.v1.Snapshot items = 100526016;
      Specified by:
      getItemsCount in interface SnapshotListOrBuilder
    • getItems

      public Snapshot getItems(int index)
       A list of Snapshot resources.
       
      repeated .google.cloud.compute.v1.Snapshot items = 100526016;
      Specified by:
      getItems in interface SnapshotListOrBuilder
    • setItems

      public SnapshotList.Builder setItems(int index, Snapshot value)
       A list of Snapshot resources.
       
      repeated .google.cloud.compute.v1.Snapshot items = 100526016;
    • setItems

      public SnapshotList.Builder setItems(int index, Snapshot.Builder builderForValue)
       A list of Snapshot resources.
       
      repeated .google.cloud.compute.v1.Snapshot items = 100526016;
    • addItems

      public SnapshotList.Builder addItems(Snapshot value)
       A list of Snapshot resources.
       
      repeated .google.cloud.compute.v1.Snapshot items = 100526016;
    • addItems

      public SnapshotList.Builder addItems(int index, Snapshot value)
       A list of Snapshot resources.
       
      repeated .google.cloud.compute.v1.Snapshot items = 100526016;
    • addItems

      public SnapshotList.Builder addItems(Snapshot.Builder builderForValue)
       A list of Snapshot resources.
       
      repeated .google.cloud.compute.v1.Snapshot items = 100526016;
    • addItems

      public SnapshotList.Builder addItems(int index, Snapshot.Builder builderForValue)
       A list of Snapshot resources.
       
      repeated .google.cloud.compute.v1.Snapshot items = 100526016;
    • addAllItems

      public SnapshotList.Builder addAllItems(Iterable<? extends Snapshot> values)
       A list of Snapshot resources.
       
      repeated .google.cloud.compute.v1.Snapshot items = 100526016;
    • clearItems

      public SnapshotList.Builder clearItems()
       A list of Snapshot resources.
       
      repeated .google.cloud.compute.v1.Snapshot items = 100526016;
    • removeItems

      public SnapshotList.Builder removeItems(int index)
       A list of Snapshot resources.
       
      repeated .google.cloud.compute.v1.Snapshot items = 100526016;
    • getItemsBuilder

      public Snapshot.Builder getItemsBuilder(int index)
       A list of Snapshot resources.
       
      repeated .google.cloud.compute.v1.Snapshot items = 100526016;
    • getItemsOrBuilder

      public SnapshotOrBuilder getItemsOrBuilder(int index)
       A list of Snapshot resources.
       
      repeated .google.cloud.compute.v1.Snapshot items = 100526016;
      Specified by:
      getItemsOrBuilder in interface SnapshotListOrBuilder
    • getItemsOrBuilderList

      public List<? extends SnapshotOrBuilder> getItemsOrBuilderList()
       A list of Snapshot resources.
       
      repeated .google.cloud.compute.v1.Snapshot items = 100526016;
      Specified by:
      getItemsOrBuilderList in interface SnapshotListOrBuilder
    • addItemsBuilder

      public Snapshot.Builder addItemsBuilder()
       A list of Snapshot resources.
       
      repeated .google.cloud.compute.v1.Snapshot items = 100526016;
    • addItemsBuilder

      public Snapshot.Builder addItemsBuilder(int index)
       A list of Snapshot resources.
       
      repeated .google.cloud.compute.v1.Snapshot items = 100526016;
    • getItemsBuilderList

      public List<Snapshot.Builder> getItemsBuilderList()
       A list of Snapshot resources.
       
      repeated .google.cloud.compute.v1.Snapshot items = 100526016;
    • hasKind

      public boolean hasKind()
       Output only. Type of resource.
       
      optional string kind = 3292052;
      Specified by:
      hasKind in interface SnapshotListOrBuilder
      Returns:
      Whether the kind field is set.
    • getKind

      public String getKind()
       Output only. Type of resource.
       
      optional string kind = 3292052;
      Specified by:
      getKind in interface SnapshotListOrBuilder
      Returns:
      The kind.
    • getKindBytes

      public com.google.protobuf.ByteString getKindBytes()
       Output only. Type of resource.
       
      optional string kind = 3292052;
      Specified by:
      getKindBytes in interface SnapshotListOrBuilder
      Returns:
      The bytes for kind.
    • setKind

      public SnapshotList.Builder setKind(String value)
       Output only. Type of resource.
       
      optional string kind = 3292052;
      Parameters:
      value - The kind to set.
      Returns:
      This builder for chaining.
    • clearKind

      public SnapshotList.Builder clearKind()
       Output only. Type of resource.
       
      optional string kind = 3292052;
      Returns:
      This builder for chaining.
    • setKindBytes

      public SnapshotList.Builder setKindBytes(com.google.protobuf.ByteString value)
       Output only. Type of resource.
       
      optional string kind = 3292052;
      Parameters:
      value - The bytes for kind to set.
      Returns:
      This builder for chaining.
    • hasNextPageToken

      public boolean hasNextPageToken()
       [Output Only] This token allows you to get the next page of results for
       list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
       the query parameter pageToken in the next list request.
       Subsequent list requests will have their own nextPageToken to
       continue paging through the results.
       
      optional string next_page_token = 79797525;
      Specified by:
      hasNextPageToken in interface SnapshotListOrBuilder
      Returns:
      Whether the nextPageToken field is set.
    • getNextPageToken

      public String getNextPageToken()
       [Output Only] This token allows you to get the next page of results for
       list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
       the query parameter pageToken in the next list request.
       Subsequent list requests will have their own nextPageToken to
       continue paging through the results.
       
      optional string next_page_token = 79797525;
      Specified by:
      getNextPageToken in interface SnapshotListOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       [Output Only] This token allows you to get the next page of results for
       list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
       the query parameter pageToken in the next list request.
       Subsequent list requests will have their own nextPageToken to
       continue paging through the results.
       
      optional string next_page_token = 79797525;
      Specified by:
      getNextPageTokenBytes in interface SnapshotListOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public SnapshotList.Builder setNextPageToken(String value)
       [Output Only] This token allows you to get the next page of results for
       list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
       the query parameter pageToken in the next list request.
       Subsequent list requests will have their own nextPageToken to
       continue paging through the results.
       
      optional string next_page_token = 79797525;
      Parameters:
      value - The nextPageToken to set.
      Returns:
      This builder for chaining.
    • clearNextPageToken

      public SnapshotList.Builder clearNextPageToken()
       [Output Only] This token allows you to get the next page of results for
       list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
       the query parameter pageToken in the next list request.
       Subsequent list requests will have their own nextPageToken to
       continue paging through the results.
       
      optional string next_page_token = 79797525;
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

      public SnapshotList.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       [Output Only] This token allows you to get the next page of results for
       list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
       the query parameter pageToken in the next list request.
       Subsequent list requests will have their own nextPageToken to
       continue paging through the results.
       
      optional string next_page_token = 79797525;
      Parameters:
      value - The bytes for nextPageToken to set.
      Returns:
      This builder for chaining.
    • hasSelfLink

      public boolean hasSelfLink()
       Output only. [Output Only] Server-defined URL for this resource.
       
      optional string self_link = 456214797;
      Specified by:
      hasSelfLink in interface SnapshotListOrBuilder
      Returns:
      Whether the selfLink field is set.
    • getSelfLink

      public String getSelfLink()
       Output only. [Output Only] Server-defined URL for this resource.
       
      optional string self_link = 456214797;
      Specified by:
      getSelfLink in interface SnapshotListOrBuilder
      Returns:
      The selfLink.
    • getSelfLinkBytes

      public com.google.protobuf.ByteString getSelfLinkBytes()
       Output only. [Output Only] Server-defined URL for this resource.
       
      optional string self_link = 456214797;
      Specified by:
      getSelfLinkBytes in interface SnapshotListOrBuilder
      Returns:
      The bytes for selfLink.
    • setSelfLink

      public SnapshotList.Builder setSelfLink(String value)
       Output only. [Output Only] Server-defined URL for this resource.
       
      optional string self_link = 456214797;
      Parameters:
      value - The selfLink to set.
      Returns:
      This builder for chaining.
    • clearSelfLink

      public SnapshotList.Builder clearSelfLink()
       Output only. [Output Only] Server-defined URL for this resource.
       
      optional string self_link = 456214797;
      Returns:
      This builder for chaining.
    • setSelfLinkBytes

      public SnapshotList.Builder setSelfLinkBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] Server-defined URL for this resource.
       
      optional string self_link = 456214797;
      Parameters:
      value - The bytes for selfLink to set.
      Returns:
      This builder for chaining.
    • hasWarning

      public boolean hasWarning()
       [Output Only] Informational warning message.
       
      optional .google.cloud.compute.v1.Warning warning = 50704284;
      Specified by:
      hasWarning in interface SnapshotListOrBuilder
      Returns:
      Whether the warning field is set.
    • getWarning

      public Warning getWarning()
       [Output Only] Informational warning message.
       
      optional .google.cloud.compute.v1.Warning warning = 50704284;
      Specified by:
      getWarning in interface SnapshotListOrBuilder
      Returns:
      The warning.
    • setWarning

      public SnapshotList.Builder setWarning(Warning value)
       [Output Only] Informational warning message.
       
      optional .google.cloud.compute.v1.Warning warning = 50704284;
    • setWarning

      public SnapshotList.Builder setWarning(Warning.Builder builderForValue)
       [Output Only] Informational warning message.
       
      optional .google.cloud.compute.v1.Warning warning = 50704284;
    • mergeWarning

      public SnapshotList.Builder mergeWarning(Warning value)
       [Output Only] Informational warning message.
       
      optional .google.cloud.compute.v1.Warning warning = 50704284;
    • clearWarning

      public SnapshotList.Builder clearWarning()
       [Output Only] Informational warning message.
       
      optional .google.cloud.compute.v1.Warning warning = 50704284;
    • getWarningBuilder

      public Warning.Builder getWarningBuilder()
       [Output Only] Informational warning message.
       
      optional .google.cloud.compute.v1.Warning warning = 50704284;
    • getWarningOrBuilder

      public WarningOrBuilder getWarningOrBuilder()
       [Output Only] Informational warning message.
       
      optional .google.cloud.compute.v1.Warning warning = 50704284;
      Specified by:
      getWarningOrBuilder in interface SnapshotListOrBuilder