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

com.vendasta.accountgroup.v1.internal.AccountGroup Maven / Gradle / Ivy

The newest version!
package com.vendasta.accountgroup.v1.internal;

import java.util.List;
import java.util.ArrayList;
import java.util.Date;
import java.util.Map;
import java.util.HashMap;
import java.util.Collections;
import java.util.Arrays;
import java.time.Duration;
import org.apache.commons.lang3.StringUtils;
import com.vendasta.accountgroup.v1.generated.ApiProto;

/**
 * Represents an Account Group
 **/
public final class AccountGroup {




	private final String accountGroupId;
	private final String accountGroupResourceId;
	private final Date deleted;
	private final Date created;
	private final Date updated;
	private final long version;
	private final Accounts accounts;
	private final ListingDistributionDetails listingDistribution;
	private final ListingSyncPro listingSyncPro;
	private final List associations;
	private final AccountGroupExternalIdentifiers accountGroupExternalIdentifiers;
	private final SocialURLs socialUrls;
	private final HoursOfOperation hoursOfOperation;
	private final ContactDetails contactDetails;
	private final Snapshots snapshotReports;
	private final LegacyProductDetails legacyProductDetails;
	private final RichData richData;
	private final AccountGroupLocation napData;
	private final Status status;
	private final OnBoardingStrategy onBoardingStrategy;
	private final AccountGroupHealth health;
	

	private AccountGroup (
		final String accountGroupId,
		final String accountGroupResourceId,
		final Date deleted,
		final Date created,
		final Date updated,
		final long version,
		final Accounts accounts,
		final ListingDistributionDetails listingDistribution,
		final ListingSyncPro listingSyncPro,
		final List associations,
		final AccountGroupExternalIdentifiers accountGroupExternalIdentifiers,
		final SocialURLs socialUrls,
		final HoursOfOperation hoursOfOperation,
		final ContactDetails contactDetails,
		final Snapshots snapshotReports,
		final LegacyProductDetails legacyProductDetails,
		final RichData richData,
		final AccountGroupLocation napData,
		final Status status,
		final OnBoardingStrategy onBoardingStrategy,
		final AccountGroupHealth health)
		
	{
		this.accountGroupId = accountGroupId;
		this.accountGroupResourceId = accountGroupResourceId;
		this.deleted = deleted;
		this.created = created;
		this.updated = updated;
		this.version = version;
		this.accounts = accounts;
		this.listingDistribution = listingDistribution;
		this.listingSyncPro = listingSyncPro;
		this.associations = associations;
		this.accountGroupExternalIdentifiers = accountGroupExternalIdentifiers;
		this.socialUrls = socialUrls;
		this.hoursOfOperation = hoursOfOperation;
		this.contactDetails = contactDetails;
		this.snapshotReports = snapshotReports;
		this.legacyProductDetails = legacyProductDetails;
		this.richData = richData;
		this.napData = napData;
		this.status = status;
		this.onBoardingStrategy = onBoardingStrategy;
		this.health = health;
		
	}
	
	/**
	 * An account group id in the format AG-123
      * @return The final value of accountGroupId on the object
	 **/
	public String getAccountGroupId() {
		return this.accountGroupId;
	}
	
	/**
	 * A full qualified identifier in the format partner/ABC/accountGroup/AG-123
      * @return The final value of accountGroupResourceId on the object
	 **/
	public String getAccountGroupResourceId() {
		return this.accountGroupResourceId;
	}
	
	/**
	 * 
      * @return The final value of deleted on the object
	 **/
	public Date getDeleted() {
		return this.deleted;
	}
	
	/**
	 * 
      * @return The final value of created on the object
	 **/
	public Date getCreated() {
		return this.created;
	}
	
	/**
	 * 
      * @return The final value of updated on the object
	 **/
	public Date getUpdated() {
		return this.updated;
	}
	
	/**
	 * 
      * @return The final value of version on the object
	 **/
	public long getVersion() {
		return this.version;
	}
	
	/**
	 * 
      * @return The final value of accounts on the object
	 **/
	public Accounts getAccounts() {
		return this.accounts;
	}
	
	/**
	 * 
      * @return The final value of listingDistribution on the object
	 **/
	public ListingDistributionDetails getListingDistribution() {
		return this.listingDistribution;
	}
	
	/**
	 * 
      * @return The final value of listingSyncPro on the object
	 **/
	public ListingSyncPro getListingSyncPro() {
		return this.listingSyncPro;
	}
	
	/**
	 * 
      * @return The final value of associations on the object
	 **/
	public List getAssociations() {
		return this.associations;
	}
	
	/**
	 * 
      * @return The final value of accountGroupExternalIdentifiers on the object
	 **/
	public AccountGroupExternalIdentifiers getAccountGroupExternalIdentifiers() {
		return this.accountGroupExternalIdentifiers;
	}
	
	/**
	 * 
      * @return The final value of socialUrls on the object
	 **/
	public SocialURLs getSocialUrls() {
		return this.socialUrls;
	}
	
	/**
	 * 
      * @return The final value of hoursOfOperation on the object
	 **/
	public HoursOfOperation getHoursOfOperation() {
		return this.hoursOfOperation;
	}
	
	/**
	 * 
      * @return The final value of contactDetails on the object
	 **/
	public ContactDetails getContactDetails() {
		return this.contactDetails;
	}
	
	/**
	 * 
      * @return The final value of snapshotReports on the object
	 **/
	public Snapshots getSnapshotReports() {
		return this.snapshotReports;
	}
	
	/**
	 * 
      * @return The final value of legacyProductDetails on the object
	 **/
	public LegacyProductDetails getLegacyProductDetails() {
		return this.legacyProductDetails;
	}
	
	/**
	 * 
      * @return The final value of richData on the object
	 **/
	public RichData getRichData() {
		return this.richData;
	}
	
	/**
	 * 
      * @return The final value of napData on the object
	 **/
	public AccountGroupLocation getNapData() {
		return this.napData;
	}
	
	/**
	 * 
      * @return The final value of status on the object
	 **/
	public Status getStatus() {
		return this.status;
	}
	
	/**
	 * Deprecated: use prospect/v1/onboarding_strategies.proto instead
      * @return The final value of onBoardingStrategy on the object
	 **/
	public OnBoardingStrategy getOnBoardingStrategy() {
		return this.onBoardingStrategy;
	}
	
	/**
	 * 
      * @return The final value of health on the object
	 **/
	public AccountGroupHealth getHealth() {
		return this.health;
	}
	

	public static class Builder {
		private String accountGroupId;
		private String accountGroupResourceId;
		private Date deleted;
		private Date created;
		private Date updated;
		private long version;
		private Accounts accounts;
		private ListingDistributionDetails listingDistribution;
		private ListingSyncPro listingSyncPro;
		private List associations;
		private AccountGroupExternalIdentifiers accountGroupExternalIdentifiers;
		private SocialURLs socialUrls;
		private HoursOfOperation hoursOfOperation;
		private ContactDetails contactDetails;
		private Snapshots snapshotReports;
		private LegacyProductDetails legacyProductDetails;
		private RichData richData;
		private AccountGroupLocation napData;
		private Status status;
		private OnBoardingStrategy onBoardingStrategy;
		private AccountGroupHealth health;
		
		public Builder() {
			this.accountGroupId = "";
			this.accountGroupResourceId = "";
			this.deleted = null;
			this.created = null;
			this.updated = null;
			this.version = 0;
			this.accounts = null;
			this.listingDistribution = null;
			this.listingSyncPro = null;
			this.associations = null;
			this.accountGroupExternalIdentifiers = null;
			this.socialUrls = null;
			this.hoursOfOperation = null;
			this.contactDetails = null;
			this.snapshotReports = null;
			this.legacyProductDetails = null;
			this.richData = null;
			this.napData = null;
			this.status = null;
			this.onBoardingStrategy = null;
			this.health = null;
			
		}
		
		/**
		  * Adds a value to the builder for accountGroupId
		  * @param accountGroupId Value to assign to the mutable Builder
		  * @return The Builder instance so that call chaining works
		 **/
		public Builder setAccountGroupId(String accountGroupId) {
			this.accountGroupId = accountGroupId;
			return this;
		}
		
		/**
		  * Adds a value to the builder for accountGroupResourceId
		  * @param accountGroupResourceId Value to assign to the mutable Builder
		  * @return The Builder instance so that call chaining works
		 **/
		public Builder setAccountGroupResourceId(String accountGroupResourceId) {
			this.accountGroupResourceId = accountGroupResourceId;
			return this;
		}
		
		/**
		  * Adds a value to the builder for deleted
		  * @param deleted Value to assign to the mutable Builder
		  * @return The Builder instance so that call chaining works
		 **/
		public Builder setDeleted(Date deleted) {
			this.deleted = deleted;
			return this;
		}
		
		/**
		  * Adds a value to the builder for created
		  * @param created Value to assign to the mutable Builder
		  * @return The Builder instance so that call chaining works
		 **/
		public Builder setCreated(Date created) {
			this.created = created;
			return this;
		}
		
		/**
		  * Adds a value to the builder for updated
		  * @param updated Value to assign to the mutable Builder
		  * @return The Builder instance so that call chaining works
		 **/
		public Builder setUpdated(Date updated) {
			this.updated = updated;
			return this;
		}
		
		/**
		  * Adds a value to the builder for version
		  * @param version Value to assign to the mutable Builder
		  * @return The Builder instance so that call chaining works
		 **/
		public Builder setVersion(long version) {
			this.version = version;
			return this;
		}
		
		/**
		  * Adds a value to the builder for accounts
		  * @param accounts Value to assign to the mutable Builder
		  * @return The Builder instance so that call chaining works
		 **/
		public Builder setAccounts(Accounts accounts) {
			this.accounts = accounts;
			return this;
		}
		
		/**
		  * Adds a value to the builder for listingDistribution
		  * @param listingDistribution Value to assign to the mutable Builder
		  * @return The Builder instance so that call chaining works
		 **/
		public Builder setListingDistribution(ListingDistributionDetails listingDistribution) {
			this.listingDistribution = listingDistribution;
			return this;
		}
		
		/**
		  * Adds a value to the builder for listingSyncPro
		  * @param listingSyncPro Value to assign to the mutable Builder
		  * @return The Builder instance so that call chaining works
		 **/
		public Builder setListingSyncPro(ListingSyncPro listingSyncPro) {
			this.listingSyncPro = listingSyncPro;
			return this;
		}
		
		/**
		  * Adds a value to the builder for associations
		  * @param associations Value to assign to the mutable Builder
		  * @return The Builder instance so that call chaining works
		 **/
		public Builder setAssociations(List associations) {
			this.associations = associations;
			return this;
		}
		
		/**
		  * Adds a value to the builder for accountGroupExternalIdentifiers
		  * @param accountGroupExternalIdentifiers Value to assign to the mutable Builder
		  * @return The Builder instance so that call chaining works
		 **/
		public Builder setAccountGroupExternalIdentifiers(AccountGroupExternalIdentifiers accountGroupExternalIdentifiers) {
			this.accountGroupExternalIdentifiers = accountGroupExternalIdentifiers;
			return this;
		}
		
		/**
		  * Adds a value to the builder for socialUrls
		  * @param socialUrls Value to assign to the mutable Builder
		  * @return The Builder instance so that call chaining works
		 **/
		public Builder setSocialUrls(SocialURLs socialUrls) {
			this.socialUrls = socialUrls;
			return this;
		}
		
		/**
		  * Adds a value to the builder for hoursOfOperation
		  * @param hoursOfOperation Value to assign to the mutable Builder
		  * @return The Builder instance so that call chaining works
		 **/
		public Builder setHoursOfOperation(HoursOfOperation hoursOfOperation) {
			this.hoursOfOperation = hoursOfOperation;
			return this;
		}
		
		/**
		  * Adds a value to the builder for contactDetails
		  * @param contactDetails Value to assign to the mutable Builder
		  * @return The Builder instance so that call chaining works
		 **/
		public Builder setContactDetails(ContactDetails contactDetails) {
			this.contactDetails = contactDetails;
			return this;
		}
		
		/**
		  * Adds a value to the builder for snapshotReports
		  * @param snapshotReports Value to assign to the mutable Builder
		  * @return The Builder instance so that call chaining works
		 **/
		public Builder setSnapshotReports(Snapshots snapshotReports) {
			this.snapshotReports = snapshotReports;
			return this;
		}
		
		/**
		  * Adds a value to the builder for legacyProductDetails
		  * @param legacyProductDetails Value to assign to the mutable Builder
		  * @return The Builder instance so that call chaining works
		 **/
		public Builder setLegacyProductDetails(LegacyProductDetails legacyProductDetails) {
			this.legacyProductDetails = legacyProductDetails;
			return this;
		}
		
		/**
		  * Adds a value to the builder for richData
		  * @param richData Value to assign to the mutable Builder
		  * @return The Builder instance so that call chaining works
		 **/
		public Builder setRichData(RichData richData) {
			this.richData = richData;
			return this;
		}
		
		/**
		  * Adds a value to the builder for napData
		  * @param napData Value to assign to the mutable Builder
		  * @return The Builder instance so that call chaining works
		 **/
		public Builder setNapData(AccountGroupLocation napData) {
			this.napData = napData;
			return this;
		}
		
		/**
		  * Adds a value to the builder for status
		  * @param status Value to assign to the mutable Builder
		  * @return The Builder instance so that call chaining works
		 **/
		public Builder setStatus(Status status) {
			this.status = status;
			return this;
		}
		
		/**
		  * Adds a value to the builder for onBoardingStrategy
		  * @param onBoardingStrategy Value to assign to the mutable Builder
		  * @return The Builder instance so that call chaining works
		 **/
		public Builder setOnBoardingStrategy(OnBoardingStrategy onBoardingStrategy) {
			this.onBoardingStrategy = onBoardingStrategy;
			return this;
		}
		
		/**
		  * Adds a value to the builder for health
		  * @param health Value to assign to the mutable Builder
		  * @return The Builder instance so that call chaining works
		 **/
		public Builder setHealth(AccountGroupHealth health) {
			this.health = health;
			return this;
		}
		
		/**
		  * Takes the configuration in the mutable Builder and uses it to instantiate a final instance
		  * of the AccountGroup class
		  * @return The instantiated final AccountGroup
		 **/
		public AccountGroup build() {
			return new AccountGroup(
				this.accountGroupId,
				this.accountGroupResourceId,
				this.deleted,
				this.created,
				this.updated,
				this.version,
				this.accounts,
				this.listingDistribution,
				this.listingSyncPro,
				this.associations,
				this.accountGroupExternalIdentifiers,
				this.socialUrls,
				this.hoursOfOperation,
				this.contactDetails,
				this.snapshotReports,
				this.legacyProductDetails,
				this.richData,
				this.napData,
				this.status,
				this.onBoardingStrategy,
				this.health);
		}
	}

	/**
	 * Returns a Builder for AccountGroup, which is a mutable representation of the object.  Once the
	 * client has built up an object they can then create an immutable AccountGroup object using the
	 * build function.
	 * @return A fresh Builder instance with no values set
	 **/
	public static Builder newBuilder() {
		return new Builder();
	}

	/**
	 * Provides a human-readable representation of this object.  Useful for debugging.
	 * @return A string representation of the AccountGroup instance
	 **/
	 public String toString() {
		 String result = "AccountGroup\n";
		 result += "-> accountGroupId: (String)"
		     + StringUtils.join("\n  ", Arrays.asList(String.valueOf(this.accountGroupId).split("\n"))) + "\n"; 
		 result += "-> accountGroupResourceId: (String)"
		     + StringUtils.join("\n  ", Arrays.asList(String.valueOf(this.accountGroupResourceId).split("\n"))) + "\n"; 
		 result += "-> deleted: (Date)"
		     + StringUtils.join("\n  ", Arrays.asList(String.valueOf(this.deleted).split("\n"))) + "\n"; 
		 result += "-> created: (Date)"
		     + StringUtils.join("\n  ", Arrays.asList(String.valueOf(this.created).split("\n"))) + "\n"; 
		 result += "-> updated: (Date)"
		     + StringUtils.join("\n  ", Arrays.asList(String.valueOf(this.updated).split("\n"))) + "\n"; 
		 result += "-> version: (long)"
		     + StringUtils.join("\n  ", Arrays.asList(String.valueOf(this.version).split("\n"))) + "\n"; 
		 result += "-> accounts: (Accounts)"
		     + StringUtils.join("\n  ", Arrays.asList(String.valueOf(this.accounts).split("\n"))) + "\n"; 
		 result += "-> listingDistribution: (ListingDistributionDetails)"
		     + StringUtils.join("\n  ", Arrays.asList(String.valueOf(this.listingDistribution).split("\n"))) + "\n"; 
		 result += "-> listingSyncPro: (ListingSyncPro)"
		     + StringUtils.join("\n  ", Arrays.asList(String.valueOf(this.listingSyncPro).split("\n"))) + "\n"; 
		 result += "-> associations: (List)"
		     + StringUtils.join("\n  ", Arrays.asList(String.valueOf(this.associations).split("\n"))) + "\n"; 
		 result += "-> accountGroupExternalIdentifiers: (AccountGroupExternalIdentifiers)"
		     + StringUtils.join("\n  ", Arrays.asList(String.valueOf(this.accountGroupExternalIdentifiers).split("\n"))) + "\n"; 
		 result += "-> socialUrls: (SocialURLs)"
		     + StringUtils.join("\n  ", Arrays.asList(String.valueOf(this.socialUrls).split("\n"))) + "\n"; 
		 result += "-> hoursOfOperation: (HoursOfOperation)"
		     + StringUtils.join("\n  ", Arrays.asList(String.valueOf(this.hoursOfOperation).split("\n"))) + "\n"; 
		 result += "-> contactDetails: (ContactDetails)"
		     + StringUtils.join("\n  ", Arrays.asList(String.valueOf(this.contactDetails).split("\n"))) + "\n"; 
		 result += "-> snapshotReports: (Snapshots)"
		     + StringUtils.join("\n  ", Arrays.asList(String.valueOf(this.snapshotReports).split("\n"))) + "\n"; 
		 result += "-> legacyProductDetails: (LegacyProductDetails)"
		     + StringUtils.join("\n  ", Arrays.asList(String.valueOf(this.legacyProductDetails).split("\n"))) + "\n"; 
		 result += "-> richData: (RichData)"
		     + StringUtils.join("\n  ", Arrays.asList(String.valueOf(this.richData).split("\n"))) + "\n"; 
		 result += "-> napData: (AccountGroupLocation)"
		     + StringUtils.join("\n  ", Arrays.asList(String.valueOf(this.napData).split("\n"))) + "\n"; 
		 result += "-> status: (Status)"
		     + StringUtils.join("\n  ", Arrays.asList(String.valueOf(this.status).split("\n"))) + "\n"; 
		 result += "-> onBoardingStrategy: (OnBoardingStrategy)"
		     + StringUtils.join("\n  ", Arrays.asList(String.valueOf(this.onBoardingStrategy).split("\n"))) + "\n"; 
		 result += "-> health: (AccountGroupHealth)"
		     + StringUtils.join("\n  ", Arrays.asList(String.valueOf(this.health).split("\n"))) + "\n"; 
		 
		 return result;
	 }
	/**
	* Allows for simple conversion between the low-level generated protobuf object to
	* AccountGroup, which is much more usable.
	* @return An instance of AccountGroup representing the input proto object
	**/
	public static AccountGroup fromProto(ApiProto.AccountGroup proto) {
		AccountGroup out = null;
		if (proto != null) {
			AccountGroup.Builder outBuilder = AccountGroup.newBuilder()
			.setAccountGroupId(proto.getAccountGroupId())
			.setAccountGroupResourceId(proto.getAccountGroupResourceId())
			.setDeleted(proto.hasDeleted()?new Date(proto.getDeleted().getSeconds() * 1000):null)
			.setCreated(proto.hasCreated()?new Date(proto.getCreated().getSeconds() * 1000):null)
			.setUpdated(proto.hasUpdated()?new Date(proto.getUpdated().getSeconds() * 1000):null)
			.setVersion(proto.getVersion())
			.setAccounts(Accounts.fromProto(proto.getAccounts()))
			.setListingDistribution(ListingDistributionDetails.fromProto(proto.getListingDistribution()))
			.setListingSyncPro(ListingSyncPro.fromProto(proto.getListingSyncPro()))
			.setAssociations(Association.fromProtos(proto.getAssociationsList()))
			.setAccountGroupExternalIdentifiers(AccountGroupExternalIdentifiers.fromProto(proto.getAccountGroupExternalIdentifiers()))
			.setSocialUrls(SocialURLs.fromProto(proto.getSocialUrls()))
			.setHoursOfOperation(HoursOfOperation.fromProto(proto.getHoursOfOperation()))
			.setContactDetails(ContactDetails.fromProto(proto.getContactDetails()))
			.setSnapshotReports(Snapshots.fromProto(proto.getSnapshotReports()))
			.setLegacyProductDetails(LegacyProductDetails.fromProto(proto.getLegacyProductDetails()))
			.setRichData(RichData.fromProto(proto.getRichData()))
			.setNapData(AccountGroupLocation.fromProto(proto.getNapData()))
			.setStatus(Status.fromProto(proto.getStatus()))
			.setOnBoardingStrategy(OnBoardingStrategy.fromProto(proto.getOnBoardingStrategy()))
			.setHealth(AccountGroupHealth.fromProto(proto.getHealth()));
			out = outBuilder.build();
		}
		return out;
	}

	/**
	* Convenience method for handling lists of proto objects.  It calls .fromProto on each one
	* and returns a list of the converted results.
	* @return A list of AccountGroup instances representing the input proto objects
	**/
	public static List fromProtos(List protos) {
		List out = new ArrayList();
		for(ApiProto.AccountGroup proto : protos) {
			out.add(AccountGroup.fromProto(proto));
		}
		return out;
	}

	/**
	 * Allows for simple conversion of an object to the low-level generated protobuf object.
	 * @return An instance of ApiProto.AccountGroup which is a proto object ready for wire transmission
	 **/
	 public ApiProto.AccountGroup toProto() {
		 AccountGroup obj = this;
		 ApiProto.AccountGroup.Builder outBuilder = ApiProto.AccountGroup.newBuilder();
		 outBuilder.setAccountGroupId(obj.getAccountGroupId());
		 outBuilder.setAccountGroupResourceId(obj.getAccountGroupResourceId());
		 if(obj.getDeleted()!=null){outBuilder.setDeleted(com.google.protobuf.Timestamp.newBuilder().setSeconds(obj.getDeleted().getTime() / 1000).build());}
		 if(obj.getCreated()!=null){outBuilder.setCreated(com.google.protobuf.Timestamp.newBuilder().setSeconds(obj.getCreated().getTime() / 1000).build());}
		 if(obj.getUpdated()!=null){outBuilder.setUpdated(com.google.protobuf.Timestamp.newBuilder().setSeconds(obj.getUpdated().getTime() / 1000).build());}
		 outBuilder.setVersion(obj.getVersion());
		 if(obj.getAccounts() != null){outBuilder.setAccounts(obj.getAccounts().toProto());}
		 if(obj.getListingDistribution() != null){outBuilder.setListingDistribution(obj.getListingDistribution().toProto());}
		 if(obj.getListingSyncPro() != null){outBuilder.setListingSyncPro(obj.getListingSyncPro().toProto());}
		 outBuilder.addAllAssociations(Association.toProtos(obj.getAssociations()));
		 if(obj.getAccountGroupExternalIdentifiers() != null){outBuilder.setAccountGroupExternalIdentifiers(obj.getAccountGroupExternalIdentifiers().toProto());}
		 if(obj.getSocialUrls() != null){outBuilder.setSocialUrls(obj.getSocialUrls().toProto());}
		 if(obj.getHoursOfOperation() != null){outBuilder.setHoursOfOperation(obj.getHoursOfOperation().toProto());}
		 if(obj.getContactDetails() != null){outBuilder.setContactDetails(obj.getContactDetails().toProto());}
		 if(obj.getSnapshotReports() != null){outBuilder.setSnapshotReports(obj.getSnapshotReports().toProto());}
		 if(obj.getLegacyProductDetails() != null){outBuilder.setLegacyProductDetails(obj.getLegacyProductDetails().toProto());}
		 if(obj.getRichData() != null){outBuilder.setRichData(obj.getRichData().toProto());}
		 if(obj.getNapData() != null){outBuilder.setNapData(obj.getNapData().toProto());}
		 if(obj.getStatus() != null){outBuilder.setStatus(obj.getStatus().toProto());}
		 if(obj.getOnBoardingStrategy() != null){outBuilder.setOnBoardingStrategy(obj.getOnBoardingStrategy().toProto());}
		 if(obj.getHealth() != null){outBuilder.setHealth(obj.getHealth().toProto());}
		 return outBuilder.build();
	 }

	 /**
	  * Convenience method for handling lists of objects.  It calls .toProto on each one and
	  * returns a list of the converted results.
	  * @return A list of ApiProto.AccountGroup instances representing the input objects.
	  */
	public static List toProtos(List objects) {
		List out = new ArrayList();
		if(objects != null) {
			for (AccountGroup obj : objects) {
				out.add(obj!=null?obj.toProto():null);
			}
		}
		return out;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy