All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.dataform.v1alpha2.Repository Maven / Gradle / Ivy

There is a newer version: 0.54.0
Show newest version
/*
 * Copyright 2024 Google LLC
 *
 * 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
 *
 *     https://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: google/cloud/dataform/v1alpha2/dataform.proto

// Protobuf Java Version: 3.25.5
package com.google.cloud.dataform.v1alpha2;

/**
 *
 *
 * 
 * Represents a Dataform Git repository.
 * 
* * Protobuf type {@code google.cloud.dataform.v1alpha2.Repository} */ public final class Repository extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.Repository) RepositoryOrBuilder { private static final long serialVersionUID = 0L; // Use Repository.newBuilder() to construct. private Repository(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Repository() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Repository(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataform.v1alpha2.DataformProto .internal_static_google_cloud_dataform_v1alpha2_Repository_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dataform.v1alpha2.DataformProto .internal_static_google_cloud_dataform_v1alpha2_Repository_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataform.v1alpha2.Repository.class, com.google.cloud.dataform.v1alpha2.Repository.Builder.class); } public interface GitRemoteSettingsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings) com.google.protobuf.MessageOrBuilder { /** * * *
     * Required. The Git remote's URL.
     * 
* * string url = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The url. */ java.lang.String getUrl(); /** * * *
     * Required. The Git remote's URL.
     * 
* * string url = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for url. */ com.google.protobuf.ByteString getUrlBytes(); /** * * *
     * Required. The Git remote's default branch name.
     * 
* * string default_branch = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The defaultBranch. */ java.lang.String getDefaultBranch(); /** * * *
     * Required. The Git remote's default branch name.
     * 
* * string default_branch = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for defaultBranch. */ com.google.protobuf.ByteString getDefaultBranchBytes(); /** * * *
     * Required. The name of the Secret Manager secret version to use as an
     * authentication token for Git operations. Must be in the format
     * `projects/*/secrets/*/versions/*`.
     * 
* * * string authentication_token_secret_version = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The authenticationTokenSecretVersion. */ java.lang.String getAuthenticationTokenSecretVersion(); /** * * *
     * Required. The name of the Secret Manager secret version to use as an
     * authentication token for Git operations. Must be in the format
     * `projects/*/secrets/*/versions/*`.
     * 
* * * string authentication_token_secret_version = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for authenticationTokenSecretVersion. */ com.google.protobuf.ByteString getAuthenticationTokenSecretVersionBytes(); /** * * *
     * Output only. Indicates the status of the Git access token.
     * 
* * * .google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.TokenStatus token_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for tokenStatus. */ int getTokenStatusValue(); /** * * *
     * Output only. Indicates the status of the Git access token.
     * 
* * * .google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.TokenStatus token_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The tokenStatus. */ com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.TokenStatus getTokenStatus(); } /** * * *
   * Controls Git remote configuration for a repository.
   * 
* * Protobuf type {@code google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings} */ public static final class GitRemoteSettings extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings) GitRemoteSettingsOrBuilder { private static final long serialVersionUID = 0L; // Use GitRemoteSettings.newBuilder() to construct. private GitRemoteSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GitRemoteSettings() { url_ = ""; defaultBranch_ = ""; authenticationTokenSecretVersion_ = ""; tokenStatus_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GitRemoteSettings(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataform.v1alpha2.DataformProto .internal_static_google_cloud_dataform_v1alpha2_Repository_GitRemoteSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dataform.v1alpha2.DataformProto .internal_static_google_cloud_dataform_v1alpha2_Repository_GitRemoteSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.class, com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.Builder.class); } /** * * *
     * Indicates the status of a Git authentication token.
     * 
* * Protobuf enum {@code google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.TokenStatus} */ public enum TokenStatus implements com.google.protobuf.ProtocolMessageEnum { /** * * *
       * Default value. This value is unused.
       * 
* * TOKEN_STATUS_UNSPECIFIED = 0; */ TOKEN_STATUS_UNSPECIFIED(0), /** * * *
       * The token could not be found in Secret Manager (or the Dataform
       * Service Account did not have permission to access it).
       * 
* * NOT_FOUND = 1; */ NOT_FOUND(1), /** * * *
       * The token could not be used to authenticate against the Git remote.
       * 
* * INVALID = 2; */ INVALID(2), /** * * *
       * The token was used successfully to authenticate against the Git remote.
       * 
* * VALID = 3; */ VALID(3), UNRECOGNIZED(-1), ; /** * * *
       * Default value. This value is unused.
       * 
* * TOKEN_STATUS_UNSPECIFIED = 0; */ public static final int TOKEN_STATUS_UNSPECIFIED_VALUE = 0; /** * * *
       * The token could not be found in Secret Manager (or the Dataform
       * Service Account did not have permission to access it).
       * 
* * NOT_FOUND = 1; */ public static final int NOT_FOUND_VALUE = 1; /** * * *
       * The token could not be used to authenticate against the Git remote.
       * 
* * INVALID = 2; */ public static final int INVALID_VALUE = 2; /** * * *
       * The token was used successfully to authenticate against the Git remote.
       * 
* * VALID = 3; */ public static final int VALID_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static TokenStatus valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static TokenStatus forNumber(int value) { switch (value) { case 0: return TOKEN_STATUS_UNSPECIFIED; case 1: return NOT_FOUND; case 2: return INVALID; case 3: return VALID; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public TokenStatus findValueByNumber(int number) { return TokenStatus.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.getDescriptor() .getEnumTypes() .get(0); } private static final TokenStatus[] VALUES = values(); public static TokenStatus valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private TokenStatus(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.TokenStatus) } public static final int URL_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object url_ = ""; /** * * *
     * Required. The Git remote's URL.
     * 
* * string url = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The url. */ @java.lang.Override public java.lang.String getUrl() { java.lang.Object ref = url_; 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(); url_ = s; return s; } } /** * * *
     * Required. The Git remote's URL.
     * 
* * string url = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for url. */ @java.lang.Override public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); url_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DEFAULT_BRANCH_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object defaultBranch_ = ""; /** * * *
     * Required. The Git remote's default branch name.
     * 
* * string default_branch = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The defaultBranch. */ @java.lang.Override public java.lang.String getDefaultBranch() { java.lang.Object ref = defaultBranch_; 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(); defaultBranch_ = s; return s; } } /** * * *
     * Required. The Git remote's default branch name.
     * 
* * string default_branch = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for defaultBranch. */ @java.lang.Override public com.google.protobuf.ByteString getDefaultBranchBytes() { java.lang.Object ref = defaultBranch_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); defaultBranch_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int AUTHENTICATION_TOKEN_SECRET_VERSION_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object authenticationTokenSecretVersion_ = ""; /** * * *
     * Required. The name of the Secret Manager secret version to use as an
     * authentication token for Git operations. Must be in the format
     * `projects/*/secrets/*/versions/*`.
     * 
* * * string authentication_token_secret_version = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The authenticationTokenSecretVersion. */ @java.lang.Override public java.lang.String getAuthenticationTokenSecretVersion() { java.lang.Object ref = authenticationTokenSecretVersion_; 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(); authenticationTokenSecretVersion_ = s; return s; } } /** * * *
     * Required. The name of the Secret Manager secret version to use as an
     * authentication token for Git operations. Must be in the format
     * `projects/*/secrets/*/versions/*`.
     * 
* * * string authentication_token_secret_version = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for authenticationTokenSecretVersion. */ @java.lang.Override public com.google.protobuf.ByteString getAuthenticationTokenSecretVersionBytes() { java.lang.Object ref = authenticationTokenSecretVersion_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); authenticationTokenSecretVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TOKEN_STATUS_FIELD_NUMBER = 4; private int tokenStatus_ = 0; /** * * *
     * Output only. Indicates the status of the Git access token.
     * 
* * * .google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.TokenStatus token_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for tokenStatus. */ @java.lang.Override public int getTokenStatusValue() { return tokenStatus_; } /** * * *
     * Output only. Indicates the status of the Git access token.
     * 
* * * .google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.TokenStatus token_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The tokenStatus. */ @java.lang.Override public com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.TokenStatus getTokenStatus() { com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.TokenStatus result = com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.TokenStatus.forNumber( tokenStatus_); return result == null ? com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.TokenStatus.UNRECOGNIZED : result; } 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(url_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultBranch_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, defaultBranch_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty( authenticationTokenSecretVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString( output, 3, authenticationTokenSecretVersion_); } if (tokenStatus_ != com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.TokenStatus .TOKEN_STATUS_UNSPECIFIED .getNumber()) { output.writeEnum(4, tokenStatus_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultBranch_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, defaultBranch_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty( authenticationTokenSecretVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize( 3, authenticationTokenSecretVersion_); } if (tokenStatus_ != com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.TokenStatus .TOKEN_STATUS_UNSPECIFIED .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, tokenStatus_); } size += getUnknownFields().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.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings)) { return super.equals(obj); } com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings other = (com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings) obj; if (!getUrl().equals(other.getUrl())) return false; if (!getDefaultBranch().equals(other.getDefaultBranch())) return false; if (!getAuthenticationTokenSecretVersion() .equals(other.getAuthenticationTokenSecretVersion())) return false; if (tokenStatus_ != other.tokenStatus_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) 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) + URL_FIELD_NUMBER; hash = (53 * hash) + getUrl().hashCode(); hash = (37 * hash) + DEFAULT_BRANCH_FIELD_NUMBER; hash = (53 * hash) + getDefaultBranch().hashCode(); hash = (37 * hash) + AUTHENTICATION_TOKEN_SECRET_VERSION_FIELD_NUMBER; hash = (53 * hash) + getAuthenticationTokenSecretVersion().hashCode(); hash = (37 * hash) + TOKEN_STATUS_FIELD_NUMBER; hash = (53 * hash) + tokenStatus_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings 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.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings 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.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings 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.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings 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; } /** * * *
     * Controls Git remote configuration for a repository.
     * 
* * Protobuf type {@code google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings) com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettingsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataform.v1alpha2.DataformProto .internal_static_google_cloud_dataform_v1alpha2_Repository_GitRemoteSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dataform.v1alpha2.DataformProto .internal_static_google_cloud_dataform_v1alpha2_Repository_GitRemoteSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.class, com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.Builder.class); } // Construct using // com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; url_ = ""; defaultBranch_ = ""; authenticationTokenSecretVersion_ = ""; tokenStatus_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dataform.v1alpha2.DataformProto .internal_static_google_cloud_dataform_v1alpha2_Repository_GitRemoteSettings_descriptor; } @java.lang.Override public com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings getDefaultInstanceForType() { return com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.getDefaultInstance(); } @java.lang.Override public com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings build() { com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings buildPartial() { com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings result = new com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0( com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.url_ = url_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.defaultBranch_ = defaultBranch_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.authenticationTokenSecretVersion_ = authenticationTokenSecretVersion_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.tokenStatus_ = tokenStatus_; } } @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.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings) { return mergeFrom((com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings other) { if (other == com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.getDefaultInstance()) return this; if (!other.getUrl().isEmpty()) { url_ = other.url_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getDefaultBranch().isEmpty()) { defaultBranch_ = other.defaultBranch_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getAuthenticationTokenSecretVersion().isEmpty()) { authenticationTokenSecretVersion_ = other.authenticationTokenSecretVersion_; bitField0_ |= 0x00000004; onChanged(); } if (other.tokenStatus_ != 0) { setTokenStatusValue(other.getTokenStatusValue()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { url_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { defaultBranch_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { authenticationTokenSecretVersion_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 32: { tokenStatus_ = input.readEnum(); bitField0_ |= 0x00000008; break; } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object url_ = ""; /** * * *
       * Required. The Git remote's URL.
       * 
* * string url = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The url. */ public java.lang.String getUrl() { java.lang.Object ref = url_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * Required. The Git remote's URL.
       * 
* * string url = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for url. */ public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); url_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Required. The Git remote's URL.
       * 
* * string url = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param value The url to set. * @return This builder for chaining. */ public Builder setUrl(java.lang.String value) { if (value == null) { throw new NullPointerException(); } url_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * Required. The Git remote's URL.
       * 
* * string url = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ public Builder clearUrl() { url_ = getDefaultInstance().getUrl(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
       * Required. The Git remote's URL.
       * 
* * string url = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for url to set. * @return This builder for chaining. */ public Builder setUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); url_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object defaultBranch_ = ""; /** * * *
       * Required. The Git remote's default branch name.
       * 
* * string default_branch = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The defaultBranch. */ public java.lang.String getDefaultBranch() { java.lang.Object ref = defaultBranch_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); defaultBranch_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * Required. The Git remote's default branch name.
       * 
* * string default_branch = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for defaultBranch. */ public com.google.protobuf.ByteString getDefaultBranchBytes() { java.lang.Object ref = defaultBranch_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); defaultBranch_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Required. The Git remote's default branch name.
       * 
* * string default_branch = 2 [(.google.api.field_behavior) = REQUIRED]; * * @param value The defaultBranch to set. * @return This builder for chaining. */ public Builder setDefaultBranch(java.lang.String value) { if (value == null) { throw new NullPointerException(); } defaultBranch_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * Required. The Git remote's default branch name.
       * 
* * string default_branch = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ public Builder clearDefaultBranch() { defaultBranch_ = getDefaultInstance().getDefaultBranch(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
       * Required. The Git remote's default branch name.
       * 
* * string default_branch = 2 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for defaultBranch to set. * @return This builder for chaining. */ public Builder setDefaultBranchBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); defaultBranch_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object authenticationTokenSecretVersion_ = ""; /** * * *
       * Required. The name of the Secret Manager secret version to use as an
       * authentication token for Git operations. Must be in the format
       * `projects/*/secrets/*/versions/*`.
       * 
* * * string authentication_token_secret_version = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The authenticationTokenSecretVersion. */ public java.lang.String getAuthenticationTokenSecretVersion() { java.lang.Object ref = authenticationTokenSecretVersion_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); authenticationTokenSecretVersion_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * Required. The name of the Secret Manager secret version to use as an
       * authentication token for Git operations. Must be in the format
       * `projects/*/secrets/*/versions/*`.
       * 
* * * string authentication_token_secret_version = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for authenticationTokenSecretVersion. */ public com.google.protobuf.ByteString getAuthenticationTokenSecretVersionBytes() { java.lang.Object ref = authenticationTokenSecretVersion_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); authenticationTokenSecretVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Required. The name of the Secret Manager secret version to use as an
       * authentication token for Git operations. Must be in the format
       * `projects/*/secrets/*/versions/*`.
       * 
* * * string authentication_token_secret_version = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The authenticationTokenSecretVersion to set. * @return This builder for chaining. */ public Builder setAuthenticationTokenSecretVersion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } authenticationTokenSecretVersion_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
       * Required. The name of the Secret Manager secret version to use as an
       * authentication token for Git operations. Must be in the format
       * `projects/*/secrets/*/versions/*`.
       * 
* * * string authentication_token_secret_version = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. */ public Builder clearAuthenticationTokenSecretVersion() { authenticationTokenSecretVersion_ = getDefaultInstance().getAuthenticationTokenSecretVersion(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
       * Required. The name of the Secret Manager secret version to use as an
       * authentication token for Git operations. Must be in the format
       * `projects/*/secrets/*/versions/*`.
       * 
* * * string authentication_token_secret_version = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The bytes for authenticationTokenSecretVersion to set. * @return This builder for chaining. */ public Builder setAuthenticationTokenSecretVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); authenticationTokenSecretVersion_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private int tokenStatus_ = 0; /** * * *
       * Output only. Indicates the status of the Git access token.
       * 
* * * .google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.TokenStatus token_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for tokenStatus. */ @java.lang.Override public int getTokenStatusValue() { return tokenStatus_; } /** * * *
       * Output only. Indicates the status of the Git access token.
       * 
* * * .google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.TokenStatus token_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The enum numeric value on the wire for tokenStatus to set. * @return This builder for chaining. */ public Builder setTokenStatusValue(int value) { tokenStatus_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
       * Output only. Indicates the status of the Git access token.
       * 
* * * .google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.TokenStatus token_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The tokenStatus. */ @java.lang.Override public com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.TokenStatus getTokenStatus() { com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.TokenStatus result = com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.TokenStatus.forNumber( tokenStatus_); return result == null ? com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.TokenStatus .UNRECOGNIZED : result; } /** * * *
       * Output only. Indicates the status of the Git access token.
       * 
* * * .google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.TokenStatus token_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The tokenStatus to set. * @return This builder for chaining. */ public Builder setTokenStatus( com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.TokenStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; tokenStatus_ = value.getNumber(); onChanged(); return this; } /** * * *
       * Output only. Indicates the status of the Git access token.
       * 
* * * .google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.TokenStatus token_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. */ public Builder clearTokenStatus() { bitField0_ = (bitField0_ & ~0x00000008); tokenStatus_ = 0; 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:google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings) } // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings) private static final com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings(); } public static com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GitRemoteSettings parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * * *
   * Output only. The repository's name.
   * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** * * *
   * Output only. The repository's name.
   * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int GIT_REMOTE_SETTINGS_FIELD_NUMBER = 2; private com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings gitRemoteSettings_; /** * * *
   * Optional. If set, configures this repository to be linked to a Git remote.
   * 
* * * .google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the gitRemoteSettings field is set. */ @java.lang.Override public boolean hasGitRemoteSettings() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * Optional. If set, configures this repository to be linked to a Git remote.
   * 
* * * .google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The gitRemoteSettings. */ @java.lang.Override public com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings getGitRemoteSettings() { return gitRemoteSettings_ == null ? com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.getDefaultInstance() : gitRemoteSettings_; } /** * * *
   * Optional. If set, configures this repository to be linked to a Git remote.
   * 
* * * .google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettingsOrBuilder getGitRemoteSettingsOrBuilder() { return gitRemoteSettings_ == null ? com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.getDefaultInstance() : gitRemoteSettings_; } 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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getGitRemoteSettings()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getGitRemoteSettings()); } size += getUnknownFields().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.google.cloud.dataform.v1alpha2.Repository)) { return super.equals(obj); } com.google.cloud.dataform.v1alpha2.Repository other = (com.google.cloud.dataform.v1alpha2.Repository) obj; if (!getName().equals(other.getName())) return false; if (hasGitRemoteSettings() != other.hasGitRemoteSettings()) return false; if (hasGitRemoteSettings()) { if (!getGitRemoteSettings().equals(other.getGitRemoteSettings())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) 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) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (hasGitRemoteSettings()) { hash = (37 * hash) + GIT_REMOTE_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getGitRemoteSettings().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dataform.v1alpha2.Repository parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataform.v1alpha2.Repository parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dataform.v1alpha2.Repository parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataform.v1alpha2.Repository parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dataform.v1alpha2.Repository parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataform.v1alpha2.Repository parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dataform.v1alpha2.Repository parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dataform.v1alpha2.Repository 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.google.cloud.dataform.v1alpha2.Repository parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.dataform.v1alpha2.Repository 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.google.cloud.dataform.v1alpha2.Repository parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dataform.v1alpha2.Repository 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.google.cloud.dataform.v1alpha2.Repository 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; } /** * * *
   * Represents a Dataform Git repository.
   * 
* * Protobuf type {@code google.cloud.dataform.v1alpha2.Repository} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.Repository) com.google.cloud.dataform.v1alpha2.RepositoryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataform.v1alpha2.DataformProto .internal_static_google_cloud_dataform_v1alpha2_Repository_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dataform.v1alpha2.DataformProto .internal_static_google_cloud_dataform_v1alpha2_Repository_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataform.v1alpha2.Repository.class, com.google.cloud.dataform.v1alpha2.Repository.Builder.class); } // Construct using com.google.cloud.dataform.v1alpha2.Repository.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getGitRemoteSettingsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; gitRemoteSettings_ = null; if (gitRemoteSettingsBuilder_ != null) { gitRemoteSettingsBuilder_.dispose(); gitRemoteSettingsBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dataform.v1alpha2.DataformProto .internal_static_google_cloud_dataform_v1alpha2_Repository_descriptor; } @java.lang.Override public com.google.cloud.dataform.v1alpha2.Repository getDefaultInstanceForType() { return com.google.cloud.dataform.v1alpha2.Repository.getDefaultInstance(); } @java.lang.Override public com.google.cloud.dataform.v1alpha2.Repository build() { com.google.cloud.dataform.v1alpha2.Repository result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dataform.v1alpha2.Repository buildPartial() { com.google.cloud.dataform.v1alpha2.Repository result = new com.google.cloud.dataform.v1alpha2.Repository(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.cloud.dataform.v1alpha2.Repository result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.gitRemoteSettings_ = gitRemoteSettingsBuilder_ == null ? gitRemoteSettings_ : gitRemoteSettingsBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @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.google.cloud.dataform.v1alpha2.Repository) { return mergeFrom((com.google.cloud.dataform.v1alpha2.Repository) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.dataform.v1alpha2.Repository other) { if (other == com.google.cloud.dataform.v1alpha2.Repository.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasGitRemoteSettings()) { mergeGitRemoteSettings(other.getGitRemoteSettings()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getGitRemoteSettingsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * * *
     * Output only. The repository's name.
     * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Output only. The repository's name.
     * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Output only. The repository's name.
     * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The name to set. * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * Output only. The repository's name.
     * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * Output only. The repository's name.
     * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings gitRemoteSettings_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings, com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.Builder, com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettingsOrBuilder> gitRemoteSettingsBuilder_; /** * * *
     * Optional. If set, configures this repository to be linked to a Git remote.
     * 
* * * .google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the gitRemoteSettings field is set. */ public boolean hasGitRemoteSettings() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
     * Optional. If set, configures this repository to be linked to a Git remote.
     * 
* * * .google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The gitRemoteSettings. */ public com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings getGitRemoteSettings() { if (gitRemoteSettingsBuilder_ == null) { return gitRemoteSettings_ == null ? com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.getDefaultInstance() : gitRemoteSettings_; } else { return gitRemoteSettingsBuilder_.getMessage(); } } /** * * *
     * Optional. If set, configures this repository to be linked to a Git remote.
     * 
* * * .google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setGitRemoteSettings( com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings value) { if (gitRemoteSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } gitRemoteSettings_ = value; } else { gitRemoteSettingsBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Optional. If set, configures this repository to be linked to a Git remote.
     * 
* * * .google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setGitRemoteSettings( com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.Builder builderForValue) { if (gitRemoteSettingsBuilder_ == null) { gitRemoteSettings_ = builderForValue.build(); } else { gitRemoteSettingsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Optional. If set, configures this repository to be linked to a Git remote.
     * 
* * * .google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeGitRemoteSettings( com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings value) { if (gitRemoteSettingsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && gitRemoteSettings_ != null && gitRemoteSettings_ != com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings .getDefaultInstance()) { getGitRemoteSettingsBuilder().mergeFrom(value); } else { gitRemoteSettings_ = value; } } else { gitRemoteSettingsBuilder_.mergeFrom(value); } if (gitRemoteSettings_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * * *
     * Optional. If set, configures this repository to be linked to a Git remote.
     * 
* * * .google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearGitRemoteSettings() { bitField0_ = (bitField0_ & ~0x00000002); gitRemoteSettings_ = null; if (gitRemoteSettingsBuilder_ != null) { gitRemoteSettingsBuilder_.dispose(); gitRemoteSettingsBuilder_ = null; } onChanged(); return this; } /** * * *
     * Optional. If set, configures this repository to be linked to a Git remote.
     * 
* * * .google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.Builder getGitRemoteSettingsBuilder() { bitField0_ |= 0x00000002; onChanged(); return getGitRemoteSettingsFieldBuilder().getBuilder(); } /** * * *
     * Optional. If set, configures this repository to be linked to a Git remote.
     * 
* * * .google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettingsOrBuilder getGitRemoteSettingsOrBuilder() { if (gitRemoteSettingsBuilder_ != null) { return gitRemoteSettingsBuilder_.getMessageOrBuilder(); } else { return gitRemoteSettings_ == null ? com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.getDefaultInstance() : gitRemoteSettings_; } } /** * * *
     * Optional. If set, configures this repository to be linked to a Git remote.
     * 
* * * .google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings, com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.Builder, com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettingsOrBuilder> getGitRemoteSettingsFieldBuilder() { if (gitRemoteSettingsBuilder_ == null) { gitRemoteSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings, com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.Builder, com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettingsOrBuilder>( getGitRemoteSettings(), getParentForChildren(), isClean()); gitRemoteSettings_ = null; } return gitRemoteSettingsBuilder_; } @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:google.cloud.dataform.v1alpha2.Repository) } // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.Repository) private static final com.google.cloud.dataform.v1alpha2.Repository DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.Repository(); } public static com.google.cloud.dataform.v1alpha2.Repository getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Repository parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.google.cloud.dataform.v1alpha2.Repository getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy