com.google.api.client.util.Key.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(5.5k)|赞(0)|评价(0)|浏览(98)

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

Key.<init>介绍

暂无

代码示例

代码示例来源:origin: google/data-transfer-project

/** A generic response from the remember the milk service. */
public abstract class RememberTheMilkResponse {

 @Key("@stat")
 public String stat;

 @Key("err")
 public Error error;
}

代码示例来源:origin: google/data-transfer-project

public class Transaction {
 // The id of the transaction
 @Key("@id")
 public int id;
 // Whether this transaction is undoable or not.
 @Key("undoable")
 public int undoable;

 @Override
 public String toString() {
  return MoreObjects.toStringHelper(this).add("id", id).add("undoable", undoable).toString();
 }
}

代码示例来源:origin: google/data-transfer-project

public static class Auth {
 @Key("token")
 public String token;
 @Key("perms")
 public String perms;
 @Key("user")
 public User user;
 @Override
 public String toString() {
  return "Auth(token=" + token + ", perms=" + perms + ", user=" + user + ")";
 }
}

代码示例来源:origin: google/data-transfer-project

/** A collection of notes that exist on a tasks/taskseries */
public class Notes {

 @Key("note")
 public List<String> notes;

 @Override
 public String toString() {
  return MoreObjects.toStringHelper(this).add("notes", notes).toString();
 }
}

代码示例来源:origin: google/data-transfer-project

public static class User {

  @Key("@id")
  public int id;

  @Key("@username")
  public String username;

  @Key("@fullname")
  public String fullname;

  @Override
  public String toString() {
   return "User(id=" + id + ", username=" + username + ", fullname=" + fullname + ")";
  }
 }
}

代码示例来源:origin: google/data-transfer-project

public class ListInfo {
 @Key("@id")
 public int id;
 @Key("@name")
 public String name;
 @Key("@deleted")
 public int deleted;
 @Key("@locked")
 public int locked;
 @Key("@archived")
 public int archived;
 @Key("@position")
 public int position;
 @Key("@smart")
 public int smart;
 @Key("@sort_order")
 public int sort_order;

代码示例来源:origin: google/data-transfer-project

@Key("auth")
public Auth auth;

代码示例来源:origin: GoogleCloudPlatform/java-docs-samples

public static class Dataset {
 @Key private Map<String, String> labels;
 public Map<String, String> getLabels() {
  return this.labels;
 }
 public Dataset addLabel(String key, String value) {
  if (this.labels == null) {
   this.labels = new HashMap<>();
  }
  this.labels.put(key, value);
  return this;
 }
}

代码示例来源:origin: GoogleCloudPlatform/java-docs-samples

public static class Table {
 @Key private Map<String, String> labels;
 public Map<String, String> getLabels() {
  return this.labels;
 }
 public Table addLabel(String key, String value) {
  if (this.labels == null) {
   this.labels = new HashMap<>();
  }
  this.labels.put(key, value);
  return this;
 }
}

代码示例来源:origin: google/google-api-java-client-samples

@Key("project")
private String project;
@Key("bucket")
private String bucket;
@Key("prefix")
private String prefix;

代码示例来源:origin: com.google.api.client/google-api-client-googleapis

/**
 * Generic URL with a token parameter that can be used to extract the AuthSub single-use token
 * from the AuthSubRequest response.
 */
public static class ResponseUrl extends GenericUrl {
 @Key
 public String token;
 public ResponseUrl(String url) {
  super(url);
 }
}

代码示例来源:origin: com.google.api.client/google-api-client-googleapis

/** Key/value data to parse an error response. */
public static final class ErrorInfo {
 @Key("Error")
 public String error;
 @Key("Url")
 public String url;
 @Key("CaptchaToken")
 public String captchaToken;
 @Key("CaptchaUrl")
 public String captchaUrl;
}

代码示例来源:origin: se.redmind/rmtest-appium

public static class UploadStatus {

    @Key("message")
    String message;

    @Key("uploadCount")
    Integer uploadCount;

    @Key("expiresIn")
    Integer expiresIn;

    @Key("uploads")
    UploadedFile fileInfo;
  }
}

代码示例来源:origin: com.google.http-client/google-http-client-test

public static class TestClass {
 public TestClass() {
 }
 @Key("foo")
 public int foo;
}

代码示例来源:origin: firebase/firebase-admin-java

public static class AppResponse {
 @Key("name")
 protected String name;
 @Key("appId")
 protected String appId;
 @Key("displayName")
 protected String displayName;
 @Key("projectId")
 protected String projectId;
}

代码示例来源:origin: firebase/firebase-admin-java

private static class AppConfigResponse {
 @Key("configFilename")
 String configFilename;
 @Key("configFileContents")
 String configFileContents;
}

代码示例来源:origin: com.google.api.client/google-api-client-googleapis

/** Defines a parameter to a service method. */
public static final class ServiceParameter {
 /** Whether the parameter is required. */
 @Key
 public boolean required;
}

代码示例来源:origin: com.google.api.client/google-api-client-googleapis

/**
 * Key/value data to parse a success response for an AuthSubSessionToken request.
 */
public static final class SessionTokenResponse {
 @Key("Token")
 public String sessionToken;
}

代码示例来源:origin: com.google.http-client/google-http-client-test

public static class PolymorphicWithNumericType {
 @Key
 @JsonPolymorphicTypeMap(typeDefinitions = {
   @TypeDef(key = "1", ref = NumericTypedSubclass1.class),
   @TypeDef(key = "2", ref = NumericTypedSubclass2.class)})
 Integer type;
}

代码示例来源:origin: com.google.http-client/google-http-client-test

public static class PolymorphicWithIllegalValueType {
 @Key
 @JsonPolymorphicTypeMap(typeDefinitions = {
   @TypeDef(key = "foo", ref = Object.class), @TypeDef(key = "bar", ref = Object.class)})
 Object type;
}

相关文章

微信公众号

最新文章

更多

Key类方法