-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathEndpoint.java
More file actions
executable file
·319 lines (263 loc) · 8.46 KB
/
Copy pathEndpoint.java
File metadata and controls
executable file
·319 lines (263 loc) · 8.46 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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
package com.databricks.sdk.service.aisearch;
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.Collection;
import java.util.Objects;
/**
* An AI Search endpoint — compute infrastructure that hosts AI Search indexes and serves queries
* against them. Customers create, query, and delete endpoints; the system manages provisioning,
* scaling, and health status.
*/
@Generated
public class Endpoint {
/** The user-selected budget policy id for the endpoint. */
@JsonProperty("budget_policy_id")
private String budgetPolicyId;
/** Time the endpoint was created. */
@JsonProperty("create_time")
private Timestamp createTime;
/** Creator of the endpoint */
@JsonProperty("creator")
private String creator;
/** The custom tags assigned to the endpoint */
@JsonProperty("custom_tags")
private Collection<CustomTag> customTags;
/** The budget policy id applied to the endpoint */
@JsonProperty("effective_budget_policy_id")
private String effectiveBudgetPolicyId;
/** Current status of the endpoint */
@JsonProperty("endpoint_status")
private EndpointStatus endpointStatus;
/** Type of endpoint. Required on create and immutable thereafter. */
@JsonProperty("endpoint_type")
private EndpointType endpointType;
/** Unique identifier of the endpoint */
@JsonProperty("id")
private String id;
/** Number of indexes on the endpoint */
@JsonProperty("index_count")
private Long indexCount;
/** User who last updated the endpoint */
@JsonProperty("last_updated_user")
private String lastUpdatedUser;
/**
* Name of the AI Search endpoint. Server-assigned full resource path ({@code
* workspaces/{workspace}/endpoints/{endpoint}}) on output. On create, the user-supplied short
* name is conveyed via {@code CreateEndpointRequest.endpoint_id}; the server composes the full
* {@code name} and returns it on the response.
*/
@JsonProperty("name")
private String name;
/**
* The client-supplied desired number of replicas for the endpoint, applied at create/update time.
* Mutually exclusive with {@code target_qps}.
*/
@JsonProperty("replica_count")
private Long replicaCount;
/** Scaling information for the endpoint */
@JsonProperty("scaling_info")
private EndpointScalingInfo scalingInfo;
/**
* Target QPS for the endpoint. Mutually exclusive with {@code replica_count}. Best-effort; the
* system does not guarantee this QPS will be achieved.
*/
@JsonProperty("target_qps")
private Long targetQps;
/** Throughput information for the endpoint */
@JsonProperty("throughput_info")
private EndpointThroughputInfo throughputInfo;
/** Time the endpoint was last updated. */
@JsonProperty("update_time")
private Timestamp updateTime;
/** The usage policy id applied to the endpoint. */
@JsonProperty("usage_policy_id")
private String usagePolicyId;
public Endpoint setBudgetPolicyId(String budgetPolicyId) {
this.budgetPolicyId = budgetPolicyId;
return this;
}
public String getBudgetPolicyId() {
return budgetPolicyId;
}
public Endpoint setCreateTime(Timestamp createTime) {
this.createTime = createTime;
return this;
}
public Timestamp getCreateTime() {
return createTime;
}
public Endpoint setCreator(String creator) {
this.creator = creator;
return this;
}
public String getCreator() {
return creator;
}
public Endpoint setCustomTags(Collection<CustomTag> customTags) {
this.customTags = customTags;
return this;
}
public Collection<CustomTag> getCustomTags() {
return customTags;
}
public Endpoint setEffectiveBudgetPolicyId(String effectiveBudgetPolicyId) {
this.effectiveBudgetPolicyId = effectiveBudgetPolicyId;
return this;
}
public String getEffectiveBudgetPolicyId() {
return effectiveBudgetPolicyId;
}
public Endpoint setEndpointStatus(EndpointStatus endpointStatus) {
this.endpointStatus = endpointStatus;
return this;
}
public EndpointStatus getEndpointStatus() {
return endpointStatus;
}
public Endpoint setEndpointType(EndpointType endpointType) {
this.endpointType = endpointType;
return this;
}
public EndpointType getEndpointType() {
return endpointType;
}
public Endpoint setId(String id) {
this.id = id;
return this;
}
public String getId() {
return id;
}
public Endpoint setIndexCount(Long indexCount) {
this.indexCount = indexCount;
return this;
}
public Long getIndexCount() {
return indexCount;
}
public Endpoint setLastUpdatedUser(String lastUpdatedUser) {
this.lastUpdatedUser = lastUpdatedUser;
return this;
}
public String getLastUpdatedUser() {
return lastUpdatedUser;
}
public Endpoint setName(String name) {
this.name = name;
return this;
}
public String getName() {
return name;
}
public Endpoint setReplicaCount(Long replicaCount) {
this.replicaCount = replicaCount;
return this;
}
public Long getReplicaCount() {
return replicaCount;
}
public Endpoint setScalingInfo(EndpointScalingInfo scalingInfo) {
this.scalingInfo = scalingInfo;
return this;
}
public EndpointScalingInfo getScalingInfo() {
return scalingInfo;
}
public Endpoint setTargetQps(Long targetQps) {
this.targetQps = targetQps;
return this;
}
public Long getTargetQps() {
return targetQps;
}
public Endpoint setThroughputInfo(EndpointThroughputInfo throughputInfo) {
this.throughputInfo = throughputInfo;
return this;
}
public EndpointThroughputInfo getThroughputInfo() {
return throughputInfo;
}
public Endpoint setUpdateTime(Timestamp updateTime) {
this.updateTime = updateTime;
return this;
}
public Timestamp getUpdateTime() {
return updateTime;
}
public Endpoint setUsagePolicyId(String usagePolicyId) {
this.usagePolicyId = usagePolicyId;
return this;
}
public String getUsagePolicyId() {
return usagePolicyId;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Endpoint that = (Endpoint) o;
return Objects.equals(budgetPolicyId, that.budgetPolicyId)
&& Objects.equals(createTime, that.createTime)
&& Objects.equals(creator, that.creator)
&& Objects.equals(customTags, that.customTags)
&& Objects.equals(effectiveBudgetPolicyId, that.effectiveBudgetPolicyId)
&& Objects.equals(endpointStatus, that.endpointStatus)
&& Objects.equals(endpointType, that.endpointType)
&& Objects.equals(id, that.id)
&& Objects.equals(indexCount, that.indexCount)
&& Objects.equals(lastUpdatedUser, that.lastUpdatedUser)
&& Objects.equals(name, that.name)
&& Objects.equals(replicaCount, that.replicaCount)
&& Objects.equals(scalingInfo, that.scalingInfo)
&& Objects.equals(targetQps, that.targetQps)
&& Objects.equals(throughputInfo, that.throughputInfo)
&& Objects.equals(updateTime, that.updateTime)
&& Objects.equals(usagePolicyId, that.usagePolicyId);
}
@Override
public int hashCode() {
return Objects.hash(
budgetPolicyId,
createTime,
creator,
customTags,
effectiveBudgetPolicyId,
endpointStatus,
endpointType,
id,
indexCount,
lastUpdatedUser,
name,
replicaCount,
scalingInfo,
targetQps,
throughputInfo,
updateTime,
usagePolicyId);
}
@Override
public String toString() {
return new ToStringer(Endpoint.class)
.add("budgetPolicyId", budgetPolicyId)
.add("createTime", createTime)
.add("creator", creator)
.add("customTags", customTags)
.add("effectiveBudgetPolicyId", effectiveBudgetPolicyId)
.add("endpointStatus", endpointStatus)
.add("endpointType", endpointType)
.add("id", id)
.add("indexCount", indexCount)
.add("lastUpdatedUser", lastUpdatedUser)
.add("name", name)
.add("replicaCount", replicaCount)
.add("scalingInfo", scalingInfo)
.add("targetQps", targetQps)
.add("throughputInfo", throughputInfo)
.add("updateTime", updateTime)
.add("usagePolicyId", usagePolicyId)
.toString();
}
}