gpt4 book ai didi

com.google.cloud.compute.v1.ZoneList类的使用及代码示例

转载 作者:知者 更新时间:2024-03-13 12:29:53 29 4
gpt4 key购买 nike

本文整理了Java中com.google.cloud.compute.v1.ZoneList类的一些代码示例,展示了ZoneList类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZoneList类的具体详情如下:
包路径:com.google.cloud.compute.v1.ZoneList
类名称:ZoneList

ZoneList介绍

暂无

代码示例

代码示例来源:origin: googleapis/google-cloud-java

public Builder mergeFrom(ZoneList other) {
 if (other == ZoneList.getDefaultInstance()) return this;
 if (other.getId() != null) {
  this.id = other.id;
 }
 if (other.getItemsList() != null) {
  this.items = other.items;
 }
 if (other.getKind() != null) {
  this.kind = other.kind;
 }
 if (other.getNextPageToken() != null) {
  this.nextPageToken = other.nextPageToken;
 }
 if (other.getSelfLink() != null) {
  this.selfLink = other.selfLink;
 }
 if (other.getWarning() != null) {
  this.warning = other.warning;
 }
 return this;
}

代码示例来源:origin: googleapis/google-cloud-java

public ZoneList build() {
 return new ZoneList(id, items, kind, nextPageToken, selfLink, warning);
}

代码示例来源:origin: googleapis/google-cloud-java

public static Builder newBuilder() {
 return DEFAULT_INSTANCE.toBuilder();
}

代码示例来源:origin: googleapis/google-cloud-java

List<Zone> items = Arrays.asList(itemsElement);
ZoneList expectedResponse =
  ZoneList.newBuilder()
    .setId(id)
    .setKind(kind)
Assert.assertEquals(expectedResponse.getItemsList().get(0), resources.get(0));

代码示例来源:origin: googleapis/google-cloud-java

@Override
 public Iterable<Zone> extractResources(ZoneList payload) {
  return payload.getItemsList() != null
    ? payload.getItemsList()
    : ImmutableList.<Zone>of();
 }
};

代码示例来源:origin: googleapis/google-cloud-java

@Override
public String extractNextToken(ZoneList payload) {
 return payload.getNextPageToken();
}

代码示例来源:origin: googleapis/google-cloud-java

@Override
public boolean equals(Object o) {
 if (o == this) {
  return true;
 }
 if (o instanceof ZoneList) {
  ZoneList that = (ZoneList) o;
  return Objects.equals(this.id, that.getId())
    && Objects.equals(this.items, that.getItemsList())
    && Objects.equals(this.kind, that.getKind())
    && Objects.equals(this.nextPageToken, that.getNextPageToken())
    && Objects.equals(this.selfLink, that.getSelfLink())
    && Objects.equals(this.warning, that.getWarning());
 }
 return false;
}

代码示例来源:origin: googleapis/google-cloud-java

public static Builder newBuilder(ZoneList prototype) {
 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com