diff --git a/com/strongdm/api/AccountResourceHistory.java b/com/strongdm/api/AccountResourceHistory.java new file mode 100644 index 0000000..cf7b55b --- /dev/null +++ b/com/strongdm/api/AccountResourceHistory.java @@ -0,0 +1,72 @@ +// 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; + +/** + * AccountResourceHistory records the state of a AccountResource at a given point in time, where + * every change (create or delete) to a AccountResource produces an AccountResourceHistory record. + */ +public class AccountResourceHistory { + private AccountResource accountResource; + /** The complete AccountResource state at this time. */ + public AccountResource getAccountResource() { + return this.accountResource; + } + /** The complete AccountResource state at this time. */ + public void setAccountResource(AccountResource in) { + this.accountResource = in; + } + + private String activityId; + /** + * The unique identifier of the Activity that produced this change to the AccountResource. May be + * empty for some system-initiated updates. + */ + public String getActivityId() { + return this.activityId; + } + /** + * The unique identifier of the Activity that produced this change to the AccountResource. May be + * empty for some system-initiated updates. + */ + public void setActivityId(String in) { + this.activityId = in; + } + + private Date deletedAt; + /** If this AccountResource was deleted, the time it was deleted. */ + public Date getDeletedAt() { + return this.deletedAt; + } + /** If this AccountResource was deleted, the time it was deleted. */ + public void setDeletedAt(Date in) { + this.deletedAt = in; + } + + private Date timestamp; + /** The time at which the AccountResource state was recorded. */ + public Date getTimestamp() { + return this.timestamp; + } + /** The time at which the AccountResource state was recorded. */ + public void setTimestamp(Date in) { + this.timestamp = in; + } +} diff --git a/com/strongdm/api/AccountResourcesHistory.java b/com/strongdm/api/AccountResourcesHistory.java new file mode 100644 index 0000000..f25991f --- /dev/null +++ b/com/strongdm/api/AccountResourcesHistory.java @@ -0,0 +1,111 @@ +// 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.AccountResourcesHistoryGrpc; +import com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing; +import com.strongdm.api.plumbing.PageIterator; +import com.strongdm.api.plumbing.PageResult; +import com.strongdm.api.plumbing.Plumbing; +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; + +/** AccountResourcesHistory records all changes to the state of a AccountResource. */ +public class AccountResourcesHistory { + private final AccountResourcesHistoryGrpc.AccountResourcesHistoryBlockingStub stub; + private final Client parent; + + public AccountResourcesHistory(ManagedChannel channel, Client client) { + + this.stub = AccountResourcesHistoryGrpc.newBlockingStub(channel); + this.parent = client; + } + + private AccountResourcesHistory( + AccountResourcesHistoryGrpc.AccountResourcesHistoryBlockingStub stub, Client client) { + this.stub = stub; + this.parent = client; + } + + /** + * This function returns a copy of the AccountResourcesHistory service which has the given + * deadline set for all method calls. + */ + public AccountResourcesHistory withDeadlineAfter(long duration, TimeUnit units) { + return new AccountResourcesHistory(this.stub.withDeadlineAfter(duration, units), this.parent); + } + /** List gets a list of AccountResourceHistory records matching a given set of criteria. */ + public Iterable list(String filter, Object... args) throws RpcException { + AccountResourcesHistoryPlumbing.AccountResourceHistoryListRequest.Builder builder = + AccountResourcesHistoryPlumbing.AccountResourceHistoryListRequest.newBuilder(); + builder.setFilter(Plumbing.quoteFilterArgs(filter, args)); + ListRequestMetadata.Builder metaBuilder = ListRequestMetadata.newBuilder(); + Object pageSizeOption = this.parent.testOptions.get("PageSize"); + if (pageSizeOption instanceof Integer) { + metaBuilder.setLimit((int) pageSizeOption); + } + 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 + AccountResourcesHistoryPlumbing.AccountResourceHistoryListRequest req = builder.build(); + AccountResourcesHistoryPlumbing.AccountResourceHistoryListResponse plumbingResponse; + int tries = 0; + while (true) { + try { + plumbingResponse = + this.stub + .withCallCredentials( + this.parent.getCallCredentials("AccountResourcesHistory.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.convertRepeatedAccountResourceHistoryToPorcelain( + plumbingResponse.getHistoryList()); + + 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; + } +} diff --git a/com/strongdm/api/ActivityVerb.java b/com/strongdm/api/ActivityVerb.java index 10665d1..8ec161d 100755 --- a/com/strongdm/api/ActivityVerb.java +++ b/com/strongdm/api/ActivityVerb.java @@ -179,6 +179,8 @@ public final class ActivityVerb { public static final String WORKFLOW_NOTIFICATION_OPTIONS_UPDATED = "workflow notification settings updated"; public static final String ORG_VNM_SUBNET_UPDATED = "organization VNM subnet updated"; + public static final String ORG_VNM_RESOURCES_ALLOCATED = + "organization resources allocated within VNM subnet"; public static final String DEPRECATED_ORG_ACTIVATE_DEVICE_APPROVAL = "activate device approval"; public static final String DEPRECATED_ORG_DEACTIVATE_DEVICE_APPROVAL = "deactivate device approval"; diff --git a/com/strongdm/api/Client.java b/com/strongdm/api/Client.java index e740b26..0e53653 100644 --- a/com/strongdm/api/Client.java +++ b/com/strongdm/api/Client.java @@ -100,6 +100,13 @@ public AccountResources accountResources() { return this.accountResources; } + protected final AccountResourcesHistory accountResourcesHistory; + + /** AccountResourcesHistory records all changes to the state of a AccountResource. */ + public AccountResourcesHistory accountResourcesHistory() { + return this.accountResourcesHistory; + } + protected final Accounts accounts; /** @@ -301,6 +308,7 @@ private Client(Client client) { this.accountGrantsHistory = new AccountGrantsHistory(this.channel, this); this.accountPermissions = new AccountPermissions(this.channel, this); this.accountResources = new AccountResources(this.channel, this); + this.accountResourcesHistory = new AccountResourcesHistory(this.channel, this); this.accounts = new Accounts(this.channel, this); this.accountsHistory = new AccountsHistory(this.channel, this); this.activities = new Activities(this.channel, this); @@ -349,6 +357,7 @@ public Client(String apiAccessKey, String apiSecretKey, ClientOptions options) this.accountGrantsHistory = new AccountGrantsHistory(this.channel, this); this.accountPermissions = new AccountPermissions(this.channel, this); this.accountResources = new AccountResources(this.channel, this); + this.accountResourcesHistory = new AccountResourcesHistory(this.channel, this); this.accounts = new Accounts(this.channel, this); this.accountsHistory = new AccountsHistory(this.channel, this); this.activities = new Activities(this.channel, this); diff --git a/com/strongdm/api/SigningCallCredential.java b/com/strongdm/api/SigningCallCredential.java index 28c7ca2..59388ea 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/3.9.0"; + private static final String USER_AGENT = "strongdm-sdk-java/3.10.0"; protected SigningCallCredential(String apiAccessKey, String signature) { this.apiAccessKey = apiAccessKey; diff --git a/com/strongdm/api/plumbing/AccountResourcesHistoryGrpc.java b/com/strongdm/api/plumbing/AccountResourcesHistoryGrpc.java new file mode 100644 index 0000000..6390c1c --- /dev/null +++ b/com/strongdm/api/plumbing/AccountResourcesHistoryGrpc.java @@ -0,0 +1,329 @@ +// 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; + +/** + *
+ * AccountResourcesHistory records all changes to the state of a AccountResource.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.26.0)", + comments = "Source: account_resources_history.proto") +public final class AccountResourcesHistoryGrpc { + + private AccountResourcesHistoryGrpc() {} + + public static final String SERVICE_NAME = "v1.AccountResourcesHistory"; + + // 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.AccountResourcesHistoryPlumbing.AccountResourceHistoryListRequest.class, + responseType = com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListMethod() { + io.grpc.MethodDescriptor getListMethod; + if ((getListMethod = AccountResourcesHistoryGrpc.getListMethod) == null) { + synchronized (AccountResourcesHistoryGrpc.class) { + if ((getListMethod = AccountResourcesHistoryGrpc.getListMethod) == null) { + AccountResourcesHistoryGrpc.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.AccountResourcesHistoryPlumbing.AccountResourceHistoryListRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListResponse.getDefaultInstance())) + .setSchemaDescriptor(new AccountResourcesHistoryMethodDescriptorSupplier("List")) + .build(); + } + } + } + return getListMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static AccountResourcesHistoryStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AccountResourcesHistoryStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AccountResourcesHistoryStub(channel, callOptions); + } + }; + return AccountResourcesHistoryStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AccountResourcesHistoryBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AccountResourcesHistoryBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AccountResourcesHistoryBlockingStub(channel, callOptions); + } + }; + return AccountResourcesHistoryBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static AccountResourcesHistoryFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AccountResourcesHistoryFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AccountResourcesHistoryFutureStub(channel, callOptions); + } + }; + return AccountResourcesHistoryFutureStub.newStub(factory, channel); + } + + /** + *
+   * AccountResourcesHistory records all changes to the state of a AccountResource.
+   * 
+ */ + public static abstract class AccountResourcesHistoryImplBase implements io.grpc.BindableService { + + /** + *
+     * List gets a list of AccountResourceHistory records matching a given set of criteria.
+     * 
+ */ + public void list(com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getListMethod(), 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.AccountResourcesHistoryPlumbing.AccountResourceHistoryListRequest, + com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListResponse>( + this, METHODID_LIST))) + .build(); + } + } + + /** + *
+   * AccountResourcesHistory records all changes to the state of a AccountResource.
+   * 
+ */ + public static final class AccountResourcesHistoryStub extends io.grpc.stub.AbstractAsyncStub { + private AccountResourcesHistoryStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AccountResourcesHistoryStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AccountResourcesHistoryStub(channel, callOptions); + } + + /** + *
+     * List gets a list of AccountResourceHistory records matching a given set of criteria.
+     * 
+ */ + public void list(com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getListMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * AccountResourcesHistory records all changes to the state of a AccountResource.
+   * 
+ */ + public static final class AccountResourcesHistoryBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private AccountResourcesHistoryBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AccountResourcesHistoryBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AccountResourcesHistoryBlockingStub(channel, callOptions); + } + + /** + *
+     * List gets a list of AccountResourceHistory records matching a given set of criteria.
+     * 
+ */ + public com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListResponse list(com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListRequest request) { + return blockingUnaryCall( + getChannel(), getListMethod(), getCallOptions(), request); + } + } + + /** + *
+   * AccountResourcesHistory records all changes to the state of a AccountResource.
+   * 
+ */ + public static final class AccountResourcesHistoryFutureStub extends io.grpc.stub.AbstractFutureStub { + private AccountResourcesHistoryFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AccountResourcesHistoryFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AccountResourcesHistoryFutureStub(channel, callOptions); + } + + /** + *
+     * List gets a list of AccountResourceHistory records matching a given set of criteria.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture list( + com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListRequest request) { + return futureUnaryCall( + getChannel().newCall(getListMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST = 0; + + 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 AccountResourcesHistoryImplBase serviceImpl; + private final int methodId; + + MethodHandlers(AccountResourcesHistoryImplBase 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.AccountResourcesHistoryPlumbing.AccountResourceHistoryListRequest) 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 AccountResourcesHistoryBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AccountResourcesHistoryBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("AccountResourcesHistory"); + } + } + + private static final class AccountResourcesHistoryFileDescriptorSupplier + extends AccountResourcesHistoryBaseDescriptorSupplier { + AccountResourcesHistoryFileDescriptorSupplier() {} + } + + private static final class AccountResourcesHistoryMethodDescriptorSupplier + extends AccountResourcesHistoryBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + AccountResourcesHistoryMethodDescriptorSupplier(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 (AccountResourcesHistoryGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AccountResourcesHistoryFileDescriptorSupplier()) + .addMethod(getListMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/com/strongdm/api/plumbing/AccountResourcesHistoryPlumbing.java b/com/strongdm/api/plumbing/AccountResourcesHistoryPlumbing.java new file mode 100644 index 0000000..348329d --- /dev/null +++ b/com/strongdm/api/plumbing/AccountResourcesHistoryPlumbing.java @@ -0,0 +1,3868 @@ +// 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: account_resources_history.proto + +package com.strongdm.api.plumbing; + +public final class AccountResourcesHistoryPlumbing { + private AccountResourcesHistoryPlumbing() {} + 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 AccountResourceHistoryListRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:v1.AccountResourceHistoryListRequest) + 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(); + } + /** + *
+   * AccountResourceHistoryListRequest specifies criteria for retrieving a list of
+   * AccountResourceHistory records.
+   * 
+ * + * Protobuf type {@code v1.AccountResourceHistoryListRequest} + */ + public static final class AccountResourceHistoryListRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:v1.AccountResourceHistoryListRequest) + AccountResourceHistoryListRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccountResourceHistoryListRequest.newBuilder() to construct. + private AccountResourceHistoryListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AccountResourceHistoryListRequest() { + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AccountResourceHistoryListRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AccountResourceHistoryListRequest( + 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.AccountResourcesHistoryPlumbing.internal_static_v1_AccountResourceHistoryListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.internal_static_v1_AccountResourceHistoryListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListRequest.class, com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListRequest.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.AccountResourcesHistoryPlumbing.AccountResourceHistoryListRequest)) { + return super.equals(obj); + } + com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListRequest other = (com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListRequest) 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.AccountResourcesHistoryPlumbing.AccountResourceHistoryListRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListRequest 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.AccountResourcesHistoryPlumbing.AccountResourceHistoryListRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListRequest 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.AccountResourcesHistoryPlumbing.AccountResourceHistoryListRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListRequest 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.AccountResourcesHistoryPlumbing.AccountResourceHistoryListRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListRequest 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.AccountResourcesHistoryPlumbing.AccountResourceHistoryListRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListRequest 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.AccountResourcesHistoryPlumbing.AccountResourceHistoryListRequest 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; + } + /** + *
+     * AccountResourceHistoryListRequest specifies criteria for retrieving a list of
+     * AccountResourceHistory records.
+     * 
+ * + * Protobuf type {@code v1.AccountResourceHistoryListRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:v1.AccountResourceHistoryListRequest) + com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.internal_static_v1_AccountResourceHistoryListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.internal_static_v1_AccountResourceHistoryListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListRequest.class, com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListRequest.Builder.class); + } + + // Construct using com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListRequest.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.AccountResourcesHistoryPlumbing.internal_static_v1_AccountResourceHistoryListRequest_descriptor; + } + + @java.lang.Override + public com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListRequest getDefaultInstanceForType() { + return com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListRequest build() { + com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListRequest buildPartial() { + com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListRequest result = new com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListRequest(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.AccountResourcesHistoryPlumbing.AccountResourceHistoryListRequest) { + return mergeFrom((com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListRequest other) { + if (other == com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListRequest.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.AccountResourcesHistoryPlumbing.AccountResourceHistoryListRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListRequest) 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.AccountResourceHistoryListRequest) + } + + // @@protoc_insertion_point(class_scope:v1.AccountResourceHistoryListRequest) + private static final com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListRequest(); + } + + public static com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccountResourceHistoryListRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AccountResourceHistoryListRequest(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.AccountResourcesHistoryPlumbing.AccountResourceHistoryListRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AccountResourceHistoryListResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:v1.AccountResourceHistoryListResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Paging information for the query.
+     * 
+ * + * .v1.ListResponseMetadata meta = 1; + * @return Whether the meta field is set. + */ + boolean hasMeta(); + /** + *
+     * Paging information for the query.
+     * 
+ * + * .v1.ListResponseMetadata meta = 1; + * @return The meta. + */ + com.strongdm.api.plumbing.Spec.ListResponseMetadata getMeta(); + /** + *
+     * Paging information for the query.
+     * 
+ * + * .v1.ListResponseMetadata meta = 1; + */ + com.strongdm.api.plumbing.Spec.ListResponseMetadataOrBuilder getMetaOrBuilder(); + + /** + *
+     * A single page of results matching the list request criteria.
+     * 
+ * + * repeated .v1.AccountResourceHistory history = 2 [(.v1.field_options) = { ... } + */ + java.util.List + getHistoryList(); + /** + *
+     * A single page of results matching the list request criteria.
+     * 
+ * + * repeated .v1.AccountResourceHistory history = 2 [(.v1.field_options) = { ... } + */ + com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistory getHistory(int index); + /** + *
+     * A single page of results matching the list request criteria.
+     * 
+ * + * repeated .v1.AccountResourceHistory history = 2 [(.v1.field_options) = { ... } + */ + int getHistoryCount(); + /** + *
+     * A single page of results matching the list request criteria.
+     * 
+ * + * repeated .v1.AccountResourceHistory history = 2 [(.v1.field_options) = { ... } + */ + java.util.List + getHistoryOrBuilderList(); + /** + *
+     * A single page of results matching the list request criteria.
+     * 
+ * + * repeated .v1.AccountResourceHistory history = 2 [(.v1.field_options) = { ... } + */ + com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryOrBuilder getHistoryOrBuilder( + 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(); + } + /** + *
+   * AccountResourceHistoryListResponse returns a list of AccountResourceHistory records that meet
+   * the criteria of an AccountResourceHistoryListRequest.
+   * 
+ * + * Protobuf type {@code v1.AccountResourceHistoryListResponse} + */ + public static final class AccountResourceHistoryListResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:v1.AccountResourceHistoryListResponse) + AccountResourceHistoryListResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccountResourceHistoryListResponse.newBuilder() to construct. + private AccountResourceHistoryListResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AccountResourceHistoryListResponse() { + history_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AccountResourceHistoryListResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AccountResourceHistoryListResponse( + 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)) { + history_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + history_.add( + input.readMessage(com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistory.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)) { + history_ = java.util.Collections.unmodifiableList(history_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.internal_static_v1_AccountResourceHistoryListResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.internal_static_v1_AccountResourceHistoryListResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListResponse.class, com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListResponse.Builder.class); + } + + public static final int META_FIELD_NUMBER = 1; + private com.strongdm.api.plumbing.Spec.ListResponseMetadata meta_; + /** + *
+     * Paging information for the query.
+     * 
+ * + * .v1.ListResponseMetadata meta = 1; + * @return Whether the meta field is set. + */ + @java.lang.Override + public boolean hasMeta() { + return meta_ != null; + } + /** + *
+     * Paging information for the query.
+     * 
+ * + * .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_; + } + /** + *
+     * Paging information for the query.
+     * 
+ * + * .v1.ListResponseMetadata meta = 1; + */ + @java.lang.Override + public com.strongdm.api.plumbing.Spec.ListResponseMetadataOrBuilder getMetaOrBuilder() { + return getMeta(); + } + + public static final int HISTORY_FIELD_NUMBER = 2; + private java.util.List history_; + /** + *
+     * A single page of results matching the list request criteria.
+     * 
+ * + * repeated .v1.AccountResourceHistory history = 2 [(.v1.field_options) = { ... } + */ + @java.lang.Override + public java.util.List getHistoryList() { + return history_; + } + /** + *
+     * A single page of results matching the list request criteria.
+     * 
+ * + * repeated .v1.AccountResourceHistory history = 2 [(.v1.field_options) = { ... } + */ + @java.lang.Override + public java.util.List + getHistoryOrBuilderList() { + return history_; + } + /** + *
+     * A single page of results matching the list request criteria.
+     * 
+ * + * repeated .v1.AccountResourceHistory history = 2 [(.v1.field_options) = { ... } + */ + @java.lang.Override + public int getHistoryCount() { + return history_.size(); + } + /** + *
+     * A single page of results matching the list request criteria.
+     * 
+ * + * repeated .v1.AccountResourceHistory history = 2 [(.v1.field_options) = { ... } + */ + @java.lang.Override + public com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistory getHistory(int index) { + return history_.get(index); + } + /** + *
+     * A single page of results matching the list request criteria.
+     * 
+ * + * repeated .v1.AccountResourceHistory history = 2 [(.v1.field_options) = { ... } + */ + @java.lang.Override + public com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryOrBuilder getHistoryOrBuilder( + int index) { + return history_.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 < history_.size(); i++) { + output.writeMessage(2, history_.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 < history_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, history_.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.AccountResourcesHistoryPlumbing.AccountResourceHistoryListResponse)) { + return super.equals(obj); + } + com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListResponse other = (com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListResponse) obj; + + if (hasMeta() != other.hasMeta()) return false; + if (hasMeta()) { + if (!getMeta() + .equals(other.getMeta())) return false; + } + if (!getHistoryList() + .equals(other.getHistoryList())) 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 (getHistoryCount() > 0) { + hash = (37 * hash) + HISTORY_FIELD_NUMBER; + hash = (53 * hash) + getHistoryList().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.AccountResourcesHistoryPlumbing.AccountResourceHistoryListResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListResponse 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.AccountResourcesHistoryPlumbing.AccountResourceHistoryListResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListResponse 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.AccountResourcesHistoryPlumbing.AccountResourceHistoryListResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListResponse 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.AccountResourcesHistoryPlumbing.AccountResourceHistoryListResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListResponse 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.AccountResourcesHistoryPlumbing.AccountResourceHistoryListResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListResponse 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.AccountResourcesHistoryPlumbing.AccountResourceHistoryListResponse 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; + } + /** + *
+     * AccountResourceHistoryListResponse returns a list of AccountResourceHistory records that meet
+     * the criteria of an AccountResourceHistoryListRequest.
+     * 
+ * + * Protobuf type {@code v1.AccountResourceHistoryListResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:v1.AccountResourceHistoryListResponse) + com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.internal_static_v1_AccountResourceHistoryListResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.internal_static_v1_AccountResourceHistoryListResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListResponse.class, com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListResponse.Builder.class); + } + + // Construct using com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getHistoryFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (metaBuilder_ == null) { + meta_ = null; + } else { + meta_ = null; + metaBuilder_ = null; + } + if (historyBuilder_ == null) { + history_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + historyBuilder_.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.AccountResourcesHistoryPlumbing.internal_static_v1_AccountResourceHistoryListResponse_descriptor; + } + + @java.lang.Override + public com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListResponse getDefaultInstanceForType() { + return com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListResponse build() { + com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListResponse buildPartial() { + com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListResponse result = new com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListResponse(this); + int from_bitField0_ = bitField0_; + if (metaBuilder_ == null) { + result.meta_ = meta_; + } else { + result.meta_ = metaBuilder_.build(); + } + if (historyBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + history_ = java.util.Collections.unmodifiableList(history_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.history_ = history_; + } else { + result.history_ = historyBuilder_.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.AccountResourcesHistoryPlumbing.AccountResourceHistoryListResponse) { + return mergeFrom((com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListResponse other) { + if (other == com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListResponse.getDefaultInstance()) return this; + if (other.hasMeta()) { + mergeMeta(other.getMeta()); + } + if (historyBuilder_ == null) { + if (!other.history_.isEmpty()) { + if (history_.isEmpty()) { + history_ = other.history_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureHistoryIsMutable(); + history_.addAll(other.history_); + } + onChanged(); + } + } else { + if (!other.history_.isEmpty()) { + if (historyBuilder_.isEmpty()) { + historyBuilder_.dispose(); + historyBuilder_ = null; + history_ = other.history_; + bitField0_ = (bitField0_ & ~0x00000001); + historyBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getHistoryFieldBuilder() : null; + } else { + historyBuilder_.addAllMessages(other.history_); + } + } + } + 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.AccountResourcesHistoryPlumbing.AccountResourceHistoryListResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListResponse) 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_; + /** + *
+       * Paging information for the query.
+       * 
+ * + * .v1.ListResponseMetadata meta = 1; + * @return Whether the meta field is set. + */ + public boolean hasMeta() { + return metaBuilder_ != null || meta_ != null; + } + /** + *
+       * Paging information for the query.
+       * 
+ * + * .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(); + } + } + /** + *
+       * Paging information for the query.
+       * 
+ * + * .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; + } + /** + *
+       * Paging information for the query.
+       * 
+ * + * .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; + } + /** + *
+       * Paging information for the query.
+       * 
+ * + * .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; + } + /** + *
+       * Paging information for the query.
+       * 
+ * + * .v1.ListResponseMetadata meta = 1; + */ + public Builder clearMeta() { + if (metaBuilder_ == null) { + meta_ = null; + onChanged(); + } else { + meta_ = null; + metaBuilder_ = null; + } + + return this; + } + /** + *
+       * Paging information for the query.
+       * 
+ * + * .v1.ListResponseMetadata meta = 1; + */ + public com.strongdm.api.plumbing.Spec.ListResponseMetadata.Builder getMetaBuilder() { + + onChanged(); + return getMetaFieldBuilder().getBuilder(); + } + /** + *
+       * Paging information for the query.
+       * 
+ * + * .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_; + } + } + /** + *
+       * Paging information for the query.
+       * 
+ * + * .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 history_ = + java.util.Collections.emptyList(); + private void ensureHistoryIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + history_ = new java.util.ArrayList(history_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistory, com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistory.Builder, com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryOrBuilder> historyBuilder_; + + /** + *
+       * A single page of results matching the list request criteria.
+       * 
+ * + * repeated .v1.AccountResourceHistory history = 2 [(.v1.field_options) = { ... } + */ + public java.util.List getHistoryList() { + if (historyBuilder_ == null) { + return java.util.Collections.unmodifiableList(history_); + } else { + return historyBuilder_.getMessageList(); + } + } + /** + *
+       * A single page of results matching the list request criteria.
+       * 
+ * + * repeated .v1.AccountResourceHistory history = 2 [(.v1.field_options) = { ... } + */ + public int getHistoryCount() { + if (historyBuilder_ == null) { + return history_.size(); + } else { + return historyBuilder_.getCount(); + } + } + /** + *
+       * A single page of results matching the list request criteria.
+       * 
+ * + * repeated .v1.AccountResourceHistory history = 2 [(.v1.field_options) = { ... } + */ + public com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistory getHistory(int index) { + if (historyBuilder_ == null) { + return history_.get(index); + } else { + return historyBuilder_.getMessage(index); + } + } + /** + *
+       * A single page of results matching the list request criteria.
+       * 
+ * + * repeated .v1.AccountResourceHistory history = 2 [(.v1.field_options) = { ... } + */ + public Builder setHistory( + int index, com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistory value) { + if (historyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHistoryIsMutable(); + history_.set(index, value); + onChanged(); + } else { + historyBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * A single page of results matching the list request criteria.
+       * 
+ * + * repeated .v1.AccountResourceHistory history = 2 [(.v1.field_options) = { ... } + */ + public Builder setHistory( + int index, com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistory.Builder builderForValue) { + if (historyBuilder_ == null) { + ensureHistoryIsMutable(); + history_.set(index, builderForValue.build()); + onChanged(); + } else { + historyBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A single page of results matching the list request criteria.
+       * 
+ * + * repeated .v1.AccountResourceHistory history = 2 [(.v1.field_options) = { ... } + */ + public Builder addHistory(com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistory value) { + if (historyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHistoryIsMutable(); + history_.add(value); + onChanged(); + } else { + historyBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * A single page of results matching the list request criteria.
+       * 
+ * + * repeated .v1.AccountResourceHistory history = 2 [(.v1.field_options) = { ... } + */ + public Builder addHistory( + int index, com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistory value) { + if (historyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHistoryIsMutable(); + history_.add(index, value); + onChanged(); + } else { + historyBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * A single page of results matching the list request criteria.
+       * 
+ * + * repeated .v1.AccountResourceHistory history = 2 [(.v1.field_options) = { ... } + */ + public Builder addHistory( + com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistory.Builder builderForValue) { + if (historyBuilder_ == null) { + ensureHistoryIsMutable(); + history_.add(builderForValue.build()); + onChanged(); + } else { + historyBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * A single page of results matching the list request criteria.
+       * 
+ * + * repeated .v1.AccountResourceHistory history = 2 [(.v1.field_options) = { ... } + */ + public Builder addHistory( + int index, com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistory.Builder builderForValue) { + if (historyBuilder_ == null) { + ensureHistoryIsMutable(); + history_.add(index, builderForValue.build()); + onChanged(); + } else { + historyBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A single page of results matching the list request criteria.
+       * 
+ * + * repeated .v1.AccountResourceHistory history = 2 [(.v1.field_options) = { ... } + */ + public Builder addAllHistory( + java.lang.Iterable values) { + if (historyBuilder_ == null) { + ensureHistoryIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, history_); + onChanged(); + } else { + historyBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * A single page of results matching the list request criteria.
+       * 
+ * + * repeated .v1.AccountResourceHistory history = 2 [(.v1.field_options) = { ... } + */ + public Builder clearHistory() { + if (historyBuilder_ == null) { + history_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + historyBuilder_.clear(); + } + return this; + } + /** + *
+       * A single page of results matching the list request criteria.
+       * 
+ * + * repeated .v1.AccountResourceHistory history = 2 [(.v1.field_options) = { ... } + */ + public Builder removeHistory(int index) { + if (historyBuilder_ == null) { + ensureHistoryIsMutable(); + history_.remove(index); + onChanged(); + } else { + historyBuilder_.remove(index); + } + return this; + } + /** + *
+       * A single page of results matching the list request criteria.
+       * 
+ * + * repeated .v1.AccountResourceHistory history = 2 [(.v1.field_options) = { ... } + */ + public com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistory.Builder getHistoryBuilder( + int index) { + return getHistoryFieldBuilder().getBuilder(index); + } + /** + *
+       * A single page of results matching the list request criteria.
+       * 
+ * + * repeated .v1.AccountResourceHistory history = 2 [(.v1.field_options) = { ... } + */ + public com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryOrBuilder getHistoryOrBuilder( + int index) { + if (historyBuilder_ == null) { + return history_.get(index); } else { + return historyBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * A single page of results matching the list request criteria.
+       * 
+ * + * repeated .v1.AccountResourceHistory history = 2 [(.v1.field_options) = { ... } + */ + public java.util.List + getHistoryOrBuilderList() { + if (historyBuilder_ != null) { + return historyBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(history_); + } + } + /** + *
+       * A single page of results matching the list request criteria.
+       * 
+ * + * repeated .v1.AccountResourceHistory history = 2 [(.v1.field_options) = { ... } + */ + public com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistory.Builder addHistoryBuilder() { + return getHistoryFieldBuilder().addBuilder( + com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistory.getDefaultInstance()); + } + /** + *
+       * A single page of results matching the list request criteria.
+       * 
+ * + * repeated .v1.AccountResourceHistory history = 2 [(.v1.field_options) = { ... } + */ + public com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistory.Builder addHistoryBuilder( + int index) { + return getHistoryFieldBuilder().addBuilder( + index, com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistory.getDefaultInstance()); + } + /** + *
+       * A single page of results matching the list request criteria.
+       * 
+ * + * repeated .v1.AccountResourceHistory history = 2 [(.v1.field_options) = { ... } + */ + public java.util.List + getHistoryBuilderList() { + return getHistoryFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistory, com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistory.Builder, com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryOrBuilder> + getHistoryFieldBuilder() { + if (historyBuilder_ == null) { + historyBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistory, com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistory.Builder, com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryOrBuilder>( + history_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + history_ = null; + } + return historyBuilder_; + } + + 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.AccountResourceHistoryListResponse) + } + + // @@protoc_insertion_point(class_scope:v1.AccountResourceHistoryListResponse) + private static final com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListResponse(); + } + + public static com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryListResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccountResourceHistoryListResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AccountResourceHistoryListResponse(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.AccountResourcesHistoryPlumbing.AccountResourceHistoryListResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AccountResourceHistoryOrBuilder extends + // @@protoc_insertion_point(interface_extends:v1.AccountResourceHistory) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The unique identifier of the Activity that produced this change to the AccountResource.
+     * May be empty for some system-initiated updates.
+     * 
+ * + * string activity_id = 1 [(.v1.field_options) = { ... } + * @return The activityId. + */ + java.lang.String getActivityId(); + /** + *
+     * The unique identifier of the Activity that produced this change to the AccountResource.
+     * May be empty for some system-initiated updates.
+     * 
+ * + * string activity_id = 1 [(.v1.field_options) = { ... } + * @return The bytes for activityId. + */ + com.google.protobuf.ByteString + getActivityIdBytes(); + + /** + *
+     * The time at which the AccountResource state was recorded.
+     * 
+ * + * .google.protobuf.Timestamp timestamp = 2 [(.v1.field_options) = { ... } + * @return Whether the timestamp field is set. + */ + boolean hasTimestamp(); + /** + *
+     * The time at which the AccountResource state was recorded.
+     * 
+ * + * .google.protobuf.Timestamp timestamp = 2 [(.v1.field_options) = { ... } + * @return The timestamp. + */ + com.google.protobuf.Timestamp getTimestamp(); + /** + *
+     * The time at which the AccountResource state was recorded.
+     * 
+ * + * .google.protobuf.Timestamp timestamp = 2 [(.v1.field_options) = { ... } + */ + com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder(); + + /** + *
+     * The complete AccountResource state at this time.
+     * 
+ * + * .v1.AccountResource account_resource = 3 [(.v1.field_options) = { ... } + * @return Whether the accountResource field is set. + */ + boolean hasAccountResource(); + /** + *
+     * The complete AccountResource state at this time.
+     * 
+ * + * .v1.AccountResource account_resource = 3 [(.v1.field_options) = { ... } + * @return The accountResource. + */ + com.strongdm.api.plumbing.AccountResourcesPlumbing.AccountResource getAccountResource(); + /** + *
+     * The complete AccountResource state at this time.
+     * 
+ * + * .v1.AccountResource account_resource = 3 [(.v1.field_options) = { ... } + */ + com.strongdm.api.plumbing.AccountResourcesPlumbing.AccountResourceOrBuilder getAccountResourceOrBuilder(); + + /** + *
+     * If this AccountResource was deleted, the time it was deleted.
+     * 
+ * + * .google.protobuf.Timestamp deleted_at = 4 [(.v1.field_options) = { ... } + * @return Whether the deletedAt field is set. + */ + boolean hasDeletedAt(); + /** + *
+     * If this AccountResource was deleted, the time it was deleted.
+     * 
+ * + * .google.protobuf.Timestamp deleted_at = 4 [(.v1.field_options) = { ... } + * @return The deletedAt. + */ + com.google.protobuf.Timestamp getDeletedAt(); + /** + *
+     * If this AccountResource was deleted, the time it was deleted.
+     * 
+ * + * .google.protobuf.Timestamp deleted_at = 4 [(.v1.field_options) = { ... } + */ + com.google.protobuf.TimestampOrBuilder getDeletedAtOrBuilder(); + } + /** + *
+   * AccountResourceHistory records the state of a AccountResource at a given point in time,
+   * where every change (create or delete) to a AccountResource produces an
+   * AccountResourceHistory record.
+   * 
+ * + * Protobuf type {@code v1.AccountResourceHistory} + */ + public static final class AccountResourceHistory extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:v1.AccountResourceHistory) + AccountResourceHistoryOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccountResourceHistory.newBuilder() to construct. + private AccountResourceHistory(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AccountResourceHistory() { + activityId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AccountResourceHistory(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AccountResourceHistory( + 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: { + java.lang.String s = input.readStringRequireUtf8(); + + activityId_ = s; + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (timestamp_ != null) { + subBuilder = timestamp_.toBuilder(); + } + timestamp_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(timestamp_); + timestamp_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + com.strongdm.api.plumbing.AccountResourcesPlumbing.AccountResource.Builder subBuilder = null; + if (accountResource_ != null) { + subBuilder = accountResource_.toBuilder(); + } + accountResource_ = input.readMessage(com.strongdm.api.plumbing.AccountResourcesPlumbing.AccountResource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(accountResource_); + accountResource_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (deletedAt_ != null) { + subBuilder = deletedAt_.toBuilder(); + } + deletedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deletedAt_); + deletedAt_ = 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.AccountResourcesHistoryPlumbing.internal_static_v1_AccountResourceHistory_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.internal_static_v1_AccountResourceHistory_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistory.class, com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistory.Builder.class); + } + + public static final int ACTIVITY_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object activityId_; + /** + *
+     * The unique identifier of the Activity that produced this change to the AccountResource.
+     * May be empty for some system-initiated updates.
+     * 
+ * + * string activity_id = 1 [(.v1.field_options) = { ... } + * @return The activityId. + */ + @java.lang.Override + public java.lang.String getActivityId() { + java.lang.Object ref = activityId_; + 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(); + activityId_ = s; + return s; + } + } + /** + *
+     * The unique identifier of the Activity that produced this change to the AccountResource.
+     * May be empty for some system-initiated updates.
+     * 
+ * + * string activity_id = 1 [(.v1.field_options) = { ... } + * @return The bytes for activityId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getActivityIdBytes() { + java.lang.Object ref = activityId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + activityId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TIMESTAMP_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp timestamp_; + /** + *
+     * The time at which the AccountResource state was recorded.
+     * 
+ * + * .google.protobuf.Timestamp timestamp = 2 [(.v1.field_options) = { ... } + * @return Whether the timestamp field is set. + */ + @java.lang.Override + public boolean hasTimestamp() { + return timestamp_ != null; + } + /** + *
+     * The time at which the AccountResource state was recorded.
+     * 
+ * + * .google.protobuf.Timestamp timestamp = 2 [(.v1.field_options) = { ... } + * @return The timestamp. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getTimestamp() { + return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; + } + /** + *
+     * The time at which the AccountResource state was recorded.
+     * 
+ * + * .google.protobuf.Timestamp timestamp = 2 [(.v1.field_options) = { ... } + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { + return getTimestamp(); + } + + public static final int ACCOUNT_RESOURCE_FIELD_NUMBER = 3; + private com.strongdm.api.plumbing.AccountResourcesPlumbing.AccountResource accountResource_; + /** + *
+     * The complete AccountResource state at this time.
+     * 
+ * + * .v1.AccountResource account_resource = 3 [(.v1.field_options) = { ... } + * @return Whether the accountResource field is set. + */ + @java.lang.Override + public boolean hasAccountResource() { + return accountResource_ != null; + } + /** + *
+     * The complete AccountResource state at this time.
+     * 
+ * + * .v1.AccountResource account_resource = 3 [(.v1.field_options) = { ... } + * @return The accountResource. + */ + @java.lang.Override + public com.strongdm.api.plumbing.AccountResourcesPlumbing.AccountResource getAccountResource() { + return accountResource_ == null ? com.strongdm.api.plumbing.AccountResourcesPlumbing.AccountResource.getDefaultInstance() : accountResource_; + } + /** + *
+     * The complete AccountResource state at this time.
+     * 
+ * + * .v1.AccountResource account_resource = 3 [(.v1.field_options) = { ... } + */ + @java.lang.Override + public com.strongdm.api.plumbing.AccountResourcesPlumbing.AccountResourceOrBuilder getAccountResourceOrBuilder() { + return getAccountResource(); + } + + public static final int DELETED_AT_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp deletedAt_; + /** + *
+     * If this AccountResource was deleted, the time it was deleted.
+     * 
+ * + * .google.protobuf.Timestamp deleted_at = 4 [(.v1.field_options) = { ... } + * @return Whether the deletedAt field is set. + */ + @java.lang.Override + public boolean hasDeletedAt() { + return deletedAt_ != null; + } + /** + *
+     * If this AccountResource was deleted, the time it was deleted.
+     * 
+ * + * .google.protobuf.Timestamp deleted_at = 4 [(.v1.field_options) = { ... } + * @return The deletedAt. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getDeletedAt() { + return deletedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deletedAt_; + } + /** + *
+     * If this AccountResource was deleted, the time it was deleted.
+     * 
+ * + * .google.protobuf.Timestamp deleted_at = 4 [(.v1.field_options) = { ... } + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getDeletedAtOrBuilder() { + return getDeletedAt(); + } + + 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(activityId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, activityId_); + } + if (timestamp_ != null) { + output.writeMessage(2, getTimestamp()); + } + if (accountResource_ != null) { + output.writeMessage(3, getAccountResource()); + } + if (deletedAt_ != null) { + output.writeMessage(4, getDeletedAt()); + } + 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(activityId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, activityId_); + } + if (timestamp_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getTimestamp()); + } + if (accountResource_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getAccountResource()); + } + if (deletedAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getDeletedAt()); + } + 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.AccountResourcesHistoryPlumbing.AccountResourceHistory)) { + return super.equals(obj); + } + com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistory other = (com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistory) obj; + + if (!getActivityId() + .equals(other.getActivityId())) return false; + if (hasTimestamp() != other.hasTimestamp()) return false; + if (hasTimestamp()) { + if (!getTimestamp() + .equals(other.getTimestamp())) return false; + } + if (hasAccountResource() != other.hasAccountResource()) return false; + if (hasAccountResource()) { + if (!getAccountResource() + .equals(other.getAccountResource())) return false; + } + if (hasDeletedAt() != other.hasDeletedAt()) return false; + if (hasDeletedAt()) { + if (!getDeletedAt() + .equals(other.getDeletedAt())) 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) + ACTIVITY_ID_FIELD_NUMBER; + hash = (53 * hash) + getActivityId().hashCode(); + if (hasTimestamp()) { + hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + getTimestamp().hashCode(); + } + if (hasAccountResource()) { + hash = (37 * hash) + ACCOUNT_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getAccountResource().hashCode(); + } + if (hasDeletedAt()) { + hash = (37 * hash) + DELETED_AT_FIELD_NUMBER; + hash = (53 * hash) + getDeletedAt().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistory parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistory 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.AccountResourcesHistoryPlumbing.AccountResourceHistory parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistory 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.AccountResourcesHistoryPlumbing.AccountResourceHistory parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistory parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistory parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistory 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.AccountResourcesHistoryPlumbing.AccountResourceHistory parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistory 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.AccountResourcesHistoryPlumbing.AccountResourceHistory parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistory 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.AccountResourcesHistoryPlumbing.AccountResourceHistory 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; + } + /** + *
+     * AccountResourceHistory records the state of a AccountResource at a given point in time,
+     * where every change (create or delete) to a AccountResource produces an
+     * AccountResourceHistory record.
+     * 
+ * + * Protobuf type {@code v1.AccountResourceHistory} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:v1.AccountResourceHistory) + com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistoryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.internal_static_v1_AccountResourceHistory_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.internal_static_v1_AccountResourceHistory_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistory.class, com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistory.Builder.class); + } + + // Construct using com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistory.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(); + activityId_ = ""; + + if (timestampBuilder_ == null) { + timestamp_ = null; + } else { + timestamp_ = null; + timestampBuilder_ = null; + } + if (accountResourceBuilder_ == null) { + accountResource_ = null; + } else { + accountResource_ = null; + accountResourceBuilder_ = null; + } + if (deletedAtBuilder_ == null) { + deletedAt_ = null; + } else { + deletedAt_ = null; + deletedAtBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.internal_static_v1_AccountResourceHistory_descriptor; + } + + @java.lang.Override + public com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistory getDefaultInstanceForType() { + return com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistory.getDefaultInstance(); + } + + @java.lang.Override + public com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistory build() { + com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistory result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistory buildPartial() { + com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistory result = new com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistory(this); + result.activityId_ = activityId_; + if (timestampBuilder_ == null) { + result.timestamp_ = timestamp_; + } else { + result.timestamp_ = timestampBuilder_.build(); + } + if (accountResourceBuilder_ == null) { + result.accountResource_ = accountResource_; + } else { + result.accountResource_ = accountResourceBuilder_.build(); + } + if (deletedAtBuilder_ == null) { + result.deletedAt_ = deletedAt_; + } else { + result.deletedAt_ = deletedAtBuilder_.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.AccountResourcesHistoryPlumbing.AccountResourceHistory) { + return mergeFrom((com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistory)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistory other) { + if (other == com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistory.getDefaultInstance()) return this; + if (!other.getActivityId().isEmpty()) { + activityId_ = other.activityId_; + onChanged(); + } + if (other.hasTimestamp()) { + mergeTimestamp(other.getTimestamp()); + } + if (other.hasAccountResource()) { + mergeAccountResource(other.getAccountResource()); + } + if (other.hasDeletedAt()) { + mergeDeletedAt(other.getDeletedAt()); + } + 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.AccountResourcesHistoryPlumbing.AccountResourceHistory parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistory) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object activityId_ = ""; + /** + *
+       * The unique identifier of the Activity that produced this change to the AccountResource.
+       * May be empty for some system-initiated updates.
+       * 
+ * + * string activity_id = 1 [(.v1.field_options) = { ... } + * @return The activityId. + */ + public java.lang.String getActivityId() { + java.lang.Object ref = activityId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + activityId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The unique identifier of the Activity that produced this change to the AccountResource.
+       * May be empty for some system-initiated updates.
+       * 
+ * + * string activity_id = 1 [(.v1.field_options) = { ... } + * @return The bytes for activityId. + */ + public com.google.protobuf.ByteString + getActivityIdBytes() { + java.lang.Object ref = activityId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + activityId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The unique identifier of the Activity that produced this change to the AccountResource.
+       * May be empty for some system-initiated updates.
+       * 
+ * + * string activity_id = 1 [(.v1.field_options) = { ... } + * @param value The activityId to set. + * @return This builder for chaining. + */ + public Builder setActivityId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + activityId_ = value; + onChanged(); + return this; + } + /** + *
+       * The unique identifier of the Activity that produced this change to the AccountResource.
+       * May be empty for some system-initiated updates.
+       * 
+ * + * string activity_id = 1 [(.v1.field_options) = { ... } + * @return This builder for chaining. + */ + public Builder clearActivityId() { + + activityId_ = getDefaultInstance().getActivityId(); + onChanged(); + return this; + } + /** + *
+       * The unique identifier of the Activity that produced this change to the AccountResource.
+       * May be empty for some system-initiated updates.
+       * 
+ * + * string activity_id = 1 [(.v1.field_options) = { ... } + * @param value The bytes for activityId to set. + * @return This builder for chaining. + */ + public Builder setActivityIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + activityId_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp timestamp_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timestampBuilder_; + /** + *
+       * The time at which the AccountResource state was recorded.
+       * 
+ * + * .google.protobuf.Timestamp timestamp = 2 [(.v1.field_options) = { ... } + * @return Whether the timestamp field is set. + */ + public boolean hasTimestamp() { + return timestampBuilder_ != null || timestamp_ != null; + } + /** + *
+       * The time at which the AccountResource state was recorded.
+       * 
+ * + * .google.protobuf.Timestamp timestamp = 2 [(.v1.field_options) = { ... } + * @return The timestamp. + */ + public com.google.protobuf.Timestamp getTimestamp() { + if (timestampBuilder_ == null) { + return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; + } else { + return timestampBuilder_.getMessage(); + } + } + /** + *
+       * The time at which the AccountResource state was recorded.
+       * 
+ * + * .google.protobuf.Timestamp timestamp = 2 [(.v1.field_options) = { ... } + */ + public Builder setTimestamp(com.google.protobuf.Timestamp value) { + if (timestampBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + timestamp_ = value; + onChanged(); + } else { + timestampBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The time at which the AccountResource state was recorded.
+       * 
+ * + * .google.protobuf.Timestamp timestamp = 2 [(.v1.field_options) = { ... } + */ + public Builder setTimestamp( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (timestampBuilder_ == null) { + timestamp_ = builderForValue.build(); + onChanged(); + } else { + timestampBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The time at which the AccountResource state was recorded.
+       * 
+ * + * .google.protobuf.Timestamp timestamp = 2 [(.v1.field_options) = { ... } + */ + public Builder mergeTimestamp(com.google.protobuf.Timestamp value) { + if (timestampBuilder_ == null) { + if (timestamp_ != null) { + timestamp_ = + com.google.protobuf.Timestamp.newBuilder(timestamp_).mergeFrom(value).buildPartial(); + } else { + timestamp_ = value; + } + onChanged(); + } else { + timestampBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The time at which the AccountResource state was recorded.
+       * 
+ * + * .google.protobuf.Timestamp timestamp = 2 [(.v1.field_options) = { ... } + */ + public Builder clearTimestamp() { + if (timestampBuilder_ == null) { + timestamp_ = null; + onChanged(); + } else { + timestamp_ = null; + timestampBuilder_ = null; + } + + return this; + } + /** + *
+       * The time at which the AccountResource state was recorded.
+       * 
+ * + * .google.protobuf.Timestamp timestamp = 2 [(.v1.field_options) = { ... } + */ + public com.google.protobuf.Timestamp.Builder getTimestampBuilder() { + + onChanged(); + return getTimestampFieldBuilder().getBuilder(); + } + /** + *
+       * The time at which the AccountResource state was recorded.
+       * 
+ * + * .google.protobuf.Timestamp timestamp = 2 [(.v1.field_options) = { ... } + */ + public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { + if (timestampBuilder_ != null) { + return timestampBuilder_.getMessageOrBuilder(); + } else { + return timestamp_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; + } + } + /** + *
+       * The time at which the AccountResource state was recorded.
+       * 
+ * + * .google.protobuf.Timestamp timestamp = 2 [(.v1.field_options) = { ... } + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getTimestampFieldBuilder() { + if (timestampBuilder_ == null) { + timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getTimestamp(), + getParentForChildren(), + isClean()); + timestamp_ = null; + } + return timestampBuilder_; + } + + private com.strongdm.api.plumbing.AccountResourcesPlumbing.AccountResource accountResource_; + private com.google.protobuf.SingleFieldBuilderV3< + com.strongdm.api.plumbing.AccountResourcesPlumbing.AccountResource, com.strongdm.api.plumbing.AccountResourcesPlumbing.AccountResource.Builder, com.strongdm.api.plumbing.AccountResourcesPlumbing.AccountResourceOrBuilder> accountResourceBuilder_; + /** + *
+       * The complete AccountResource state at this time.
+       * 
+ * + * .v1.AccountResource account_resource = 3 [(.v1.field_options) = { ... } + * @return Whether the accountResource field is set. + */ + public boolean hasAccountResource() { + return accountResourceBuilder_ != null || accountResource_ != null; + } + /** + *
+       * The complete AccountResource state at this time.
+       * 
+ * + * .v1.AccountResource account_resource = 3 [(.v1.field_options) = { ... } + * @return The accountResource. + */ + public com.strongdm.api.plumbing.AccountResourcesPlumbing.AccountResource getAccountResource() { + if (accountResourceBuilder_ == null) { + return accountResource_ == null ? com.strongdm.api.plumbing.AccountResourcesPlumbing.AccountResource.getDefaultInstance() : accountResource_; + } else { + return accountResourceBuilder_.getMessage(); + } + } + /** + *
+       * The complete AccountResource state at this time.
+       * 
+ * + * .v1.AccountResource account_resource = 3 [(.v1.field_options) = { ... } + */ + public Builder setAccountResource(com.strongdm.api.plumbing.AccountResourcesPlumbing.AccountResource value) { + if (accountResourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + accountResource_ = value; + onChanged(); + } else { + accountResourceBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The complete AccountResource state at this time.
+       * 
+ * + * .v1.AccountResource account_resource = 3 [(.v1.field_options) = { ... } + */ + public Builder setAccountResource( + com.strongdm.api.plumbing.AccountResourcesPlumbing.AccountResource.Builder builderForValue) { + if (accountResourceBuilder_ == null) { + accountResource_ = builderForValue.build(); + onChanged(); + } else { + accountResourceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The complete AccountResource state at this time.
+       * 
+ * + * .v1.AccountResource account_resource = 3 [(.v1.field_options) = { ... } + */ + public Builder mergeAccountResource(com.strongdm.api.plumbing.AccountResourcesPlumbing.AccountResource value) { + if (accountResourceBuilder_ == null) { + if (accountResource_ != null) { + accountResource_ = + com.strongdm.api.plumbing.AccountResourcesPlumbing.AccountResource.newBuilder(accountResource_).mergeFrom(value).buildPartial(); + } else { + accountResource_ = value; + } + onChanged(); + } else { + accountResourceBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The complete AccountResource state at this time.
+       * 
+ * + * .v1.AccountResource account_resource = 3 [(.v1.field_options) = { ... } + */ + public Builder clearAccountResource() { + if (accountResourceBuilder_ == null) { + accountResource_ = null; + onChanged(); + } else { + accountResource_ = null; + accountResourceBuilder_ = null; + } + + return this; + } + /** + *
+       * The complete AccountResource state at this time.
+       * 
+ * + * .v1.AccountResource account_resource = 3 [(.v1.field_options) = { ... } + */ + public com.strongdm.api.plumbing.AccountResourcesPlumbing.AccountResource.Builder getAccountResourceBuilder() { + + onChanged(); + return getAccountResourceFieldBuilder().getBuilder(); + } + /** + *
+       * The complete AccountResource state at this time.
+       * 
+ * + * .v1.AccountResource account_resource = 3 [(.v1.field_options) = { ... } + */ + public com.strongdm.api.plumbing.AccountResourcesPlumbing.AccountResourceOrBuilder getAccountResourceOrBuilder() { + if (accountResourceBuilder_ != null) { + return accountResourceBuilder_.getMessageOrBuilder(); + } else { + return accountResource_ == null ? + com.strongdm.api.plumbing.AccountResourcesPlumbing.AccountResource.getDefaultInstance() : accountResource_; + } + } + /** + *
+       * The complete AccountResource state at this time.
+       * 
+ * + * .v1.AccountResource account_resource = 3 [(.v1.field_options) = { ... } + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.strongdm.api.plumbing.AccountResourcesPlumbing.AccountResource, com.strongdm.api.plumbing.AccountResourcesPlumbing.AccountResource.Builder, com.strongdm.api.plumbing.AccountResourcesPlumbing.AccountResourceOrBuilder> + getAccountResourceFieldBuilder() { + if (accountResourceBuilder_ == null) { + accountResourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.strongdm.api.plumbing.AccountResourcesPlumbing.AccountResource, com.strongdm.api.plumbing.AccountResourcesPlumbing.AccountResource.Builder, com.strongdm.api.plumbing.AccountResourcesPlumbing.AccountResourceOrBuilder>( + getAccountResource(), + getParentForChildren(), + isClean()); + accountResource_ = null; + } + return accountResourceBuilder_; + } + + private com.google.protobuf.Timestamp deletedAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deletedAtBuilder_; + /** + *
+       * If this AccountResource was deleted, the time it was deleted.
+       * 
+ * + * .google.protobuf.Timestamp deleted_at = 4 [(.v1.field_options) = { ... } + * @return Whether the deletedAt field is set. + */ + public boolean hasDeletedAt() { + return deletedAtBuilder_ != null || deletedAt_ != null; + } + /** + *
+       * If this AccountResource was deleted, the time it was deleted.
+       * 
+ * + * .google.protobuf.Timestamp deleted_at = 4 [(.v1.field_options) = { ... } + * @return The deletedAt. + */ + public com.google.protobuf.Timestamp getDeletedAt() { + if (deletedAtBuilder_ == null) { + return deletedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deletedAt_; + } else { + return deletedAtBuilder_.getMessage(); + } + } + /** + *
+       * If this AccountResource was deleted, the time it was deleted.
+       * 
+ * + * .google.protobuf.Timestamp deleted_at = 4 [(.v1.field_options) = { ... } + */ + public Builder setDeletedAt(com.google.protobuf.Timestamp value) { + if (deletedAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deletedAt_ = value; + onChanged(); + } else { + deletedAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * If this AccountResource was deleted, the time it was deleted.
+       * 
+ * + * .google.protobuf.Timestamp deleted_at = 4 [(.v1.field_options) = { ... } + */ + public Builder setDeletedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (deletedAtBuilder_ == null) { + deletedAt_ = builderForValue.build(); + onChanged(); + } else { + deletedAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * If this AccountResource was deleted, the time it was deleted.
+       * 
+ * + * .google.protobuf.Timestamp deleted_at = 4 [(.v1.field_options) = { ... } + */ + public Builder mergeDeletedAt(com.google.protobuf.Timestamp value) { + if (deletedAtBuilder_ == null) { + if (deletedAt_ != null) { + deletedAt_ = + com.google.protobuf.Timestamp.newBuilder(deletedAt_).mergeFrom(value).buildPartial(); + } else { + deletedAt_ = value; + } + onChanged(); + } else { + deletedAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * If this AccountResource was deleted, the time it was deleted.
+       * 
+ * + * .google.protobuf.Timestamp deleted_at = 4 [(.v1.field_options) = { ... } + */ + public Builder clearDeletedAt() { + if (deletedAtBuilder_ == null) { + deletedAt_ = null; + onChanged(); + } else { + deletedAt_ = null; + deletedAtBuilder_ = null; + } + + return this; + } + /** + *
+       * If this AccountResource was deleted, the time it was deleted.
+       * 
+ * + * .google.protobuf.Timestamp deleted_at = 4 [(.v1.field_options) = { ... } + */ + public com.google.protobuf.Timestamp.Builder getDeletedAtBuilder() { + + onChanged(); + return getDeletedAtFieldBuilder().getBuilder(); + } + /** + *
+       * If this AccountResource was deleted, the time it was deleted.
+       * 
+ * + * .google.protobuf.Timestamp deleted_at = 4 [(.v1.field_options) = { ... } + */ + public com.google.protobuf.TimestampOrBuilder getDeletedAtOrBuilder() { + if (deletedAtBuilder_ != null) { + return deletedAtBuilder_.getMessageOrBuilder(); + } else { + return deletedAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : deletedAt_; + } + } + /** + *
+       * If this AccountResource was deleted, the time it was deleted.
+       * 
+ * + * .google.protobuf.Timestamp deleted_at = 4 [(.v1.field_options) = { ... } + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getDeletedAtFieldBuilder() { + if (deletedAtBuilder_ == null) { + deletedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getDeletedAt(), + getParentForChildren(), + isClean()); + deletedAt_ = null; + } + return deletedAtBuilder_; + } + @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.AccountResourceHistory) + } + + // @@protoc_insertion_point(class_scope:v1.AccountResourceHistory) + private static final com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistory DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistory(); + } + + public static com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.AccountResourceHistory getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccountResourceHistory parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AccountResourceHistory(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.AccountResourcesHistoryPlumbing.AccountResourceHistory getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_v1_AccountResourceHistoryListRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_v1_AccountResourceHistoryListRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_v1_AccountResourceHistoryListResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_v1_AccountResourceHistoryListResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_v1_AccountResourceHistory_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_v1_AccountResourceHistory_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\037account_resources_history.proto\022\002v1\032\037g" + + "oogle/protobuf/timestamp.proto\032\027account_" + + "resources.proto\032\roptions.proto\032\nspec.pro" + + "to\"\220\001\n!AccountResourceHistoryListRequest" + + "\022%\n\004meta\030\001 \001(\0132\027.v1.ListRequestMetadata\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\"\210\002\n\"Accoun" + + "tResourceHistoryListResponse\022&\n\004meta\030\001 \001" + + "(\0132\030.v1.ListResponseMetadata\0227\n\007history\030" + + "\002 \003(\0132\032.v1.AccountResourceHistoryB\n\362\370\263\007\005" + + "\270\363\263\007\001\022W\n\nrate_limit\030\003 \001(\0132\025.v1.RateLimit" + + "MetadataB,\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:(\372\370\263\007\006\322\363\263\007\001*\372\370\263\007\030\322\363\263\007\023!te" + + "rraform-provider\"\237\002\n\026AccountResourceHist" + + "ory\022\037\n\013activity_id\030\001 \001(\tB\n\362\370\263\007\005\260\363\263\007\001\0229\n\t" + + "timestamp\030\002 \001(\0132\032.google.protobuf.Timest" + + "ampB\n\362\370\263\007\005\260\363\263\007\001\0229\n\020account_resource\030\003 \001(" + + "\0132\023.v1.AccountResourceB\n\362\370\263\007\005\260\363\263\007\001\022:\n\nde" + + "leted_at\030\004 \001(\0132\032.google.protobuf.Timesta" + + "mpB\n\362\370\263\007\005\260\363\263\007\001:2\372\370\263\007\005\250\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-provider2\373\001\n\027AccountRe" + + "sourcesHistory\022\213\001\n\004List\022%.v1.AccountReso" + + "urceHistoryListRequest\032&.v1.AccountResou" + + "rceHistoryListResponse\"4\202\371\263\007\010\242\363\263\007\003get\202\371\263" + + "\007\"\252\363\263\007\035/v1/account-resources-history\032R\312\371" + + "\263\007\033\302\371\263\007\026AccountResourceHistory\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-provider" + + "B\233\001\n\031com.strongdm.api.plumbingB\037AccountR" + + "esourcesHistoryPlumbingZ5github.com/stro" + + "ngdm/strongdm-sdk-go/v3/internal/v1;v1\302\222" + + "\264\007\006\242\214\264\007\001*\302\222\264\007\030\242\214\264\007\023!terraform-providerb\006" + + "proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.TimestampProto.getDescriptor(), + com.strongdm.api.plumbing.AccountResourcesPlumbing.getDescriptor(), + com.strongdm.api.plumbing.Options.getDescriptor(), + com.strongdm.api.plumbing.Spec.getDescriptor(), + }); + internal_static_v1_AccountResourceHistoryListRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_v1_AccountResourceHistoryListRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_v1_AccountResourceHistoryListRequest_descriptor, + new java.lang.String[] { "Meta", "Filter", }); + internal_static_v1_AccountResourceHistoryListResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_v1_AccountResourceHistoryListResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_v1_AccountResourceHistoryListResponse_descriptor, + new java.lang.String[] { "Meta", "History", "RateLimit", }); + internal_static_v1_AccountResourceHistory_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_v1_AccountResourceHistory_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_v1_AccountResourceHistory_descriptor, + new java.lang.String[] { "ActivityId", "Timestamp", "AccountResource", "DeletedAt", }); + 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.google.protobuf.TimestampProto.getDescriptor(); + com.strongdm.api.plumbing.AccountResourcesPlumbing.getDescriptor(); + com.strongdm.api.plumbing.Options.getDescriptor(); + com.strongdm.api.plumbing.Spec.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/com/strongdm/api/plumbing/Plumbing.java b/com/strongdm/api/plumbing/Plumbing.java index 4507c3b..5f544eb 100644 --- a/com/strongdm/api/plumbing/Plumbing.java +++ b/com/strongdm/api/plumbing/Plumbing.java @@ -35,6 +35,7 @@ import com.strongdm.api.plumbing.AccountGrantsHistoryPlumbing.*; import com.strongdm.api.plumbing.AccountGrantsPlumbing.*; import com.strongdm.api.plumbing.AccountPermissionsPlumbing.*; +import com.strongdm.api.plumbing.AccountResourcesHistoryPlumbing.*; import com.strongdm.api.plumbing.AccountResourcesPlumbing.*; import com.strongdm.api.plumbing.AccountsHistoryPlumbing.*; import com.strongdm.api.plumbing.AccountsPlumbing.*; @@ -1681,6 +1682,55 @@ public static List convertRepeatedAccountResourceToPlumbing( .collect(Collectors.toList()); } + public static com.strongdm.api.AccountResourceHistory convertAccountResourceHistoryToPorcelain( + AccountResourceHistory plumbing) { + com.strongdm.api.AccountResourceHistory porcelain = + new com.strongdm.api.AccountResourceHistory(); + porcelain.setAccountResource( + Plumbing.convertAccountResourceToPorcelain(plumbing.getAccountResource())); + porcelain.setActivityId((plumbing.getActivityId())); + porcelain.setDeletedAt(Plumbing.convertTimestampToPorcelain(plumbing.getDeletedAt())); + porcelain.setTimestamp(Plumbing.convertTimestampToPorcelain(plumbing.getTimestamp())); + return porcelain; + } + + public static AccountResourceHistory convertAccountResourceHistoryToPlumbing( + com.strongdm.api.AccountResourceHistory porcelain) { + if (porcelain == null) { + return null; + } + AccountResourceHistory.Builder builder = AccountResourceHistory.newBuilder(); + if (porcelain.getAccountResource() != null) { + builder.setAccountResource( + Plumbing.convertAccountResourceToPlumbing(porcelain.getAccountResource())); + } + if (porcelain.getActivityId() != null) { + builder.setActivityId((porcelain.getActivityId())); + } + if (porcelain.getDeletedAt() != null) { + builder.setDeletedAt(Plumbing.convertTimestampToPlumbing(porcelain.getDeletedAt())); + } + if (porcelain.getTimestamp() != null) { + builder.setTimestamp(Plumbing.convertTimestampToPlumbing(porcelain.getTimestamp())); + } + return builder.build(); + } + + public static List + convertRepeatedAccountResourceHistoryToPorcelain( + Collection plumbings) { + return plumbings.stream() + .map(plumbing -> convertAccountResourceHistoryToPorcelain(plumbing)) + .collect(Collectors.toList()); + } + + public static List convertRepeatedAccountResourceHistoryToPlumbing( + Collection porcelains) { + return porcelains.stream() + .map(porcelain -> convertAccountResourceHistoryToPlumbing(porcelain)) + .collect(Collectors.toList()); + } + public static com.strongdm.api.AccountUpdateResponse convertAccountUpdateResponseToPorcelain( AccountUpdateResponse plumbing) { com.strongdm.api.AccountUpdateResponse porcelain = new com.strongdm.api.AccountUpdateResponse(); diff --git a/com/strongdm/api/plumbing/RemoteIdentityGroupsHistoryPlumbing.java b/com/strongdm/api/plumbing/RemoteIdentityGroupsHistoryPlumbing.java index 198db9e..a268952 100644 --- a/com/strongdm/api/plumbing/RemoteIdentityGroupsHistoryPlumbing.java +++ b/com/strongdm/api/plumbing/RemoteIdentityGroupsHistoryPlumbing.java @@ -3815,7 +3815,7 @@ public com.strongdm.api.plumbing.RemoteIdentityGroupsHistoryPlumbing.RemoteIdent "GroupsHistory\022\230\001\n\004List\022).v1.RemoteIdenti" + "tyGroupHistoryListRequest\032*.v1.RemoteIde" + "ntityGroupHistoryListResponse\"9\202\371\263\007\010\242\363\263\007" + - "\003get\202\371\263\007\'\252\363\263\007\"/v1/remote-identity_groups" + + "\003get\202\371\263\007\'\252\363\263\007\"/v1/remote-identity-groups" + "-history\032V\312\371\263\007\037\302\371\263\007\032RemoteIdentityGroupH" + "istory\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!te" + "rraform-providerB\237\001\n\031com.strongdm.api.pl" + diff --git a/com/strongdm/api/plumbing/RoleResourcesHistoryPlumbing.java b/com/strongdm/api/plumbing/RoleResourcesHistoryPlumbing.java index 54ce31a..973c258 100644 --- a/com/strongdm/api/plumbing/RoleResourcesHistoryPlumbing.java +++ b/com/strongdm/api/plumbing/RoleResourcesHistoryPlumbing.java @@ -3810,17 +3810,17 @@ public com.strongdm.api.plumbing.RoleResourcesHistoryPlumbing.RoleResourceHistor "\362\370\263\007\005\260\363\263\007\001\022:\n\ndeleted_at\030\004 \001(\0132\032.google." + "protobuf.TimestampB\n\362\370\263\007\005\260\363\263\007\001:2\372\370\263\007\005\250\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" + - "er2\355\001\n\024RoleResourcesHistory\022\203\001\n\004List\022\".v" + + "er2\354\001\n\024RoleResourcesHistory\022\202\001\n\004List\022\".v" + "1.RoleResourceHistoryListRequest\032#.v1.Ro" + - "leResourceHistoryListResponse\"2\202\371\263\007\010\242\363\263\007" + - "\003get\202\371\263\007 \252\363\263\007\033/v1/roles-resources-histor" + - "y\032O\312\371\263\007\030\302\371\263\007\023RoleResourceHistory\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-provid" + - "erB\230\001\n\031com.strongdm.api.plumbingB\034RoleRe" + - "sourcesHistoryPlumbingZ5github.com/stron" + - "gdm/strongdm-sdk-go/v3/internal/v1;v1\302\222\264" + - "\007\006\242\214\264\007\001*\302\222\264\007\030\242\214\264\007\023!terraform-providerb\006p" + - "roto3" + "leResourceHistoryListResponse\"1\202\371\263\007\010\242\363\263\007" + + "\003get\202\371\263\007\037\252\363\263\007\032/v1/role-resources-history" + + "\032O\312\371\263\007\030\302\371\263\007\023RoleResourceHistory\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-provide" + + "rB\230\001\n\031com.strongdm.api.plumbingB\034RoleRes" + + "ourcesHistoryPlumbingZ5github.com/strong" + + "dm/strongdm-sdk-go/v3/internal/v1;v1\302\222\264\007" + + "\006\242\214\264\007\001*\302\222\264\007\030\242\214\264\007\023!terraform-providerb\006pr" + + "oto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData,