本文整理了Java中com.google.cloud.compute.v1.ZoneList
类的一些代码示例,展示了ZoneList
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZoneList
类的具体详情如下:
包路径:com.google.cloud.compute.v1.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);
}
内容来源于网络,如有侵权,请联系作者删除!