gpt4 book ai didi

com.google.cloud.dns.ZoneInfo.getNameServers()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-13 13:21:05 27 4
gpt4 key购买 nike

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

ZoneInfo.getNameServers介绍

[英]The nameservers that the zone should be delegated to. This is defined by the Google DNS cloud.
[中]区域应委派给的名称服务器。这是由谷歌DNS云定义的。

代码示例

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

@Override
 public String toString() {
  return MoreObjects.toStringHelper(this)
    .add("name", getName())
    .add("generatedId", getGeneratedId())
    .add("description", getDescription())
    .add("dnsName", getDnsName())
    .add("nameServerSet", getNameServerSet())
    .add("nameServers", getNameServers())
    .add("creationTimeMillis", getCreationTimeMillis())
    .toString();
 }
}

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

@Test
public void testBuilder() {
 assertEquals(3, INFO.getNameServers().size());
 assertEquals(NS1, INFO.getNameServers().get(0));
 assertEquals(NS2, INFO.getNameServers().get(1));
 assertEquals(NS3, INFO.getNameServers().get(2));
 assertEquals(NAME, INFO.getName());
 assertEquals(GENERATED_ID, INFO.getGeneratedId());
 assertEquals(CREATION_TIME_MILLIS, INFO.getCreationTimeMillis());
 assertEquals(NAME_SERVER_SET, INFO.getNameServerSet());
 assertEquals(DESCRIPTION, INFO.getDescription());
 assertEquals(DNS_NAME, INFO.getDnsName());
}

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

@Test
public void testEmptyNameServers() {
 ZoneInfo clone = INFO.toBuilder().setNameServers(new LinkedList<String>()).build();
 assertTrue(clone.getNameServers().isEmpty());
 clone.toPb(); // test that this is allowed
}

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

@Test
public void testOf() {
 ZoneInfo partial = ZoneInfo.of(NAME, DNS_NAME, DESCRIPTION);
 assertTrue(partial.getNameServers().isEmpty());
 assertEquals(NAME, partial.getName());
 assertNull(partial.getGeneratedId());
 assertNull(partial.getCreationTimeMillis());
 assertNull(partial.getNameServerSet());
 assertEquals(DESCRIPTION, partial.getDescription());
 assertEquals(DNS_NAME, partial.getDnsName());
}

代码示例来源:origin: com.google.cloud/google-cloud-dns

/**
 * The nameservers that the zone should be delegated to. This is defined by the Google DNS cloud.
 */
@Deprecated
public List<String> nameServers() {
 return getNameServers();
}

代码示例来源:origin: com.google.cloud/google-cloud-dns

@Override
 public String toString() {
  return MoreObjects.toStringHelper(this)
    .add("name", getName())
    .add("generatedId", getGeneratedId())
    .add("description", getDescription())
    .add("dnsName", getDnsName())
    .add("nameServerSet", getNameServerSet())
    .add("nameServers", getNameServers())
    .add("creationTimeMillis", getCreationTimeMillis())
    .toString();
 }
}

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