diff --git a/com/strongdm/api/Client.java b/com/strongdm/api/Client.java index a35d1e7..2772b30 100644 --- a/com/strongdm/api/Client.java +++ b/com/strongdm/api/Client.java @@ -336,6 +336,13 @@ public RolesHistory rolesHistory() { return this.rolesHistory; } + protected final SecretStoreHealths secretStoreHealths; + + /** SecretStoreHealths exposes health states for secret stores. */ + public SecretStoreHealths secretStoreHealths() { + return this.secretStoreHealths; + } + protected final SecretStores secretStores; /** SecretStores are servers where resource secrets (passwords, keys) are stored. */ @@ -472,6 +479,7 @@ private Client(Client client) { this.roleResourcesHistory = new RoleResourcesHistory(this.channel, this); this.roles = new Roles(this.channel, this); this.rolesHistory = new RolesHistory(this.channel, this); + this.secretStoreHealths = new SecretStoreHealths(this.channel, this); this.secretStores = new SecretStores(this.channel, this); this.secretStoresHistory = new SecretStoresHistory(this.channel, this); this.workflowApprovers = new WorkflowApprovers(this.channel, this); @@ -537,6 +545,7 @@ public Client(String apiAccessKey, String apiSecretKey, ClientOptions options) this.roleResourcesHistory = new RoleResourcesHistory(this.channel, this); this.roles = new Roles(this.channel, this); this.rolesHistory = new RolesHistory(this.channel, this); + this.secretStoreHealths = new SecretStoreHealths(this.channel, this); this.secretStores = new SecretStores(this.channel, this); this.secretStoresHistory = new SecretStoresHistory(this.channel, this); this.workflowApprovers = new WorkflowApprovers(this.channel, this); diff --git a/com/strongdm/api/SecretStoreHealth.java b/com/strongdm/api/SecretStoreHealth.java new file mode 100644 index 0000000..9e26023 --- /dev/null +++ b/com/strongdm/api/SecretStoreHealth.java @@ -0,0 +1,113 @@ +// Copyright 2020 StrongDM Inc +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// Code generated by protogen. DO NOT EDIT. + +package com.strongdm.api; + +import java.util.Date; +import java.util.List; + +/** + * SecretStoreHealth denotes a secret store's health status. Note a secret store is not healthy in + * terms of a simple boolean, but rather healthy with respect to a particular node or set of nodes. + */ +public class SecretStoreHealth { + private Date changedAt; + /** The time when the status last changed */ + public Date getChangedAt() { + return this.changedAt; + } + /** The time when the status last changed */ + public void setChangedAt(Date in) { + this.changedAt = in; + } + + private Date checkedAt; + /** The time when the status was last checked by the node */ + public Date getCheckedAt() { + return this.checkedAt; + } + /** The time when the status was last checked by the node */ + public void setCheckedAt(Date in) { + this.checkedAt = in; + } + + private String error; + /** + * The error associated with this health check, if it occurred after reachability checks + * succeeded. + */ + public String getError() { + return this.error; + } + /** + * The error associated with this health check, if it occurred after reachability checks + * succeeded. + */ + public void setError(String in) { + this.error = in; + } + + private List flags; + /** Any specific status or error flags associated with this health check. */ + public List getFlags() { + return this.flags; + } + /** Any specific status or error flags associated with this health check. */ + public void setFlags(List in) { + this.flags = in; + } + + private String nodeId; + /** Associated node id for this health */ + public String getNodeId() { + return this.nodeId; + } + /** Associated node id for this health */ + public void setNodeId(String in) { + this.nodeId = in; + } + + private String reachability; + /** The error associated with this health check, if it occurred during reachability checks. */ + public String getReachability() { + return this.reachability; + } + /** The error associated with this health check, if it occurred during reachability checks. */ + public void setReachability(String in) { + this.reachability = in; + } + + private String secretStoreId; + /** Associated secret store for this health */ + public String getSecretStoreId() { + return this.secretStoreId; + } + /** Associated secret store for this health */ + public void setSecretStoreId(String in) { + this.secretStoreId = in; + } + + private String status; + /** The status of the link between the node and secret store */ + public String getStatus() { + return this.status; + } + /** The status of the link between the node and secret store */ + public void setStatus(String in) { + this.status = in; + } +} diff --git a/com/strongdm/api/SecretStoreHealthListResponse.java b/com/strongdm/api/SecretStoreHealthListResponse.java new file mode 100644 index 0000000..20bebc0 --- /dev/null +++ b/com/strongdm/api/SecretStoreHealthListResponse.java @@ -0,0 +1,30 @@ +// Copyright 2020 StrongDM Inc +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// Code generated by protogen. DO NOT EDIT. + +package com.strongdm.api; + +public class SecretStoreHealthListResponse { + private RateLimitMetadata rateLimit; + /** Rate limit information. */ + public RateLimitMetadata getRateLimit() { + return this.rateLimit; + } + /** Rate limit information. */ + public void setRateLimit(RateLimitMetadata in) { + this.rateLimit = in; + } +} diff --git a/com/strongdm/api/SecretStoreHealthcheckResponse.java b/com/strongdm/api/SecretStoreHealthcheckResponse.java new file mode 100644 index 0000000..be65cab --- /dev/null +++ b/com/strongdm/api/SecretStoreHealthcheckResponse.java @@ -0,0 +1,30 @@ +// Copyright 2020 StrongDM Inc +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// Code generated by protogen. DO NOT EDIT. + +package com.strongdm.api; + +public class SecretStoreHealthcheckResponse { + private RateLimitMetadata rateLimit; + /** Rate limit information. */ + public RateLimitMetadata getRateLimit() { + return this.rateLimit; + } + /** Rate limit information. */ + public void setRateLimit(RateLimitMetadata in) { + this.rateLimit = in; + } +} diff --git a/com/strongdm/api/SecretStoreHealths.java b/com/strongdm/api/SecretStoreHealths.java new file mode 100644 index 0000000..5f69845 --- /dev/null +++ b/com/strongdm/api/SecretStoreHealths.java @@ -0,0 +1,141 @@ +// Copyright 2020 StrongDM Inc +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// Code generated by protogen. DO NOT EDIT. + +package com.strongdm.api; + +import com.strongdm.api.plumbing.PageIterator; +import com.strongdm.api.plumbing.PageResult; +import com.strongdm.api.plumbing.Plumbing; +import com.strongdm.api.plumbing.SecretStoreHealthsGrpc; +import com.strongdm.api.plumbing.SecretStoreHealthsPlumbing; +import com.strongdm.api.plumbing.Spec.ListRequestMetadata; +import io.grpc.ManagedChannel; +import java.util.Iterator; +import java.util.List; +import java.util.concurrent.TimeUnit; +import java.util.function.Supplier; + +/** SecretStoreHealths exposes health states for secret stores. */ +public class SecretStoreHealths { + private final SecretStoreHealthsGrpc.SecretStoreHealthsBlockingStub stub; + private final Client parent; + + public SecretStoreHealths(ManagedChannel channel, Client client) { + + this.stub = SecretStoreHealthsGrpc.newBlockingStub(channel); + this.parent = client; + } + + private SecretStoreHealths( + SecretStoreHealthsGrpc.SecretStoreHealthsBlockingStub stub, Client client) { + this.stub = stub; + this.parent = client; + } + + /** + * This function returns a copy of the SecretStoreHealths service which has the given deadline set + * for all method calls. + */ + public SecretStoreHealths withDeadlineAfter(long duration, TimeUnit units) { + return new SecretStoreHealths(this.stub.withDeadlineAfter(duration, units), this.parent); + } + /** List reports the health status of node to secret store pairs. */ + public Iterable list(String filter, Object... args) throws RpcException { + SecretStoreHealthsPlumbing.SecretStoreHealthListRequest.Builder builder = + SecretStoreHealthsPlumbing.SecretStoreHealthListRequest.newBuilder(); + builder.setFilter(Plumbing.quoteFilterArgs(filter, args)); + ListRequestMetadata.Builder metaBuilder = ListRequestMetadata.newBuilder(); + if (this.parent.pageLimit > 0) { + metaBuilder.setLimit(this.parent.pageLimit); + } + if (this.parent.snapshotDate != null) { + metaBuilder.setSnapshotAt(Plumbing.convertTimestampToPlumbing(this.parent.snapshotDate)); + } + builder.setMeta(metaBuilder); + + Supplier> pageFetcher = + () -> { + // Note: this closure captures and reuses the builder to set the next page + SecretStoreHealthsPlumbing.SecretStoreHealthListRequest req = builder.build(); + SecretStoreHealthsPlumbing.SecretStoreHealthListResponse plumbingResponse; + int tries = 0; + while (true) { + try { + plumbingResponse = + this.stub + .withCallCredentials( + this.parent.getCallCredentials("SecretStoreHealths.List", req)) + .list(req); + } catch (Exception e) { + if (this.parent.shouldRetry(tries, e)) { + tries++; + this.parent.jitterSleep(tries); + continue; + } + throw Plumbing.convertExceptionToPorcelain(e); + } + break; + } + + List page = + Plumbing.convertRepeatedSecretStoreHealthToPorcelain( + plumbingResponse.getSecretStoreHealthsList()); + + boolean hasNextCursor = plumbingResponse.getMeta().getNextCursor() != ""; + builder.setMeta( + ListRequestMetadata.newBuilder() + .setCursor(plumbingResponse.getMeta().getNextCursor())); + + return new PageResult(page, hasNextCursor); + }; + + Iterator iterator = new PageIterator<>(pageFetcher); + + return () -> iterator; + } + /** + * Healthcheck triggers a remote healthcheck request for a secret store. It may take minutes to + * propagate across a large network of Nodes. The call will return immediately, and the updated + * health of the Secret Store can be retrieved via List. + */ + public SecretStoreHealthcheckResponse healthcheck(String secretStoreId) throws RpcException { + SecretStoreHealthsPlumbing.SecretStoreHealthcheckRequest.Builder builder = + SecretStoreHealthsPlumbing.SecretStoreHealthcheckRequest.newBuilder(); + builder.setSecretStoreId((secretStoreId)); + SecretStoreHealthsPlumbing.SecretStoreHealthcheckRequest req = builder.build(); + SecretStoreHealthsPlumbing.SecretStoreHealthcheckResponse plumbingResponse; + int tries = 0; + while (true) { + try { + plumbingResponse = + this.stub + .withCallCredentials( + this.parent.getCallCredentials("SecretStoreHealths.Healthcheck", req)) + .healthcheck(req); + } catch (Exception e) { + if (this.parent.shouldRetry(tries, e)) { + tries++; + this.parent.jitterSleep(tries); + continue; + } + throw Plumbing.convertExceptionToPorcelain(e); + } + break; + } + return Plumbing.convertSecretStoreHealthcheckResponseToPorcelain(plumbingResponse); + } +} diff --git a/com/strongdm/api/SigningCallCredential.java b/com/strongdm/api/SigningCallCredential.java index c8ca55f..ac5c5ee 100644 --- a/com/strongdm/api/SigningCallCredential.java +++ b/com/strongdm/api/SigningCallCredential.java @@ -23,7 +23,7 @@ class SigningCallCredential extends CallCredentials { private final String apiAccessKey; private final String signature; private static final String API_VERSION = "2021-08-23"; - private static final String USER_AGENT = "strongdm-sdk-java/6.2.1"; + private static final String USER_AGENT = "strongdm-sdk-java/6.3.0"; protected SigningCallCredential(String apiAccessKey, String signature) { this.apiAccessKey = apiAccessKey; diff --git a/com/strongdm/api/plumbing/Options.java b/com/strongdm/api/plumbing/Options.java index 9bfe15d..2aab44d 100644 --- a/com/strongdm/api/plumbing/Options.java +++ b/com/strongdm/api/plumbing/Options.java @@ -2067,6 +2067,47 @@ public interface MethodOptionsOrBuilder extends */ com.google.protobuf.ByteString getDeprecationDateBytes(); + + /** + *
+     * targets indicates that the method should only be exposed in the provided targets.
+     * 
+ * + * repeated string targets = 1941401; + * @return A list containing the targets. + */ + java.util.List + getTargetsList(); + /** + *
+     * targets indicates that the method should only be exposed in the provided targets.
+     * 
+ * + * repeated string targets = 1941401; + * @return The count of targets. + */ + int getTargetsCount(); + /** + *
+     * targets indicates that the method should only be exposed in the provided targets.
+     * 
+ * + * repeated string targets = 1941401; + * @param index The index of the element to return. + * @return The targets at the given index. + */ + java.lang.String getTargets(int index); + /** + *
+     * targets indicates that the method should only be exposed in the provided targets.
+     * 
+ * + * repeated string targets = 1941401; + * @param index The index of the value to return. + * @return The bytes of the targets at the given index. + */ + com.google.protobuf.ByteString + getTargetsBytes(int index); } /** * Protobuf type {@code v1.MethodOptions} @@ -2084,6 +2125,7 @@ private MethodOptions() { method_ = ""; url_ = ""; deprecationDate_ = ""; + targets_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @@ -2106,6 +2148,7 @@ private MethodOptions( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } + int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -2134,6 +2177,15 @@ private MethodOptions( deprecationDate_ = s; break; } + case 15531210: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + targets_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + targets_.add(s); + break; + } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -2151,6 +2203,9 @@ private MethodOptions( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + targets_ = targets_.getUnmodifiableView(); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -2306,6 +2361,57 @@ public java.lang.String getDeprecationDate() { } } + public static final int TARGETS_FIELD_NUMBER = 1941401; + private com.google.protobuf.LazyStringList targets_; + /** + *
+     * targets indicates that the method should only be exposed in the provided targets.
+     * 
+ * + * repeated string targets = 1941401; + * @return A list containing the targets. + */ + public com.google.protobuf.ProtocolStringList + getTargetsList() { + return targets_; + } + /** + *
+     * targets indicates that the method should only be exposed in the provided targets.
+     * 
+ * + * repeated string targets = 1941401; + * @return The count of targets. + */ + public int getTargetsCount() { + return targets_.size(); + } + /** + *
+     * targets indicates that the method should only be exposed in the provided targets.
+     * 
+ * + * repeated string targets = 1941401; + * @param index The index of the element to return. + * @return The targets at the given index. + */ + public java.lang.String getTargets(int index) { + return targets_.get(index); + } + /** + *
+     * targets indicates that the method should only be exposed in the provided targets.
+     * 
+ * + * repeated string targets = 1941401; + * @param index The index of the value to return. + * @return The bytes of the targets at the given index. + */ + public com.google.protobuf.ByteString + getTargetsBytes(int index) { + return targets_.getByteString(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -2329,6 +2435,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deprecationDate_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1941302, deprecationDate_); } + for (int i = 0; i < targets_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1941401, targets_.getRaw(i)); + } unknownFields.writeTo(output); } @@ -2347,6 +2456,14 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deprecationDate_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1941302, deprecationDate_); } + { + int dataSize = 0; + for (int i = 0; i < targets_.size(); i++) { + dataSize += computeStringSizeNoTag(targets_.getRaw(i)); + } + size += dataSize; + size += 4 * getTargetsList().size(); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -2368,6 +2485,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getUrl())) return false; if (!getDeprecationDate() .equals(other.getDeprecationDate())) return false; + if (!getTargetsList() + .equals(other.getTargetsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2385,6 +2504,10 @@ public int hashCode() { hash = (53 * hash) + getUrl().hashCode(); hash = (37 * hash) + DEPRECATION_DATE_FIELD_NUMBER; hash = (53 * hash) + getDeprecationDate().hashCode(); + if (getTargetsCount() > 0) { + hash = (37 * hash) + TARGETS_FIELD_NUMBER; + hash = (53 * hash) + getTargetsList().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -2524,6 +2647,8 @@ public Builder clear() { deprecationDate_ = ""; + targets_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -2550,9 +2675,15 @@ public com.strongdm.api.plumbing.Options.MethodOptions build() { @java.lang.Override public com.strongdm.api.plumbing.Options.MethodOptions buildPartial() { com.strongdm.api.plumbing.Options.MethodOptions result = new com.strongdm.api.plumbing.Options.MethodOptions(this); + int from_bitField0_ = bitField0_; result.method_ = method_; result.url_ = url_; result.deprecationDate_ = deprecationDate_; + if (((bitField0_ & 0x00000001) != 0)) { + targets_ = targets_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.targets_ = targets_; onBuilt(); return result; } @@ -2613,6 +2744,16 @@ public Builder mergeFrom(com.strongdm.api.plumbing.Options.MethodOptions other) deprecationDate_ = other.deprecationDate_; onChanged(); } + if (!other.targets_.isEmpty()) { + if (targets_.isEmpty()) { + targets_ = other.targets_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTargetsIsMutable(); + targets_.addAll(other.targets_); + } + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -2641,6 +2782,7 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object method_ = ""; /** @@ -2929,6 +3071,152 @@ public Builder setDeprecationDateBytes( onChanged(); return this; } + + private com.google.protobuf.LazyStringList targets_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTargetsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + targets_ = new com.google.protobuf.LazyStringArrayList(targets_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * targets indicates that the method should only be exposed in the provided targets.
+       * 
+ * + * repeated string targets = 1941401; + * @return A list containing the targets. + */ + public com.google.protobuf.ProtocolStringList + getTargetsList() { + return targets_.getUnmodifiableView(); + } + /** + *
+       * targets indicates that the method should only be exposed in the provided targets.
+       * 
+ * + * repeated string targets = 1941401; + * @return The count of targets. + */ + public int getTargetsCount() { + return targets_.size(); + } + /** + *
+       * targets indicates that the method should only be exposed in the provided targets.
+       * 
+ * + * repeated string targets = 1941401; + * @param index The index of the element to return. + * @return The targets at the given index. + */ + public java.lang.String getTargets(int index) { + return targets_.get(index); + } + /** + *
+       * targets indicates that the method should only be exposed in the provided targets.
+       * 
+ * + * repeated string targets = 1941401; + * @param index The index of the value to return. + * @return The bytes of the targets at the given index. + */ + public com.google.protobuf.ByteString + getTargetsBytes(int index) { + return targets_.getByteString(index); + } + /** + *
+       * targets indicates that the method should only be exposed in the provided targets.
+       * 
+ * + * repeated string targets = 1941401; + * @param index The index to set the value at. + * @param value The targets to set. + * @return This builder for chaining. + */ + public Builder setTargets( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetsIsMutable(); + targets_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * targets indicates that the method should only be exposed in the provided targets.
+       * 
+ * + * repeated string targets = 1941401; + * @param value The targets to add. + * @return This builder for chaining. + */ + public Builder addTargets( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetsIsMutable(); + targets_.add(value); + onChanged(); + return this; + } + /** + *
+       * targets indicates that the method should only be exposed in the provided targets.
+       * 
+ * + * repeated string targets = 1941401; + * @param values The targets to add. + * @return This builder for chaining. + */ + public Builder addAllTargets( + java.lang.Iterable values) { + ensureTargetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, targets_); + onChanged(); + return this; + } + /** + *
+       * targets indicates that the method should only be exposed in the provided targets.
+       * 
+ * + * repeated string targets = 1941401; + * @return This builder for chaining. + */ + public Builder clearTargets() { + targets_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * targets indicates that the method should only be exposed in the provided targets.
+       * 
+ * + * repeated string targets = 1941401; + * @param value The bytes of the targets to add. + * @return This builder for chaining. + */ + public Builder addTargetsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTargetsIsMutable(); + targets_.add(value); + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -11015,62 +11303,63 @@ public com.strongdm.api.plumbing.Options.TerraformDocs getDefaultInstanceForType "refix\030\232\277v \001(\t\022\021\n\007targets\030\231\277v \003(\t\022#\n\031disa" + "ble_snapshot_vertical\030\233\277v \001(\010\022\035\n\023skip_cl" + "i_generation\030\234\277v \001(\010:\027\372\370\263\007\022\322\363\263\007\r!json_ga" + - "teway\"e\n\rMethodOptions\022\020\n\006method\030\264\276v \001(\t" + + "teway\"x\n\rMethodOptions\022\020\n\006method\030\264\276v \001(\t" + "\022\r\n\003url\030\265\276v \001(\t\022\032\n\020deprecation_date\030\266\276v " + - "\001(\t:\027\372\370\263\007\022\322\363\263\007\r!json_gateway\"\315\001\n\016Message" + - "Options\022\023\n\tporcelain\030\265\276v \001(\010\022\017\n\005error\030\266\276" + - "v \001(\005\022\027\n\roptions_field\030\267\276v \001(\t\022\021\n\007target" + - "s\030\272\276v \003(\t\022+\n\016terraform_docs\030\270\276v \001(\0132\021.v1" + - ".TerraformDocs\022#\n\006custom\030\271\276v \001(\0132\021.v1.Cu" + - "stomOptions:\027\372\370\263\007\022\322\363\263\007\r!json_gateway\"@\n\014" + - "OneofOptions\022\027\n\rcommon_fields\030\205\277v \003(\t:\027\372" + - "\370\263\007\022\322\363\263\007\r!json_gateway\"\217\004\n\014FieldOptions\022" + - "\023\n\tporcelain\030\266\276v \001(\010\022\022\n\010iterable\030\267\276v \001(\010" + - "\022\022\n\010required\030\270\276v \001(\010\022\024\n\nwrite_only\030\275\276v \001" + - "(\010\022\023\n\tread_only\030\303\276v \001(\010\022\027\n\ris_credential" + - "\030\304\276v \001(\010\022\021\n\007targets\030\306\276v \003(\t\022\035\n\023terraform" + - "_force_new\030\274\276v \001(\010\022\035\n\023terraform_sensitiv" + - "e\030\276\276v \001(\010\022&\n\034terraform_diff_suppress_fun" + - "c\030\307\276v \001(\t\022\034\n\022terraform_computed\030\312\276v \001(\010\022" + - "#\n\006custom\030\271\276v \001(\0132\021.v1.CustomOptions\022D\n\022" + - "read_only_override\030\300\276v \003(\0132&.v1.FieldOpt" + - "ions.ReadOnlyOverrideEntry\022\023\n\tcondition\030" + - "\313\276v \001(\t\022\025\n\013expect_file\030\314\276v \001(\010\0327\n\025ReadOn" + - "lyOverrideEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + - "\001(\010:\0028\001:\027\372\370\263\007\022\322\363\263\007\r!json_gateway\"\217\005\n\rCus" + - "tomOptions\022\023\n\tconverter\030\275\276v \001(\t\022O\n\027porce" + - "lain_type_override\030\276\276v \003(\0132,.v1.CustomOp" + - "tions.PorcelainTypeOverrideEntry\022O\n\027porc" + - "elain_name_override\030\310\276v \003(\0132,.v1.CustomO" + - "ptions.PorcelainNameOverrideEntry\022B\n\020com" + - "ment_override\030\323\276v \003(\0132&.v1.CustomOptions" + - ".CommentOverrideEntry\022H\n\023deprecated_over" + - "ride\030\300\276v \003(\0132).v1.CustomOptions.Deprecat" + - "edOverrideEntry\022\035\n\023terraform_elem_type\030\277" + - "\276v \001(\t\022\022\n\010unstable\030\301\276v \001(\010\032<\n\032PorcelainT" + - "ypeOverrideEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" + - " \001(\t:\0028\001\032<\n\032PorcelainNameOverrideEntry\022\013" + - "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0326\n\024Commen" + - "tOverrideEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + - "(\t:\0028\001\0329\n\027DeprecatedOverrideEntry\022\013\n\003key" + - "\030\001 \001(\t\022\r\n\005value\030\002 \001(\010:\0028\001:\027\372\370\263\007\022\322\363\263\007\r!js" + - "on_gateway\"m\n\rTerraformDocs\022\037\n\025resource_" + - "example_path\030\264\276v \001(\t\022\"\n\030data_source_exam" + - "ple_path\030\265\276v \001(\t:\027\372\370\263\007\022\322\363\263\007\r!json_gatewa" + - "y:E\n\014file_options\022\034.google.protobuf.File" + - "Options\030\250\302v \001(\0132\017.v1.FileOptions:N\n\017serv" + - "ice_options\022\037.google.protobuf.ServiceOpt" + - "ions\030\231\277v \001(\0132\022.v1.ServiceOptions:K\n\016meth" + - "od_options\022\036.google.protobuf.MethodOptio" + - "ns\030\220\277v \001(\0132\021.v1.MethodOptions:N\n\017message" + - "_options\022\037.google.protobuf.MessageOption" + - "s\030\217\277v \001(\0132\022.v1.MessageOptions:H\n\roneof_o" + - "ptions\022\035.google.protobuf.OneofOptions\030\205\277" + - "v \001(\0132\020.v1.OneofOptions:H\n\rfield_options" + - "\022\035.google.protobuf.FieldOptions\030\216\277v \001(\0132" + - "\020.v1.FieldOptionsBR\n\031com.strongdm.api.pl" + - "umbingZ5github.com/strongdm/strongdm-sdk" + - "-go/v3/internal/v1;v1b\006proto3" + "\001(\t\022\021\n\007targets\030\231\277v \003(\t:\027\372\370\263\007\022\322\363\263\007\r!json_" + + "gateway\"\315\001\n\016MessageOptions\022\023\n\tporcelain\030" + + "\265\276v \001(\010\022\017\n\005error\030\266\276v \001(\005\022\027\n\roptions_fiel" + + "d\030\267\276v \001(\t\022\021\n\007targets\030\272\276v \003(\t\022+\n\016terrafor" + + "m_docs\030\270\276v \001(\0132\021.v1.TerraformDocs\022#\n\006cus" + + "tom\030\271\276v \001(\0132\021.v1.CustomOptions:\027\372\370\263\007\022\322\363\263" + + "\007\r!json_gateway\"@\n\014OneofOptions\022\027\n\rcommo" + + "n_fields\030\205\277v \003(\t:\027\372\370\263\007\022\322\363\263\007\r!json_gatewa" + + "y\"\217\004\n\014FieldOptions\022\023\n\tporcelain\030\266\276v \001(\010\022" + + "\022\n\010iterable\030\267\276v \001(\010\022\022\n\010required\030\270\276v \001(\010\022" + + "\024\n\nwrite_only\030\275\276v \001(\010\022\023\n\tread_only\030\303\276v \001" + + "(\010\022\027\n\ris_credential\030\304\276v \001(\010\022\021\n\007targets\030\306" + + "\276v \003(\t\022\035\n\023terraform_force_new\030\274\276v \001(\010\022\035\n" + + "\023terraform_sensitive\030\276\276v \001(\010\022&\n\034terrafor" + + "m_diff_suppress_func\030\307\276v \001(\t\022\034\n\022terrafor" + + "m_computed\030\312\276v \001(\010\022#\n\006custom\030\271\276v \001(\0132\021.v" + + "1.CustomOptions\022D\n\022read_only_override\030\300\276" + + "v \003(\0132&.v1.FieldOptions.ReadOnlyOverride" + + "Entry\022\023\n\tcondition\030\313\276v \001(\t\022\025\n\013expect_fil" + + "e\030\314\276v \001(\010\0327\n\025ReadOnlyOverrideEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\010:\0028\001:\027\372\370\263\007\022\322\363\263\007\r!j" + + "son_gateway\"\217\005\n\rCustomOptions\022\023\n\tconvert" + + "er\030\275\276v \001(\t\022O\n\027porcelain_type_override\030\276\276" + + "v \003(\0132,.v1.CustomOptions.PorcelainTypeOv" + + "errideEntry\022O\n\027porcelain_name_override\030\310" + + "\276v \003(\0132,.v1.CustomOptions.PorcelainNameO" + + "verrideEntry\022B\n\020comment_override\030\323\276v \003(\013" + + "2&.v1.CustomOptions.CommentOverrideEntry" + + "\022H\n\023deprecated_override\030\300\276v \003(\0132).v1.Cus" + + "tomOptions.DeprecatedOverrideEntry\022\035\n\023te" + + "rraform_elem_type\030\277\276v \001(\t\022\022\n\010unstable\030\301\276" + + "v \001(\010\032<\n\032PorcelainTypeOverrideEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032<\n\032Porcelain" + + "NameOverrideEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + + "\002 \001(\t:\0028\001\0326\n\024CommentOverrideEntry\022\013\n\003key" + + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0329\n\027DeprecatedO" + + "verrideEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\010" + + ":\0028\001:\027\372\370\263\007\022\322\363\263\007\r!json_gateway\"m\n\rTerrafo" + + "rmDocs\022\037\n\025resource_example_path\030\264\276v \001(\t\022" + + "\"\n\030data_source_example_path\030\265\276v \001(\t:\027\372\370\263" + + "\007\022\322\363\263\007\r!json_gateway:E\n\014file_options\022\034.g" + + "oogle.protobuf.FileOptions\030\250\302v \001(\0132\017.v1." + + "FileOptions:N\n\017service_options\022\037.google." + + "protobuf.ServiceOptions\030\231\277v \001(\0132\022.v1.Ser" + + "viceOptions:K\n\016method_options\022\036.google.p" + + "rotobuf.MethodOptions\030\220\277v \001(\0132\021.v1.Metho" + + "dOptions:N\n\017message_options\022\037.google.pro" + + "tobuf.MessageOptions\030\217\277v \001(\0132\022.v1.Messag" + + "eOptions:H\n\roneof_options\022\035.google.proto" + + "buf.OneofOptions\030\205\277v \001(\0132\020.v1.OneofOptio" + + "ns:H\n\rfield_options\022\035.google.protobuf.Fi" + + "eldOptions\030\216\277v \001(\0132\020.v1.FieldOptionsBR\n\031" + + "com.strongdm.api.plumbingZ5github.com/st" + + "rongdm/strongdm-sdk-go/v3/internal/v1;v1" + + "b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -11094,7 +11383,7 @@ public com.strongdm.api.plumbing.Options.TerraformDocs getDefaultInstanceForType internal_static_v1_MethodOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_MethodOptions_descriptor, - new java.lang.String[] { "Method", "Url", "DeprecationDate", }); + new java.lang.String[] { "Method", "Url", "DeprecationDate", "Targets", }); internal_static_v1_MessageOptions_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_v1_MessageOptions_fieldAccessorTable = new diff --git a/com/strongdm/api/plumbing/Plumbing.java b/com/strongdm/api/plumbing/Plumbing.java index 103692f..9acf2ab 100644 --- a/com/strongdm/api/plumbing/Plumbing.java +++ b/com/strongdm/api/plumbing/Plumbing.java @@ -64,6 +64,7 @@ import com.strongdm.api.plumbing.RoleResourcesPlumbing.*; import com.strongdm.api.plumbing.RolesHistoryPlumbing.*; import com.strongdm.api.plumbing.RolesPlumbing.*; +import com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.*; import com.strongdm.api.plumbing.SecretStoresHistoryPlumbing.*; import com.strongdm.api.plumbing.SecretStoresPlumbing.*; import com.strongdm.api.plumbing.SecretStoresTypesPlumbing.*; @@ -13119,6 +13120,155 @@ public static List convertRepeatedSecretStoreGetResponse .collect(Collectors.toList()); } + public static com.strongdm.api.SecretStoreHealth convertSecretStoreHealthToPorcelain( + SecretStoreHealth plumbing) { + com.strongdm.api.SecretStoreHealth porcelain = new com.strongdm.api.SecretStoreHealth(); + porcelain.setChangedAt(Plumbing.convertTimestampToPorcelain(plumbing.getChangedAt())); + porcelain.setCheckedAt(Plumbing.convertTimestampToPorcelain(plumbing.getCheckedAt())); + porcelain.setError((plumbing.getError())); + porcelain.setFlags((plumbing.getFlagsList())); + porcelain.setNodeId((plumbing.getNodeId())); + porcelain.setReachability((plumbing.getReachability())); + porcelain.setSecretStoreId((plumbing.getSecretStoreId())); + porcelain.setStatus((plumbing.getStatus())); + return porcelain; + } + + public static SecretStoreHealth convertSecretStoreHealthToPlumbing( + com.strongdm.api.SecretStoreHealth porcelain) { + if (porcelain == null) { + return null; + } + SecretStoreHealth.Builder builder = SecretStoreHealth.newBuilder(); + if (porcelain.getChangedAt() != null) { + builder.setChangedAt(Plumbing.convertTimestampToPlumbing(porcelain.getChangedAt())); + } + if (porcelain.getCheckedAt() != null) { + builder.setCheckedAt(Plumbing.convertTimestampToPlumbing(porcelain.getCheckedAt())); + } + if (porcelain.getError() != null) { + builder.setError((porcelain.getError())); + } + builder.addAllFlags((porcelain.getFlags())); + if (porcelain.getNodeId() != null) { + builder.setNodeId((porcelain.getNodeId())); + } + if (porcelain.getReachability() != null) { + builder.setReachability((porcelain.getReachability())); + } + if (porcelain.getSecretStoreId() != null) { + builder.setSecretStoreId((porcelain.getSecretStoreId())); + } + if (porcelain.getStatus() != null) { + builder.setStatus((porcelain.getStatus())); + } + return builder.build(); + } + + public static List + convertRepeatedSecretStoreHealthToPorcelain(Collection plumbings) { + if (plumbings == null) { + return new ArrayList(); + } + return plumbings.stream() + .map(plumbing -> convertSecretStoreHealthToPorcelain(plumbing)) + .collect(Collectors.toList()); + } + + public static List convertRepeatedSecretStoreHealthToPlumbing( + Collection porcelains) { + if (porcelains == null) { + return new ArrayList(); + } + return porcelains.stream() + .map(porcelain -> convertSecretStoreHealthToPlumbing(porcelain)) + .collect(Collectors.toList()); + } + + public static com.strongdm.api.SecretStoreHealthListResponse + convertSecretStoreHealthListResponseToPorcelain(SecretStoreHealthListResponse plumbing) { + com.strongdm.api.SecretStoreHealthListResponse porcelain = + new com.strongdm.api.SecretStoreHealthListResponse(); + porcelain.setRateLimit(Plumbing.convertRateLimitMetadataToPorcelain(plumbing.getRateLimit())); + return porcelain; + } + + public static SecretStoreHealthListResponse convertSecretStoreHealthListResponseToPlumbing( + com.strongdm.api.SecretStoreHealthListResponse porcelain) { + if (porcelain == null) { + return null; + } + SecretStoreHealthListResponse.Builder builder = SecretStoreHealthListResponse.newBuilder(); + if (porcelain.getRateLimit() != null) { + builder.setRateLimit(Plumbing.convertRateLimitMetadataToPlumbing(porcelain.getRateLimit())); + } + return builder.build(); + } + + public static List + convertRepeatedSecretStoreHealthListResponseToPorcelain( + Collection plumbings) { + if (plumbings == null) { + return new ArrayList(); + } + return plumbings.stream() + .map(plumbing -> convertSecretStoreHealthListResponseToPorcelain(plumbing)) + .collect(Collectors.toList()); + } + + public static List + convertRepeatedSecretStoreHealthListResponseToPlumbing( + Collection porcelains) { + if (porcelains == null) { + return new ArrayList(); + } + return porcelains.stream() + .map(porcelain -> convertSecretStoreHealthListResponseToPlumbing(porcelain)) + .collect(Collectors.toList()); + } + + public static com.strongdm.api.SecretStoreHealthcheckResponse + convertSecretStoreHealthcheckResponseToPorcelain(SecretStoreHealthcheckResponse plumbing) { + com.strongdm.api.SecretStoreHealthcheckResponse porcelain = + new com.strongdm.api.SecretStoreHealthcheckResponse(); + porcelain.setRateLimit(Plumbing.convertRateLimitMetadataToPorcelain(plumbing.getRateLimit())); + return porcelain; + } + + public static SecretStoreHealthcheckResponse convertSecretStoreHealthcheckResponseToPlumbing( + com.strongdm.api.SecretStoreHealthcheckResponse porcelain) { + if (porcelain == null) { + return null; + } + SecretStoreHealthcheckResponse.Builder builder = SecretStoreHealthcheckResponse.newBuilder(); + if (porcelain.getRateLimit() != null) { + builder.setRateLimit(Plumbing.convertRateLimitMetadataToPlumbing(porcelain.getRateLimit())); + } + return builder.build(); + } + + public static List + convertRepeatedSecretStoreHealthcheckResponseToPorcelain( + Collection plumbings) { + if (plumbings == null) { + return new ArrayList(); + } + return plumbings.stream() + .map(plumbing -> convertSecretStoreHealthcheckResponseToPorcelain(plumbing)) + .collect(Collectors.toList()); + } + + public static List + convertRepeatedSecretStoreHealthcheckResponseToPlumbing( + Collection porcelains) { + if (porcelains == null) { + return new ArrayList(); + } + return porcelains.stream() + .map(porcelain -> convertSecretStoreHealthcheckResponseToPlumbing(porcelain)) + .collect(Collectors.toList()); + } + public static com.strongdm.api.SecretStoreHistory convertSecretStoreHistoryToPorcelain( SecretStoreHistory plumbing) { com.strongdm.api.SecretStoreHistory porcelain = new com.strongdm.api.SecretStoreHistory(); diff --git a/com/strongdm/api/plumbing/SecretStoreHealthsGrpc.java b/com/strongdm/api/plumbing/SecretStoreHealthsGrpc.java new file mode 100644 index 0000000..a3b2b94 --- /dev/null +++ b/com/strongdm/api/plumbing/SecretStoreHealthsGrpc.java @@ -0,0 +1,513 @@ +// Copyright 2020 StrongDM Inc +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +package com.strongdm.api.plumbing; + +import static io.grpc.MethodDescriptor.generateFullMethodName; +import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; +import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; +import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; +import static io.grpc.stub.ClientCalls.asyncUnaryCall; +import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; +import static io.grpc.stub.ClientCalls.blockingUnaryCall; +import static io.grpc.stub.ClientCalls.futureUnaryCall; +import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; +import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; +import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; +import static io.grpc.stub.ServerCalls.asyncUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; + +/** + *
+ * SecretStoreHealths exposes health states for secret stores.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.26.0)", + comments = "Source: secret_store_healths.proto") +public final class SecretStoreHealthsGrpc { + + private SecretStoreHealthsGrpc() {} + + public static final String SERVICE_NAME = "v1.SecretStoreHealths"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "List", + requestType = com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListRequest.class, + responseType = com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListMethod() { + io.grpc.MethodDescriptor getListMethod; + if ((getListMethod = SecretStoreHealthsGrpc.getListMethod) == null) { + synchronized (SecretStoreHealthsGrpc.class) { + if ((getListMethod = SecretStoreHealthsGrpc.getListMethod) == null) { + SecretStoreHealthsGrpc.getListMethod = getListMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "List")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListResponse.getDefaultInstance())) + .setSchemaDescriptor(new SecretStoreHealthsMethodDescriptorSupplier("List")) + .build(); + } + } + } + return getListMethod; + } + + private static volatile io.grpc.MethodDescriptor getCheckMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "Check", + requestType = com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckRequest.class, + responseType = com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCheckMethod() { + io.grpc.MethodDescriptor getCheckMethod; + if ((getCheckMethod = SecretStoreHealthsGrpc.getCheckMethod) == null) { + synchronized (SecretStoreHealthsGrpc.class) { + if ((getCheckMethod = SecretStoreHealthsGrpc.getCheckMethod) == null) { + SecretStoreHealthsGrpc.getCheckMethod = getCheckMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Check")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckResponse.getDefaultInstance())) + .setSchemaDescriptor(new SecretStoreHealthsMethodDescriptorSupplier("Check")) + .build(); + } + } + } + return getCheckMethod; + } + + private static volatile io.grpc.MethodDescriptor getHealthcheckMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "Healthcheck", + requestType = com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckRequest.class, + responseType = com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getHealthcheckMethod() { + io.grpc.MethodDescriptor getHealthcheckMethod; + if ((getHealthcheckMethod = SecretStoreHealthsGrpc.getHealthcheckMethod) == null) { + synchronized (SecretStoreHealthsGrpc.class) { + if ((getHealthcheckMethod = SecretStoreHealthsGrpc.getHealthcheckMethod) == null) { + SecretStoreHealthsGrpc.getHealthcheckMethod = getHealthcheckMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Healthcheck")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckResponse.getDefaultInstance())) + .setSchemaDescriptor(new SecretStoreHealthsMethodDescriptorSupplier("Healthcheck")) + .build(); + } + } + } + return getHealthcheckMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static SecretStoreHealthsStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SecretStoreHealthsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecretStoreHealthsStub(channel, callOptions); + } + }; + return SecretStoreHealthsStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SecretStoreHealthsBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SecretStoreHealthsBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecretStoreHealthsBlockingStub(channel, callOptions); + } + }; + return SecretStoreHealthsBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static SecretStoreHealthsFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SecretStoreHealthsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecretStoreHealthsFutureStub(channel, callOptions); + } + }; + return SecretStoreHealthsFutureStub.newStub(factory, channel); + } + + /** + *
+   * SecretStoreHealths exposes health states for secret stores.
+   * 
+ */ + public static abstract class SecretStoreHealthsImplBase implements io.grpc.BindableService { + + /** + *
+     * List reports the health status of node to secret store pairs.
+     * 
+ */ + public void list(com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getListMethod(), responseObserver); + } + + /** + *
+     * Check pushes a healthcheck request for a secret store
+     * Deprecated: use Healthcheck instead
+     * 
+ */ + public void check(com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getCheckMethod(), responseObserver); + } + + /** + *
+     * Healthcheck triggers a remote healthcheck request for a secret store. It may take minutes
+     * to propagate across a large network of Nodes. The call will return immediately, and the
+     * updated health of the Secret Store can be retrieved via List.
+     * 
+ */ + public void healthcheck(com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getHealthcheckMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListMethod(), + asyncUnaryCall( + new MethodHandlers< + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListRequest, + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListResponse>( + this, METHODID_LIST))) + .addMethod( + getCheckMethod(), + asyncUnaryCall( + new MethodHandlers< + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckRequest, + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckResponse>( + this, METHODID_CHECK))) + .addMethod( + getHealthcheckMethod(), + asyncUnaryCall( + new MethodHandlers< + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckRequest, + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckResponse>( + this, METHODID_HEALTHCHECK))) + .build(); + } + } + + /** + *
+   * SecretStoreHealths exposes health states for secret stores.
+   * 
+ */ + public static final class SecretStoreHealthsStub extends io.grpc.stub.AbstractAsyncStub { + private SecretStoreHealthsStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SecretStoreHealthsStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecretStoreHealthsStub(channel, callOptions); + } + + /** + *
+     * List reports the health status of node to secret store pairs.
+     * 
+ */ + public void list(com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getListMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Check pushes a healthcheck request for a secret store
+     * Deprecated: use Healthcheck instead
+     * 
+ */ + public void check(com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getCheckMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Healthcheck triggers a remote healthcheck request for a secret store. It may take minutes
+     * to propagate across a large network of Nodes. The call will return immediately, and the
+     * updated health of the Secret Store can be retrieved via List.
+     * 
+ */ + public void healthcheck(com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getHealthcheckMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * SecretStoreHealths exposes health states for secret stores.
+   * 
+ */ + public static final class SecretStoreHealthsBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private SecretStoreHealthsBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SecretStoreHealthsBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecretStoreHealthsBlockingStub(channel, callOptions); + } + + /** + *
+     * List reports the health status of node to secret store pairs.
+     * 
+ */ + public com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListResponse list(com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListRequest request) { + return blockingUnaryCall( + getChannel(), getListMethod(), getCallOptions(), request); + } + + /** + *
+     * Check pushes a healthcheck request for a secret store
+     * Deprecated: use Healthcheck instead
+     * 
+ */ + public com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckResponse check(com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckRequest request) { + return blockingUnaryCall( + getChannel(), getCheckMethod(), getCallOptions(), request); + } + + /** + *
+     * Healthcheck triggers a remote healthcheck request for a secret store. It may take minutes
+     * to propagate across a large network of Nodes. The call will return immediately, and the
+     * updated health of the Secret Store can be retrieved via List.
+     * 
+ */ + public com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckResponse healthcheck(com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckRequest request) { + return blockingUnaryCall( + getChannel(), getHealthcheckMethod(), getCallOptions(), request); + } + } + + /** + *
+   * SecretStoreHealths exposes health states for secret stores.
+   * 
+ */ + public static final class SecretStoreHealthsFutureStub extends io.grpc.stub.AbstractFutureStub { + private SecretStoreHealthsFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SecretStoreHealthsFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecretStoreHealthsFutureStub(channel, callOptions); + } + + /** + *
+     * List reports the health status of node to secret store pairs.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture list( + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListRequest request) { + return futureUnaryCall( + getChannel().newCall(getListMethod(), getCallOptions()), request); + } + + /** + *
+     * Check pushes a healthcheck request for a secret store
+     * Deprecated: use Healthcheck instead
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture check( + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckRequest request) { + return futureUnaryCall( + getChannel().newCall(getCheckMethod(), getCallOptions()), request); + } + + /** + *
+     * Healthcheck triggers a remote healthcheck request for a secret store. It may take minutes
+     * to propagate across a large network of Nodes. The call will return immediately, and the
+     * updated health of the Secret Store can be retrieved via List.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture healthcheck( + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckRequest request) { + return futureUnaryCall( + getChannel().newCall(getHealthcheckMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST = 0; + private static final int METHODID_CHECK = 1; + private static final int METHODID_HEALTHCHECK = 2; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final SecretStoreHealthsImplBase serviceImpl; + private final int methodId; + + MethodHandlers(SecretStoreHealthsImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST: + serviceImpl.list((com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CHECK: + serviceImpl.check((com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_HEALTHCHECK: + serviceImpl.healthcheck((com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class SecretStoreHealthsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SecretStoreHealthsBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("SecretStoreHealths"); + } + } + + private static final class SecretStoreHealthsFileDescriptorSupplier + extends SecretStoreHealthsBaseDescriptorSupplier { + SecretStoreHealthsFileDescriptorSupplier() {} + } + + private static final class SecretStoreHealthsMethodDescriptorSupplier + extends SecretStoreHealthsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + SecretStoreHealthsMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (SecretStoreHealthsGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SecretStoreHealthsFileDescriptorSupplier()) + .addMethod(getListMethod()) + .addMethod(getCheckMethod()) + .addMethod(getHealthcheckMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/com/strongdm/api/plumbing/SecretStoreHealthsPlumbing.java b/com/strongdm/api/plumbing/SecretStoreHealthsPlumbing.java new file mode 100644 index 0000000..bf0655a --- /dev/null +++ b/com/strongdm/api/plumbing/SecretStoreHealthsPlumbing.java @@ -0,0 +1,7822 @@ +// Copyright 2020 StrongDM Inc +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: secret_store_healths.proto + +package com.strongdm.api.plumbing; + +public final class SecretStoreHealthsPlumbing { + private SecretStoreHealthsPlumbing() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface SecretStoreHealthListRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:v1.SecretStoreHealthListRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Paging parameters for the query.
+     * 
+ * + * .v1.ListRequestMetadata meta = 1; + * @return Whether the meta field is set. + */ + boolean hasMeta(); + /** + *
+     * Paging parameters for the query.
+     * 
+ * + * .v1.ListRequestMetadata meta = 1; + * @return The meta. + */ + com.strongdm.api.plumbing.Spec.ListRequestMetadata getMeta(); + /** + *
+     * Paging parameters for the query.
+     * 
+ * + * .v1.ListRequestMetadata meta = 1; + */ + com.strongdm.api.plumbing.Spec.ListRequestMetadataOrBuilder getMetaOrBuilder(); + + /** + *
+     * A human-readable filter query string.
+     * 
+ * + * string filter = 2 [(.v1.field_options) = { ... } + * @return The filter. + */ + java.lang.String getFilter(); + /** + *
+     * A human-readable filter query string.
+     * 
+ * + * string filter = 2 [(.v1.field_options) = { ... } + * @return The bytes for filter. + */ + com.google.protobuf.ByteString + getFilterBytes(); + } + /** + * Protobuf type {@code v1.SecretStoreHealthListRequest} + */ + public static final class SecretStoreHealthListRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:v1.SecretStoreHealthListRequest) + SecretStoreHealthListRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SecretStoreHealthListRequest.newBuilder() to construct. + private SecretStoreHealthListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SecretStoreHealthListRequest() { + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SecretStoreHealthListRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SecretStoreHealthListRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.strongdm.api.plumbing.Spec.ListRequestMetadata.Builder subBuilder = null; + if (meta_ != null) { + subBuilder = meta_.toBuilder(); + } + meta_ = input.readMessage(com.strongdm.api.plumbing.Spec.ListRequestMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(meta_); + meta_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.internal_static_v1_SecretStoreHealthListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.internal_static_v1_SecretStoreHealthListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListRequest.class, com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListRequest.Builder.class); + } + + public static final int META_FIELD_NUMBER = 1; + private com.strongdm.api.plumbing.Spec.ListRequestMetadata meta_; + /** + *
+     * Paging parameters for the query.
+     * 
+ * + * .v1.ListRequestMetadata meta = 1; + * @return Whether the meta field is set. + */ + @java.lang.Override + public boolean hasMeta() { + return meta_ != null; + } + /** + *
+     * Paging parameters for the query.
+     * 
+ * + * .v1.ListRequestMetadata meta = 1; + * @return The meta. + */ + @java.lang.Override + public com.strongdm.api.plumbing.Spec.ListRequestMetadata getMeta() { + return meta_ == null ? com.strongdm.api.plumbing.Spec.ListRequestMetadata.getDefaultInstance() : meta_; + } + /** + *
+     * Paging parameters for the query.
+     * 
+ * + * .v1.ListRequestMetadata meta = 1; + */ + @java.lang.Override + public com.strongdm.api.plumbing.Spec.ListRequestMetadataOrBuilder getMetaOrBuilder() { + return getMeta(); + } + + public static final int FILTER_FIELD_NUMBER = 2; + private volatile java.lang.Object filter_; + /** + *
+     * A human-readable filter query string.
+     * 
+ * + * string filter = 2 [(.v1.field_options) = { ... } + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + *
+     * A human-readable filter query string.
+     * 
+ * + * string filter = 2 [(.v1.field_options) = { ... } + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (meta_ != null) { + output.writeMessage(1, getMeta()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (meta_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMeta()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListRequest)) { + return super.equals(obj); + } + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListRequest other = (com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListRequest) obj; + + if (hasMeta() != other.hasMeta()) return false; + if (hasMeta()) { + if (!getMeta() + .equals(other.getMeta())) return false; + } + if (!getFilter() + .equals(other.getFilter())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMeta()) { + hash = (37 * hash) + META_FIELD_NUMBER; + hash = (53 * hash) + getMeta().hashCode(); + } + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code v1.SecretStoreHealthListRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:v1.SecretStoreHealthListRequest) + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.internal_static_v1_SecretStoreHealthListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.internal_static_v1_SecretStoreHealthListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListRequest.class, com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListRequest.Builder.class); + } + + // Construct using com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (metaBuilder_ == null) { + meta_ = null; + } else { + meta_ = null; + metaBuilder_ = null; + } + filter_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.internal_static_v1_SecretStoreHealthListRequest_descriptor; + } + + @java.lang.Override + public com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListRequest getDefaultInstanceForType() { + return com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListRequest build() { + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListRequest buildPartial() { + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListRequest result = new com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListRequest(this); + if (metaBuilder_ == null) { + result.meta_ = meta_; + } else { + result.meta_ = metaBuilder_.build(); + } + result.filter_ = filter_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListRequest) { + return mergeFrom((com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListRequest other) { + if (other == com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListRequest.getDefaultInstance()) return this; + if (other.hasMeta()) { + mergeMeta(other.getMeta()); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.strongdm.api.plumbing.Spec.ListRequestMetadata meta_; + private com.google.protobuf.SingleFieldBuilderV3< + com.strongdm.api.plumbing.Spec.ListRequestMetadata, com.strongdm.api.plumbing.Spec.ListRequestMetadata.Builder, com.strongdm.api.plumbing.Spec.ListRequestMetadataOrBuilder> metaBuilder_; + /** + *
+       * Paging parameters for the query.
+       * 
+ * + * .v1.ListRequestMetadata meta = 1; + * @return Whether the meta field is set. + */ + public boolean hasMeta() { + return metaBuilder_ != null || meta_ != null; + } + /** + *
+       * Paging parameters for the query.
+       * 
+ * + * .v1.ListRequestMetadata meta = 1; + * @return The meta. + */ + public com.strongdm.api.plumbing.Spec.ListRequestMetadata getMeta() { + if (metaBuilder_ == null) { + return meta_ == null ? com.strongdm.api.plumbing.Spec.ListRequestMetadata.getDefaultInstance() : meta_; + } else { + return metaBuilder_.getMessage(); + } + } + /** + *
+       * Paging parameters for the query.
+       * 
+ * + * .v1.ListRequestMetadata meta = 1; + */ + public Builder setMeta(com.strongdm.api.plumbing.Spec.ListRequestMetadata value) { + if (metaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + meta_ = value; + onChanged(); + } else { + metaBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Paging parameters for the query.
+       * 
+ * + * .v1.ListRequestMetadata meta = 1; + */ + public Builder setMeta( + com.strongdm.api.plumbing.Spec.ListRequestMetadata.Builder builderForValue) { + if (metaBuilder_ == null) { + meta_ = builderForValue.build(); + onChanged(); + } else { + metaBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Paging parameters for the query.
+       * 
+ * + * .v1.ListRequestMetadata meta = 1; + */ + public Builder mergeMeta(com.strongdm.api.plumbing.Spec.ListRequestMetadata value) { + if (metaBuilder_ == null) { + if (meta_ != null) { + meta_ = + com.strongdm.api.plumbing.Spec.ListRequestMetadata.newBuilder(meta_).mergeFrom(value).buildPartial(); + } else { + meta_ = value; + } + onChanged(); + } else { + metaBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Paging parameters for the query.
+       * 
+ * + * .v1.ListRequestMetadata meta = 1; + */ + public Builder clearMeta() { + if (metaBuilder_ == null) { + meta_ = null; + onChanged(); + } else { + meta_ = null; + metaBuilder_ = null; + } + + return this; + } + /** + *
+       * Paging parameters for the query.
+       * 
+ * + * .v1.ListRequestMetadata meta = 1; + */ + public com.strongdm.api.plumbing.Spec.ListRequestMetadata.Builder getMetaBuilder() { + + onChanged(); + return getMetaFieldBuilder().getBuilder(); + } + /** + *
+       * Paging parameters for the query.
+       * 
+ * + * .v1.ListRequestMetadata meta = 1; + */ + public com.strongdm.api.plumbing.Spec.ListRequestMetadataOrBuilder getMetaOrBuilder() { + if (metaBuilder_ != null) { + return metaBuilder_.getMessageOrBuilder(); + } else { + return meta_ == null ? + com.strongdm.api.plumbing.Spec.ListRequestMetadata.getDefaultInstance() : meta_; + } + } + /** + *
+       * Paging parameters for the query.
+       * 
+ * + * .v1.ListRequestMetadata meta = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.strongdm.api.plumbing.Spec.ListRequestMetadata, com.strongdm.api.plumbing.Spec.ListRequestMetadata.Builder, com.strongdm.api.plumbing.Spec.ListRequestMetadataOrBuilder> + getMetaFieldBuilder() { + if (metaBuilder_ == null) { + metaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.strongdm.api.plumbing.Spec.ListRequestMetadata, com.strongdm.api.plumbing.Spec.ListRequestMetadata.Builder, com.strongdm.api.plumbing.Spec.ListRequestMetadataOrBuilder>( + getMeta(), + getParentForChildren(), + isClean()); + meta_ = null; + } + return metaBuilder_; + } + + private java.lang.Object filter_ = ""; + /** + *
+       * A human-readable filter query string.
+       * 
+ * + * string filter = 2 [(.v1.field_options) = { ... } + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * A human-readable filter query string.
+       * 
+ * + * string filter = 2 [(.v1.field_options) = { ... } + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString + getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * A human-readable filter query string.
+       * 
+ * + * string filter = 2 [(.v1.field_options) = { ... } + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filter_ = value; + onChanged(); + return this; + } + /** + *
+       * A human-readable filter query string.
+       * 
+ * + * string filter = 2 [(.v1.field_options) = { ... } + * @return This builder for chaining. + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + *
+       * A human-readable filter query string.
+       * 
+ * + * string filter = 2 [(.v1.field_options) = { ... } + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filter_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:v1.SecretStoreHealthListRequest) + } + + // @@protoc_insertion_point(class_scope:v1.SecretStoreHealthListRequest) + private static final com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListRequest(); + } + + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecretStoreHealthListRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SecretStoreHealthListRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SecretStoreHealthListResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:v1.SecretStoreHealthListResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .v1.ListResponseMetadata meta = 1; + * @return Whether the meta field is set. + */ + boolean hasMeta(); + /** + * .v1.ListResponseMetadata meta = 1; + * @return The meta. + */ + com.strongdm.api.plumbing.Spec.ListResponseMetadata getMeta(); + /** + * .v1.ListResponseMetadata meta = 1; + */ + com.strongdm.api.plumbing.Spec.ListResponseMetadataOrBuilder getMetaOrBuilder(); + + /** + * repeated .v1.SecretStoreHealth secret_store_healths = 2 [(.v1.field_options) = { ... } + */ + java.util.List + getSecretStoreHealthsList(); + /** + * repeated .v1.SecretStoreHealth secret_store_healths = 2 [(.v1.field_options) = { ... } + */ + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth getSecretStoreHealths(int index); + /** + * repeated .v1.SecretStoreHealth secret_store_healths = 2 [(.v1.field_options) = { ... } + */ + int getSecretStoreHealthsCount(); + /** + * repeated .v1.SecretStoreHealth secret_store_healths = 2 [(.v1.field_options) = { ... } + */ + java.util.List + getSecretStoreHealthsOrBuilderList(); + /** + * repeated .v1.SecretStoreHealth secret_store_healths = 2 [(.v1.field_options) = { ... } + */ + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthOrBuilder getSecretStoreHealthsOrBuilder( + int index); + + /** + *
+     * Rate limit information.
+     * 
+ * + * .v1.RateLimitMetadata rate_limit = 3 [(.v1.field_options) = { ... } + * @return Whether the rateLimit field is set. + */ + boolean hasRateLimit(); + /** + *
+     * Rate limit information.
+     * 
+ * + * .v1.RateLimitMetadata rate_limit = 3 [(.v1.field_options) = { ... } + * @return The rateLimit. + */ + com.strongdm.api.plumbing.Spec.RateLimitMetadata getRateLimit(); + /** + *
+     * Rate limit information.
+     * 
+ * + * .v1.RateLimitMetadata rate_limit = 3 [(.v1.field_options) = { ... } + */ + com.strongdm.api.plumbing.Spec.RateLimitMetadataOrBuilder getRateLimitOrBuilder(); + } + /** + * Protobuf type {@code v1.SecretStoreHealthListResponse} + */ + public static final class SecretStoreHealthListResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:v1.SecretStoreHealthListResponse) + SecretStoreHealthListResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use SecretStoreHealthListResponse.newBuilder() to construct. + private SecretStoreHealthListResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SecretStoreHealthListResponse() { + secretStoreHealths_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SecretStoreHealthListResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SecretStoreHealthListResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.strongdm.api.plumbing.Spec.ListResponseMetadata.Builder subBuilder = null; + if (meta_ != null) { + subBuilder = meta_.toBuilder(); + } + meta_ = input.readMessage(com.strongdm.api.plumbing.Spec.ListResponseMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(meta_); + meta_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + secretStoreHealths_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + secretStoreHealths_.add( + input.readMessage(com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth.parser(), extensionRegistry)); + break; + } + case 26: { + com.strongdm.api.plumbing.Spec.RateLimitMetadata.Builder subBuilder = null; + if (rateLimit_ != null) { + subBuilder = rateLimit_.toBuilder(); + } + rateLimit_ = input.readMessage(com.strongdm.api.plumbing.Spec.RateLimitMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(rateLimit_); + rateLimit_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + secretStoreHealths_ = java.util.Collections.unmodifiableList(secretStoreHealths_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.internal_static_v1_SecretStoreHealthListResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.internal_static_v1_SecretStoreHealthListResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListResponse.class, com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListResponse.Builder.class); + } + + public static final int META_FIELD_NUMBER = 1; + private com.strongdm.api.plumbing.Spec.ListResponseMetadata meta_; + /** + * .v1.ListResponseMetadata meta = 1; + * @return Whether the meta field is set. + */ + @java.lang.Override + public boolean hasMeta() { + return meta_ != null; + } + /** + * .v1.ListResponseMetadata meta = 1; + * @return The meta. + */ + @java.lang.Override + public com.strongdm.api.plumbing.Spec.ListResponseMetadata getMeta() { + return meta_ == null ? com.strongdm.api.plumbing.Spec.ListResponseMetadata.getDefaultInstance() : meta_; + } + /** + * .v1.ListResponseMetadata meta = 1; + */ + @java.lang.Override + public com.strongdm.api.plumbing.Spec.ListResponseMetadataOrBuilder getMetaOrBuilder() { + return getMeta(); + } + + public static final int SECRET_STORE_HEALTHS_FIELD_NUMBER = 2; + private java.util.List secretStoreHealths_; + /** + * repeated .v1.SecretStoreHealth secret_store_healths = 2 [(.v1.field_options) = { ... } + */ + @java.lang.Override + public java.util.List getSecretStoreHealthsList() { + return secretStoreHealths_; + } + /** + * repeated .v1.SecretStoreHealth secret_store_healths = 2 [(.v1.field_options) = { ... } + */ + @java.lang.Override + public java.util.List + getSecretStoreHealthsOrBuilderList() { + return secretStoreHealths_; + } + /** + * repeated .v1.SecretStoreHealth secret_store_healths = 2 [(.v1.field_options) = { ... } + */ + @java.lang.Override + public int getSecretStoreHealthsCount() { + return secretStoreHealths_.size(); + } + /** + * repeated .v1.SecretStoreHealth secret_store_healths = 2 [(.v1.field_options) = { ... } + */ + @java.lang.Override + public com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth getSecretStoreHealths(int index) { + return secretStoreHealths_.get(index); + } + /** + * repeated .v1.SecretStoreHealth secret_store_healths = 2 [(.v1.field_options) = { ... } + */ + @java.lang.Override + public com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthOrBuilder getSecretStoreHealthsOrBuilder( + int index) { + return secretStoreHealths_.get(index); + } + + public static final int RATE_LIMIT_FIELD_NUMBER = 3; + private com.strongdm.api.plumbing.Spec.RateLimitMetadata rateLimit_; + /** + *
+     * Rate limit information.
+     * 
+ * + * .v1.RateLimitMetadata rate_limit = 3 [(.v1.field_options) = { ... } + * @return Whether the rateLimit field is set. + */ + @java.lang.Override + public boolean hasRateLimit() { + return rateLimit_ != null; + } + /** + *
+     * Rate limit information.
+     * 
+ * + * .v1.RateLimitMetadata rate_limit = 3 [(.v1.field_options) = { ... } + * @return The rateLimit. + */ + @java.lang.Override + public com.strongdm.api.plumbing.Spec.RateLimitMetadata getRateLimit() { + return rateLimit_ == null ? com.strongdm.api.plumbing.Spec.RateLimitMetadata.getDefaultInstance() : rateLimit_; + } + /** + *
+     * Rate limit information.
+     * 
+ * + * .v1.RateLimitMetadata rate_limit = 3 [(.v1.field_options) = { ... } + */ + @java.lang.Override + public com.strongdm.api.plumbing.Spec.RateLimitMetadataOrBuilder getRateLimitOrBuilder() { + return getRateLimit(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (meta_ != null) { + output.writeMessage(1, getMeta()); + } + for (int i = 0; i < secretStoreHealths_.size(); i++) { + output.writeMessage(2, secretStoreHealths_.get(i)); + } + if (rateLimit_ != null) { + output.writeMessage(3, getRateLimit()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (meta_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMeta()); + } + for (int i = 0; i < secretStoreHealths_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, secretStoreHealths_.get(i)); + } + if (rateLimit_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getRateLimit()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListResponse)) { + return super.equals(obj); + } + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListResponse other = (com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListResponse) obj; + + if (hasMeta() != other.hasMeta()) return false; + if (hasMeta()) { + if (!getMeta() + .equals(other.getMeta())) return false; + } + if (!getSecretStoreHealthsList() + .equals(other.getSecretStoreHealthsList())) return false; + if (hasRateLimit() != other.hasRateLimit()) return false; + if (hasRateLimit()) { + if (!getRateLimit() + .equals(other.getRateLimit())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMeta()) { + hash = (37 * hash) + META_FIELD_NUMBER; + hash = (53 * hash) + getMeta().hashCode(); + } + if (getSecretStoreHealthsCount() > 0) { + hash = (37 * hash) + SECRET_STORE_HEALTHS_FIELD_NUMBER; + hash = (53 * hash) + getSecretStoreHealthsList().hashCode(); + } + if (hasRateLimit()) { + hash = (37 * hash) + RATE_LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getRateLimit().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code v1.SecretStoreHealthListResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:v1.SecretStoreHealthListResponse) + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.internal_static_v1_SecretStoreHealthListResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.internal_static_v1_SecretStoreHealthListResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListResponse.class, com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListResponse.Builder.class); + } + + // Construct using com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getSecretStoreHealthsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (metaBuilder_ == null) { + meta_ = null; + } else { + meta_ = null; + metaBuilder_ = null; + } + if (secretStoreHealthsBuilder_ == null) { + secretStoreHealths_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + secretStoreHealthsBuilder_.clear(); + } + if (rateLimitBuilder_ == null) { + rateLimit_ = null; + } else { + rateLimit_ = null; + rateLimitBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.internal_static_v1_SecretStoreHealthListResponse_descriptor; + } + + @java.lang.Override + public com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListResponse getDefaultInstanceForType() { + return com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListResponse build() { + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListResponse buildPartial() { + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListResponse result = new com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListResponse(this); + int from_bitField0_ = bitField0_; + if (metaBuilder_ == null) { + result.meta_ = meta_; + } else { + result.meta_ = metaBuilder_.build(); + } + if (secretStoreHealthsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + secretStoreHealths_ = java.util.Collections.unmodifiableList(secretStoreHealths_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.secretStoreHealths_ = secretStoreHealths_; + } else { + result.secretStoreHealths_ = secretStoreHealthsBuilder_.build(); + } + if (rateLimitBuilder_ == null) { + result.rateLimit_ = rateLimit_; + } else { + result.rateLimit_ = rateLimitBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListResponse) { + return mergeFrom((com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListResponse other) { + if (other == com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListResponse.getDefaultInstance()) return this; + if (other.hasMeta()) { + mergeMeta(other.getMeta()); + } + if (secretStoreHealthsBuilder_ == null) { + if (!other.secretStoreHealths_.isEmpty()) { + if (secretStoreHealths_.isEmpty()) { + secretStoreHealths_ = other.secretStoreHealths_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSecretStoreHealthsIsMutable(); + secretStoreHealths_.addAll(other.secretStoreHealths_); + } + onChanged(); + } + } else { + if (!other.secretStoreHealths_.isEmpty()) { + if (secretStoreHealthsBuilder_.isEmpty()) { + secretStoreHealthsBuilder_.dispose(); + secretStoreHealthsBuilder_ = null; + secretStoreHealths_ = other.secretStoreHealths_; + bitField0_ = (bitField0_ & ~0x00000001); + secretStoreHealthsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSecretStoreHealthsFieldBuilder() : null; + } else { + secretStoreHealthsBuilder_.addAllMessages(other.secretStoreHealths_); + } + } + } + if (other.hasRateLimit()) { + mergeRateLimit(other.getRateLimit()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.strongdm.api.plumbing.Spec.ListResponseMetadata meta_; + private com.google.protobuf.SingleFieldBuilderV3< + com.strongdm.api.plumbing.Spec.ListResponseMetadata, com.strongdm.api.plumbing.Spec.ListResponseMetadata.Builder, com.strongdm.api.plumbing.Spec.ListResponseMetadataOrBuilder> metaBuilder_; + /** + * .v1.ListResponseMetadata meta = 1; + * @return Whether the meta field is set. + */ + public boolean hasMeta() { + return metaBuilder_ != null || meta_ != null; + } + /** + * .v1.ListResponseMetadata meta = 1; + * @return The meta. + */ + public com.strongdm.api.plumbing.Spec.ListResponseMetadata getMeta() { + if (metaBuilder_ == null) { + return meta_ == null ? com.strongdm.api.plumbing.Spec.ListResponseMetadata.getDefaultInstance() : meta_; + } else { + return metaBuilder_.getMessage(); + } + } + /** + * .v1.ListResponseMetadata meta = 1; + */ + public Builder setMeta(com.strongdm.api.plumbing.Spec.ListResponseMetadata value) { + if (metaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + meta_ = value; + onChanged(); + } else { + metaBuilder_.setMessage(value); + } + + return this; + } + /** + * .v1.ListResponseMetadata meta = 1; + */ + public Builder setMeta( + com.strongdm.api.plumbing.Spec.ListResponseMetadata.Builder builderForValue) { + if (metaBuilder_ == null) { + meta_ = builderForValue.build(); + onChanged(); + } else { + metaBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .v1.ListResponseMetadata meta = 1; + */ + public Builder mergeMeta(com.strongdm.api.plumbing.Spec.ListResponseMetadata value) { + if (metaBuilder_ == null) { + if (meta_ != null) { + meta_ = + com.strongdm.api.plumbing.Spec.ListResponseMetadata.newBuilder(meta_).mergeFrom(value).buildPartial(); + } else { + meta_ = value; + } + onChanged(); + } else { + metaBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .v1.ListResponseMetadata meta = 1; + */ + public Builder clearMeta() { + if (metaBuilder_ == null) { + meta_ = null; + onChanged(); + } else { + meta_ = null; + metaBuilder_ = null; + } + + return this; + } + /** + * .v1.ListResponseMetadata meta = 1; + */ + public com.strongdm.api.plumbing.Spec.ListResponseMetadata.Builder getMetaBuilder() { + + onChanged(); + return getMetaFieldBuilder().getBuilder(); + } + /** + * .v1.ListResponseMetadata meta = 1; + */ + public com.strongdm.api.plumbing.Spec.ListResponseMetadataOrBuilder getMetaOrBuilder() { + if (metaBuilder_ != null) { + return metaBuilder_.getMessageOrBuilder(); + } else { + return meta_ == null ? + com.strongdm.api.plumbing.Spec.ListResponseMetadata.getDefaultInstance() : meta_; + } + } + /** + * .v1.ListResponseMetadata meta = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.strongdm.api.plumbing.Spec.ListResponseMetadata, com.strongdm.api.plumbing.Spec.ListResponseMetadata.Builder, com.strongdm.api.plumbing.Spec.ListResponseMetadataOrBuilder> + getMetaFieldBuilder() { + if (metaBuilder_ == null) { + metaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.strongdm.api.plumbing.Spec.ListResponseMetadata, com.strongdm.api.plumbing.Spec.ListResponseMetadata.Builder, com.strongdm.api.plumbing.Spec.ListResponseMetadataOrBuilder>( + getMeta(), + getParentForChildren(), + isClean()); + meta_ = null; + } + return metaBuilder_; + } + + private java.util.List secretStoreHealths_ = + java.util.Collections.emptyList(); + private void ensureSecretStoreHealthsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + secretStoreHealths_ = new java.util.ArrayList(secretStoreHealths_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth, com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth.Builder, com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthOrBuilder> secretStoreHealthsBuilder_; + + /** + * repeated .v1.SecretStoreHealth secret_store_healths = 2 [(.v1.field_options) = { ... } + */ + public java.util.List getSecretStoreHealthsList() { + if (secretStoreHealthsBuilder_ == null) { + return java.util.Collections.unmodifiableList(secretStoreHealths_); + } else { + return secretStoreHealthsBuilder_.getMessageList(); + } + } + /** + * repeated .v1.SecretStoreHealth secret_store_healths = 2 [(.v1.field_options) = { ... } + */ + public int getSecretStoreHealthsCount() { + if (secretStoreHealthsBuilder_ == null) { + return secretStoreHealths_.size(); + } else { + return secretStoreHealthsBuilder_.getCount(); + } + } + /** + * repeated .v1.SecretStoreHealth secret_store_healths = 2 [(.v1.field_options) = { ... } + */ + public com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth getSecretStoreHealths(int index) { + if (secretStoreHealthsBuilder_ == null) { + return secretStoreHealths_.get(index); + } else { + return secretStoreHealthsBuilder_.getMessage(index); + } + } + /** + * repeated .v1.SecretStoreHealth secret_store_healths = 2 [(.v1.field_options) = { ... } + */ + public Builder setSecretStoreHealths( + int index, com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth value) { + if (secretStoreHealthsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecretStoreHealthsIsMutable(); + secretStoreHealths_.set(index, value); + onChanged(); + } else { + secretStoreHealthsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .v1.SecretStoreHealth secret_store_healths = 2 [(.v1.field_options) = { ... } + */ + public Builder setSecretStoreHealths( + int index, com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth.Builder builderForValue) { + if (secretStoreHealthsBuilder_ == null) { + ensureSecretStoreHealthsIsMutable(); + secretStoreHealths_.set(index, builderForValue.build()); + onChanged(); + } else { + secretStoreHealthsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .v1.SecretStoreHealth secret_store_healths = 2 [(.v1.field_options) = { ... } + */ + public Builder addSecretStoreHealths(com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth value) { + if (secretStoreHealthsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecretStoreHealthsIsMutable(); + secretStoreHealths_.add(value); + onChanged(); + } else { + secretStoreHealthsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .v1.SecretStoreHealth secret_store_healths = 2 [(.v1.field_options) = { ... } + */ + public Builder addSecretStoreHealths( + int index, com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth value) { + if (secretStoreHealthsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecretStoreHealthsIsMutable(); + secretStoreHealths_.add(index, value); + onChanged(); + } else { + secretStoreHealthsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .v1.SecretStoreHealth secret_store_healths = 2 [(.v1.field_options) = { ... } + */ + public Builder addSecretStoreHealths( + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth.Builder builderForValue) { + if (secretStoreHealthsBuilder_ == null) { + ensureSecretStoreHealthsIsMutable(); + secretStoreHealths_.add(builderForValue.build()); + onChanged(); + } else { + secretStoreHealthsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .v1.SecretStoreHealth secret_store_healths = 2 [(.v1.field_options) = { ... } + */ + public Builder addSecretStoreHealths( + int index, com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth.Builder builderForValue) { + if (secretStoreHealthsBuilder_ == null) { + ensureSecretStoreHealthsIsMutable(); + secretStoreHealths_.add(index, builderForValue.build()); + onChanged(); + } else { + secretStoreHealthsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .v1.SecretStoreHealth secret_store_healths = 2 [(.v1.field_options) = { ... } + */ + public Builder addAllSecretStoreHealths( + java.lang.Iterable values) { + if (secretStoreHealthsBuilder_ == null) { + ensureSecretStoreHealthsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, secretStoreHealths_); + onChanged(); + } else { + secretStoreHealthsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .v1.SecretStoreHealth secret_store_healths = 2 [(.v1.field_options) = { ... } + */ + public Builder clearSecretStoreHealths() { + if (secretStoreHealthsBuilder_ == null) { + secretStoreHealths_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + secretStoreHealthsBuilder_.clear(); + } + return this; + } + /** + * repeated .v1.SecretStoreHealth secret_store_healths = 2 [(.v1.field_options) = { ... } + */ + public Builder removeSecretStoreHealths(int index) { + if (secretStoreHealthsBuilder_ == null) { + ensureSecretStoreHealthsIsMutable(); + secretStoreHealths_.remove(index); + onChanged(); + } else { + secretStoreHealthsBuilder_.remove(index); + } + return this; + } + /** + * repeated .v1.SecretStoreHealth secret_store_healths = 2 [(.v1.field_options) = { ... } + */ + public com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth.Builder getSecretStoreHealthsBuilder( + int index) { + return getSecretStoreHealthsFieldBuilder().getBuilder(index); + } + /** + * repeated .v1.SecretStoreHealth secret_store_healths = 2 [(.v1.field_options) = { ... } + */ + public com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthOrBuilder getSecretStoreHealthsOrBuilder( + int index) { + if (secretStoreHealthsBuilder_ == null) { + return secretStoreHealths_.get(index); } else { + return secretStoreHealthsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .v1.SecretStoreHealth secret_store_healths = 2 [(.v1.field_options) = { ... } + */ + public java.util.List + getSecretStoreHealthsOrBuilderList() { + if (secretStoreHealthsBuilder_ != null) { + return secretStoreHealthsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(secretStoreHealths_); + } + } + /** + * repeated .v1.SecretStoreHealth secret_store_healths = 2 [(.v1.field_options) = { ... } + */ + public com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth.Builder addSecretStoreHealthsBuilder() { + return getSecretStoreHealthsFieldBuilder().addBuilder( + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth.getDefaultInstance()); + } + /** + * repeated .v1.SecretStoreHealth secret_store_healths = 2 [(.v1.field_options) = { ... } + */ + public com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth.Builder addSecretStoreHealthsBuilder( + int index) { + return getSecretStoreHealthsFieldBuilder().addBuilder( + index, com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth.getDefaultInstance()); + } + /** + * repeated .v1.SecretStoreHealth secret_store_healths = 2 [(.v1.field_options) = { ... } + */ + public java.util.List + getSecretStoreHealthsBuilderList() { + return getSecretStoreHealthsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth, com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth.Builder, com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthOrBuilder> + getSecretStoreHealthsFieldBuilder() { + if (secretStoreHealthsBuilder_ == null) { + secretStoreHealthsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth, com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth.Builder, com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthOrBuilder>( + secretStoreHealths_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + secretStoreHealths_ = null; + } + return secretStoreHealthsBuilder_; + } + + private com.strongdm.api.plumbing.Spec.RateLimitMetadata rateLimit_; + private com.google.protobuf.SingleFieldBuilderV3< + com.strongdm.api.plumbing.Spec.RateLimitMetadata, com.strongdm.api.plumbing.Spec.RateLimitMetadata.Builder, com.strongdm.api.plumbing.Spec.RateLimitMetadataOrBuilder> rateLimitBuilder_; + /** + *
+       * Rate limit information.
+       * 
+ * + * .v1.RateLimitMetadata rate_limit = 3 [(.v1.field_options) = { ... } + * @return Whether the rateLimit field is set. + */ + public boolean hasRateLimit() { + return rateLimitBuilder_ != null || rateLimit_ != null; + } + /** + *
+       * Rate limit information.
+       * 
+ * + * .v1.RateLimitMetadata rate_limit = 3 [(.v1.field_options) = { ... } + * @return The rateLimit. + */ + public com.strongdm.api.plumbing.Spec.RateLimitMetadata getRateLimit() { + if (rateLimitBuilder_ == null) { + return rateLimit_ == null ? com.strongdm.api.plumbing.Spec.RateLimitMetadata.getDefaultInstance() : rateLimit_; + } else { + return rateLimitBuilder_.getMessage(); + } + } + /** + *
+       * Rate limit information.
+       * 
+ * + * .v1.RateLimitMetadata rate_limit = 3 [(.v1.field_options) = { ... } + */ + public Builder setRateLimit(com.strongdm.api.plumbing.Spec.RateLimitMetadata value) { + if (rateLimitBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rateLimit_ = value; + onChanged(); + } else { + rateLimitBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Rate limit information.
+       * 
+ * + * .v1.RateLimitMetadata rate_limit = 3 [(.v1.field_options) = { ... } + */ + public Builder setRateLimit( + com.strongdm.api.plumbing.Spec.RateLimitMetadata.Builder builderForValue) { + if (rateLimitBuilder_ == null) { + rateLimit_ = builderForValue.build(); + onChanged(); + } else { + rateLimitBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Rate limit information.
+       * 
+ * + * .v1.RateLimitMetadata rate_limit = 3 [(.v1.field_options) = { ... } + */ + public Builder mergeRateLimit(com.strongdm.api.plumbing.Spec.RateLimitMetadata value) { + if (rateLimitBuilder_ == null) { + if (rateLimit_ != null) { + rateLimit_ = + com.strongdm.api.plumbing.Spec.RateLimitMetadata.newBuilder(rateLimit_).mergeFrom(value).buildPartial(); + } else { + rateLimit_ = value; + } + onChanged(); + } else { + rateLimitBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Rate limit information.
+       * 
+ * + * .v1.RateLimitMetadata rate_limit = 3 [(.v1.field_options) = { ... } + */ + public Builder clearRateLimit() { + if (rateLimitBuilder_ == null) { + rateLimit_ = null; + onChanged(); + } else { + rateLimit_ = null; + rateLimitBuilder_ = null; + } + + return this; + } + /** + *
+       * Rate limit information.
+       * 
+ * + * .v1.RateLimitMetadata rate_limit = 3 [(.v1.field_options) = { ... } + */ + public com.strongdm.api.plumbing.Spec.RateLimitMetadata.Builder getRateLimitBuilder() { + + onChanged(); + return getRateLimitFieldBuilder().getBuilder(); + } + /** + *
+       * Rate limit information.
+       * 
+ * + * .v1.RateLimitMetadata rate_limit = 3 [(.v1.field_options) = { ... } + */ + public com.strongdm.api.plumbing.Spec.RateLimitMetadataOrBuilder getRateLimitOrBuilder() { + if (rateLimitBuilder_ != null) { + return rateLimitBuilder_.getMessageOrBuilder(); + } else { + return rateLimit_ == null ? + com.strongdm.api.plumbing.Spec.RateLimitMetadata.getDefaultInstance() : rateLimit_; + } + } + /** + *
+       * Rate limit information.
+       * 
+ * + * .v1.RateLimitMetadata rate_limit = 3 [(.v1.field_options) = { ... } + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.strongdm.api.plumbing.Spec.RateLimitMetadata, com.strongdm.api.plumbing.Spec.RateLimitMetadata.Builder, com.strongdm.api.plumbing.Spec.RateLimitMetadataOrBuilder> + getRateLimitFieldBuilder() { + if (rateLimitBuilder_ == null) { + rateLimitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.strongdm.api.plumbing.Spec.RateLimitMetadata, com.strongdm.api.plumbing.Spec.RateLimitMetadata.Builder, com.strongdm.api.plumbing.Spec.RateLimitMetadataOrBuilder>( + getRateLimit(), + getParentForChildren(), + isClean()); + rateLimit_ = null; + } + return rateLimitBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:v1.SecretStoreHealthListResponse) + } + + // @@protoc_insertion_point(class_scope:v1.SecretStoreHealthListResponse) + private static final com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListResponse(); + } + + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecretStoreHealthListResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SecretStoreHealthListResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthListResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SecretStoreHealthCheckRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:v1.SecretStoreHealthCheckRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .v1.CreateRequestMetadata meta = 1; + * @return Whether the meta field is set. + */ + boolean hasMeta(); + /** + * .v1.CreateRequestMetadata meta = 1; + * @return The meta. + */ + com.strongdm.api.plumbing.Spec.CreateRequestMetadata getMeta(); + /** + * .v1.CreateRequestMetadata meta = 1; + */ + com.strongdm.api.plumbing.Spec.CreateRequestMetadataOrBuilder getMetaOrBuilder(); + + /** + * string secret_store_id = 2 [(.v1.field_options) = { ... } + * @return The secretStoreId. + */ + java.lang.String getSecretStoreId(); + /** + * string secret_store_id = 2 [(.v1.field_options) = { ... } + * @return The bytes for secretStoreId. + */ + com.google.protobuf.ByteString + getSecretStoreIdBytes(); + } + /** + * Protobuf type {@code v1.SecretStoreHealthCheckRequest} + */ + public static final class SecretStoreHealthCheckRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:v1.SecretStoreHealthCheckRequest) + SecretStoreHealthCheckRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SecretStoreHealthCheckRequest.newBuilder() to construct. + private SecretStoreHealthCheckRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SecretStoreHealthCheckRequest() { + secretStoreId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SecretStoreHealthCheckRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SecretStoreHealthCheckRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.strongdm.api.plumbing.Spec.CreateRequestMetadata.Builder subBuilder = null; + if (meta_ != null) { + subBuilder = meta_.toBuilder(); + } + meta_ = input.readMessage(com.strongdm.api.plumbing.Spec.CreateRequestMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(meta_); + meta_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + secretStoreId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.internal_static_v1_SecretStoreHealthCheckRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.internal_static_v1_SecretStoreHealthCheckRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckRequest.class, com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckRequest.Builder.class); + } + + public static final int META_FIELD_NUMBER = 1; + private com.strongdm.api.plumbing.Spec.CreateRequestMetadata meta_; + /** + * .v1.CreateRequestMetadata meta = 1; + * @return Whether the meta field is set. + */ + @java.lang.Override + public boolean hasMeta() { + return meta_ != null; + } + /** + * .v1.CreateRequestMetadata meta = 1; + * @return The meta. + */ + @java.lang.Override + public com.strongdm.api.plumbing.Spec.CreateRequestMetadata getMeta() { + return meta_ == null ? com.strongdm.api.plumbing.Spec.CreateRequestMetadata.getDefaultInstance() : meta_; + } + /** + * .v1.CreateRequestMetadata meta = 1; + */ + @java.lang.Override + public com.strongdm.api.plumbing.Spec.CreateRequestMetadataOrBuilder getMetaOrBuilder() { + return getMeta(); + } + + public static final int SECRET_STORE_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object secretStoreId_; + /** + * string secret_store_id = 2 [(.v1.field_options) = { ... } + * @return The secretStoreId. + */ + @java.lang.Override + public java.lang.String getSecretStoreId() { + java.lang.Object ref = secretStoreId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + secretStoreId_ = s; + return s; + } + } + /** + * string secret_store_id = 2 [(.v1.field_options) = { ... } + * @return The bytes for secretStoreId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSecretStoreIdBytes() { + java.lang.Object ref = secretStoreId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + secretStoreId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (meta_ != null) { + output.writeMessage(1, getMeta()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secretStoreId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, secretStoreId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (meta_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMeta()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secretStoreId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, secretStoreId_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckRequest)) { + return super.equals(obj); + } + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckRequest other = (com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckRequest) obj; + + if (hasMeta() != other.hasMeta()) return false; + if (hasMeta()) { + if (!getMeta() + .equals(other.getMeta())) return false; + } + if (!getSecretStoreId() + .equals(other.getSecretStoreId())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMeta()) { + hash = (37 * hash) + META_FIELD_NUMBER; + hash = (53 * hash) + getMeta().hashCode(); + } + hash = (37 * hash) + SECRET_STORE_ID_FIELD_NUMBER; + hash = (53 * hash) + getSecretStoreId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code v1.SecretStoreHealthCheckRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:v1.SecretStoreHealthCheckRequest) + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.internal_static_v1_SecretStoreHealthCheckRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.internal_static_v1_SecretStoreHealthCheckRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckRequest.class, com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckRequest.Builder.class); + } + + // Construct using com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (metaBuilder_ == null) { + meta_ = null; + } else { + meta_ = null; + metaBuilder_ = null; + } + secretStoreId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.internal_static_v1_SecretStoreHealthCheckRequest_descriptor; + } + + @java.lang.Override + public com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckRequest getDefaultInstanceForType() { + return com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckRequest build() { + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckRequest buildPartial() { + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckRequest result = new com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckRequest(this); + if (metaBuilder_ == null) { + result.meta_ = meta_; + } else { + result.meta_ = metaBuilder_.build(); + } + result.secretStoreId_ = secretStoreId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckRequest) { + return mergeFrom((com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckRequest other) { + if (other == com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckRequest.getDefaultInstance()) return this; + if (other.hasMeta()) { + mergeMeta(other.getMeta()); + } + if (!other.getSecretStoreId().isEmpty()) { + secretStoreId_ = other.secretStoreId_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.strongdm.api.plumbing.Spec.CreateRequestMetadata meta_; + private com.google.protobuf.SingleFieldBuilderV3< + com.strongdm.api.plumbing.Spec.CreateRequestMetadata, com.strongdm.api.plumbing.Spec.CreateRequestMetadata.Builder, com.strongdm.api.plumbing.Spec.CreateRequestMetadataOrBuilder> metaBuilder_; + /** + * .v1.CreateRequestMetadata meta = 1; + * @return Whether the meta field is set. + */ + public boolean hasMeta() { + return metaBuilder_ != null || meta_ != null; + } + /** + * .v1.CreateRequestMetadata meta = 1; + * @return The meta. + */ + public com.strongdm.api.plumbing.Spec.CreateRequestMetadata getMeta() { + if (metaBuilder_ == null) { + return meta_ == null ? com.strongdm.api.plumbing.Spec.CreateRequestMetadata.getDefaultInstance() : meta_; + } else { + return metaBuilder_.getMessage(); + } + } + /** + * .v1.CreateRequestMetadata meta = 1; + */ + public Builder setMeta(com.strongdm.api.plumbing.Spec.CreateRequestMetadata value) { + if (metaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + meta_ = value; + onChanged(); + } else { + metaBuilder_.setMessage(value); + } + + return this; + } + /** + * .v1.CreateRequestMetadata meta = 1; + */ + public Builder setMeta( + com.strongdm.api.plumbing.Spec.CreateRequestMetadata.Builder builderForValue) { + if (metaBuilder_ == null) { + meta_ = builderForValue.build(); + onChanged(); + } else { + metaBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .v1.CreateRequestMetadata meta = 1; + */ + public Builder mergeMeta(com.strongdm.api.plumbing.Spec.CreateRequestMetadata value) { + if (metaBuilder_ == null) { + if (meta_ != null) { + meta_ = + com.strongdm.api.plumbing.Spec.CreateRequestMetadata.newBuilder(meta_).mergeFrom(value).buildPartial(); + } else { + meta_ = value; + } + onChanged(); + } else { + metaBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .v1.CreateRequestMetadata meta = 1; + */ + public Builder clearMeta() { + if (metaBuilder_ == null) { + meta_ = null; + onChanged(); + } else { + meta_ = null; + metaBuilder_ = null; + } + + return this; + } + /** + * .v1.CreateRequestMetadata meta = 1; + */ + public com.strongdm.api.plumbing.Spec.CreateRequestMetadata.Builder getMetaBuilder() { + + onChanged(); + return getMetaFieldBuilder().getBuilder(); + } + /** + * .v1.CreateRequestMetadata meta = 1; + */ + public com.strongdm.api.plumbing.Spec.CreateRequestMetadataOrBuilder getMetaOrBuilder() { + if (metaBuilder_ != null) { + return metaBuilder_.getMessageOrBuilder(); + } else { + return meta_ == null ? + com.strongdm.api.plumbing.Spec.CreateRequestMetadata.getDefaultInstance() : meta_; + } + } + /** + * .v1.CreateRequestMetadata meta = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.strongdm.api.plumbing.Spec.CreateRequestMetadata, com.strongdm.api.plumbing.Spec.CreateRequestMetadata.Builder, com.strongdm.api.plumbing.Spec.CreateRequestMetadataOrBuilder> + getMetaFieldBuilder() { + if (metaBuilder_ == null) { + metaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.strongdm.api.plumbing.Spec.CreateRequestMetadata, com.strongdm.api.plumbing.Spec.CreateRequestMetadata.Builder, com.strongdm.api.plumbing.Spec.CreateRequestMetadataOrBuilder>( + getMeta(), + getParentForChildren(), + isClean()); + meta_ = null; + } + return metaBuilder_; + } + + private java.lang.Object secretStoreId_ = ""; + /** + * string secret_store_id = 2 [(.v1.field_options) = { ... } + * @return The secretStoreId. + */ + public java.lang.String getSecretStoreId() { + java.lang.Object ref = secretStoreId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + secretStoreId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string secret_store_id = 2 [(.v1.field_options) = { ... } + * @return The bytes for secretStoreId. + */ + public com.google.protobuf.ByteString + getSecretStoreIdBytes() { + java.lang.Object ref = secretStoreId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + secretStoreId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string secret_store_id = 2 [(.v1.field_options) = { ... } + * @param value The secretStoreId to set. + * @return This builder for chaining. + */ + public Builder setSecretStoreId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + secretStoreId_ = value; + onChanged(); + return this; + } + /** + * string secret_store_id = 2 [(.v1.field_options) = { ... } + * @return This builder for chaining. + */ + public Builder clearSecretStoreId() { + + secretStoreId_ = getDefaultInstance().getSecretStoreId(); + onChanged(); + return this; + } + /** + * string secret_store_id = 2 [(.v1.field_options) = { ... } + * @param value The bytes for secretStoreId to set. + * @return This builder for chaining. + */ + public Builder setSecretStoreIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + secretStoreId_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:v1.SecretStoreHealthCheckRequest) + } + + // @@protoc_insertion_point(class_scope:v1.SecretStoreHealthCheckRequest) + private static final com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckRequest(); + } + + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecretStoreHealthCheckRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SecretStoreHealthCheckRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SecretStoreHealthcheckRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:v1.SecretStoreHealthcheckRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .v1.CreateRequestMetadata meta = 1; + * @return Whether the meta field is set. + */ + boolean hasMeta(); + /** + * .v1.CreateRequestMetadata meta = 1; + * @return The meta. + */ + com.strongdm.api.plumbing.Spec.CreateRequestMetadata getMeta(); + /** + * .v1.CreateRequestMetadata meta = 1; + */ + com.strongdm.api.plumbing.Spec.CreateRequestMetadataOrBuilder getMetaOrBuilder(); + + /** + * string secret_store_id = 2 [(.v1.field_options) = { ... } + * @return The secretStoreId. + */ + java.lang.String getSecretStoreId(); + /** + * string secret_store_id = 2 [(.v1.field_options) = { ... } + * @return The bytes for secretStoreId. + */ + com.google.protobuf.ByteString + getSecretStoreIdBytes(); + } + /** + * Protobuf type {@code v1.SecretStoreHealthcheckRequest} + */ + public static final class SecretStoreHealthcheckRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:v1.SecretStoreHealthcheckRequest) + SecretStoreHealthcheckRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SecretStoreHealthcheckRequest.newBuilder() to construct. + private SecretStoreHealthcheckRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SecretStoreHealthcheckRequest() { + secretStoreId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SecretStoreHealthcheckRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SecretStoreHealthcheckRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.strongdm.api.plumbing.Spec.CreateRequestMetadata.Builder subBuilder = null; + if (meta_ != null) { + subBuilder = meta_.toBuilder(); + } + meta_ = input.readMessage(com.strongdm.api.plumbing.Spec.CreateRequestMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(meta_); + meta_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + secretStoreId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.internal_static_v1_SecretStoreHealthcheckRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.internal_static_v1_SecretStoreHealthcheckRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckRequest.class, com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckRequest.Builder.class); + } + + public static final int META_FIELD_NUMBER = 1; + private com.strongdm.api.plumbing.Spec.CreateRequestMetadata meta_; + /** + * .v1.CreateRequestMetadata meta = 1; + * @return Whether the meta field is set. + */ + @java.lang.Override + public boolean hasMeta() { + return meta_ != null; + } + /** + * .v1.CreateRequestMetadata meta = 1; + * @return The meta. + */ + @java.lang.Override + public com.strongdm.api.plumbing.Spec.CreateRequestMetadata getMeta() { + return meta_ == null ? com.strongdm.api.plumbing.Spec.CreateRequestMetadata.getDefaultInstance() : meta_; + } + /** + * .v1.CreateRequestMetadata meta = 1; + */ + @java.lang.Override + public com.strongdm.api.plumbing.Spec.CreateRequestMetadataOrBuilder getMetaOrBuilder() { + return getMeta(); + } + + public static final int SECRET_STORE_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object secretStoreId_; + /** + * string secret_store_id = 2 [(.v1.field_options) = { ... } + * @return The secretStoreId. + */ + @java.lang.Override + public java.lang.String getSecretStoreId() { + java.lang.Object ref = secretStoreId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + secretStoreId_ = s; + return s; + } + } + /** + * string secret_store_id = 2 [(.v1.field_options) = { ... } + * @return The bytes for secretStoreId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSecretStoreIdBytes() { + java.lang.Object ref = secretStoreId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + secretStoreId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (meta_ != null) { + output.writeMessage(1, getMeta()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secretStoreId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, secretStoreId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (meta_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMeta()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secretStoreId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, secretStoreId_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckRequest)) { + return super.equals(obj); + } + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckRequest other = (com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckRequest) obj; + + if (hasMeta() != other.hasMeta()) return false; + if (hasMeta()) { + if (!getMeta() + .equals(other.getMeta())) return false; + } + if (!getSecretStoreId() + .equals(other.getSecretStoreId())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMeta()) { + hash = (37 * hash) + META_FIELD_NUMBER; + hash = (53 * hash) + getMeta().hashCode(); + } + hash = (37 * hash) + SECRET_STORE_ID_FIELD_NUMBER; + hash = (53 * hash) + getSecretStoreId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code v1.SecretStoreHealthcheckRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:v1.SecretStoreHealthcheckRequest) + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.internal_static_v1_SecretStoreHealthcheckRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.internal_static_v1_SecretStoreHealthcheckRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckRequest.class, com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckRequest.Builder.class); + } + + // Construct using com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (metaBuilder_ == null) { + meta_ = null; + } else { + meta_ = null; + metaBuilder_ = null; + } + secretStoreId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.internal_static_v1_SecretStoreHealthcheckRequest_descriptor; + } + + @java.lang.Override + public com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckRequest getDefaultInstanceForType() { + return com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckRequest build() { + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckRequest buildPartial() { + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckRequest result = new com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckRequest(this); + if (metaBuilder_ == null) { + result.meta_ = meta_; + } else { + result.meta_ = metaBuilder_.build(); + } + result.secretStoreId_ = secretStoreId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckRequest) { + return mergeFrom((com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckRequest other) { + if (other == com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckRequest.getDefaultInstance()) return this; + if (other.hasMeta()) { + mergeMeta(other.getMeta()); + } + if (!other.getSecretStoreId().isEmpty()) { + secretStoreId_ = other.secretStoreId_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.strongdm.api.plumbing.Spec.CreateRequestMetadata meta_; + private com.google.protobuf.SingleFieldBuilderV3< + com.strongdm.api.plumbing.Spec.CreateRequestMetadata, com.strongdm.api.plumbing.Spec.CreateRequestMetadata.Builder, com.strongdm.api.plumbing.Spec.CreateRequestMetadataOrBuilder> metaBuilder_; + /** + * .v1.CreateRequestMetadata meta = 1; + * @return Whether the meta field is set. + */ + public boolean hasMeta() { + return metaBuilder_ != null || meta_ != null; + } + /** + * .v1.CreateRequestMetadata meta = 1; + * @return The meta. + */ + public com.strongdm.api.plumbing.Spec.CreateRequestMetadata getMeta() { + if (metaBuilder_ == null) { + return meta_ == null ? com.strongdm.api.plumbing.Spec.CreateRequestMetadata.getDefaultInstance() : meta_; + } else { + return metaBuilder_.getMessage(); + } + } + /** + * .v1.CreateRequestMetadata meta = 1; + */ + public Builder setMeta(com.strongdm.api.plumbing.Spec.CreateRequestMetadata value) { + if (metaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + meta_ = value; + onChanged(); + } else { + metaBuilder_.setMessage(value); + } + + return this; + } + /** + * .v1.CreateRequestMetadata meta = 1; + */ + public Builder setMeta( + com.strongdm.api.plumbing.Spec.CreateRequestMetadata.Builder builderForValue) { + if (metaBuilder_ == null) { + meta_ = builderForValue.build(); + onChanged(); + } else { + metaBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .v1.CreateRequestMetadata meta = 1; + */ + public Builder mergeMeta(com.strongdm.api.plumbing.Spec.CreateRequestMetadata value) { + if (metaBuilder_ == null) { + if (meta_ != null) { + meta_ = + com.strongdm.api.plumbing.Spec.CreateRequestMetadata.newBuilder(meta_).mergeFrom(value).buildPartial(); + } else { + meta_ = value; + } + onChanged(); + } else { + metaBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .v1.CreateRequestMetadata meta = 1; + */ + public Builder clearMeta() { + if (metaBuilder_ == null) { + meta_ = null; + onChanged(); + } else { + meta_ = null; + metaBuilder_ = null; + } + + return this; + } + /** + * .v1.CreateRequestMetadata meta = 1; + */ + public com.strongdm.api.plumbing.Spec.CreateRequestMetadata.Builder getMetaBuilder() { + + onChanged(); + return getMetaFieldBuilder().getBuilder(); + } + /** + * .v1.CreateRequestMetadata meta = 1; + */ + public com.strongdm.api.plumbing.Spec.CreateRequestMetadataOrBuilder getMetaOrBuilder() { + if (metaBuilder_ != null) { + return metaBuilder_.getMessageOrBuilder(); + } else { + return meta_ == null ? + com.strongdm.api.plumbing.Spec.CreateRequestMetadata.getDefaultInstance() : meta_; + } + } + /** + * .v1.CreateRequestMetadata meta = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.strongdm.api.plumbing.Spec.CreateRequestMetadata, com.strongdm.api.plumbing.Spec.CreateRequestMetadata.Builder, com.strongdm.api.plumbing.Spec.CreateRequestMetadataOrBuilder> + getMetaFieldBuilder() { + if (metaBuilder_ == null) { + metaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.strongdm.api.plumbing.Spec.CreateRequestMetadata, com.strongdm.api.plumbing.Spec.CreateRequestMetadata.Builder, com.strongdm.api.plumbing.Spec.CreateRequestMetadataOrBuilder>( + getMeta(), + getParentForChildren(), + isClean()); + meta_ = null; + } + return metaBuilder_; + } + + private java.lang.Object secretStoreId_ = ""; + /** + * string secret_store_id = 2 [(.v1.field_options) = { ... } + * @return The secretStoreId. + */ + public java.lang.String getSecretStoreId() { + java.lang.Object ref = secretStoreId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + secretStoreId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string secret_store_id = 2 [(.v1.field_options) = { ... } + * @return The bytes for secretStoreId. + */ + public com.google.protobuf.ByteString + getSecretStoreIdBytes() { + java.lang.Object ref = secretStoreId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + secretStoreId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string secret_store_id = 2 [(.v1.field_options) = { ... } + * @param value The secretStoreId to set. + * @return This builder for chaining. + */ + public Builder setSecretStoreId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + secretStoreId_ = value; + onChanged(); + return this; + } + /** + * string secret_store_id = 2 [(.v1.field_options) = { ... } + * @return This builder for chaining. + */ + public Builder clearSecretStoreId() { + + secretStoreId_ = getDefaultInstance().getSecretStoreId(); + onChanged(); + return this; + } + /** + * string secret_store_id = 2 [(.v1.field_options) = { ... } + * @param value The bytes for secretStoreId to set. + * @return This builder for chaining. + */ + public Builder setSecretStoreIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + secretStoreId_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:v1.SecretStoreHealthcheckRequest) + } + + // @@protoc_insertion_point(class_scope:v1.SecretStoreHealthcheckRequest) + private static final com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckRequest(); + } + + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecretStoreHealthcheckRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SecretStoreHealthcheckRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SecretStoreHealthCheckResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:v1.SecretStoreHealthCheckResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .v1.CreateResponseMetadata meta = 1; + * @return Whether the meta field is set. + */ + boolean hasMeta(); + /** + * .v1.CreateResponseMetadata meta = 1; + * @return The meta. + */ + com.strongdm.api.plumbing.Spec.CreateResponseMetadata getMeta(); + /** + * .v1.CreateResponseMetadata meta = 1; + */ + com.strongdm.api.plumbing.Spec.CreateResponseMetadataOrBuilder getMetaOrBuilder(); + + /** + *
+     * Rate limit information.
+     * 
+ * + * .v1.RateLimitMetadata rate_limit = 2 [(.v1.field_options) = { ... } + * @return Whether the rateLimit field is set. + */ + boolean hasRateLimit(); + /** + *
+     * Rate limit information.
+     * 
+ * + * .v1.RateLimitMetadata rate_limit = 2 [(.v1.field_options) = { ... } + * @return The rateLimit. + */ + com.strongdm.api.plumbing.Spec.RateLimitMetadata getRateLimit(); + /** + *
+     * Rate limit information.
+     * 
+ * + * .v1.RateLimitMetadata rate_limit = 2 [(.v1.field_options) = { ... } + */ + com.strongdm.api.plumbing.Spec.RateLimitMetadataOrBuilder getRateLimitOrBuilder(); + } + /** + * Protobuf type {@code v1.SecretStoreHealthCheckResponse} + */ + public static final class SecretStoreHealthCheckResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:v1.SecretStoreHealthCheckResponse) + SecretStoreHealthCheckResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use SecretStoreHealthCheckResponse.newBuilder() to construct. + private SecretStoreHealthCheckResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SecretStoreHealthCheckResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SecretStoreHealthCheckResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SecretStoreHealthCheckResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.strongdm.api.plumbing.Spec.CreateResponseMetadata.Builder subBuilder = null; + if (meta_ != null) { + subBuilder = meta_.toBuilder(); + } + meta_ = input.readMessage(com.strongdm.api.plumbing.Spec.CreateResponseMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(meta_); + meta_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.strongdm.api.plumbing.Spec.RateLimitMetadata.Builder subBuilder = null; + if (rateLimit_ != null) { + subBuilder = rateLimit_.toBuilder(); + } + rateLimit_ = input.readMessage(com.strongdm.api.plumbing.Spec.RateLimitMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(rateLimit_); + rateLimit_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.internal_static_v1_SecretStoreHealthCheckResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.internal_static_v1_SecretStoreHealthCheckResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckResponse.class, com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckResponse.Builder.class); + } + + public static final int META_FIELD_NUMBER = 1; + private com.strongdm.api.plumbing.Spec.CreateResponseMetadata meta_; + /** + * .v1.CreateResponseMetadata meta = 1; + * @return Whether the meta field is set. + */ + @java.lang.Override + public boolean hasMeta() { + return meta_ != null; + } + /** + * .v1.CreateResponseMetadata meta = 1; + * @return The meta. + */ + @java.lang.Override + public com.strongdm.api.plumbing.Spec.CreateResponseMetadata getMeta() { + return meta_ == null ? com.strongdm.api.plumbing.Spec.CreateResponseMetadata.getDefaultInstance() : meta_; + } + /** + * .v1.CreateResponseMetadata meta = 1; + */ + @java.lang.Override + public com.strongdm.api.plumbing.Spec.CreateResponseMetadataOrBuilder getMetaOrBuilder() { + return getMeta(); + } + + public static final int RATE_LIMIT_FIELD_NUMBER = 2; + private com.strongdm.api.plumbing.Spec.RateLimitMetadata rateLimit_; + /** + *
+     * Rate limit information.
+     * 
+ * + * .v1.RateLimitMetadata rate_limit = 2 [(.v1.field_options) = { ... } + * @return Whether the rateLimit field is set. + */ + @java.lang.Override + public boolean hasRateLimit() { + return rateLimit_ != null; + } + /** + *
+     * Rate limit information.
+     * 
+ * + * .v1.RateLimitMetadata rate_limit = 2 [(.v1.field_options) = { ... } + * @return The rateLimit. + */ + @java.lang.Override + public com.strongdm.api.plumbing.Spec.RateLimitMetadata getRateLimit() { + return rateLimit_ == null ? com.strongdm.api.plumbing.Spec.RateLimitMetadata.getDefaultInstance() : rateLimit_; + } + /** + *
+     * Rate limit information.
+     * 
+ * + * .v1.RateLimitMetadata rate_limit = 2 [(.v1.field_options) = { ... } + */ + @java.lang.Override + public com.strongdm.api.plumbing.Spec.RateLimitMetadataOrBuilder getRateLimitOrBuilder() { + return getRateLimit(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (meta_ != null) { + output.writeMessage(1, getMeta()); + } + if (rateLimit_ != null) { + output.writeMessage(2, getRateLimit()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (meta_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMeta()); + } + if (rateLimit_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getRateLimit()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckResponse)) { + return super.equals(obj); + } + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckResponse other = (com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckResponse) obj; + + if (hasMeta() != other.hasMeta()) return false; + if (hasMeta()) { + if (!getMeta() + .equals(other.getMeta())) return false; + } + if (hasRateLimit() != other.hasRateLimit()) return false; + if (hasRateLimit()) { + if (!getRateLimit() + .equals(other.getRateLimit())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMeta()) { + hash = (37 * hash) + META_FIELD_NUMBER; + hash = (53 * hash) + getMeta().hashCode(); + } + if (hasRateLimit()) { + hash = (37 * hash) + RATE_LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getRateLimit().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code v1.SecretStoreHealthCheckResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:v1.SecretStoreHealthCheckResponse) + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.internal_static_v1_SecretStoreHealthCheckResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.internal_static_v1_SecretStoreHealthCheckResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckResponse.class, com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckResponse.Builder.class); + } + + // Construct using com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (metaBuilder_ == null) { + meta_ = null; + } else { + meta_ = null; + metaBuilder_ = null; + } + if (rateLimitBuilder_ == null) { + rateLimit_ = null; + } else { + rateLimit_ = null; + rateLimitBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.internal_static_v1_SecretStoreHealthCheckResponse_descriptor; + } + + @java.lang.Override + public com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckResponse getDefaultInstanceForType() { + return com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckResponse build() { + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckResponse buildPartial() { + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckResponse result = new com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckResponse(this); + if (metaBuilder_ == null) { + result.meta_ = meta_; + } else { + result.meta_ = metaBuilder_.build(); + } + if (rateLimitBuilder_ == null) { + result.rateLimit_ = rateLimit_; + } else { + result.rateLimit_ = rateLimitBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckResponse) { + return mergeFrom((com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckResponse other) { + if (other == com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckResponse.getDefaultInstance()) return this; + if (other.hasMeta()) { + mergeMeta(other.getMeta()); + } + if (other.hasRateLimit()) { + mergeRateLimit(other.getRateLimit()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.strongdm.api.plumbing.Spec.CreateResponseMetadata meta_; + private com.google.protobuf.SingleFieldBuilderV3< + com.strongdm.api.plumbing.Spec.CreateResponseMetadata, com.strongdm.api.plumbing.Spec.CreateResponseMetadata.Builder, com.strongdm.api.plumbing.Spec.CreateResponseMetadataOrBuilder> metaBuilder_; + /** + * .v1.CreateResponseMetadata meta = 1; + * @return Whether the meta field is set. + */ + public boolean hasMeta() { + return metaBuilder_ != null || meta_ != null; + } + /** + * .v1.CreateResponseMetadata meta = 1; + * @return The meta. + */ + public com.strongdm.api.plumbing.Spec.CreateResponseMetadata getMeta() { + if (metaBuilder_ == null) { + return meta_ == null ? com.strongdm.api.plumbing.Spec.CreateResponseMetadata.getDefaultInstance() : meta_; + } else { + return metaBuilder_.getMessage(); + } + } + /** + * .v1.CreateResponseMetadata meta = 1; + */ + public Builder setMeta(com.strongdm.api.plumbing.Spec.CreateResponseMetadata value) { + if (metaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + meta_ = value; + onChanged(); + } else { + metaBuilder_.setMessage(value); + } + + return this; + } + /** + * .v1.CreateResponseMetadata meta = 1; + */ + public Builder setMeta( + com.strongdm.api.plumbing.Spec.CreateResponseMetadata.Builder builderForValue) { + if (metaBuilder_ == null) { + meta_ = builderForValue.build(); + onChanged(); + } else { + metaBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .v1.CreateResponseMetadata meta = 1; + */ + public Builder mergeMeta(com.strongdm.api.plumbing.Spec.CreateResponseMetadata value) { + if (metaBuilder_ == null) { + if (meta_ != null) { + meta_ = + com.strongdm.api.plumbing.Spec.CreateResponseMetadata.newBuilder(meta_).mergeFrom(value).buildPartial(); + } else { + meta_ = value; + } + onChanged(); + } else { + metaBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .v1.CreateResponseMetadata meta = 1; + */ + public Builder clearMeta() { + if (metaBuilder_ == null) { + meta_ = null; + onChanged(); + } else { + meta_ = null; + metaBuilder_ = null; + } + + return this; + } + /** + * .v1.CreateResponseMetadata meta = 1; + */ + public com.strongdm.api.plumbing.Spec.CreateResponseMetadata.Builder getMetaBuilder() { + + onChanged(); + return getMetaFieldBuilder().getBuilder(); + } + /** + * .v1.CreateResponseMetadata meta = 1; + */ + public com.strongdm.api.plumbing.Spec.CreateResponseMetadataOrBuilder getMetaOrBuilder() { + if (metaBuilder_ != null) { + return metaBuilder_.getMessageOrBuilder(); + } else { + return meta_ == null ? + com.strongdm.api.plumbing.Spec.CreateResponseMetadata.getDefaultInstance() : meta_; + } + } + /** + * .v1.CreateResponseMetadata meta = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.strongdm.api.plumbing.Spec.CreateResponseMetadata, com.strongdm.api.plumbing.Spec.CreateResponseMetadata.Builder, com.strongdm.api.plumbing.Spec.CreateResponseMetadataOrBuilder> + getMetaFieldBuilder() { + if (metaBuilder_ == null) { + metaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.strongdm.api.plumbing.Spec.CreateResponseMetadata, com.strongdm.api.plumbing.Spec.CreateResponseMetadata.Builder, com.strongdm.api.plumbing.Spec.CreateResponseMetadataOrBuilder>( + getMeta(), + getParentForChildren(), + isClean()); + meta_ = null; + } + return metaBuilder_; + } + + private com.strongdm.api.plumbing.Spec.RateLimitMetadata rateLimit_; + private com.google.protobuf.SingleFieldBuilderV3< + com.strongdm.api.plumbing.Spec.RateLimitMetadata, com.strongdm.api.plumbing.Spec.RateLimitMetadata.Builder, com.strongdm.api.plumbing.Spec.RateLimitMetadataOrBuilder> rateLimitBuilder_; + /** + *
+       * Rate limit information.
+       * 
+ * + * .v1.RateLimitMetadata rate_limit = 2 [(.v1.field_options) = { ... } + * @return Whether the rateLimit field is set. + */ + public boolean hasRateLimit() { + return rateLimitBuilder_ != null || rateLimit_ != null; + } + /** + *
+       * Rate limit information.
+       * 
+ * + * .v1.RateLimitMetadata rate_limit = 2 [(.v1.field_options) = { ... } + * @return The rateLimit. + */ + public com.strongdm.api.plumbing.Spec.RateLimitMetadata getRateLimit() { + if (rateLimitBuilder_ == null) { + return rateLimit_ == null ? com.strongdm.api.plumbing.Spec.RateLimitMetadata.getDefaultInstance() : rateLimit_; + } else { + return rateLimitBuilder_.getMessage(); + } + } + /** + *
+       * Rate limit information.
+       * 
+ * + * .v1.RateLimitMetadata rate_limit = 2 [(.v1.field_options) = { ... } + */ + public Builder setRateLimit(com.strongdm.api.plumbing.Spec.RateLimitMetadata value) { + if (rateLimitBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rateLimit_ = value; + onChanged(); + } else { + rateLimitBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Rate limit information.
+       * 
+ * + * .v1.RateLimitMetadata rate_limit = 2 [(.v1.field_options) = { ... } + */ + public Builder setRateLimit( + com.strongdm.api.plumbing.Spec.RateLimitMetadata.Builder builderForValue) { + if (rateLimitBuilder_ == null) { + rateLimit_ = builderForValue.build(); + onChanged(); + } else { + rateLimitBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Rate limit information.
+       * 
+ * + * .v1.RateLimitMetadata rate_limit = 2 [(.v1.field_options) = { ... } + */ + public Builder mergeRateLimit(com.strongdm.api.plumbing.Spec.RateLimitMetadata value) { + if (rateLimitBuilder_ == null) { + if (rateLimit_ != null) { + rateLimit_ = + com.strongdm.api.plumbing.Spec.RateLimitMetadata.newBuilder(rateLimit_).mergeFrom(value).buildPartial(); + } else { + rateLimit_ = value; + } + onChanged(); + } else { + rateLimitBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Rate limit information.
+       * 
+ * + * .v1.RateLimitMetadata rate_limit = 2 [(.v1.field_options) = { ... } + */ + public Builder clearRateLimit() { + if (rateLimitBuilder_ == null) { + rateLimit_ = null; + onChanged(); + } else { + rateLimit_ = null; + rateLimitBuilder_ = null; + } + + return this; + } + /** + *
+       * Rate limit information.
+       * 
+ * + * .v1.RateLimitMetadata rate_limit = 2 [(.v1.field_options) = { ... } + */ + public com.strongdm.api.plumbing.Spec.RateLimitMetadata.Builder getRateLimitBuilder() { + + onChanged(); + return getRateLimitFieldBuilder().getBuilder(); + } + /** + *
+       * Rate limit information.
+       * 
+ * + * .v1.RateLimitMetadata rate_limit = 2 [(.v1.field_options) = { ... } + */ + public com.strongdm.api.plumbing.Spec.RateLimitMetadataOrBuilder getRateLimitOrBuilder() { + if (rateLimitBuilder_ != null) { + return rateLimitBuilder_.getMessageOrBuilder(); + } else { + return rateLimit_ == null ? + com.strongdm.api.plumbing.Spec.RateLimitMetadata.getDefaultInstance() : rateLimit_; + } + } + /** + *
+       * Rate limit information.
+       * 
+ * + * .v1.RateLimitMetadata rate_limit = 2 [(.v1.field_options) = { ... } + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.strongdm.api.plumbing.Spec.RateLimitMetadata, com.strongdm.api.plumbing.Spec.RateLimitMetadata.Builder, com.strongdm.api.plumbing.Spec.RateLimitMetadataOrBuilder> + getRateLimitFieldBuilder() { + if (rateLimitBuilder_ == null) { + rateLimitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.strongdm.api.plumbing.Spec.RateLimitMetadata, com.strongdm.api.plumbing.Spec.RateLimitMetadata.Builder, com.strongdm.api.plumbing.Spec.RateLimitMetadataOrBuilder>( + getRateLimit(), + getParentForChildren(), + isClean()); + rateLimit_ = null; + } + return rateLimitBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:v1.SecretStoreHealthCheckResponse) + } + + // @@protoc_insertion_point(class_scope:v1.SecretStoreHealthCheckResponse) + private static final com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckResponse(); + } + + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecretStoreHealthCheckResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SecretStoreHealthCheckResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthCheckResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SecretStoreHealthcheckResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:v1.SecretStoreHealthcheckResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .v1.CreateResponseMetadata meta = 1; + * @return Whether the meta field is set. + */ + boolean hasMeta(); + /** + * .v1.CreateResponseMetadata meta = 1; + * @return The meta. + */ + com.strongdm.api.plumbing.Spec.CreateResponseMetadata getMeta(); + /** + * .v1.CreateResponseMetadata meta = 1; + */ + com.strongdm.api.plumbing.Spec.CreateResponseMetadataOrBuilder getMetaOrBuilder(); + + /** + *
+     * Rate limit information.
+     * 
+ * + * .v1.RateLimitMetadata rate_limit = 2 [(.v1.field_options) = { ... } + * @return Whether the rateLimit field is set. + */ + boolean hasRateLimit(); + /** + *
+     * Rate limit information.
+     * 
+ * + * .v1.RateLimitMetadata rate_limit = 2 [(.v1.field_options) = { ... } + * @return The rateLimit. + */ + com.strongdm.api.plumbing.Spec.RateLimitMetadata getRateLimit(); + /** + *
+     * Rate limit information.
+     * 
+ * + * .v1.RateLimitMetadata rate_limit = 2 [(.v1.field_options) = { ... } + */ + com.strongdm.api.plumbing.Spec.RateLimitMetadataOrBuilder getRateLimitOrBuilder(); + } + /** + * Protobuf type {@code v1.SecretStoreHealthcheckResponse} + */ + public static final class SecretStoreHealthcheckResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:v1.SecretStoreHealthcheckResponse) + SecretStoreHealthcheckResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use SecretStoreHealthcheckResponse.newBuilder() to construct. + private SecretStoreHealthcheckResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SecretStoreHealthcheckResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SecretStoreHealthcheckResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SecretStoreHealthcheckResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.strongdm.api.plumbing.Spec.CreateResponseMetadata.Builder subBuilder = null; + if (meta_ != null) { + subBuilder = meta_.toBuilder(); + } + meta_ = input.readMessage(com.strongdm.api.plumbing.Spec.CreateResponseMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(meta_); + meta_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.strongdm.api.plumbing.Spec.RateLimitMetadata.Builder subBuilder = null; + if (rateLimit_ != null) { + subBuilder = rateLimit_.toBuilder(); + } + rateLimit_ = input.readMessage(com.strongdm.api.plumbing.Spec.RateLimitMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(rateLimit_); + rateLimit_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.internal_static_v1_SecretStoreHealthcheckResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.internal_static_v1_SecretStoreHealthcheckResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckResponse.class, com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckResponse.Builder.class); + } + + public static final int META_FIELD_NUMBER = 1; + private com.strongdm.api.plumbing.Spec.CreateResponseMetadata meta_; + /** + * .v1.CreateResponseMetadata meta = 1; + * @return Whether the meta field is set. + */ + @java.lang.Override + public boolean hasMeta() { + return meta_ != null; + } + /** + * .v1.CreateResponseMetadata meta = 1; + * @return The meta. + */ + @java.lang.Override + public com.strongdm.api.plumbing.Spec.CreateResponseMetadata getMeta() { + return meta_ == null ? com.strongdm.api.plumbing.Spec.CreateResponseMetadata.getDefaultInstance() : meta_; + } + /** + * .v1.CreateResponseMetadata meta = 1; + */ + @java.lang.Override + public com.strongdm.api.plumbing.Spec.CreateResponseMetadataOrBuilder getMetaOrBuilder() { + return getMeta(); + } + + public static final int RATE_LIMIT_FIELD_NUMBER = 2; + private com.strongdm.api.plumbing.Spec.RateLimitMetadata rateLimit_; + /** + *
+     * Rate limit information.
+     * 
+ * + * .v1.RateLimitMetadata rate_limit = 2 [(.v1.field_options) = { ... } + * @return Whether the rateLimit field is set. + */ + @java.lang.Override + public boolean hasRateLimit() { + return rateLimit_ != null; + } + /** + *
+     * Rate limit information.
+     * 
+ * + * .v1.RateLimitMetadata rate_limit = 2 [(.v1.field_options) = { ... } + * @return The rateLimit. + */ + @java.lang.Override + public com.strongdm.api.plumbing.Spec.RateLimitMetadata getRateLimit() { + return rateLimit_ == null ? com.strongdm.api.plumbing.Spec.RateLimitMetadata.getDefaultInstance() : rateLimit_; + } + /** + *
+     * Rate limit information.
+     * 
+ * + * .v1.RateLimitMetadata rate_limit = 2 [(.v1.field_options) = { ... } + */ + @java.lang.Override + public com.strongdm.api.plumbing.Spec.RateLimitMetadataOrBuilder getRateLimitOrBuilder() { + return getRateLimit(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (meta_ != null) { + output.writeMessage(1, getMeta()); + } + if (rateLimit_ != null) { + output.writeMessage(2, getRateLimit()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (meta_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMeta()); + } + if (rateLimit_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getRateLimit()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckResponse)) { + return super.equals(obj); + } + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckResponse other = (com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckResponse) obj; + + if (hasMeta() != other.hasMeta()) return false; + if (hasMeta()) { + if (!getMeta() + .equals(other.getMeta())) return false; + } + if (hasRateLimit() != other.hasRateLimit()) return false; + if (hasRateLimit()) { + if (!getRateLimit() + .equals(other.getRateLimit())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMeta()) { + hash = (37 * hash) + META_FIELD_NUMBER; + hash = (53 * hash) + getMeta().hashCode(); + } + if (hasRateLimit()) { + hash = (37 * hash) + RATE_LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getRateLimit().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code v1.SecretStoreHealthcheckResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:v1.SecretStoreHealthcheckResponse) + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.internal_static_v1_SecretStoreHealthcheckResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.internal_static_v1_SecretStoreHealthcheckResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckResponse.class, com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckResponse.Builder.class); + } + + // Construct using com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (metaBuilder_ == null) { + meta_ = null; + } else { + meta_ = null; + metaBuilder_ = null; + } + if (rateLimitBuilder_ == null) { + rateLimit_ = null; + } else { + rateLimit_ = null; + rateLimitBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.internal_static_v1_SecretStoreHealthcheckResponse_descriptor; + } + + @java.lang.Override + public com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckResponse getDefaultInstanceForType() { + return com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckResponse build() { + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckResponse buildPartial() { + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckResponse result = new com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckResponse(this); + if (metaBuilder_ == null) { + result.meta_ = meta_; + } else { + result.meta_ = metaBuilder_.build(); + } + if (rateLimitBuilder_ == null) { + result.rateLimit_ = rateLimit_; + } else { + result.rateLimit_ = rateLimitBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckResponse) { + return mergeFrom((com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckResponse other) { + if (other == com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckResponse.getDefaultInstance()) return this; + if (other.hasMeta()) { + mergeMeta(other.getMeta()); + } + if (other.hasRateLimit()) { + mergeRateLimit(other.getRateLimit()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.strongdm.api.plumbing.Spec.CreateResponseMetadata meta_; + private com.google.protobuf.SingleFieldBuilderV3< + com.strongdm.api.plumbing.Spec.CreateResponseMetadata, com.strongdm.api.plumbing.Spec.CreateResponseMetadata.Builder, com.strongdm.api.plumbing.Spec.CreateResponseMetadataOrBuilder> metaBuilder_; + /** + * .v1.CreateResponseMetadata meta = 1; + * @return Whether the meta field is set. + */ + public boolean hasMeta() { + return metaBuilder_ != null || meta_ != null; + } + /** + * .v1.CreateResponseMetadata meta = 1; + * @return The meta. + */ + public com.strongdm.api.plumbing.Spec.CreateResponseMetadata getMeta() { + if (metaBuilder_ == null) { + return meta_ == null ? com.strongdm.api.plumbing.Spec.CreateResponseMetadata.getDefaultInstance() : meta_; + } else { + return metaBuilder_.getMessage(); + } + } + /** + * .v1.CreateResponseMetadata meta = 1; + */ + public Builder setMeta(com.strongdm.api.plumbing.Spec.CreateResponseMetadata value) { + if (metaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + meta_ = value; + onChanged(); + } else { + metaBuilder_.setMessage(value); + } + + return this; + } + /** + * .v1.CreateResponseMetadata meta = 1; + */ + public Builder setMeta( + com.strongdm.api.plumbing.Spec.CreateResponseMetadata.Builder builderForValue) { + if (metaBuilder_ == null) { + meta_ = builderForValue.build(); + onChanged(); + } else { + metaBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .v1.CreateResponseMetadata meta = 1; + */ + public Builder mergeMeta(com.strongdm.api.plumbing.Spec.CreateResponseMetadata value) { + if (metaBuilder_ == null) { + if (meta_ != null) { + meta_ = + com.strongdm.api.plumbing.Spec.CreateResponseMetadata.newBuilder(meta_).mergeFrom(value).buildPartial(); + } else { + meta_ = value; + } + onChanged(); + } else { + metaBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .v1.CreateResponseMetadata meta = 1; + */ + public Builder clearMeta() { + if (metaBuilder_ == null) { + meta_ = null; + onChanged(); + } else { + meta_ = null; + metaBuilder_ = null; + } + + return this; + } + /** + * .v1.CreateResponseMetadata meta = 1; + */ + public com.strongdm.api.plumbing.Spec.CreateResponseMetadata.Builder getMetaBuilder() { + + onChanged(); + return getMetaFieldBuilder().getBuilder(); + } + /** + * .v1.CreateResponseMetadata meta = 1; + */ + public com.strongdm.api.plumbing.Spec.CreateResponseMetadataOrBuilder getMetaOrBuilder() { + if (metaBuilder_ != null) { + return metaBuilder_.getMessageOrBuilder(); + } else { + return meta_ == null ? + com.strongdm.api.plumbing.Spec.CreateResponseMetadata.getDefaultInstance() : meta_; + } + } + /** + * .v1.CreateResponseMetadata meta = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.strongdm.api.plumbing.Spec.CreateResponseMetadata, com.strongdm.api.plumbing.Spec.CreateResponseMetadata.Builder, com.strongdm.api.plumbing.Spec.CreateResponseMetadataOrBuilder> + getMetaFieldBuilder() { + if (metaBuilder_ == null) { + metaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.strongdm.api.plumbing.Spec.CreateResponseMetadata, com.strongdm.api.plumbing.Spec.CreateResponseMetadata.Builder, com.strongdm.api.plumbing.Spec.CreateResponseMetadataOrBuilder>( + getMeta(), + getParentForChildren(), + isClean()); + meta_ = null; + } + return metaBuilder_; + } + + private com.strongdm.api.plumbing.Spec.RateLimitMetadata rateLimit_; + private com.google.protobuf.SingleFieldBuilderV3< + com.strongdm.api.plumbing.Spec.RateLimitMetadata, com.strongdm.api.plumbing.Spec.RateLimitMetadata.Builder, com.strongdm.api.plumbing.Spec.RateLimitMetadataOrBuilder> rateLimitBuilder_; + /** + *
+       * Rate limit information.
+       * 
+ * + * .v1.RateLimitMetadata rate_limit = 2 [(.v1.field_options) = { ... } + * @return Whether the rateLimit field is set. + */ + public boolean hasRateLimit() { + return rateLimitBuilder_ != null || rateLimit_ != null; + } + /** + *
+       * Rate limit information.
+       * 
+ * + * .v1.RateLimitMetadata rate_limit = 2 [(.v1.field_options) = { ... } + * @return The rateLimit. + */ + public com.strongdm.api.plumbing.Spec.RateLimitMetadata getRateLimit() { + if (rateLimitBuilder_ == null) { + return rateLimit_ == null ? com.strongdm.api.plumbing.Spec.RateLimitMetadata.getDefaultInstance() : rateLimit_; + } else { + return rateLimitBuilder_.getMessage(); + } + } + /** + *
+       * Rate limit information.
+       * 
+ * + * .v1.RateLimitMetadata rate_limit = 2 [(.v1.field_options) = { ... } + */ + public Builder setRateLimit(com.strongdm.api.plumbing.Spec.RateLimitMetadata value) { + if (rateLimitBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rateLimit_ = value; + onChanged(); + } else { + rateLimitBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Rate limit information.
+       * 
+ * + * .v1.RateLimitMetadata rate_limit = 2 [(.v1.field_options) = { ... } + */ + public Builder setRateLimit( + com.strongdm.api.plumbing.Spec.RateLimitMetadata.Builder builderForValue) { + if (rateLimitBuilder_ == null) { + rateLimit_ = builderForValue.build(); + onChanged(); + } else { + rateLimitBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Rate limit information.
+       * 
+ * + * .v1.RateLimitMetadata rate_limit = 2 [(.v1.field_options) = { ... } + */ + public Builder mergeRateLimit(com.strongdm.api.plumbing.Spec.RateLimitMetadata value) { + if (rateLimitBuilder_ == null) { + if (rateLimit_ != null) { + rateLimit_ = + com.strongdm.api.plumbing.Spec.RateLimitMetadata.newBuilder(rateLimit_).mergeFrom(value).buildPartial(); + } else { + rateLimit_ = value; + } + onChanged(); + } else { + rateLimitBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Rate limit information.
+       * 
+ * + * .v1.RateLimitMetadata rate_limit = 2 [(.v1.field_options) = { ... } + */ + public Builder clearRateLimit() { + if (rateLimitBuilder_ == null) { + rateLimit_ = null; + onChanged(); + } else { + rateLimit_ = null; + rateLimitBuilder_ = null; + } + + return this; + } + /** + *
+       * Rate limit information.
+       * 
+ * + * .v1.RateLimitMetadata rate_limit = 2 [(.v1.field_options) = { ... } + */ + public com.strongdm.api.plumbing.Spec.RateLimitMetadata.Builder getRateLimitBuilder() { + + onChanged(); + return getRateLimitFieldBuilder().getBuilder(); + } + /** + *
+       * Rate limit information.
+       * 
+ * + * .v1.RateLimitMetadata rate_limit = 2 [(.v1.field_options) = { ... } + */ + public com.strongdm.api.plumbing.Spec.RateLimitMetadataOrBuilder getRateLimitOrBuilder() { + if (rateLimitBuilder_ != null) { + return rateLimitBuilder_.getMessageOrBuilder(); + } else { + return rateLimit_ == null ? + com.strongdm.api.plumbing.Spec.RateLimitMetadata.getDefaultInstance() : rateLimit_; + } + } + /** + *
+       * Rate limit information.
+       * 
+ * + * .v1.RateLimitMetadata rate_limit = 2 [(.v1.field_options) = { ... } + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.strongdm.api.plumbing.Spec.RateLimitMetadata, com.strongdm.api.plumbing.Spec.RateLimitMetadata.Builder, com.strongdm.api.plumbing.Spec.RateLimitMetadataOrBuilder> + getRateLimitFieldBuilder() { + if (rateLimitBuilder_ == null) { + rateLimitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.strongdm.api.plumbing.Spec.RateLimitMetadata, com.strongdm.api.plumbing.Spec.RateLimitMetadata.Builder, com.strongdm.api.plumbing.Spec.RateLimitMetadataOrBuilder>( + getRateLimit(), + getParentForChildren(), + isClean()); + rateLimit_ = null; + } + return rateLimitBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:v1.SecretStoreHealthcheckResponse) + } + + // @@protoc_insertion_point(class_scope:v1.SecretStoreHealthcheckResponse) + private static final com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckResponse(); + } + + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecretStoreHealthcheckResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SecretStoreHealthcheckResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthcheckResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SecretStoreHealthOrBuilder extends + // @@protoc_insertion_point(interface_extends:v1.SecretStoreHealth) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Associated secret store for this health
+     * 
+ * + * string secret_store_id = 1 [(.v1.field_options) = { ... } + * @return The secretStoreId. + */ + java.lang.String getSecretStoreId(); + /** + *
+     * Associated secret store for this health
+     * 
+ * + * string secret_store_id = 1 [(.v1.field_options) = { ... } + * @return The bytes for secretStoreId. + */ + com.google.protobuf.ByteString + getSecretStoreIdBytes(); + + /** + *
+     * Associated node id for this health
+     * 
+ * + * string node_id = 2 [(.v1.field_options) = { ... } + * @return The nodeId. + */ + java.lang.String getNodeId(); + /** + *
+     * Associated node id for this health
+     * 
+ * + * string node_id = 2 [(.v1.field_options) = { ... } + * @return The bytes for nodeId. + */ + com.google.protobuf.ByteString + getNodeIdBytes(); + + /** + *
+     * The status of the link between the node and secret store
+     * 
+ * + * string status = 4 [(.v1.field_options) = { ... } + * @return The status. + */ + java.lang.String getStatus(); + /** + *
+     * The status of the link between the node and secret store
+     * 
+ * + * string status = 4 [(.v1.field_options) = { ... } + * @return The bytes for status. + */ + com.google.protobuf.ByteString + getStatusBytes(); + + /** + *
+     * The time when the status last changed
+     * 
+ * + * .google.protobuf.Timestamp changed_at = 6 [(.v1.field_options) = { ... } + * @return Whether the changedAt field is set. + */ + boolean hasChangedAt(); + /** + *
+     * The time when the status last changed
+     * 
+ * + * .google.protobuf.Timestamp changed_at = 6 [(.v1.field_options) = { ... } + * @return The changedAt. + */ + com.google.protobuf.Timestamp getChangedAt(); + /** + *
+     * The time when the status last changed
+     * 
+ * + * .google.protobuf.Timestamp changed_at = 6 [(.v1.field_options) = { ... } + */ + com.google.protobuf.TimestampOrBuilder getChangedAtOrBuilder(); + + /** + *
+     * The time when the status was last checked by the node
+     * 
+ * + * .google.protobuf.Timestamp checked_at = 7 [(.v1.field_options) = { ... } + * @return Whether the checkedAt field is set. + */ + boolean hasCheckedAt(); + /** + *
+     * The time when the status was last checked by the node
+     * 
+ * + * .google.protobuf.Timestamp checked_at = 7 [(.v1.field_options) = { ... } + * @return The checkedAt. + */ + com.google.protobuf.Timestamp getCheckedAt(); + /** + *
+     * The time when the status was last checked by the node
+     * 
+ * + * .google.protobuf.Timestamp checked_at = 7 [(.v1.field_options) = { ... } + */ + com.google.protobuf.TimestampOrBuilder getCheckedAtOrBuilder(); + + /** + *
+     * The error associated with this health check, if it occurred after reachability checks succeeded.
+     * 
+ * + * string error = 8 [(.v1.field_options) = { ... } + * @return The error. + */ + java.lang.String getError(); + /** + *
+     * The error associated with this health check, if it occurred after reachability checks succeeded.
+     * 
+ * + * string error = 8 [(.v1.field_options) = { ... } + * @return The bytes for error. + */ + com.google.protobuf.ByteString + getErrorBytes(); + + /** + *
+     * The error associated with this health check, if it occurred during reachability checks.
+     * 
+ * + * string reachability = 9 [(.v1.field_options) = { ... } + * @return The reachability. + */ + java.lang.String getReachability(); + /** + *
+     * The error associated with this health check, if it occurred during reachability checks.
+     * 
+ * + * string reachability = 9 [(.v1.field_options) = { ... } + * @return The bytes for reachability. + */ + com.google.protobuf.ByteString + getReachabilityBytes(); + + /** + *
+     * Any specific status or error flags associated with this health check.
+     * 
+ * + * repeated string flags = 10 [(.v1.field_options) = { ... } + * @return A list containing the flags. + */ + java.util.List + getFlagsList(); + /** + *
+     * Any specific status or error flags associated with this health check.
+     * 
+ * + * repeated string flags = 10 [(.v1.field_options) = { ... } + * @return The count of flags. + */ + int getFlagsCount(); + /** + *
+     * Any specific status or error flags associated with this health check.
+     * 
+ * + * repeated string flags = 10 [(.v1.field_options) = { ... } + * @param index The index of the element to return. + * @return The flags at the given index. + */ + java.lang.String getFlags(int index); + /** + *
+     * Any specific status or error flags associated with this health check.
+     * 
+ * + * repeated string flags = 10 [(.v1.field_options) = { ... } + * @param index The index of the value to return. + * @return The bytes of the flags at the given index. + */ + com.google.protobuf.ByteString + getFlagsBytes(int index); + } + /** + *
+   * SecretStoreHealth denotes a secret store's health status. Note a secret store is not
+   * healthy in terms of a simple boolean, but rather healthy with respect to a particular node
+   * or set of nodes.
+   * 
+ * + * Protobuf type {@code v1.SecretStoreHealth} + */ + public static final class SecretStoreHealth extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:v1.SecretStoreHealth) + SecretStoreHealthOrBuilder { + private static final long serialVersionUID = 0L; + // Use SecretStoreHealth.newBuilder() to construct. + private SecretStoreHealth(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SecretStoreHealth() { + secretStoreId_ = ""; + nodeId_ = ""; + status_ = ""; + error_ = ""; + reachability_ = ""; + flags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SecretStoreHealth(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SecretStoreHealth( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + secretStoreId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + nodeId_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + status_ = s; + break; + } + case 50: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (changedAt_ != null) { + subBuilder = changedAt_.toBuilder(); + } + changedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(changedAt_); + changedAt_ = subBuilder.buildPartial(); + } + + break; + } + case 58: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (checkedAt_ != null) { + subBuilder = checkedAt_.toBuilder(); + } + checkedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(checkedAt_); + checkedAt_ = subBuilder.buildPartial(); + } + + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + error_ = s; + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + + reachability_ = s; + break; + } + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + flags_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + flags_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + flags_ = flags_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.internal_static_v1_SecretStoreHealth_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.internal_static_v1_SecretStoreHealth_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth.class, com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth.Builder.class); + } + + public static final int SECRET_STORE_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object secretStoreId_; + /** + *
+     * Associated secret store for this health
+     * 
+ * + * string secret_store_id = 1 [(.v1.field_options) = { ... } + * @return The secretStoreId. + */ + @java.lang.Override + public java.lang.String getSecretStoreId() { + java.lang.Object ref = secretStoreId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + secretStoreId_ = s; + return s; + } + } + /** + *
+     * Associated secret store for this health
+     * 
+ * + * string secret_store_id = 1 [(.v1.field_options) = { ... } + * @return The bytes for secretStoreId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSecretStoreIdBytes() { + java.lang.Object ref = secretStoreId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + secretStoreId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object nodeId_; + /** + *
+     * Associated node id for this health
+     * 
+ * + * string node_id = 2 [(.v1.field_options) = { ... } + * @return The nodeId. + */ + @java.lang.Override + public java.lang.String getNodeId() { + java.lang.Object ref = nodeId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeId_ = s; + return s; + } + } + /** + *
+     * Associated node id for this health
+     * 
+ * + * string node_id = 2 [(.v1.field_options) = { ... } + * @return The bytes for nodeId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNodeIdBytes() { + java.lang.Object ref = nodeId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_FIELD_NUMBER = 4; + private volatile java.lang.Object status_; + /** + *
+     * The status of the link between the node and secret store
+     * 
+ * + * string status = 4 [(.v1.field_options) = { ... } + * @return The status. + */ + @java.lang.Override + public java.lang.String getStatus() { + java.lang.Object ref = status_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + status_ = s; + return s; + } + } + /** + *
+     * The status of the link between the node and secret store
+     * 
+ * + * string status = 4 [(.v1.field_options) = { ... } + * @return The bytes for status. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + status_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CHANGED_AT_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp changedAt_; + /** + *
+     * The time when the status last changed
+     * 
+ * + * .google.protobuf.Timestamp changed_at = 6 [(.v1.field_options) = { ... } + * @return Whether the changedAt field is set. + */ + @java.lang.Override + public boolean hasChangedAt() { + return changedAt_ != null; + } + /** + *
+     * The time when the status last changed
+     * 
+ * + * .google.protobuf.Timestamp changed_at = 6 [(.v1.field_options) = { ... } + * @return The changedAt. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getChangedAt() { + return changedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : changedAt_; + } + /** + *
+     * The time when the status last changed
+     * 
+ * + * .google.protobuf.Timestamp changed_at = 6 [(.v1.field_options) = { ... } + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getChangedAtOrBuilder() { + return getChangedAt(); + } + + public static final int CHECKED_AT_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp checkedAt_; + /** + *
+     * The time when the status was last checked by the node
+     * 
+ * + * .google.protobuf.Timestamp checked_at = 7 [(.v1.field_options) = { ... } + * @return Whether the checkedAt field is set. + */ + @java.lang.Override + public boolean hasCheckedAt() { + return checkedAt_ != null; + } + /** + *
+     * The time when the status was last checked by the node
+     * 
+ * + * .google.protobuf.Timestamp checked_at = 7 [(.v1.field_options) = { ... } + * @return The checkedAt. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCheckedAt() { + return checkedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : checkedAt_; + } + /** + *
+     * The time when the status was last checked by the node
+     * 
+ * + * .google.protobuf.Timestamp checked_at = 7 [(.v1.field_options) = { ... } + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCheckedAtOrBuilder() { + return getCheckedAt(); + } + + public static final int ERROR_FIELD_NUMBER = 8; + private volatile java.lang.Object error_; + /** + *
+     * The error associated with this health check, if it occurred after reachability checks succeeded.
+     * 
+ * + * string error = 8 [(.v1.field_options) = { ... } + * @return The error. + */ + @java.lang.Override + public java.lang.String getError() { + java.lang.Object ref = error_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + error_ = s; + return s; + } + } + /** + *
+     * The error associated with this health check, if it occurred after reachability checks succeeded.
+     * 
+ * + * string error = 8 [(.v1.field_options) = { ... } + * @return The bytes for error. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getErrorBytes() { + java.lang.Object ref = error_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + error_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REACHABILITY_FIELD_NUMBER = 9; + private volatile java.lang.Object reachability_; + /** + *
+     * The error associated with this health check, if it occurred during reachability checks.
+     * 
+ * + * string reachability = 9 [(.v1.field_options) = { ... } + * @return The reachability. + */ + @java.lang.Override + public java.lang.String getReachability() { + java.lang.Object ref = reachability_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reachability_ = s; + return s; + } + } + /** + *
+     * The error associated with this health check, if it occurred during reachability checks.
+     * 
+ * + * string reachability = 9 [(.v1.field_options) = { ... } + * @return The bytes for reachability. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getReachabilityBytes() { + java.lang.Object ref = reachability_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + reachability_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FLAGS_FIELD_NUMBER = 10; + private com.google.protobuf.LazyStringList flags_; + /** + *
+     * Any specific status or error flags associated with this health check.
+     * 
+ * + * repeated string flags = 10 [(.v1.field_options) = { ... } + * @return A list containing the flags. + */ + public com.google.protobuf.ProtocolStringList + getFlagsList() { + return flags_; + } + /** + *
+     * Any specific status or error flags associated with this health check.
+     * 
+ * + * repeated string flags = 10 [(.v1.field_options) = { ... } + * @return The count of flags. + */ + public int getFlagsCount() { + return flags_.size(); + } + /** + *
+     * Any specific status or error flags associated with this health check.
+     * 
+ * + * repeated string flags = 10 [(.v1.field_options) = { ... } + * @param index The index of the element to return. + * @return The flags at the given index. + */ + public java.lang.String getFlags(int index) { + return flags_.get(index); + } + /** + *
+     * Any specific status or error flags associated with this health check.
+     * 
+ * + * repeated string flags = 10 [(.v1.field_options) = { ... } + * @param index The index of the value to return. + * @return The bytes of the flags at the given index. + */ + public com.google.protobuf.ByteString + getFlagsBytes(int index) { + return flags_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secretStoreId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, secretStoreId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nodeId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(status_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, status_); + } + if (changedAt_ != null) { + output.writeMessage(6, getChangedAt()); + } + if (checkedAt_ != null) { + output.writeMessage(7, getCheckedAt()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, error_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reachability_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, reachability_); + } + for (int i = 0; i < flags_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, flags_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secretStoreId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, secretStoreId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nodeId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(status_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, status_); + } + if (changedAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getChangedAt()); + } + if (checkedAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getCheckedAt()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, error_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reachability_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, reachability_); + } + { + int dataSize = 0; + for (int i = 0; i < flags_.size(); i++) { + dataSize += computeStringSizeNoTag(flags_.getRaw(i)); + } + size += dataSize; + size += 1 * getFlagsList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth)) { + return super.equals(obj); + } + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth other = (com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth) obj; + + if (!getSecretStoreId() + .equals(other.getSecretStoreId())) return false; + if (!getNodeId() + .equals(other.getNodeId())) return false; + if (!getStatus() + .equals(other.getStatus())) return false; + if (hasChangedAt() != other.hasChangedAt()) return false; + if (hasChangedAt()) { + if (!getChangedAt() + .equals(other.getChangedAt())) return false; + } + if (hasCheckedAt() != other.hasCheckedAt()) return false; + if (hasCheckedAt()) { + if (!getCheckedAt() + .equals(other.getCheckedAt())) return false; + } + if (!getError() + .equals(other.getError())) return false; + if (!getReachability() + .equals(other.getReachability())) return false; + if (!getFlagsList() + .equals(other.getFlagsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SECRET_STORE_ID_FIELD_NUMBER; + hash = (53 * hash) + getSecretStoreId().hashCode(); + hash = (37 * hash) + NODE_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodeId().hashCode(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + if (hasChangedAt()) { + hash = (37 * hash) + CHANGED_AT_FIELD_NUMBER; + hash = (53 * hash) + getChangedAt().hashCode(); + } + if (hasCheckedAt()) { + hash = (37 * hash) + CHECKED_AT_FIELD_NUMBER; + hash = (53 * hash) + getCheckedAt().hashCode(); + } + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + hash = (37 * hash) + REACHABILITY_FIELD_NUMBER; + hash = (53 * hash) + getReachability().hashCode(); + if (getFlagsCount() > 0) { + hash = (37 * hash) + FLAGS_FIELD_NUMBER; + hash = (53 * hash) + getFlagsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * SecretStoreHealth denotes a secret store's health status. Note a secret store is not
+     * healthy in terms of a simple boolean, but rather healthy with respect to a particular node
+     * or set of nodes.
+     * 
+ * + * Protobuf type {@code v1.SecretStoreHealth} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:v1.SecretStoreHealth) + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealthOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.internal_static_v1_SecretStoreHealth_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.internal_static_v1_SecretStoreHealth_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth.class, com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth.Builder.class); + } + + // Construct using com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + secretStoreId_ = ""; + + nodeId_ = ""; + + status_ = ""; + + if (changedAtBuilder_ == null) { + changedAt_ = null; + } else { + changedAt_ = null; + changedAtBuilder_ = null; + } + if (checkedAtBuilder_ == null) { + checkedAt_ = null; + } else { + checkedAt_ = null; + checkedAtBuilder_ = null; + } + error_ = ""; + + reachability_ = ""; + + flags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.internal_static_v1_SecretStoreHealth_descriptor; + } + + @java.lang.Override + public com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth getDefaultInstanceForType() { + return com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth.getDefaultInstance(); + } + + @java.lang.Override + public com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth build() { + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth buildPartial() { + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth result = new com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth(this); + int from_bitField0_ = bitField0_; + result.secretStoreId_ = secretStoreId_; + result.nodeId_ = nodeId_; + result.status_ = status_; + if (changedAtBuilder_ == null) { + result.changedAt_ = changedAt_; + } else { + result.changedAt_ = changedAtBuilder_.build(); + } + if (checkedAtBuilder_ == null) { + result.checkedAt_ = checkedAt_; + } else { + result.checkedAt_ = checkedAtBuilder_.build(); + } + result.error_ = error_; + result.reachability_ = reachability_; + if (((bitField0_ & 0x00000001) != 0)) { + flags_ = flags_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.flags_ = flags_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth) { + return mergeFrom((com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth other) { + if (other == com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth.getDefaultInstance()) return this; + if (!other.getSecretStoreId().isEmpty()) { + secretStoreId_ = other.secretStoreId_; + onChanged(); + } + if (!other.getNodeId().isEmpty()) { + nodeId_ = other.nodeId_; + onChanged(); + } + if (!other.getStatus().isEmpty()) { + status_ = other.status_; + onChanged(); + } + if (other.hasChangedAt()) { + mergeChangedAt(other.getChangedAt()); + } + if (other.hasCheckedAt()) { + mergeCheckedAt(other.getCheckedAt()); + } + if (!other.getError().isEmpty()) { + error_ = other.error_; + onChanged(); + } + if (!other.getReachability().isEmpty()) { + reachability_ = other.reachability_; + onChanged(); + } + if (!other.flags_.isEmpty()) { + if (flags_.isEmpty()) { + flags_ = other.flags_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFlagsIsMutable(); + flags_.addAll(other.flags_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object secretStoreId_ = ""; + /** + *
+       * Associated secret store for this health
+       * 
+ * + * string secret_store_id = 1 [(.v1.field_options) = { ... } + * @return The secretStoreId. + */ + public java.lang.String getSecretStoreId() { + java.lang.Object ref = secretStoreId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + secretStoreId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Associated secret store for this health
+       * 
+ * + * string secret_store_id = 1 [(.v1.field_options) = { ... } + * @return The bytes for secretStoreId. + */ + public com.google.protobuf.ByteString + getSecretStoreIdBytes() { + java.lang.Object ref = secretStoreId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + secretStoreId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Associated secret store for this health
+       * 
+ * + * string secret_store_id = 1 [(.v1.field_options) = { ... } + * @param value The secretStoreId to set. + * @return This builder for chaining. + */ + public Builder setSecretStoreId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + secretStoreId_ = value; + onChanged(); + return this; + } + /** + *
+       * Associated secret store for this health
+       * 
+ * + * string secret_store_id = 1 [(.v1.field_options) = { ... } + * @return This builder for chaining. + */ + public Builder clearSecretStoreId() { + + secretStoreId_ = getDefaultInstance().getSecretStoreId(); + onChanged(); + return this; + } + /** + *
+       * Associated secret store for this health
+       * 
+ * + * string secret_store_id = 1 [(.v1.field_options) = { ... } + * @param value The bytes for secretStoreId to set. + * @return This builder for chaining. + */ + public Builder setSecretStoreIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + secretStoreId_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodeId_ = ""; + /** + *
+       * Associated node id for this health
+       * 
+ * + * string node_id = 2 [(.v1.field_options) = { ... } + * @return The nodeId. + */ + public java.lang.String getNodeId() { + java.lang.Object ref = nodeId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Associated node id for this health
+       * 
+ * + * string node_id = 2 [(.v1.field_options) = { ... } + * @return The bytes for nodeId. + */ + public com.google.protobuf.ByteString + getNodeIdBytes() { + java.lang.Object ref = nodeId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Associated node id for this health
+       * 
+ * + * string node_id = 2 [(.v1.field_options) = { ... } + * @param value The nodeId to set. + * @return This builder for chaining. + */ + public Builder setNodeId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodeId_ = value; + onChanged(); + return this; + } + /** + *
+       * Associated node id for this health
+       * 
+ * + * string node_id = 2 [(.v1.field_options) = { ... } + * @return This builder for chaining. + */ + public Builder clearNodeId() { + + nodeId_ = getDefaultInstance().getNodeId(); + onChanged(); + return this; + } + /** + *
+       * Associated node id for this health
+       * 
+ * + * string node_id = 2 [(.v1.field_options) = { ... } + * @param value The bytes for nodeId to set. + * @return This builder for chaining. + */ + public Builder setNodeIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodeId_ = value; + onChanged(); + return this; + } + + private java.lang.Object status_ = ""; + /** + *
+       * The status of the link between the node and secret store
+       * 
+ * + * string status = 4 [(.v1.field_options) = { ... } + * @return The status. + */ + public java.lang.String getStatus() { + java.lang.Object ref = status_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + status_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The status of the link between the node and secret store
+       * 
+ * + * string status = 4 [(.v1.field_options) = { ... } + * @return The bytes for status. + */ + public com.google.protobuf.ByteString + getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + status_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The status of the link between the node and secret store
+       * 
+ * + * string status = 4 [(.v1.field_options) = { ... } + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + status_ = value; + onChanged(); + return this; + } + /** + *
+       * The status of the link between the node and secret store
+       * 
+ * + * string status = 4 [(.v1.field_options) = { ... } + * @return This builder for chaining. + */ + public Builder clearStatus() { + + status_ = getDefaultInstance().getStatus(); + onChanged(); + return this; + } + /** + *
+       * The status of the link between the node and secret store
+       * 
+ * + * string status = 4 [(.v1.field_options) = { ... } + * @param value The bytes for status to set. + * @return This builder for chaining. + */ + public Builder setStatusBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + status_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp changedAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> changedAtBuilder_; + /** + *
+       * The time when the status last changed
+       * 
+ * + * .google.protobuf.Timestamp changed_at = 6 [(.v1.field_options) = { ... } + * @return Whether the changedAt field is set. + */ + public boolean hasChangedAt() { + return changedAtBuilder_ != null || changedAt_ != null; + } + /** + *
+       * The time when the status last changed
+       * 
+ * + * .google.protobuf.Timestamp changed_at = 6 [(.v1.field_options) = { ... } + * @return The changedAt. + */ + public com.google.protobuf.Timestamp getChangedAt() { + if (changedAtBuilder_ == null) { + return changedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : changedAt_; + } else { + return changedAtBuilder_.getMessage(); + } + } + /** + *
+       * The time when the status last changed
+       * 
+ * + * .google.protobuf.Timestamp changed_at = 6 [(.v1.field_options) = { ... } + */ + public Builder setChangedAt(com.google.protobuf.Timestamp value) { + if (changedAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + changedAt_ = value; + onChanged(); + } else { + changedAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The time when the status last changed
+       * 
+ * + * .google.protobuf.Timestamp changed_at = 6 [(.v1.field_options) = { ... } + */ + public Builder setChangedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (changedAtBuilder_ == null) { + changedAt_ = builderForValue.build(); + onChanged(); + } else { + changedAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The time when the status last changed
+       * 
+ * + * .google.protobuf.Timestamp changed_at = 6 [(.v1.field_options) = { ... } + */ + public Builder mergeChangedAt(com.google.protobuf.Timestamp value) { + if (changedAtBuilder_ == null) { + if (changedAt_ != null) { + changedAt_ = + com.google.protobuf.Timestamp.newBuilder(changedAt_).mergeFrom(value).buildPartial(); + } else { + changedAt_ = value; + } + onChanged(); + } else { + changedAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The time when the status last changed
+       * 
+ * + * .google.protobuf.Timestamp changed_at = 6 [(.v1.field_options) = { ... } + */ + public Builder clearChangedAt() { + if (changedAtBuilder_ == null) { + changedAt_ = null; + onChanged(); + } else { + changedAt_ = null; + changedAtBuilder_ = null; + } + + return this; + } + /** + *
+       * The time when the status last changed
+       * 
+ * + * .google.protobuf.Timestamp changed_at = 6 [(.v1.field_options) = { ... } + */ + public com.google.protobuf.Timestamp.Builder getChangedAtBuilder() { + + onChanged(); + return getChangedAtFieldBuilder().getBuilder(); + } + /** + *
+       * The time when the status last changed
+       * 
+ * + * .google.protobuf.Timestamp changed_at = 6 [(.v1.field_options) = { ... } + */ + public com.google.protobuf.TimestampOrBuilder getChangedAtOrBuilder() { + if (changedAtBuilder_ != null) { + return changedAtBuilder_.getMessageOrBuilder(); + } else { + return changedAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : changedAt_; + } + } + /** + *
+       * The time when the status last changed
+       * 
+ * + * .google.protobuf.Timestamp changed_at = 6 [(.v1.field_options) = { ... } + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getChangedAtFieldBuilder() { + if (changedAtBuilder_ == null) { + changedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getChangedAt(), + getParentForChildren(), + isClean()); + changedAt_ = null; + } + return changedAtBuilder_; + } + + private com.google.protobuf.Timestamp checkedAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> checkedAtBuilder_; + /** + *
+       * The time when the status was last checked by the node
+       * 
+ * + * .google.protobuf.Timestamp checked_at = 7 [(.v1.field_options) = { ... } + * @return Whether the checkedAt field is set. + */ + public boolean hasCheckedAt() { + return checkedAtBuilder_ != null || checkedAt_ != null; + } + /** + *
+       * The time when the status was last checked by the node
+       * 
+ * + * .google.protobuf.Timestamp checked_at = 7 [(.v1.field_options) = { ... } + * @return The checkedAt. + */ + public com.google.protobuf.Timestamp getCheckedAt() { + if (checkedAtBuilder_ == null) { + return checkedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : checkedAt_; + } else { + return checkedAtBuilder_.getMessage(); + } + } + /** + *
+       * The time when the status was last checked by the node
+       * 
+ * + * .google.protobuf.Timestamp checked_at = 7 [(.v1.field_options) = { ... } + */ + public Builder setCheckedAt(com.google.protobuf.Timestamp value) { + if (checkedAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + checkedAt_ = value; + onChanged(); + } else { + checkedAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The time when the status was last checked by the node
+       * 
+ * + * .google.protobuf.Timestamp checked_at = 7 [(.v1.field_options) = { ... } + */ + public Builder setCheckedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (checkedAtBuilder_ == null) { + checkedAt_ = builderForValue.build(); + onChanged(); + } else { + checkedAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The time when the status was last checked by the node
+       * 
+ * + * .google.protobuf.Timestamp checked_at = 7 [(.v1.field_options) = { ... } + */ + public Builder mergeCheckedAt(com.google.protobuf.Timestamp value) { + if (checkedAtBuilder_ == null) { + if (checkedAt_ != null) { + checkedAt_ = + com.google.protobuf.Timestamp.newBuilder(checkedAt_).mergeFrom(value).buildPartial(); + } else { + checkedAt_ = value; + } + onChanged(); + } else { + checkedAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The time when the status was last checked by the node
+       * 
+ * + * .google.protobuf.Timestamp checked_at = 7 [(.v1.field_options) = { ... } + */ + public Builder clearCheckedAt() { + if (checkedAtBuilder_ == null) { + checkedAt_ = null; + onChanged(); + } else { + checkedAt_ = null; + checkedAtBuilder_ = null; + } + + return this; + } + /** + *
+       * The time when the status was last checked by the node
+       * 
+ * + * .google.protobuf.Timestamp checked_at = 7 [(.v1.field_options) = { ... } + */ + public com.google.protobuf.Timestamp.Builder getCheckedAtBuilder() { + + onChanged(); + return getCheckedAtFieldBuilder().getBuilder(); + } + /** + *
+       * The time when the status was last checked by the node
+       * 
+ * + * .google.protobuf.Timestamp checked_at = 7 [(.v1.field_options) = { ... } + */ + public com.google.protobuf.TimestampOrBuilder getCheckedAtOrBuilder() { + if (checkedAtBuilder_ != null) { + return checkedAtBuilder_.getMessageOrBuilder(); + } else { + return checkedAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : checkedAt_; + } + } + /** + *
+       * The time when the status was last checked by the node
+       * 
+ * + * .google.protobuf.Timestamp checked_at = 7 [(.v1.field_options) = { ... } + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getCheckedAtFieldBuilder() { + if (checkedAtBuilder_ == null) { + checkedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCheckedAt(), + getParentForChildren(), + isClean()); + checkedAt_ = null; + } + return checkedAtBuilder_; + } + + private java.lang.Object error_ = ""; + /** + *
+       * The error associated with this health check, if it occurred after reachability checks succeeded.
+       * 
+ * + * string error = 8 [(.v1.field_options) = { ... } + * @return The error. + */ + public java.lang.String getError() { + java.lang.Object ref = error_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + error_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The error associated with this health check, if it occurred after reachability checks succeeded.
+       * 
+ * + * string error = 8 [(.v1.field_options) = { ... } + * @return The bytes for error. + */ + public com.google.protobuf.ByteString + getErrorBytes() { + java.lang.Object ref = error_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + error_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The error associated with this health check, if it occurred after reachability checks succeeded.
+       * 
+ * + * string error = 8 [(.v1.field_options) = { ... } + * @param value The error to set. + * @return This builder for chaining. + */ + public Builder setError( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + error_ = value; + onChanged(); + return this; + } + /** + *
+       * The error associated with this health check, if it occurred after reachability checks succeeded.
+       * 
+ * + * string error = 8 [(.v1.field_options) = { ... } + * @return This builder for chaining. + */ + public Builder clearError() { + + error_ = getDefaultInstance().getError(); + onChanged(); + return this; + } + /** + *
+       * The error associated with this health check, if it occurred after reachability checks succeeded.
+       * 
+ * + * string error = 8 [(.v1.field_options) = { ... } + * @param value The bytes for error to set. + * @return This builder for chaining. + */ + public Builder setErrorBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + error_ = value; + onChanged(); + return this; + } + + private java.lang.Object reachability_ = ""; + /** + *
+       * The error associated with this health check, if it occurred during reachability checks.
+       * 
+ * + * string reachability = 9 [(.v1.field_options) = { ... } + * @return The reachability. + */ + public java.lang.String getReachability() { + java.lang.Object ref = reachability_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reachability_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The error associated with this health check, if it occurred during reachability checks.
+       * 
+ * + * string reachability = 9 [(.v1.field_options) = { ... } + * @return The bytes for reachability. + */ + public com.google.protobuf.ByteString + getReachabilityBytes() { + java.lang.Object ref = reachability_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + reachability_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The error associated with this health check, if it occurred during reachability checks.
+       * 
+ * + * string reachability = 9 [(.v1.field_options) = { ... } + * @param value The reachability to set. + * @return This builder for chaining. + */ + public Builder setReachability( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + reachability_ = value; + onChanged(); + return this; + } + /** + *
+       * The error associated with this health check, if it occurred during reachability checks.
+       * 
+ * + * string reachability = 9 [(.v1.field_options) = { ... } + * @return This builder for chaining. + */ + public Builder clearReachability() { + + reachability_ = getDefaultInstance().getReachability(); + onChanged(); + return this; + } + /** + *
+       * The error associated with this health check, if it occurred during reachability checks.
+       * 
+ * + * string reachability = 9 [(.v1.field_options) = { ... } + * @param value The bytes for reachability to set. + * @return This builder for chaining. + */ + public Builder setReachabilityBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + reachability_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList flags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureFlagsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + flags_ = new com.google.protobuf.LazyStringArrayList(flags_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * Any specific status or error flags associated with this health check.
+       * 
+ * + * repeated string flags = 10 [(.v1.field_options) = { ... } + * @return A list containing the flags. + */ + public com.google.protobuf.ProtocolStringList + getFlagsList() { + return flags_.getUnmodifiableView(); + } + /** + *
+       * Any specific status or error flags associated with this health check.
+       * 
+ * + * repeated string flags = 10 [(.v1.field_options) = { ... } + * @return The count of flags. + */ + public int getFlagsCount() { + return flags_.size(); + } + /** + *
+       * Any specific status or error flags associated with this health check.
+       * 
+ * + * repeated string flags = 10 [(.v1.field_options) = { ... } + * @param index The index of the element to return. + * @return The flags at the given index. + */ + public java.lang.String getFlags(int index) { + return flags_.get(index); + } + /** + *
+       * Any specific status or error flags associated with this health check.
+       * 
+ * + * repeated string flags = 10 [(.v1.field_options) = { ... } + * @param index The index of the value to return. + * @return The bytes of the flags at the given index. + */ + public com.google.protobuf.ByteString + getFlagsBytes(int index) { + return flags_.getByteString(index); + } + /** + *
+       * Any specific status or error flags associated with this health check.
+       * 
+ * + * repeated string flags = 10 [(.v1.field_options) = { ... } + * @param index The index to set the value at. + * @param value The flags to set. + * @return This builder for chaining. + */ + public Builder setFlags( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFlagsIsMutable(); + flags_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * Any specific status or error flags associated with this health check.
+       * 
+ * + * repeated string flags = 10 [(.v1.field_options) = { ... } + * @param value The flags to add. + * @return This builder for chaining. + */ + public Builder addFlags( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFlagsIsMutable(); + flags_.add(value); + onChanged(); + return this; + } + /** + *
+       * Any specific status or error flags associated with this health check.
+       * 
+ * + * repeated string flags = 10 [(.v1.field_options) = { ... } + * @param values The flags to add. + * @return This builder for chaining. + */ + public Builder addAllFlags( + java.lang.Iterable values) { + ensureFlagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, flags_); + onChanged(); + return this; + } + /** + *
+       * Any specific status or error flags associated with this health check.
+       * 
+ * + * repeated string flags = 10 [(.v1.field_options) = { ... } + * @return This builder for chaining. + */ + public Builder clearFlags() { + flags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * Any specific status or error flags associated with this health check.
+       * 
+ * + * repeated string flags = 10 [(.v1.field_options) = { ... } + * @param value The bytes of the flags to add. + * @return This builder for chaining. + */ + public Builder addFlagsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureFlagsIsMutable(); + flags_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:v1.SecretStoreHealth) + } + + // @@protoc_insertion_point(class_scope:v1.SecretStoreHealth) + private static final com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth(); + } + + public static com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecretStoreHealth parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SecretStoreHealth(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.strongdm.api.plumbing.SecretStoreHealthsPlumbing.SecretStoreHealth getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_v1_SecretStoreHealthListRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_v1_SecretStoreHealthListRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_v1_SecretStoreHealthListResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_v1_SecretStoreHealthListResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_v1_SecretStoreHealthCheckRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_v1_SecretStoreHealthCheckRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_v1_SecretStoreHealthcheckRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_v1_SecretStoreHealthcheckRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_v1_SecretStoreHealthCheckResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_v1_SecretStoreHealthCheckResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_v1_SecretStoreHealthcheckResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_v1_SecretStoreHealthcheckResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_v1_SecretStoreHealth_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_v1_SecretStoreHealth_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\032secret_store_healths.proto\022\002v1\032\roption" + + "s.proto\032\037google/protobuf/timestamp.proto" + + "\032\nspec.proto\"\213\001\n\034SecretStoreHealthListRe" + + "quest\022%\n\004meta\030\001 \001(\0132\027.v1.ListRequestMeta" + + "data\022\032\n\006filter\030\002 \001(\tB\n\362\370\263\007\005\260\363\263\007\001:(\372\370\263\007\006\322" + + "\363\263\007\001*\372\370\263\007\030\322\363\263\007\023!terraform-provider\"\225\002\n\035S" + + "ecretStoreHealthListResponse\022&\n\004meta\030\001 \001" + + "(\0132\030.v1.ListResponseMetadata\022?\n\024secret_s" + + "tore_healths\030\002 \003(\0132\025.v1.SecretStoreHealt" + + "hB\n\362\370\263\007\005\270\363\263\007\001\022W\n\nrate_limit\030\003 \001(\0132\025.v1.R" + + "ateLimitMetadataB,\362\370\263\007\005\260\363\263\007\001\362\370\263\007\006\262\364\263\007\001*\362" + + "\370\263\007\022\262\364\263\007\r!json_gateway:2\372\370\263\007\006\322\363\263\007\001*\372\370\263\007\030" + + "\322\363\263\007\023!terraform-provider\372\370\263\007\005\250\363\263\007\001\"\203\001\n\035S" + + "ecretStoreHealthCheckRequest\022\'\n\004meta\030\001 \001" + + "(\0132\031.v1.CreateRequestMetadata\022#\n\017secret_" + + "store_id\030\002 \001(\tB\n\362\370\263\007\005\260\363\263\007\001:\024\372\370\263\007\017\322\363\263\007\ngo" + + "_private\"\227\001\n\035SecretStoreHealthcheckReque" + + "st\022\'\n\004meta\030\001 \001(\0132\031.v1.CreateRequestMetad" + + "ata\022#\n\017secret_store_id\030\002 \001(\tB\n\362\370\263\007\005\260\363\263\007\001" + + ":(\372\370\263\007\006\322\363\263\007\001*\372\370\263\007\030\322\363\263\007\023!terraform-provid" + + "er\"\303\001\n\036SecretStoreHealthCheckResponse\022(\n" + + "\004meta\030\001 \001(\0132\032.v1.CreateResponseMetadata\022" + + "W\n\nrate_limit\030\002 \001(\0132\025.v1.RateLimitMetada" + + "taB,\362\370\263\007\005\260\363\263\007\001\362\370\263\007\006\262\364\263\007\001*\362\370\263\007\022\262\364\263\007\r!json" + + "_gateway:\036\372\370\263\007\017\322\363\263\007\ngo_private\372\370\263\007\005\250\363\263\007\001" + + "\"\327\001\n\036SecretStoreHealthcheckResponse\022(\n\004m" + + "eta\030\001 \001(\0132\032.v1.CreateResponseMetadata\022W\n" + + "\nrate_limit\030\002 \001(\0132\025.v1.RateLimitMetadata" + + "B,\362\370\263\007\005\260\363\263\007\001\362\370\263\007\006\262\364\263\007\001*\362\370\263\007\022\262\364\263\007\r!json_g" + + "ateway:2\372\370\263\007\006\322\363\263\007\001*\372\370\263\007\030\322\363\263\007\023!terraform-" + + "provider\372\370\263\007\005\250\363\263\007\001\"\373\002\n\021SecretStoreHealth" + + "\022#\n\017secret_store_id\030\001 \001(\tB\n\362\370\263\007\005\260\363\263\007\001\022\033\n" + + "\007node_id\030\002 \001(\tB\n\362\370\263\007\005\260\363\263\007\001\022\032\n\006status\030\004 \001" + + "(\tB\n\362\370\263\007\005\260\363\263\007\001\022:\n\nchanged_at\030\006 \001(\0132\032.goo" + + "gle.protobuf.TimestampB\n\362\370\263\007\005\260\363\263\007\001\022:\n\nch" + + "ecked_at\030\007 \001(\0132\032.google.protobuf.Timesta" + + "mpB\n\362\370\263\007\005\260\363\263\007\001\022\031\n\005error\030\010 \001(\tB\n\362\370\263\007\005\260\363\263\007" + + "\001\022 \n\014reachability\030\t \001(\tB\n\362\370\263\007\005\260\363\263\007\001\022\031\n\005f" + + "lags\030\n \003(\tB\n\362\370\263\007\005\260\363\263\007\001:2\372\370\263\007\006\322\363\263\007\001*\372\370\263\007\030" + + "\322\363\263\007\023!terraform-provider\372\370\263\007\005\250\363\263\007\001J\004\010\003\020\004" + + "2\215\004\n\022SecretStoreHealths\022|\n\004List\022 .v1.Sec" + + "retStoreHealthListRequest\032!.v1.SecretSto" + + "reHealthListResponse\"/\202\371\263\007\010\242\363\263\007\003get\202\371\263\007\035" + + "\252\363\263\007\030/v1/secret-store-healths\022\224\001\n\005Check\022" + + "!.v1.SecretStoreHealthCheckRequest\032\".v1." + + "SecretStoreHealthCheckResponse\"D\202\371\263\007\t\242\363\263" + + "\007\004post\202\371\263\007\035\252\363\263\007\030/v1/secret-store-healths" + + "\202\371\263\007\017\312\371\263\007\ngo_private\022\206\001\n\013Healthcheck\022!.v" + + "1.SecretStoreHealthcheckRequest\032\".v1.Sec" + + "retStoreHealthcheckResponse\"0\202\371\263\007\t\242\363\263\007\004p" + + "ost\202\371\263\007\035\252\363\263\007\030/v1/secret-store-healths\032Y\312" + + "\371\263\007\026\302\371\263\007\021SecretStoreHealth\312\371\263\007\007\322\371\263\007\002x-\312\371" + + "\263\007\005\330\371\263\007\001\312\371\263\007\006\312\371\263\007\001*\312\371\263\007\030\312\371\263\007\023!terraform-" + + "providerB\226\001\n\031com.strongdm.api.plumbingB\032" + + "SecretStoreHealthsPlumbingZ5github.com/s" + + "trongdm/strongdm-sdk-go/v3/internal/v1;v" + + "1\302\222\264\007\006\242\214\264\007\001*\302\222\264\007\030\242\214\264\007\023!terraform-provide" + + "rb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.strongdm.api.plumbing.Options.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.strongdm.api.plumbing.Spec.getDescriptor(), + }); + internal_static_v1_SecretStoreHealthListRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_v1_SecretStoreHealthListRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_v1_SecretStoreHealthListRequest_descriptor, + new java.lang.String[] { "Meta", "Filter", }); + internal_static_v1_SecretStoreHealthListResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_v1_SecretStoreHealthListResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_v1_SecretStoreHealthListResponse_descriptor, + new java.lang.String[] { "Meta", "SecretStoreHealths", "RateLimit", }); + internal_static_v1_SecretStoreHealthCheckRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_v1_SecretStoreHealthCheckRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_v1_SecretStoreHealthCheckRequest_descriptor, + new java.lang.String[] { "Meta", "SecretStoreId", }); + internal_static_v1_SecretStoreHealthcheckRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_v1_SecretStoreHealthcheckRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_v1_SecretStoreHealthcheckRequest_descriptor, + new java.lang.String[] { "Meta", "SecretStoreId", }); + internal_static_v1_SecretStoreHealthCheckResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_v1_SecretStoreHealthCheckResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_v1_SecretStoreHealthCheckResponse_descriptor, + new java.lang.String[] { "Meta", "RateLimit", }); + internal_static_v1_SecretStoreHealthcheckResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_v1_SecretStoreHealthcheckResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_v1_SecretStoreHealthcheckResponse_descriptor, + new java.lang.String[] { "Meta", "RateLimit", }); + internal_static_v1_SecretStoreHealth_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_v1_SecretStoreHealth_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_v1_SecretStoreHealth_descriptor, + new java.lang.String[] { "SecretStoreId", "NodeId", "Status", "ChangedAt", "CheckedAt", "Error", "Reachability", "Flags", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.strongdm.api.plumbing.Options.fieldOptions); + registry.add(com.strongdm.api.plumbing.Options.fileOptions); + registry.add(com.strongdm.api.plumbing.Options.messageOptions); + registry.add(com.strongdm.api.plumbing.Options.methodOptions); + registry.add(com.strongdm.api.plumbing.Options.serviceOptions); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.strongdm.api.plumbing.Options.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.strongdm.api.plumbing.Spec.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +}