Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
io.provenance.metadata.v1.SessionsResponse Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: provenance/metadata/v1/query.proto
package io.provenance.metadata.v1;
/**
*
* SessionsResponse is the response type for the Query/Sessions RPC method.
*
*
* Protobuf type {@code provenance.metadata.v1.SessionsResponse}
*/
public final class SessionsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:provenance.metadata.v1.SessionsResponse)
SessionsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use SessionsResponse.newBuilder() to construct.
private SessionsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SessionsResponse() {
sessions_ = java.util.Collections.emptyList();
records_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SessionsResponse(
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: {
io.provenance.metadata.v1.ScopeWrapper.Builder subBuilder = null;
if (scope_ != null) {
subBuilder = scope_.toBuilder();
}
scope_ = input.readMessage(io.provenance.metadata.v1.ScopeWrapper.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(scope_);
scope_ = subBuilder.buildPartial();
}
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
sessions_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
sessions_.add(
input.readMessage(io.provenance.metadata.v1.SessionWrapper.parser(), extensionRegistry));
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
records_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
records_.add(
input.readMessage(io.provenance.metadata.v1.RecordWrapper.parser(), extensionRegistry));
break;
}
case 786: {
io.provenance.metadata.v1.SessionsRequest.Builder subBuilder = null;
if (request_ != null) {
subBuilder = request_.toBuilder();
}
request_ = input.readMessage(io.provenance.metadata.v1.SessionsRequest.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(request_);
request_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
sessions_ = java.util.Collections.unmodifiableList(sessions_);
}
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
records_ = java.util.Collections.unmodifiableList(records_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.provenance.metadata.v1.QueryOuterClass.internal_static_provenance_metadata_v1_SessionsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.provenance.metadata.v1.QueryOuterClass.internal_static_provenance_metadata_v1_SessionsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.provenance.metadata.v1.SessionsResponse.class, io.provenance.metadata.v1.SessionsResponse.Builder.class);
}
private int bitField0_;
public static final int SCOPE_FIELD_NUMBER = 1;
private io.provenance.metadata.v1.ScopeWrapper scope_;
/**
*
* scope is the wrapped scope that holds these sessions (if requested).
*
*
* .provenance.metadata.v1.ScopeWrapper scope = 1 [(.gogoproto.moretags) = "yaml:\"scope,omitempty\""];
*/
public boolean hasScope() {
return scope_ != null;
}
/**
*
* scope is the wrapped scope that holds these sessions (if requested).
*
*
* .provenance.metadata.v1.ScopeWrapper scope = 1 [(.gogoproto.moretags) = "yaml:\"scope,omitempty\""];
*/
public io.provenance.metadata.v1.ScopeWrapper getScope() {
return scope_ == null ? io.provenance.metadata.v1.ScopeWrapper.getDefaultInstance() : scope_;
}
/**
*
* scope is the wrapped scope that holds these sessions (if requested).
*
*
* .provenance.metadata.v1.ScopeWrapper scope = 1 [(.gogoproto.moretags) = "yaml:\"scope,omitempty\""];
*/
public io.provenance.metadata.v1.ScopeWrapperOrBuilder getScopeOrBuilder() {
return getScope();
}
public static final int SESSIONS_FIELD_NUMBER = 2;
private java.util.List sessions_;
/**
*
* sessions is any number of wrapped session results.
*
*
* repeated .provenance.metadata.v1.SessionWrapper sessions = 2;
*/
public java.util.List getSessionsList() {
return sessions_;
}
/**
*
* sessions is any number of wrapped session results.
*
*
* repeated .provenance.metadata.v1.SessionWrapper sessions = 2;
*/
public java.util.List extends io.provenance.metadata.v1.SessionWrapperOrBuilder>
getSessionsOrBuilderList() {
return sessions_;
}
/**
*
* sessions is any number of wrapped session results.
*
*
* repeated .provenance.metadata.v1.SessionWrapper sessions = 2;
*/
public int getSessionsCount() {
return sessions_.size();
}
/**
*
* sessions is any number of wrapped session results.
*
*
* repeated .provenance.metadata.v1.SessionWrapper sessions = 2;
*/
public io.provenance.metadata.v1.SessionWrapper getSessions(int index) {
return sessions_.get(index);
}
/**
*
* sessions is any number of wrapped session results.
*
*
* repeated .provenance.metadata.v1.SessionWrapper sessions = 2;
*/
public io.provenance.metadata.v1.SessionWrapperOrBuilder getSessionsOrBuilder(
int index) {
return sessions_.get(index);
}
public static final int RECORDS_FIELD_NUMBER = 3;
private java.util.List records_;
/**
*
* records is any number of wrapped records contained in these sessions (if requested).
*
*
* repeated .provenance.metadata.v1.RecordWrapper records = 3 [(.gogoproto.moretags) = "yaml:\"records,omitempty\""];
*/
public java.util.List getRecordsList() {
return records_;
}
/**
*
* records is any number of wrapped records contained in these sessions (if requested).
*
*
* repeated .provenance.metadata.v1.RecordWrapper records = 3 [(.gogoproto.moretags) = "yaml:\"records,omitempty\""];
*/
public java.util.List extends io.provenance.metadata.v1.RecordWrapperOrBuilder>
getRecordsOrBuilderList() {
return records_;
}
/**
*
* records is any number of wrapped records contained in these sessions (if requested).
*
*
* repeated .provenance.metadata.v1.RecordWrapper records = 3 [(.gogoproto.moretags) = "yaml:\"records,omitempty\""];
*/
public int getRecordsCount() {
return records_.size();
}
/**
*
* records is any number of wrapped records contained in these sessions (if requested).
*
*
* repeated .provenance.metadata.v1.RecordWrapper records = 3 [(.gogoproto.moretags) = "yaml:\"records,omitempty\""];
*/
public io.provenance.metadata.v1.RecordWrapper getRecords(int index) {
return records_.get(index);
}
/**
*
* records is any number of wrapped records contained in these sessions (if requested).
*
*
* repeated .provenance.metadata.v1.RecordWrapper records = 3 [(.gogoproto.moretags) = "yaml:\"records,omitempty\""];
*/
public io.provenance.metadata.v1.RecordWrapperOrBuilder getRecordsOrBuilder(
int index) {
return records_.get(index);
}
public static final int REQUEST_FIELD_NUMBER = 98;
private io.provenance.metadata.v1.SessionsRequest request_;
/**
*
* request is a copy of the request that generated these results.
*
*
* .provenance.metadata.v1.SessionsRequest request = 98;
*/
public boolean hasRequest() {
return request_ != null;
}
/**
*
* request is a copy of the request that generated these results.
*
*
* .provenance.metadata.v1.SessionsRequest request = 98;
*/
public io.provenance.metadata.v1.SessionsRequest getRequest() {
return request_ == null ? io.provenance.metadata.v1.SessionsRequest.getDefaultInstance() : request_;
}
/**
*
* request is a copy of the request that generated these results.
*
*
* .provenance.metadata.v1.SessionsRequest request = 98;
*/
public io.provenance.metadata.v1.SessionsRequestOrBuilder getRequestOrBuilder() {
return getRequest();
}
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 (scope_ != null) {
output.writeMessage(1, getScope());
}
for (int i = 0; i < sessions_.size(); i++) {
output.writeMessage(2, sessions_.get(i));
}
for (int i = 0; i < records_.size(); i++) {
output.writeMessage(3, records_.get(i));
}
if (request_ != null) {
output.writeMessage(98, getRequest());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (scope_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getScope());
}
for (int i = 0; i < sessions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, sessions_.get(i));
}
for (int i = 0; i < records_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, records_.get(i));
}
if (request_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(98, getRequest());
}
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 io.provenance.metadata.v1.SessionsResponse)) {
return super.equals(obj);
}
io.provenance.metadata.v1.SessionsResponse other = (io.provenance.metadata.v1.SessionsResponse) obj;
boolean result = true;
result = result && (hasScope() == other.hasScope());
if (hasScope()) {
result = result && getScope()
.equals(other.getScope());
}
result = result && getSessionsList()
.equals(other.getSessionsList());
result = result && getRecordsList()
.equals(other.getRecordsList());
result = result && (hasRequest() == other.hasRequest());
if (hasRequest()) {
result = result && getRequest()
.equals(other.getRequest());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasScope()) {
hash = (37 * hash) + SCOPE_FIELD_NUMBER;
hash = (53 * hash) + getScope().hashCode();
}
if (getSessionsCount() > 0) {
hash = (37 * hash) + SESSIONS_FIELD_NUMBER;
hash = (53 * hash) + getSessionsList().hashCode();
}
if (getRecordsCount() > 0) {
hash = (37 * hash) + RECORDS_FIELD_NUMBER;
hash = (53 * hash) + getRecordsList().hashCode();
}
if (hasRequest()) {
hash = (37 * hash) + REQUEST_FIELD_NUMBER;
hash = (53 * hash) + getRequest().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.provenance.metadata.v1.SessionsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.metadata.v1.SessionsResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.provenance.metadata.v1.SessionsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.metadata.v1.SessionsResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.provenance.metadata.v1.SessionsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.metadata.v1.SessionsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.provenance.metadata.v1.SessionsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.provenance.metadata.v1.SessionsResponse 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 io.provenance.metadata.v1.SessionsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.provenance.metadata.v1.SessionsResponse 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 io.provenance.metadata.v1.SessionsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.provenance.metadata.v1.SessionsResponse 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(io.provenance.metadata.v1.SessionsResponse 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;
}
/**
*
* SessionsResponse is the response type for the Query/Sessions RPC method.
*
*
* Protobuf type {@code provenance.metadata.v1.SessionsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:provenance.metadata.v1.SessionsResponse)
io.provenance.metadata.v1.SessionsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.provenance.metadata.v1.QueryOuterClass.internal_static_provenance_metadata_v1_SessionsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.provenance.metadata.v1.QueryOuterClass.internal_static_provenance_metadata_v1_SessionsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.provenance.metadata.v1.SessionsResponse.class, io.provenance.metadata.v1.SessionsResponse.Builder.class);
}
// Construct using io.provenance.metadata.v1.SessionsResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getSessionsFieldBuilder();
getRecordsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (scopeBuilder_ == null) {
scope_ = null;
} else {
scope_ = null;
scopeBuilder_ = null;
}
if (sessionsBuilder_ == null) {
sessions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
sessionsBuilder_.clear();
}
if (recordsBuilder_ == null) {
records_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
recordsBuilder_.clear();
}
if (requestBuilder_ == null) {
request_ = null;
} else {
request_ = null;
requestBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.provenance.metadata.v1.QueryOuterClass.internal_static_provenance_metadata_v1_SessionsResponse_descriptor;
}
@java.lang.Override
public io.provenance.metadata.v1.SessionsResponse getDefaultInstanceForType() {
return io.provenance.metadata.v1.SessionsResponse.getDefaultInstance();
}
@java.lang.Override
public io.provenance.metadata.v1.SessionsResponse build() {
io.provenance.metadata.v1.SessionsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.provenance.metadata.v1.SessionsResponse buildPartial() {
io.provenance.metadata.v1.SessionsResponse result = new io.provenance.metadata.v1.SessionsResponse(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (scopeBuilder_ == null) {
result.scope_ = scope_;
} else {
result.scope_ = scopeBuilder_.build();
}
if (sessionsBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
sessions_ = java.util.Collections.unmodifiableList(sessions_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.sessions_ = sessions_;
} else {
result.sessions_ = sessionsBuilder_.build();
}
if (recordsBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
records_ = java.util.Collections.unmodifiableList(records_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.records_ = records_;
} else {
result.records_ = recordsBuilder_.build();
}
if (requestBuilder_ == null) {
result.request_ = request_;
} else {
result.request_ = requestBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.provenance.metadata.v1.SessionsResponse) {
return mergeFrom((io.provenance.metadata.v1.SessionsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.provenance.metadata.v1.SessionsResponse other) {
if (other == io.provenance.metadata.v1.SessionsResponse.getDefaultInstance()) return this;
if (other.hasScope()) {
mergeScope(other.getScope());
}
if (sessionsBuilder_ == null) {
if (!other.sessions_.isEmpty()) {
if (sessions_.isEmpty()) {
sessions_ = other.sessions_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureSessionsIsMutable();
sessions_.addAll(other.sessions_);
}
onChanged();
}
} else {
if (!other.sessions_.isEmpty()) {
if (sessionsBuilder_.isEmpty()) {
sessionsBuilder_.dispose();
sessionsBuilder_ = null;
sessions_ = other.sessions_;
bitField0_ = (bitField0_ & ~0x00000002);
sessionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSessionsFieldBuilder() : null;
} else {
sessionsBuilder_.addAllMessages(other.sessions_);
}
}
}
if (recordsBuilder_ == null) {
if (!other.records_.isEmpty()) {
if (records_.isEmpty()) {
records_ = other.records_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureRecordsIsMutable();
records_.addAll(other.records_);
}
onChanged();
}
} else {
if (!other.records_.isEmpty()) {
if (recordsBuilder_.isEmpty()) {
recordsBuilder_.dispose();
recordsBuilder_ = null;
records_ = other.records_;
bitField0_ = (bitField0_ & ~0x00000004);
recordsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRecordsFieldBuilder() : null;
} else {
recordsBuilder_.addAllMessages(other.records_);
}
}
}
if (other.hasRequest()) {
mergeRequest(other.getRequest());
}
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 {
io.provenance.metadata.v1.SessionsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.provenance.metadata.v1.SessionsResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private io.provenance.metadata.v1.ScopeWrapper scope_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.provenance.metadata.v1.ScopeWrapper, io.provenance.metadata.v1.ScopeWrapper.Builder, io.provenance.metadata.v1.ScopeWrapperOrBuilder> scopeBuilder_;
/**
*
* scope is the wrapped scope that holds these sessions (if requested).
*
*
* .provenance.metadata.v1.ScopeWrapper scope = 1 [(.gogoproto.moretags) = "yaml:\"scope,omitempty\""];
*/
public boolean hasScope() {
return scopeBuilder_ != null || scope_ != null;
}
/**
*
* scope is the wrapped scope that holds these sessions (if requested).
*
*
* .provenance.metadata.v1.ScopeWrapper scope = 1 [(.gogoproto.moretags) = "yaml:\"scope,omitempty\""];
*/
public io.provenance.metadata.v1.ScopeWrapper getScope() {
if (scopeBuilder_ == null) {
return scope_ == null ? io.provenance.metadata.v1.ScopeWrapper.getDefaultInstance() : scope_;
} else {
return scopeBuilder_.getMessage();
}
}
/**
*
* scope is the wrapped scope that holds these sessions (if requested).
*
*
* .provenance.metadata.v1.ScopeWrapper scope = 1 [(.gogoproto.moretags) = "yaml:\"scope,omitempty\""];
*/
public Builder setScope(io.provenance.metadata.v1.ScopeWrapper value) {
if (scopeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
scope_ = value;
onChanged();
} else {
scopeBuilder_.setMessage(value);
}
return this;
}
/**
*
* scope is the wrapped scope that holds these sessions (if requested).
*
*
* .provenance.metadata.v1.ScopeWrapper scope = 1 [(.gogoproto.moretags) = "yaml:\"scope,omitempty\""];
*/
public Builder setScope(
io.provenance.metadata.v1.ScopeWrapper.Builder builderForValue) {
if (scopeBuilder_ == null) {
scope_ = builderForValue.build();
onChanged();
} else {
scopeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* scope is the wrapped scope that holds these sessions (if requested).
*
*
* .provenance.metadata.v1.ScopeWrapper scope = 1 [(.gogoproto.moretags) = "yaml:\"scope,omitempty\""];
*/
public Builder mergeScope(io.provenance.metadata.v1.ScopeWrapper value) {
if (scopeBuilder_ == null) {
if (scope_ != null) {
scope_ =
io.provenance.metadata.v1.ScopeWrapper.newBuilder(scope_).mergeFrom(value).buildPartial();
} else {
scope_ = value;
}
onChanged();
} else {
scopeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* scope is the wrapped scope that holds these sessions (if requested).
*
*
* .provenance.metadata.v1.ScopeWrapper scope = 1 [(.gogoproto.moretags) = "yaml:\"scope,omitempty\""];
*/
public Builder clearScope() {
if (scopeBuilder_ == null) {
scope_ = null;
onChanged();
} else {
scope_ = null;
scopeBuilder_ = null;
}
return this;
}
/**
*
* scope is the wrapped scope that holds these sessions (if requested).
*
*
* .provenance.metadata.v1.ScopeWrapper scope = 1 [(.gogoproto.moretags) = "yaml:\"scope,omitempty\""];
*/
public io.provenance.metadata.v1.ScopeWrapper.Builder getScopeBuilder() {
onChanged();
return getScopeFieldBuilder().getBuilder();
}
/**
*
* scope is the wrapped scope that holds these sessions (if requested).
*
*
* .provenance.metadata.v1.ScopeWrapper scope = 1 [(.gogoproto.moretags) = "yaml:\"scope,omitempty\""];
*/
public io.provenance.metadata.v1.ScopeWrapperOrBuilder getScopeOrBuilder() {
if (scopeBuilder_ != null) {
return scopeBuilder_.getMessageOrBuilder();
} else {
return scope_ == null ?
io.provenance.metadata.v1.ScopeWrapper.getDefaultInstance() : scope_;
}
}
/**
*
* scope is the wrapped scope that holds these sessions (if requested).
*
*
* .provenance.metadata.v1.ScopeWrapper scope = 1 [(.gogoproto.moretags) = "yaml:\"scope,omitempty\""];
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.provenance.metadata.v1.ScopeWrapper, io.provenance.metadata.v1.ScopeWrapper.Builder, io.provenance.metadata.v1.ScopeWrapperOrBuilder>
getScopeFieldBuilder() {
if (scopeBuilder_ == null) {
scopeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.provenance.metadata.v1.ScopeWrapper, io.provenance.metadata.v1.ScopeWrapper.Builder, io.provenance.metadata.v1.ScopeWrapperOrBuilder>(
getScope(),
getParentForChildren(),
isClean());
scope_ = null;
}
return scopeBuilder_;
}
private java.util.List sessions_ =
java.util.Collections.emptyList();
private void ensureSessionsIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
sessions_ = new java.util.ArrayList(sessions_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.provenance.metadata.v1.SessionWrapper, io.provenance.metadata.v1.SessionWrapper.Builder, io.provenance.metadata.v1.SessionWrapperOrBuilder> sessionsBuilder_;
/**
*
* sessions is any number of wrapped session results.
*
*
* repeated .provenance.metadata.v1.SessionWrapper sessions = 2;
*/
public java.util.List getSessionsList() {
if (sessionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(sessions_);
} else {
return sessionsBuilder_.getMessageList();
}
}
/**
*
* sessions is any number of wrapped session results.
*
*
* repeated .provenance.metadata.v1.SessionWrapper sessions = 2;
*/
public int getSessionsCount() {
if (sessionsBuilder_ == null) {
return sessions_.size();
} else {
return sessionsBuilder_.getCount();
}
}
/**
*
* sessions is any number of wrapped session results.
*
*
* repeated .provenance.metadata.v1.SessionWrapper sessions = 2;
*/
public io.provenance.metadata.v1.SessionWrapper getSessions(int index) {
if (sessionsBuilder_ == null) {
return sessions_.get(index);
} else {
return sessionsBuilder_.getMessage(index);
}
}
/**
*
* sessions is any number of wrapped session results.
*
*
* repeated .provenance.metadata.v1.SessionWrapper sessions = 2;
*/
public Builder setSessions(
int index, io.provenance.metadata.v1.SessionWrapper value) {
if (sessionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSessionsIsMutable();
sessions_.set(index, value);
onChanged();
} else {
sessionsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* sessions is any number of wrapped session results.
*
*
* repeated .provenance.metadata.v1.SessionWrapper sessions = 2;
*/
public Builder setSessions(
int index, io.provenance.metadata.v1.SessionWrapper.Builder builderForValue) {
if (sessionsBuilder_ == null) {
ensureSessionsIsMutable();
sessions_.set(index, builderForValue.build());
onChanged();
} else {
sessionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* sessions is any number of wrapped session results.
*
*
* repeated .provenance.metadata.v1.SessionWrapper sessions = 2;
*/
public Builder addSessions(io.provenance.metadata.v1.SessionWrapper value) {
if (sessionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSessionsIsMutable();
sessions_.add(value);
onChanged();
} else {
sessionsBuilder_.addMessage(value);
}
return this;
}
/**
*
* sessions is any number of wrapped session results.
*
*
* repeated .provenance.metadata.v1.SessionWrapper sessions = 2;
*/
public Builder addSessions(
int index, io.provenance.metadata.v1.SessionWrapper value) {
if (sessionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSessionsIsMutable();
sessions_.add(index, value);
onChanged();
} else {
sessionsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* sessions is any number of wrapped session results.
*
*
* repeated .provenance.metadata.v1.SessionWrapper sessions = 2;
*/
public Builder addSessions(
io.provenance.metadata.v1.SessionWrapper.Builder builderForValue) {
if (sessionsBuilder_ == null) {
ensureSessionsIsMutable();
sessions_.add(builderForValue.build());
onChanged();
} else {
sessionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* sessions is any number of wrapped session results.
*
*
* repeated .provenance.metadata.v1.SessionWrapper sessions = 2;
*/
public Builder addSessions(
int index, io.provenance.metadata.v1.SessionWrapper.Builder builderForValue) {
if (sessionsBuilder_ == null) {
ensureSessionsIsMutable();
sessions_.add(index, builderForValue.build());
onChanged();
} else {
sessionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* sessions is any number of wrapped session results.
*
*
* repeated .provenance.metadata.v1.SessionWrapper sessions = 2;
*/
public Builder addAllSessions(
java.lang.Iterable extends io.provenance.metadata.v1.SessionWrapper> values) {
if (sessionsBuilder_ == null) {
ensureSessionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, sessions_);
onChanged();
} else {
sessionsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* sessions is any number of wrapped session results.
*
*
* repeated .provenance.metadata.v1.SessionWrapper sessions = 2;
*/
public Builder clearSessions() {
if (sessionsBuilder_ == null) {
sessions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
sessionsBuilder_.clear();
}
return this;
}
/**
*
* sessions is any number of wrapped session results.
*
*
* repeated .provenance.metadata.v1.SessionWrapper sessions = 2;
*/
public Builder removeSessions(int index) {
if (sessionsBuilder_ == null) {
ensureSessionsIsMutable();
sessions_.remove(index);
onChanged();
} else {
sessionsBuilder_.remove(index);
}
return this;
}
/**
*
* sessions is any number of wrapped session results.
*
*
* repeated .provenance.metadata.v1.SessionWrapper sessions = 2;
*/
public io.provenance.metadata.v1.SessionWrapper.Builder getSessionsBuilder(
int index) {
return getSessionsFieldBuilder().getBuilder(index);
}
/**
*
* sessions is any number of wrapped session results.
*
*
* repeated .provenance.metadata.v1.SessionWrapper sessions = 2;
*/
public io.provenance.metadata.v1.SessionWrapperOrBuilder getSessionsOrBuilder(
int index) {
if (sessionsBuilder_ == null) {
return sessions_.get(index); } else {
return sessionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* sessions is any number of wrapped session results.
*
*
* repeated .provenance.metadata.v1.SessionWrapper sessions = 2;
*/
public java.util.List extends io.provenance.metadata.v1.SessionWrapperOrBuilder>
getSessionsOrBuilderList() {
if (sessionsBuilder_ != null) {
return sessionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(sessions_);
}
}
/**
*
* sessions is any number of wrapped session results.
*
*
* repeated .provenance.metadata.v1.SessionWrapper sessions = 2;
*/
public io.provenance.metadata.v1.SessionWrapper.Builder addSessionsBuilder() {
return getSessionsFieldBuilder().addBuilder(
io.provenance.metadata.v1.SessionWrapper.getDefaultInstance());
}
/**
*
* sessions is any number of wrapped session results.
*
*
* repeated .provenance.metadata.v1.SessionWrapper sessions = 2;
*/
public io.provenance.metadata.v1.SessionWrapper.Builder addSessionsBuilder(
int index) {
return getSessionsFieldBuilder().addBuilder(
index, io.provenance.metadata.v1.SessionWrapper.getDefaultInstance());
}
/**
*
* sessions is any number of wrapped session results.
*
*
* repeated .provenance.metadata.v1.SessionWrapper sessions = 2;
*/
public java.util.List
getSessionsBuilderList() {
return getSessionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.provenance.metadata.v1.SessionWrapper, io.provenance.metadata.v1.SessionWrapper.Builder, io.provenance.metadata.v1.SessionWrapperOrBuilder>
getSessionsFieldBuilder() {
if (sessionsBuilder_ == null) {
sessionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.provenance.metadata.v1.SessionWrapper, io.provenance.metadata.v1.SessionWrapper.Builder, io.provenance.metadata.v1.SessionWrapperOrBuilder>(
sessions_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
sessions_ = null;
}
return sessionsBuilder_;
}
private java.util.List records_ =
java.util.Collections.emptyList();
private void ensureRecordsIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
records_ = new java.util.ArrayList(records_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.provenance.metadata.v1.RecordWrapper, io.provenance.metadata.v1.RecordWrapper.Builder, io.provenance.metadata.v1.RecordWrapperOrBuilder> recordsBuilder_;
/**
*
* records is any number of wrapped records contained in these sessions (if requested).
*
*
* repeated .provenance.metadata.v1.RecordWrapper records = 3 [(.gogoproto.moretags) = "yaml:\"records,omitempty\""];
*/
public java.util.List getRecordsList() {
if (recordsBuilder_ == null) {
return java.util.Collections.unmodifiableList(records_);
} else {
return recordsBuilder_.getMessageList();
}
}
/**
*
* records is any number of wrapped records contained in these sessions (if requested).
*
*
* repeated .provenance.metadata.v1.RecordWrapper records = 3 [(.gogoproto.moretags) = "yaml:\"records,omitempty\""];
*/
public int getRecordsCount() {
if (recordsBuilder_ == null) {
return records_.size();
} else {
return recordsBuilder_.getCount();
}
}
/**
*
* records is any number of wrapped records contained in these sessions (if requested).
*
*
* repeated .provenance.metadata.v1.RecordWrapper records = 3 [(.gogoproto.moretags) = "yaml:\"records,omitempty\""];
*/
public io.provenance.metadata.v1.RecordWrapper getRecords(int index) {
if (recordsBuilder_ == null) {
return records_.get(index);
} else {
return recordsBuilder_.getMessage(index);
}
}
/**
*
* records is any number of wrapped records contained in these sessions (if requested).
*
*
* repeated .provenance.metadata.v1.RecordWrapper records = 3 [(.gogoproto.moretags) = "yaml:\"records,omitempty\""];
*/
public Builder setRecords(
int index, io.provenance.metadata.v1.RecordWrapper value) {
if (recordsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRecordsIsMutable();
records_.set(index, value);
onChanged();
} else {
recordsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* records is any number of wrapped records contained in these sessions (if requested).
*
*
* repeated .provenance.metadata.v1.RecordWrapper records = 3 [(.gogoproto.moretags) = "yaml:\"records,omitempty\""];
*/
public Builder setRecords(
int index, io.provenance.metadata.v1.RecordWrapper.Builder builderForValue) {
if (recordsBuilder_ == null) {
ensureRecordsIsMutable();
records_.set(index, builderForValue.build());
onChanged();
} else {
recordsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* records is any number of wrapped records contained in these sessions (if requested).
*
*
* repeated .provenance.metadata.v1.RecordWrapper records = 3 [(.gogoproto.moretags) = "yaml:\"records,omitempty\""];
*/
public Builder addRecords(io.provenance.metadata.v1.RecordWrapper value) {
if (recordsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRecordsIsMutable();
records_.add(value);
onChanged();
} else {
recordsBuilder_.addMessage(value);
}
return this;
}
/**
*
* records is any number of wrapped records contained in these sessions (if requested).
*
*
* repeated .provenance.metadata.v1.RecordWrapper records = 3 [(.gogoproto.moretags) = "yaml:\"records,omitempty\""];
*/
public Builder addRecords(
int index, io.provenance.metadata.v1.RecordWrapper value) {
if (recordsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRecordsIsMutable();
records_.add(index, value);
onChanged();
} else {
recordsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* records is any number of wrapped records contained in these sessions (if requested).
*
*
* repeated .provenance.metadata.v1.RecordWrapper records = 3 [(.gogoproto.moretags) = "yaml:\"records,omitempty\""];
*/
public Builder addRecords(
io.provenance.metadata.v1.RecordWrapper.Builder builderForValue) {
if (recordsBuilder_ == null) {
ensureRecordsIsMutable();
records_.add(builderForValue.build());
onChanged();
} else {
recordsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* records is any number of wrapped records contained in these sessions (if requested).
*
*
* repeated .provenance.metadata.v1.RecordWrapper records = 3 [(.gogoproto.moretags) = "yaml:\"records,omitempty\""];
*/
public Builder addRecords(
int index, io.provenance.metadata.v1.RecordWrapper.Builder builderForValue) {
if (recordsBuilder_ == null) {
ensureRecordsIsMutable();
records_.add(index, builderForValue.build());
onChanged();
} else {
recordsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* records is any number of wrapped records contained in these sessions (if requested).
*
*
* repeated .provenance.metadata.v1.RecordWrapper records = 3 [(.gogoproto.moretags) = "yaml:\"records,omitempty\""];
*/
public Builder addAllRecords(
java.lang.Iterable extends io.provenance.metadata.v1.RecordWrapper> values) {
if (recordsBuilder_ == null) {
ensureRecordsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, records_);
onChanged();
} else {
recordsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* records is any number of wrapped records contained in these sessions (if requested).
*
*
* repeated .provenance.metadata.v1.RecordWrapper records = 3 [(.gogoproto.moretags) = "yaml:\"records,omitempty\""];
*/
public Builder clearRecords() {
if (recordsBuilder_ == null) {
records_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
recordsBuilder_.clear();
}
return this;
}
/**
*
* records is any number of wrapped records contained in these sessions (if requested).
*
*
* repeated .provenance.metadata.v1.RecordWrapper records = 3 [(.gogoproto.moretags) = "yaml:\"records,omitempty\""];
*/
public Builder removeRecords(int index) {
if (recordsBuilder_ == null) {
ensureRecordsIsMutable();
records_.remove(index);
onChanged();
} else {
recordsBuilder_.remove(index);
}
return this;
}
/**
*
* records is any number of wrapped records contained in these sessions (if requested).
*
*
* repeated .provenance.metadata.v1.RecordWrapper records = 3 [(.gogoproto.moretags) = "yaml:\"records,omitempty\""];
*/
public io.provenance.metadata.v1.RecordWrapper.Builder getRecordsBuilder(
int index) {
return getRecordsFieldBuilder().getBuilder(index);
}
/**
*
* records is any number of wrapped records contained in these sessions (if requested).
*
*
* repeated .provenance.metadata.v1.RecordWrapper records = 3 [(.gogoproto.moretags) = "yaml:\"records,omitempty\""];
*/
public io.provenance.metadata.v1.RecordWrapperOrBuilder getRecordsOrBuilder(
int index) {
if (recordsBuilder_ == null) {
return records_.get(index); } else {
return recordsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* records is any number of wrapped records contained in these sessions (if requested).
*
*
* repeated .provenance.metadata.v1.RecordWrapper records = 3 [(.gogoproto.moretags) = "yaml:\"records,omitempty\""];
*/
public java.util.List extends io.provenance.metadata.v1.RecordWrapperOrBuilder>
getRecordsOrBuilderList() {
if (recordsBuilder_ != null) {
return recordsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(records_);
}
}
/**
*
* records is any number of wrapped records contained in these sessions (if requested).
*
*
* repeated .provenance.metadata.v1.RecordWrapper records = 3 [(.gogoproto.moretags) = "yaml:\"records,omitempty\""];
*/
public io.provenance.metadata.v1.RecordWrapper.Builder addRecordsBuilder() {
return getRecordsFieldBuilder().addBuilder(
io.provenance.metadata.v1.RecordWrapper.getDefaultInstance());
}
/**
*
* records is any number of wrapped records contained in these sessions (if requested).
*
*
* repeated .provenance.metadata.v1.RecordWrapper records = 3 [(.gogoproto.moretags) = "yaml:\"records,omitempty\""];
*/
public io.provenance.metadata.v1.RecordWrapper.Builder addRecordsBuilder(
int index) {
return getRecordsFieldBuilder().addBuilder(
index, io.provenance.metadata.v1.RecordWrapper.getDefaultInstance());
}
/**
*
* records is any number of wrapped records contained in these sessions (if requested).
*
*
* repeated .provenance.metadata.v1.RecordWrapper records = 3 [(.gogoproto.moretags) = "yaml:\"records,omitempty\""];
*/
public java.util.List
getRecordsBuilderList() {
return getRecordsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.provenance.metadata.v1.RecordWrapper, io.provenance.metadata.v1.RecordWrapper.Builder, io.provenance.metadata.v1.RecordWrapperOrBuilder>
getRecordsFieldBuilder() {
if (recordsBuilder_ == null) {
recordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.provenance.metadata.v1.RecordWrapper, io.provenance.metadata.v1.RecordWrapper.Builder, io.provenance.metadata.v1.RecordWrapperOrBuilder>(
records_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
records_ = null;
}
return recordsBuilder_;
}
private io.provenance.metadata.v1.SessionsRequest request_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.provenance.metadata.v1.SessionsRequest, io.provenance.metadata.v1.SessionsRequest.Builder, io.provenance.metadata.v1.SessionsRequestOrBuilder> requestBuilder_;
/**
*
* request is a copy of the request that generated these results.
*
*
* .provenance.metadata.v1.SessionsRequest request = 98;
*/
public boolean hasRequest() {
return requestBuilder_ != null || request_ != null;
}
/**
*
* request is a copy of the request that generated these results.
*
*
* .provenance.metadata.v1.SessionsRequest request = 98;
*/
public io.provenance.metadata.v1.SessionsRequest getRequest() {
if (requestBuilder_ == null) {
return request_ == null ? io.provenance.metadata.v1.SessionsRequest.getDefaultInstance() : request_;
} else {
return requestBuilder_.getMessage();
}
}
/**
*
* request is a copy of the request that generated these results.
*
*
* .provenance.metadata.v1.SessionsRequest request = 98;
*/
public Builder setRequest(io.provenance.metadata.v1.SessionsRequest value) {
if (requestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
onChanged();
} else {
requestBuilder_.setMessage(value);
}
return this;
}
/**
*
* request is a copy of the request that generated these results.
*
*
* .provenance.metadata.v1.SessionsRequest request = 98;
*/
public Builder setRequest(
io.provenance.metadata.v1.SessionsRequest.Builder builderForValue) {
if (requestBuilder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
requestBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* request is a copy of the request that generated these results.
*
*
* .provenance.metadata.v1.SessionsRequest request = 98;
*/
public Builder mergeRequest(io.provenance.metadata.v1.SessionsRequest value) {
if (requestBuilder_ == null) {
if (request_ != null) {
request_ =
io.provenance.metadata.v1.SessionsRequest.newBuilder(request_).mergeFrom(value).buildPartial();
} else {
request_ = value;
}
onChanged();
} else {
requestBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* request is a copy of the request that generated these results.
*
*
* .provenance.metadata.v1.SessionsRequest request = 98;
*/
public Builder clearRequest() {
if (requestBuilder_ == null) {
request_ = null;
onChanged();
} else {
request_ = null;
requestBuilder_ = null;
}
return this;
}
/**
*
* request is a copy of the request that generated these results.
*
*
* .provenance.metadata.v1.SessionsRequest request = 98;
*/
public io.provenance.metadata.v1.SessionsRequest.Builder getRequestBuilder() {
onChanged();
return getRequestFieldBuilder().getBuilder();
}
/**
*
* request is a copy of the request that generated these results.
*
*
* .provenance.metadata.v1.SessionsRequest request = 98;
*/
public io.provenance.metadata.v1.SessionsRequestOrBuilder getRequestOrBuilder() {
if (requestBuilder_ != null) {
return requestBuilder_.getMessageOrBuilder();
} else {
return request_ == null ?
io.provenance.metadata.v1.SessionsRequest.getDefaultInstance() : request_;
}
}
/**
*
* request is a copy of the request that generated these results.
*
*
* .provenance.metadata.v1.SessionsRequest request = 98;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.provenance.metadata.v1.SessionsRequest, io.provenance.metadata.v1.SessionsRequest.Builder, io.provenance.metadata.v1.SessionsRequestOrBuilder>
getRequestFieldBuilder() {
if (requestBuilder_ == null) {
requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.provenance.metadata.v1.SessionsRequest, io.provenance.metadata.v1.SessionsRequest.Builder, io.provenance.metadata.v1.SessionsRequestOrBuilder>(
getRequest(),
getParentForChildren(),
isClean());
request_ = null;
}
return requestBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:provenance.metadata.v1.SessionsResponse)
}
// @@protoc_insertion_point(class_scope:provenance.metadata.v1.SessionsResponse)
private static final io.provenance.metadata.v1.SessionsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.provenance.metadata.v1.SessionsResponse();
}
public static io.provenance.metadata.v1.SessionsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SessionsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SessionsResponse(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 io.provenance.metadata.v1.SessionsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}