-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathBranch.java
More file actions
executable file
·143 lines (117 loc) · 3.37 KB
/
Branch.java
File metadata and controls
executable file
·143 lines (117 loc) · 3.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
package com.databricks.sdk.service.postgres;
import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.ToStringer;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.protobuf.Timestamp;
import java.util.Objects;
@Generated
public class Branch {
/** A timestamp indicating when the branch was created. */
@JsonProperty("create_time")
private Timestamp createTime;
/**
* Output only. The full resource path of the branch. Format:
* projects/{project_id}/branches/{branch_id}
*/
@JsonProperty("name")
private String name;
/**
* The project containing this branch (API resource hierarchy). Format: projects/{project_id}
*
* <p>Note: This field indicates where the branch exists in the resource hierarchy. For
* point-in-time branching from another branch, see `status.source_branch`.
*/
@JsonProperty("parent")
private String parent;
/** The spec contains the branch configuration. */
@JsonProperty("spec")
private BranchSpec spec;
/** The current status of a Branch. */
@JsonProperty("status")
private BranchStatus status;
/** System-generated unique ID for the branch. */
@JsonProperty("uid")
private String uid;
/** A timestamp indicating when the branch was last updated. */
@JsonProperty("update_time")
private Timestamp updateTime;
public Branch setCreateTime(Timestamp createTime) {
this.createTime = createTime;
return this;
}
public Timestamp getCreateTime() {
return createTime;
}
public Branch setName(String name) {
this.name = name;
return this;
}
public String getName() {
return name;
}
public Branch setParent(String parent) {
this.parent = parent;
return this;
}
public String getParent() {
return parent;
}
public Branch setSpec(BranchSpec spec) {
this.spec = spec;
return this;
}
public BranchSpec getSpec() {
return spec;
}
public Branch setStatus(BranchStatus status) {
this.status = status;
return this;
}
public BranchStatus getStatus() {
return status;
}
public Branch setUid(String uid) {
this.uid = uid;
return this;
}
public String getUid() {
return uid;
}
public Branch setUpdateTime(Timestamp updateTime) {
this.updateTime = updateTime;
return this;
}
public Timestamp getUpdateTime() {
return updateTime;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Branch that = (Branch) o;
return Objects.equals(createTime, that.createTime)
&& Objects.equals(name, that.name)
&& Objects.equals(parent, that.parent)
&& Objects.equals(spec, that.spec)
&& Objects.equals(status, that.status)
&& Objects.equals(uid, that.uid)
&& Objects.equals(updateTime, that.updateTime);
}
@Override
public int hashCode() {
return Objects.hash(createTime, name, parent, spec, status, uid, updateTime);
}
@Override
public String toString() {
return new ToStringer(Branch.class)
.add("createTime", createTime)
.add("name", name)
.add("parent", parent)
.add("spec", spec)
.add("status", status)
.add("uid", uid)
.add("updateTime", updateTime)
.toString();
}
}