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.
*
* string description = 2;
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SCOPES_FIELD_NUMBER = 3;
private com.google.protobuf.LazyStringList scopes_;
/**
*
* The low-level scopes this key has
*
*
* repeated string scopes = 3;
* @return A list containing the scopes.
*/
public com.google.protobuf.ProtocolStringList
getScopesList() {
return scopes_;
}
/**
*
* The low-level scopes this key has
*
*
* repeated string scopes = 3;
* @return The count of scopes.
*/
public int getScopesCount() {
return scopes_.size();
}
/**
*
* The low-level scopes this key has
*
*
* repeated string scopes = 3;
* @param index The index of the element to return.
* @return The scopes at the given index.
*/
public java.lang.String getScopes(int index) {
return scopes_.get(index);
}
/**
*
* The low-level scopes this key has
*
*
* repeated string scopes = 3;
* @param index The index of the value to return.
* @return The bytes of the scopes at the given index.
*/
public com.google.protobuf.ByteString
getScopesBytes(int index) {
return scopes_.getByteString(index);
}
public static final int ENDPOINTS_FIELD_NUMBER = 7;
private com.google.protobuf.LazyStringList endpoints_;
/**
*
* The endpoint-level scopes this key has
*
*
* repeated string endpoints = 7;
* @return A list containing the endpoints.
*/
public com.google.protobuf.ProtocolStringList
getEndpointsList() {
return endpoints_;
}
/**
*
* The endpoint-level scopes this key has
*
*
* repeated string endpoints = 7;
* @return The count of endpoints.
*/
public int getEndpointsCount() {
return endpoints_.size();
}
/**
*
* The endpoint-level scopes this key has
*
*
* repeated string endpoints = 7;
* @param index The index of the element to return.
* @return The endpoints at the given index.
*/
public java.lang.String getEndpoints(int index) {
return endpoints_.get(index);
}
/**
*
* The endpoint-level scopes this key has
*
*
* repeated string endpoints = 7;
* @param index The index of the value to return.
* @return The bytes of the endpoints at the given index.
*/
public com.google.protobuf.ByteString
getEndpointsBytes(int index) {
return endpoints_.getByteString(index);
}
public static final int APPS_FIELD_NUMBER = 4;
private java.util.List apps_;
/**
*
* The apps that this key give you access to, it is empty if this key is personal_access_token
* API key can only give you access to a single app.
*
* The apps that this key give you access to, it is empty if this key is personal_access_token
* API key can only give you access to a single app.
*
*
* repeated .clarifai.api.App apps = 4;
*/
@java.lang.Override
public com.clarifai.grpc.api.AppOrBuilder getAppsOrBuilder(
int index) {
return apps_.get(index);
}
public static final int CREATED_AT_FIELD_NUMBER = 5;
private com.google.protobuf.Timestamp createdAt_;
/**
*
* When the key was created. We follow the XXXX timestamp
* format. We use https://www.ietf.org/rfc/rfc3339.txt format:
* "2006-01-02T15:04:05.999999Z" so you can expect results like
* the following from the API:
* "2017-04-11T21:50:50.223962Z"
*
*
* .google.protobuf.Timestamp created_at = 5;
* @return Whether the createdAt field is set.
*/
@java.lang.Override
public boolean hasCreatedAt() {
return createdAt_ != null;
}
/**
*
* When the key was created. We follow the XXXX timestamp
* format. We use https://www.ietf.org/rfc/rfc3339.txt format:
* "2006-01-02T15:04:05.999999Z" so you can expect results like
* the following from the API:
* "2017-04-11T21:50:50.223962Z"
*
* When the key was created. We follow the XXXX timestamp
* format. We use https://www.ietf.org/rfc/rfc3339.txt format:
* "2006-01-02T15:04:05.999999Z" so you can expect results like
* the following from the API:
* "2017-04-11T21:50:50.223962Z"
*
*
* .google.protobuf.Timestamp created_at = 5;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
return getCreatedAt();
}
public static final int EXPIRES_AT_FIELD_NUMBER = 6;
private com.google.protobuf.Timestamp expiresAt_;
/**
*
* When does the key expires, the key won't expire if this is empty
*
*
* .google.protobuf.Timestamp expires_at = 6;
* @return Whether the expiresAt field is set.
*/
@java.lang.Override
public boolean hasExpiresAt() {
return expiresAt_ != null;
}
/**
*
* When does the key expires, the key won't expire if this is empty
*
* When does the key expires, the key won't expire if this is empty
*
*
* .google.protobuf.Timestamp expires_at = 6;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getExpiresAtOrBuilder() {
return getExpiresAt();
}
public static final int AUTHORIZED_IDP_IDS_FIELD_NUMBER = 9;
private com.google.protobuf.LazyStringList authorizedIdpIds_;
/**
*
* list of idp ids at which key is currently authorized
*
*
* repeated string authorized_idp_ids = 9;
* @return A list containing the authorizedIdpIds.
*/
public com.google.protobuf.ProtocolStringList
getAuthorizedIdpIdsList() {
return authorizedIdpIds_;
}
/**
*
* list of idp ids at which key is currently authorized
*
*
* repeated string authorized_idp_ids = 9;
* @return The count of authorizedIdpIds.
*/
public int getAuthorizedIdpIdsCount() {
return authorizedIdpIds_.size();
}
/**
*
* list of idp ids at which key is currently authorized
*
*
* repeated string authorized_idp_ids = 9;
* @param index The index of the element to return.
* @return The authorizedIdpIds at the given index.
*/
public java.lang.String getAuthorizedIdpIds(int index) {
return authorizedIdpIds_.get(index);
}
/**
*
* list of idp ids at which key is currently authorized
*
*
* repeated string authorized_idp_ids = 9;
* @param index The index of the value to return.
* @return The bytes of the authorizedIdpIds at the given index.
*/
public com.google.protobuf.ByteString
getAuthorizedIdpIdsBytes(int index) {
return authorizedIdpIds_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_);
}
for (int i = 0; i < scopes_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, scopes_.getRaw(i));
}
for (int i = 0; i < apps_.size(); i++) {
output.writeMessage(4, apps_.get(i));
}
if (createdAt_ != null) {
output.writeMessage(5, getCreatedAt());
}
if (expiresAt_ != null) {
output.writeMessage(6, getExpiresAt());
}
for (int i = 0; i < endpoints_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, endpoints_.getRaw(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, type_);
}
for (int i = 0; i < authorizedIdpIds_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, authorizedIdpIds_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_);
}
{
int dataSize = 0;
for (int i = 0; i < scopes_.size(); i++) {
dataSize += computeStringSizeNoTag(scopes_.getRaw(i));
}
size += dataSize;
size += 1 * getScopesList().size();
}
for (int i = 0; i < apps_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, apps_.get(i));
}
if (createdAt_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getCreatedAt());
}
if (expiresAt_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getExpiresAt());
}
{
int dataSize = 0;
for (int i = 0; i < endpoints_.size(); i++) {
dataSize += computeStringSizeNoTag(endpoints_.getRaw(i));
}
size += dataSize;
size += 1 * getEndpointsList().size();
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, type_);
}
{
int dataSize = 0;
for (int i = 0; i < authorizedIdpIds_.size(); i++) {
dataSize += computeStringSizeNoTag(authorizedIdpIds_.getRaw(i));
}
size += dataSize;
size += 1 * getAuthorizedIdpIdsList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.clarifai.grpc.api.Key)) {
return super.equals(obj);
}
com.clarifai.grpc.api.Key other = (com.clarifai.grpc.api.Key) obj;
if (!getId()
.equals(other.getId())) return false;
if (!getType()
.equals(other.getType())) return false;
if (!getDescription()
.equals(other.getDescription())) return false;
if (!getScopesList()
.equals(other.getScopesList())) return false;
if (!getEndpointsList()
.equals(other.getEndpointsList())) return false;
if (!getAppsList()
.equals(other.getAppsList())) return false;
if (hasCreatedAt() != other.hasCreatedAt()) return false;
if (hasCreatedAt()) {
if (!getCreatedAt()
.equals(other.getCreatedAt())) return false;
}
if (hasExpiresAt() != other.hasExpiresAt()) return false;
if (hasExpiresAt()) {
if (!getExpiresAt()
.equals(other.getExpiresAt())) return false;
}
if (!getAuthorizedIdpIdsList()
.equals(other.getAuthorizedIdpIdsList())) 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) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType().hashCode();
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
if (getScopesCount() > 0) {
hash = (37 * hash) + SCOPES_FIELD_NUMBER;
hash = (53 * hash) + getScopesList().hashCode();
}
if (getEndpointsCount() > 0) {
hash = (37 * hash) + ENDPOINTS_FIELD_NUMBER;
hash = (53 * hash) + getEndpointsList().hashCode();
}
if (getAppsCount() > 0) {
hash = (37 * hash) + APPS_FIELD_NUMBER;
hash = (53 * hash) + getAppsList().hashCode();
}
if (hasCreatedAt()) {
hash = (37 * hash) + CREATED_AT_FIELD_NUMBER;
hash = (53 * hash) + getCreatedAt().hashCode();
}
if (hasExpiresAt()) {
hash = (37 * hash) + EXPIRES_AT_FIELD_NUMBER;
hash = (53 * hash) + getExpiresAt().hashCode();
}
if (getAuthorizedIdpIdsCount() > 0) {
hash = (37 * hash) + AUTHORIZED_IDP_IDS_FIELD_NUMBER;
hash = (53 * hash) + getAuthorizedIdpIdsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.clarifai.grpc.api.Key parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.Key parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.clarifai.grpc.api.Key parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.Key parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.clarifai.grpc.api.Key parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.Key parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.clarifai.grpc.api.Key parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.Key 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.clarifai.grpc.api.Key parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.Key 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.clarifai.grpc.api.Key parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.Key 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.clarifai.grpc.api.Key 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;
}
/**
*
* The id of this key, it is used for authorization.
*
*
* string id = 1;
* @return The id.
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The id of this key, it is used for authorization.
*
*
* string id = 1;
* @return The bytes for id.
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The id of this key, it is used for authorization.
*
*
* string id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
*
* The id of this key, it is used for authorization.
*
*
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
* The id of this key, it is used for authorization.
*
*
* string id = 1;
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
id_ = value;
onChanged();
return this;
}
private java.lang.Object type_ = "";
/**
*
* The type of key, it can be api_key or personal_access_token, the default value is api_key
*
*
* string type = 8;
* @return The type.
*/
public java.lang.String getType() {
java.lang.Object ref = type_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
type_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The type of key, it can be api_key or personal_access_token, the default value is api_key
*
*
* string type = 8;
* @return The bytes for type.
*/
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The type of key, it can be api_key or personal_access_token, the default value is api_key
*
*
* string type = 8;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
return this;
}
/**
*
* The type of key, it can be api_key or personal_access_token, the default value is api_key
*
*
* string type = 8;
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = getDefaultInstance().getType();
onChanged();
return this;
}
/**
*
* The type of key, it can be api_key or personal_access_token, the default value is api_key
*
*
* string type = 8;
* @param value The bytes for type to set.
* @return This builder for chaining.
*/
public Builder setTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
type_ = value;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
*
* string description = 2;
* @return The bytes for description.
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The description
*
*
* string description = 2;
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
onChanged();
return this;
}
/**
*
* The description
*
*
* string description = 2;
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* The description
*
*
* string description = 2;
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList scopes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureScopesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
scopes_ = new com.google.protobuf.LazyStringArrayList(scopes_);
bitField0_ |= 0x00000001;
}
}
/**
*
* The low-level scopes this key has
*
*
* repeated string scopes = 3;
* @return A list containing the scopes.
*/
public com.google.protobuf.ProtocolStringList
getScopesList() {
return scopes_.getUnmodifiableView();
}
/**
*
* The low-level scopes this key has
*
*
* repeated string scopes = 3;
* @return The count of scopes.
*/
public int getScopesCount() {
return scopes_.size();
}
/**
*
* The low-level scopes this key has
*
*
* repeated string scopes = 3;
* @param index The index of the element to return.
* @return The scopes at the given index.
*/
public java.lang.String getScopes(int index) {
return scopes_.get(index);
}
/**
*
* The low-level scopes this key has
*
*
* repeated string scopes = 3;
* @param index The index of the value to return.
* @return The bytes of the scopes at the given index.
*/
public com.google.protobuf.ByteString
getScopesBytes(int index) {
return scopes_.getByteString(index);
}
/**
*
* The low-level scopes this key has
*
*
* repeated string scopes = 3;
* @param index The index to set the value at.
* @param value The scopes to set.
* @return This builder for chaining.
*/
public Builder setScopes(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureScopesIsMutable();
scopes_.set(index, value);
onChanged();
return this;
}
/**
*
* The low-level scopes this key has
*
*
* repeated string scopes = 3;
* @param value The scopes to add.
* @return This builder for chaining.
*/
public Builder addScopes(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureScopesIsMutable();
scopes_.add(value);
onChanged();
return this;
}
/**
*
* The low-level scopes this key has
*
*
* repeated string scopes = 3;
* @param values The scopes to add.
* @return This builder for chaining.
*/
public Builder addAllScopes(
java.lang.Iterable values) {
ensureScopesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, scopes_);
onChanged();
return this;
}
/**
*
*
* repeated string scopes = 3;
* @param value The bytes of the scopes to add.
* @return This builder for chaining.
*/
public Builder addScopesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureScopesIsMutable();
scopes_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList endpoints_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureEndpointsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
endpoints_ = new com.google.protobuf.LazyStringArrayList(endpoints_);
bitField0_ |= 0x00000002;
}
}
/**
*
* The endpoint-level scopes this key has
*
*
* repeated string endpoints = 7;
* @return A list containing the endpoints.
*/
public com.google.protobuf.ProtocolStringList
getEndpointsList() {
return endpoints_.getUnmodifiableView();
}
/**
*
* The endpoint-level scopes this key has
*
*
* repeated string endpoints = 7;
* @return The count of endpoints.
*/
public int getEndpointsCount() {
return endpoints_.size();
}
/**
*
* The endpoint-level scopes this key has
*
*
* repeated string endpoints = 7;
* @param index The index of the element to return.
* @return The endpoints at the given index.
*/
public java.lang.String getEndpoints(int index) {
return endpoints_.get(index);
}
/**
*
* The endpoint-level scopes this key has
*
*
* repeated string endpoints = 7;
* @param index The index of the value to return.
* @return The bytes of the endpoints at the given index.
*/
public com.google.protobuf.ByteString
getEndpointsBytes(int index) {
return endpoints_.getByteString(index);
}
/**
*
* The endpoint-level scopes this key has
*
*
* repeated string endpoints = 7;
* @param index The index to set the value at.
* @param value The endpoints to set.
* @return This builder for chaining.
*/
public Builder setEndpoints(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureEndpointsIsMutable();
endpoints_.set(index, value);
onChanged();
return this;
}
/**
*
* The endpoint-level scopes this key has
*
*
* repeated string endpoints = 7;
* @param value The endpoints to add.
* @return This builder for chaining.
*/
public Builder addEndpoints(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureEndpointsIsMutable();
endpoints_.add(value);
onChanged();
return this;
}
/**
*
* The endpoint-level scopes this key has
*
*
* repeated string endpoints = 7;
* @param values The endpoints to add.
* @return This builder for chaining.
*/
public Builder addAllEndpoints(
java.lang.Iterable values) {
ensureEndpointsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, endpoints_);
onChanged();
return this;
}
/**
*
* When the key was created. We follow the XXXX timestamp
* format. We use https://www.ietf.org/rfc/rfc3339.txt format:
* "2006-01-02T15:04:05.999999Z" so you can expect results like
* the following from the API:
* "2017-04-11T21:50:50.223962Z"
*
*
* .google.protobuf.Timestamp created_at = 5;
* @return Whether the createdAt field is set.
*/
public boolean hasCreatedAt() {
return createdAtBuilder_ != null || createdAt_ != null;
}
/**
*
* When the key was created. We follow the XXXX timestamp
* format. We use https://www.ietf.org/rfc/rfc3339.txt format:
* "2006-01-02T15:04:05.999999Z" so you can expect results like
* the following from the API:
* "2017-04-11T21:50:50.223962Z"
*
* When the key was created. We follow the XXXX timestamp
* format. We use https://www.ietf.org/rfc/rfc3339.txt format:
* "2006-01-02T15:04:05.999999Z" so you can expect results like
* the following from the API:
* "2017-04-11T21:50:50.223962Z"
*
*
* .google.protobuf.Timestamp created_at = 5;
*/
public Builder setCreatedAt(com.google.protobuf.Timestamp value) {
if (createdAtBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
createdAt_ = value;
onChanged();
} else {
createdAtBuilder_.setMessage(value);
}
return this;
}
/**
*
* When the key was created. We follow the XXXX timestamp
* format. We use https://www.ietf.org/rfc/rfc3339.txt format:
* "2006-01-02T15:04:05.999999Z" so you can expect results like
* the following from the API:
* "2017-04-11T21:50:50.223962Z"
*
* When the key was created. We follow the XXXX timestamp
* format. We use https://www.ietf.org/rfc/rfc3339.txt format:
* "2006-01-02T15:04:05.999999Z" so you can expect results like
* the following from the API:
* "2017-04-11T21:50:50.223962Z"
*
* When the key was created. We follow the XXXX timestamp
* format. We use https://www.ietf.org/rfc/rfc3339.txt format:
* "2006-01-02T15:04:05.999999Z" so you can expect results like
* the following from the API:
* "2017-04-11T21:50:50.223962Z"
*
* When the key was created. We follow the XXXX timestamp
* format. We use https://www.ietf.org/rfc/rfc3339.txt format:
* "2006-01-02T15:04:05.999999Z" so you can expect results like
* the following from the API:
* "2017-04-11T21:50:50.223962Z"
*
* When the key was created. We follow the XXXX timestamp
* format. We use https://www.ietf.org/rfc/rfc3339.txt format:
* "2006-01-02T15:04:05.999999Z" so you can expect results like
* the following from the API:
* "2017-04-11T21:50:50.223962Z"
*
* When the key was created. We follow the XXXX timestamp
* format. We use https://www.ietf.org/rfc/rfc3339.txt format:
* "2006-01-02T15:04:05.999999Z" so you can expect results like
* the following from the API:
* "2017-04-11T21:50:50.223962Z"
*
* list of idp ids at which key is currently authorized
*
*
* repeated string authorized_idp_ids = 9;
* @return A list containing the authorizedIdpIds.
*/
public com.google.protobuf.ProtocolStringList
getAuthorizedIdpIdsList() {
return authorizedIdpIds_.getUnmodifiableView();
}
/**
*
* list of idp ids at which key is currently authorized
*
*
* repeated string authorized_idp_ids = 9;
* @return The count of authorizedIdpIds.
*/
public int getAuthorizedIdpIdsCount() {
return authorizedIdpIds_.size();
}
/**
*
* list of idp ids at which key is currently authorized
*
*
* repeated string authorized_idp_ids = 9;
* @param index The index of the element to return.
* @return The authorizedIdpIds at the given index.
*/
public java.lang.String getAuthorizedIdpIds(int index) {
return authorizedIdpIds_.get(index);
}
/**
*
* list of idp ids at which key is currently authorized
*
*
* repeated string authorized_idp_ids = 9;
* @param index The index of the value to return.
* @return The bytes of the authorizedIdpIds at the given index.
*/
public com.google.protobuf.ByteString
getAuthorizedIdpIdsBytes(int index) {
return authorizedIdpIds_.getByteString(index);
}
/**
*
* list of idp ids at which key is currently authorized
*
*
* repeated string authorized_idp_ids = 9;
* @param index The index to set the value at.
* @param value The authorizedIdpIds to set.
* @return This builder for chaining.
*/
public Builder setAuthorizedIdpIds(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAuthorizedIdpIdsIsMutable();
authorizedIdpIds_.set(index, value);
onChanged();
return this;
}
/**
*
* list of idp ids at which key is currently authorized
*
*
* repeated string authorized_idp_ids = 9;
* @param value The authorizedIdpIds to add.
* @return This builder for chaining.
*/
public Builder addAuthorizedIdpIds(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAuthorizedIdpIdsIsMutable();
authorizedIdpIds_.add(value);
onChanged();
return this;
}
/**
*
* list of idp ids at which key is currently authorized
*
*
* repeated string authorized_idp_ids = 9;
* @param values The authorizedIdpIds to add.
* @return This builder for chaining.
*/
public Builder addAllAuthorizedIdpIds(
java.lang.Iterable values) {
ensureAuthorizedIdpIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, authorizedIdpIds_);
onChanged();
return this;
}
/**
*
* list of idp ids at which key is currently authorized
*